smarty http 500错误 为什么
程序员文章站
2024-01-12 15:02:28
...
本地好好的,传到服务器上就报这个错误,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
错误信息如下:
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
看看缓存目录是否有写入权限
推荐阅读
-
本地Tomcat里可以跑的java web应用,部署到sae上,报http 500错误 博客分类: java web java websaeserver errorhttp 500tomcat
-
由HTTP500错误引出的问题案例
-
php提交表单后出现http500错误
-
smarty 在include file 包含动态内容的时候报错(http 500),该如何处理
-
smarty http 500错误 为什么
-
php提交表单后出现http500错误
-
高手帮忙看看HTTP错误500错误代码0xc0000005
-
smarty http 500异常 为什么
-
连接数据库时,报HTTP500错误
-
在IE浏览器中网页出现http 500错误的原因查看方法