Maison >développement back-end >tutoriel php >smarty http 500错误 为什么
本地好好的,传到服务器上就报这个错误,smarty模版刷不出来。。我要如何调试呢
错误信息如下:
Request URL:http://106.187.43.40/lovewords/test.php
Request Method:GET
Status Code:500 Internal Server Error
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Cookie:PHPSESSID=hjn3srvfefcrakoa9kemn2b1e0
Host:106.187.43.40
Pragma:no-cache
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Response Headersview source
Connection:close
Content-Encoding:gzip
Content-Length:20
Content-Type:text/html
Date:Tue, 08 Apr 2014 14:26:33 GMT
Server:Apache/2.2.22 (Ubuntu)
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.10-1ubuntu3.11
打开php错误提示调试。
哥们问下
apache也有错误日志
php又有错误日志
我到底看哪个
2个是不是有重叠的部分
php.ini 中令display_errors=On , 然后重启下Apache。
清空模板编译后的目录 templates_c
看看缓存目录是否有写入权限