[root@centos php-5.2.11]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local/gd --with-gettext=/usr/local/gettext --with-zlib-dir=/usr/include
重新安装php
make的时候 报错
make: *** [sapi/cli/php] 错误 1
解决 make clean 然后重新make
在httpd.conf中添加:AddType application/x-httpd-php .php
文章评论