How to install WordPress on CentOS
1. Make sure LAMP is ready
2. Download wordpress latest version
# cd ~/tmp
# wget http://wordpress.org/latest.zip
Current version is 3.3.1.
3. Extract the zip file and move to host folder
# unzip latest.zip
# mv wordpress /var/www/html/wp
# chown -R apache:apache /var/www/html/wp ————— change the owner as “apache”
4. Create a database for wordpress
mysql> CREATE DATABASE wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'my-password';
mysql> FLUSH PRIVILEGES;
4. Set up configure file
4. Set up configure file
# cd /var/www/html/wp
# cp wp-config-sample.php wp-config.php
# vi wp-config.php
Replace following as yours:
database_name_here --> database name, such as "wordpress"
username_here -------> database user name, for instance "wp1"
password_here -------> database password, eg. "mypassword"
5. Start installation from web
http://192.168.1.1/wp/wp-admin/install.php
And then, follow the page to setup site information.