安装lamp及wordpress,phpmyadmin的应用

一、配置安装环境:  

 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  

wKiom1VFwu-in7TMAAB-TJyANQ0714.jpg

网址中输入: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

wKiom1VFp4TCORfNAACrHVv6K4c332.jpg

#mysql

wKioL1VFqQOwSvbjAAHBN2YsmDw507.jpg说明:因为已经创建数据库wpdb,所以会有错误。

登陆界面:

wKioL1VFqYKT69McAADsKSl0UZU088.jpg

登陆后界面:

wKiom1VFqCjSXLmlAAH-ckZHfYA101.jpg

四、下载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

登陆界面:

wKiom1VFqHOy4RmTAAEoMyeUIlA343.jpg

登陆后界面:

wKioL1VFqfGyT5VSAAH7gApgs98055.jpg

你可能感兴趣的:(phpMyAdmin,wordpress,lamp)