Tuesday, November 23, 2010

Install WordPress On Centos Server

How to install wordpress on your centos server..?? lets do it : Before install wordpress on your vps, mysql must be installed on your sever…
Login to your root server :

mysql -u root -p
Enter Password:
mysql> create database wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO “wordpress”@”localhost” IDENTIFIED BY “password”;
mysql> FLUSH PRIVILEGES;
mysql> exit;


cd /var/www/html
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz   atau,:    tar -xzvf wordpress-3.0.1.tar.gz


mv wordpress/* ./
rmdir wordpress/
mkdir wp-content/uploads wp-content/cache
chown apache:apache wp-content/uploads wp-content/cache
cp wp-config-sample.php wp-config.php
Go to SFTP to folder /var/www/html, please download wp-config.php and save to your local computer disk.
Edit this line data dbname and db password :
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress‘);
/** MySQL database username */
define(‘DB_USER’, ‘root‘);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password‘);
Save it and then upload it again to /var/www/html directory
Now go to :
http://domainoripaddress/wp-admin/install.php

No comments:

Post a Comment

My Mine