This guide will help you to install Wordpress to your host.
The walkthrough will assume you are installing Wordpress to a new host that has no existing website
and that you are already connected to your host through ssh.
For Wordpress to work you will need to have MySQL installed to your host.
Different linux enviornments may result in issues trying to install it.
To avoid issues you can follow our tested method for installation below.
MySQL Installation
To set up the database for Wordpress a user and the database will need to be created.
Running the commands below will create a new user named wordpress1.
Be sure to use a secure password.
Create the database Wordpress will use and grant the user privlages.
The commands below can be ran to download the latest wordpress.
Copy the wordpress files to the web servers root directory
The web servers root directory is located here /var/www/
Configuration will need to be set for wordpress related to the database as well as other small settings.
Make a copy of the configuration sample file to use
Edit the new configuration file
Change/Add the following Lines
* Please note that WP_SITEURL and WP_HOME must be added and set to your domain to avoid issues on wordpress. Also be sure that DB_HOST is set to 127.0.0.1 insteads of localhost.
Be sure to also change these lines below. They can be replaced with keys generated from here.
If there are any issues with database connectivity you can try going through the wordpress installation wizzard by visiting your website at http://yourwebsite.com/wp-admin/ Just be sure to edit the configuration file as shown previously to add WP_SITEURL and WP_HOME values.
To make sure the files have correct ownership for the apache server run the command below.
This will make sure the files can be read by the server and that they can be edited by the host user.
Visit the URL of your website and plug in the wordpress database information based on the previous steps.
Wordpress also recomends installing these additonal modules.