Install the LAMP Server (Linux,Apache, Mysql, PHP) with the command below:
sudo apt-get install lamp-server^

It will prompt for mysql server root password, enter the root password:

Confirm mysql server root password:

Move to the tmp directory and download the latest version of wordpress there:
cd /tmp wget http://wordpress.org/latest.tar.gz

Use this command to unpack the WordPress files:
tar -zxvf latest.tar.gz

To start the MySQL command-line client, use this command:
mysql -u root -p

Create a wordpress database and granting all privileges to the user that just created for wordpress:
CREATE DATABASE wordpress; GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY 't*n***'; FLUSH PRIVILEGES; EXIT;

Note: In this tutorial, wpuser will be used for wordpress.
Move to the extracted wordpress directory and change the name of the config file from wp-config-sample.php to wp-config.php and then edit the wp-config.php file:
cd wordpress/ mv wp-config-sample.php wp-config.php nano wp-config.php

Insert your MySQL settings that you have just created:

Now move all WordPress files to /var/www/ directory:
sudo cp -r * /var/www/

Change the ownership of /var/www directory to www-data:
sudo chown -R www-data /var/www

Move to the /var/www/ directory and check the permission:
cd /var/www/ ls

Open up the browser and go to http://hostname/wp-admin/install.php to begin configuring WordPress:
http://www.tendo.tk/wp-admin/install.php

To resolve this error, enable the php module and restart the apache service:
sudo a2enmod php5 sudo /etc/init.d/apache2 restart

Refresh the browser and fill all the information, and then click Install WordPress:

Login to the admin section:

Enter the username and password, that you have configured during the installation:

Congratulations!

More Details Click Here
author by:-rbgeek.wordpress
0 comments:
Post a Comment