一、配置安装环境:
yum源已经配置好,详见yum源配置
#yum install httpd -y
#yum install php -y
#yum install php-mysql -y
#yum install mysql-server -y
二、测试数据库连接
#service mysqld start 启动mysql
#service httpd start 启动httpd
#cd /vhost/a.com/htdocs
#vim index.php
网址中输入:http://172.16.21.68 测试是否连接数据OK
三、下载workpress
#cd /vhost/a.com/htdocs
#lftp 172.16.0.1/pub/Sources/5.i386/new_lamp
>mget wordpress-3.3.1-zh_CN.zip
>bye
#unzip wordpress-3.3.1-zh_CN.zip
#cd wordpress
#cp wp-config-sample.php wp-config.php
#vim wp-config.php
#mysql
说明:因为已经创建数据库wpdb,所以会有错误。
登陆界面:
登陆后界面:
四、下载phpMyadmin
#lftp 172.16.0.1/pub/Sources/sources/php
>mget phpMyAdmin-4.0.5-all-languages.zip
>bye
#unzip phpMyAdmin-4.0.5-all-languages.zip
#ln -sv phpMyAdmin-4.0.5-all-languages pma
#cd pma
#yum install php-mbstring
#service httpd reload
登陆界面:
登陆后界面: