Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
syssec:lamp_stack [2019/04/02 18:43] vnbruno markdown formatting |
syssec:lamp_stack [2019/04/02 19:58] vnbruno lol |
||
---|---|---|---|
Line 30: | Line 30: | ||
- | During class you should of all setup your MariaDB Database Server. If you did not, or do not think it’s setup correctly please reach out immediately so SecDev can help you get it sorted out. Use the troubleshooting commands and techniques gone over in class. | + | During class you should of all setup your MariaDB Database Server. Or have gotten the "High-Level How-To" do to it. If you did not, or do not think it’s setup correctly please reach out immediately so SecDev can help you get it sorted out. Use the troubleshooting commands and techniques gone over in class during the **Services** lecture |
+ | However... we may not have gone over it in class. SecDev forget's too! Setting up the database is fairly easy when regarding Wordpress. Below is the "High-Level How-To". | ||
Install VMWare Tools! | Install VMWare Tools! | ||
`sudo apt install open-vm-tools open-vm-tools-desktop` | `sudo apt install open-vm-tools open-vm-tools-desktop` | ||
+ | |||
+ | |||
+ | * after installing some form on Linux server and connecting it with a **static IP** run `sudo apt update` | ||
+ | * then install MariaDB (wrapper for MySQL) - `sudo apt-get install mariadb-server mariadb-client` | ||
+ | * now we need to run the MySQL secure installation script, `sudo mysql_secure_installation` | ||
+ | * you may need to start the database too, `sudo systemctl start mariadb` | ||
+ | * make sure to say YES to remote login, and setup a new password (make sure the remember this!) | ||
+ | * then login to MariaDB `mysql -u root -p` | ||
+ | * follow Wordpress's steps to setting up the database | ||
+ | * PAY CLOSE ATTENTION TO SETTING UP THE EXTRA USER `wordpress-user` | ||
+ | * make sure the give this user privileges | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 96: | Line 112: | ||
* except you need to do http://IP_of_Web_Server/wp-admin | * except you need to do http://IP_of_Web_Server/wp-admin | ||
* you should be prompted to finish connecting to the remote database you setup in class and then configure WordPress | * you should be prompted to finish connecting to the remote database you setup in class and then configure WordPress | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||