Home  >  Article  >  php教程  >  linux下php配置问题

linux下php配置问题

WBOY
WBOYOriginal
2016-06-06 19:44:201214browse

今天整理LAMP配置,一切调节好之后,apache和mysql都启动了,但是页面浏览器访问页面没反应,知道有错误,但是不知到错在哪儿。最后终于发现/etc/php5/apache2/php.ini,可以记录错误日志,终于看到了错误出现在什么地方。 error_reporting = E_ALL ~E_DEPRE

今天整理LAMP配置,一切调节好之后,apache和mysql都启动了,但是页面浏览器访问页面没反应,知道有错误,但是不知到错在哪儿。最后终于发现/etc/php5/apache2/php.ini,可以记录错误日志,终于看到了错误出现在什么地方。

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

display_errors = On  //开始状态为Off

display_startup_errors = On   ///开始状态为Off

终于看到希望了,继续debug。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn