Local good, to the server on the report this error, Smarty template brush not come out. How do I debug it?
The error message is as follows:
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, APR 14:26:33 GMT
server:apache/2.2.22 (Ubuntu)
Vary:accept-encoding
x-powered-by:php/5.3.10-1ubuntu3.11
Reply to discussion (solution)
Open PHP error prompt debugging.
Dude, ask.
Apache also has error logs
PHP also has error logs
Which one do I look at?
2 are not overlapping parts
PHP.ini Display_errors=on, then restart Apache.
Empty the template after the compiled directory Templates_c
See if the cache directory has write permissions