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....... :)
Here is another article on how to intsall wordpress.
ReplyDeletehttp://neil.motorcyclemarket.com/how-to-install-wordpress-3-1-on-centos-5-5-step-by-step-tutorial-that-works