First and foremost to follow this tutorial you must make sure php, apache and all the neccessary things in your enviroment is in place.
login to your terminal using :
sudo mysql -u root -p
and create a database for your wordpress installation, in this example our database will be called genericwp
Then you go to your desktop and you download the latest version of wordpress and extract
tar -zxvf latest.tar.gz
You will find a folder named wordpress I will change the name to generic for this tutorial, after that all you have to do is to move it into your local server. In my case that is the /var/www/html for those using xamp is the htdocs and wamp should be the www folder
sudo mv /home/plumptre/Desktop/generic .
Next we must give the generic folder the proper permissions with the commands:
sudo chown -R www-data:www-data generic
sudo chmod -R 755 generic
enter into the generic folder and run the commands below to create WordPress wp-config.php file.
sudo cp wp-config-sample.php wp-config.php
sudo nano wp-config.php
update your details
- Previous Post