Step1:First install LAMP on your system .
Step2: Create a database for WordPress and an user who has all privileges for accessing.
So open terminal and type :
mysql -u root -p
mysql> CREATE DATABASE wordpress;
mysql> CREATE USER wpuser;
mysql> SET PASSWORD FOR wpuser = PASSWORS(“wppassword“);
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY ‘wppassword’;
mysql> FLUSH PRIVILEGES;
Step3:Download Wordpress from http://wordpress.org/download
Step4:Move the wordpress directory to the root directory of Apache web site, /var/www/ as
Open terminal and then type
sudo tar -xvzf wordpress-2.9.2.tar.gz -C /var/www
Step5:Now in wordpress directory, rename the wp-config-sample.php file to wp-config.php as
Open terminal and then type
sudo mv wp-config-sample.php wp-config.php
Step6: Now open the terminal type:
sudo gedit /var/www/wordpress/wp-config.php
Change putyourdbnamehere to wordpress.
Change usernamehere to wpuser.
Change yourpasswordhere to the wppassword.
Enjoy,Congrats you have installed wordpress.
No comments:
Post a Comment