My Yii framework for Ubuntu to report 500 errors, files are 777 permissions, and then the Nginx settings are guaranteed correct, what solution?

Source: Internet
Author: User
git address Http://git.oschina.net/nixi8/yiibasc

Because the page is a blank, and then the breakpoint can be normal output, not very good troubleshooting, so ask

Reply content:

git address Http://git.oschina.net/nixi8/yiibasc

Because the page is a blank, and then the breakpoint can be normal output, not very good troubleshooting, so ask

Upstairs the answer is the positive solution, vendor files under the default is not being tracked by Git, see. Gitignore There is write, you put the. Gitignore inside the/vendor line to remove, in the re-add commit push

Or look at Nginx's error log.

Check the reason for file name capitalization, Windows file name capitalization is not sensitive

Configure PHP Display_error:on to print out the error message

Nginx error log generally in/var/log/nginx/error.log

Is this the case? It's out of the box. Look at your Git, missing a vendor folder. Are you using the composer way? Estimate not complete ...

index.php Plus

error_reporting(E_ERROR); ini_set('display_errors', 'yes');

To temporarily open the error level and error display, 500 is an internal error, usually a problem with the program.

  • 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.