linux学习笔记 apache php mysql +linux

1 #yum remove httpd

2 #yum -y install httpd php-common

php-devel php-gd php-mcrypt php-mbstring

php-pear php-bcmath php-dba php-mhash php-mxl

3 #whereis httpd

4 #vi /etc/httpd/conf/httpd.conf

找到documentroot 修改为documentroot /usr/local/htdocs

5#rpm -qa|grep -i mysql

查看mysql

6 #yum remove -y mysql 删除mysql

7#yum -y install php-mysql httpd-mannal mod_ssl mod_perl

mod_auth_mysql php-mcrypt php-gd php-xml

php-mbstring php-Idap php_pear php_xmlrpc

myql-connector-cobc libdbi-dbd-mysql

8#yum update php -y <---升级扩展包

9 #yum update -y <--升级外围资源

这条命令花费很长时间哦

 

查找apache位置命令

 

#whereis httpd

php配置文件

/etc/httpd/conf/httpd.conf

php配置文件位置
/etc/php.ini

查看centos 版本

leb_release -a

 

posted @ 2015-01-22 04:20  王超_cc  阅读(169)  评论(0编辑  收藏  举报