Welcome to part 2 of the LLMP setup guide. This guide assumes you completed the steps of the part 1 section. We last left off ready to install WordPress into our newly created directly.
We are going to navigate to the directory of our domain name. Make sure to change the code below to be your domain and not the example.com domain:
Next, lets go ahead and remove and the index file we used to confirm the vhost file was setup properly:
Next, let’s use wget to download the latest version of WordPress
That tar gz file is a zip file for linux. We will extract it in the public_html folder:
tar -zvxf latest.tar.gz
You may have noticed during the extraction process it created a new folder called WordPress and put everythig in it. This isn’t ideal, so we are going to move all files back a level, to the root public_html folder:
mv * ../
rm wordpress -rf
Now we need to login to MySQL and create a new DB for WordPress to use and a new user for WordPress to connect through. To do this, I used SequalPro (if you are on a windows machine, there are lots of MySQL connection managers, pick your favorite and get connected) to connect and then logged in with the root username and password.
Create a new DB (potentially your domain name-wp) and then create a new user and assign them full rights on the wp database only. Record the username and password for use on the WP site.
Now that we have a DB, let’s navigate to the domain name of your new site. You should notice there is a wordpress page like this one:
This will help you create our WordPress configuration page. Enter in the values in the guide and then copy the contents of the config file to your clipboard. We are going to be opening the wp-config.php file and pasting it in. Back in your ssh session, confirm you are still in the public_html folder for your domain. Then run the following to open the config file:
Paste the contents of the clipboard into this file and then save and exit (control O and control X).
If you reload the website you should now see:
This gets you setup with your WordPress site allowing you to customize and create from here!
All that’s left is installing the firewall on the server and then using the WordPress site. Click on over to Part 3 to see how to install the firewall on your LLMP server.