Today I will show you how to install word press on an existing LAMP stack (Linux, Apache, MySQL, PHP ). This is a super quick install, that will have you running WordPress in no time. Once connected to your Linux server via SSH, you’ll want to run the following commands as the root user.
Switch to the root user:
sudo su -
Now we need to download the latest WordPress files:
cd /tmp && wget http://wordpress.org/latest.tar.gz
Now unzip those files to your web directory, usually somewhere within /var/www/:
tar -xvzf latest.tar.gz
Inside the unzipped ‘wordpress’ directory, you’ll find the file wp-conflig-sample.php. We want to copy this for a backup and edit it:
cp wp-config-sample.php wp-config.php && vim wp-config.php