centos

yum命令

yum是centos的保管里命令

命令 含义
yum install packagename 安装
yum remove packagename 删除
yum info installed 查询已安装
yum search packagename 查询包

centos php已经整合在httpd包中

yum install httpd

php绘图需要安装gd模块

yum install php-gd

打开php调试

vim /etc/php.ini
display_errors   =  On
error_reporting =  E_ALL | E_STRICT

vim /etc/httpd/conf/httpd.conf
#添加
php_flag display_errors         on
php_value error_reporting    2039

重启httpd服务
service httpd restart

php mysql支持

yum install mysql-server
yum install php-mysql