wordpress安装
wget http://cn.wordpress.org/wordpress-3.3.1-zh_CN.tar.gz
tar zxvf wordpress-3.3.1-zh_CN.tar.gz
cd wordpress
mkdir /data/html/blog
cp -a wordpress /data/html/blog
vi /usr/local/apache/conf/httpd.conf
修改以下几项
Listen 10081
Include conf/extra/httpd-vhosts.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
NameVirtualHost *:10081
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:10081>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/data/html/blog/wordpress"
ServerName 192.168.32.128
ErrorLog "/data/logs/blog-error.log"
CustomLog "/data/logs/blog-access.log" combined
<Directory "/data/logs/blog/wordpress">
Options +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php index.cgi
</Directory>
</VirtualHost>
/usr/local/mysql/bin/mysqld_safe --user=mysql --data=/var/lib/mysql&
/usr/local/apache/bin/apachectl restart
然后打开http://192.168.32.128:10081/readme.html,如果出现403错误
按照操作说明http://192.168.32.128:10081/wp-admin/install.php然后一步步操作即可。