一、配置安装环境:
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
登陆界面:
登陆后界面:
四、下载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
登陆界面:
登陆后界面:
本文出自 “linux课堂笔记” 博客,请务必保留此出处http://linuxkingdom.blog.51cto.com/6334977/1641388
安装lamp及wordpress,phpmyadmin的应用
原文地址:http://linuxkingdom.blog.51cto.com/6334977/1641388