Steps to install WordPress

WordPress:-
WordPress ia an online,open source website creation tool written in php.

WordPress Installation

Step1:Dowbload file with following command.

[root@vps]# wget http://wordpress.org/latest.tar.gz

Step2:Extract file with following command

tar -xzvf latest.tar.gz

Step3:Connect to your mysql to create db installation

mysql -u root -p

If no password press enter
Step4:Create wordpress database with following command

CREATE DATABASE WORDPRESS

NOTE:whatever you want instead of database name(wordpress)

Step5:create User with following command

CREATE USER 'user@localhost' IDENTIFIED BY 'password';

NOTE:whatever you want instead of user name(wordpressuser)

Step6:Grant all privileges to your db user using

GRANT ALL PRIVILEGES ON wordpress. * To wordpressuser@localhost IDENTIFIED BY 'yourpassword';

Step7: Refresh mysql privileges

FLUSH PRIVILEGES;

Step8:

exit;

Step9:Rename wordpress sample config file using

mv ~/wordpress/wp-config-smple.php
~/wordpress/wp.config.php

Step10:edit the wordpress configuration file using

nano ~/wordpress/wp-config.php

Now replace database name,user,password with the one you created earlier

define(‘DB_NAME’,’databasenamehere’);
define(‘DB_USER’,’Usernamehere’);
define(‘DB_PWD’,’pwdhere’);

Output will be

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *