Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
API Development Course Apr 2021
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sabarinathan k
API Development Course Apr 2021
Commits
89b94ff6
Commit
89b94ff6
authored
3 years ago
by
Sibidharan
Browse files
Options
Downloads
Patches
Plain Diff
Ubuntu setup steps
parent
6b3db174
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+63
-0
63 additions, 0 deletions
README.md
with
63 additions
and
0 deletions
README.md
+
63
−
0
View file @
89b94ff6
...
@@ -45,3 +45,66 @@ RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=307]
...
@@ -45,3 +45,66 @@ RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=307]
```
```
#### Configuring your own Ubuntu Setup
Reference: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04
1.
Update and upgrade the system first.
```
$ sudo apt update && sudo apt -y upgrade
```
2.
Install Apache, MySQL and PHP
```
$ sudo apt install apache2 libapache2-php-mod mysql-server php-mysql
```
3.
Secure MySQL Database
```
$ sudo mysql_secure_installation
```
and follow the onscreen steps. For more info, check the above link.
4.
Create a Database
```
$ mysql -u root -p
Password:
```
Enter the password you have given for root during
`mysql_secure_installation`
and you can see the following promot.
```
mysql>
```
From here, we need to create a database called
`apis`
.
```
mysql> CREATE DATABASE apis;
```
We also need to create a mysql username and password and give the database previleges for the database we created.
```
mysql> CREATE USER 'apiuser'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.02 sec)
mysql> GRANT ALL PRIVILEGES ON * . * TO 'apiuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> exit
Bye
```
Now update the
`env.json`
file with the user and database info created.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment