Smarty HTTP 500 Error why

Source: Internet
Author: User
Tags php error smarty template
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.