Friday, September 3, 2010

HOw to install WordPress(Centos):

HOw to install  WordPress :


Before installing wordpress you have to install httpd,php and mysql..



# yum -y install httpd*  php*  mysql-server
# chkconfig httpd on
# chkconfig mysqld on
# /etc/init.d/mysqld start
# /etc/init.d/httpd start



Create wordpress database:

# mysql -u root -p
mysql> CREATE DATABASE Databasename;
(eg: CREATE DATABASE wordpressdb;)
mysql> show databases;
mysql> exit

Download and configure wordpress:

wget http://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
cp -a * /var/www/html
cd /var/www/html
mv wp-config-sample.php wp-config.php

# vi wp-config.php

--edit in this line--

define('DB_NAME', 'wordpressdb');
define('DB_USER', 'root');
define('DB_PASSWORD', 'mysqlrootpass');

Server configuraion is completed.. now you have to do the online confiuration..

http://{ip or hostname}/wp-admin/install.php


Enjoy....... :)





2 comments:

Motorcycle Helmets said...

Here is another article on how to intsall wordpress.

http://neil.motorcyclemarket.com/how-to-install-wordpress-3-1-on-centos-5-5-step-by-step-tutorial-that-works

Anonymous said...

Express gratitude thank you so much for this information

php web development

Post a Comment