1 edit apache2/conf/httpd.conf.
PHPIniDir=[dir]
2. copy php-5.x-src/php.ini.development to your PHPIniDir.
3. rename php.ini.development to php.ini and edit to omit E_NOTICE errors(otherwise there can be undefined index errors raised as response when the code triggers certain warning). find error_reporting
error_reporting = E_ALL & ~E_NOTICE
4. restart apache2
apachectl restart
本文档详细介绍了如何配置PHP环境并将其与Apache服务器进行整合。主要包括编辑Apache配置文件httpd.conf来指定PHP配置文件的位置;复制并重命名php.ini.development文件为php.ini,并修改错误报告设置以排除E_NOTICE级别的错误;最后重启Apache服务使配置生效。

547

被折叠的 条评论
为什么被折叠?



