The YII2 framework creates a folder on its own and runs locally without problems, but server 500 error occurs when you pull up the server

Source: Internet
Author: User
Tags server error log

will be in my mark where the error, but this file is the system comes with, why will the error?

Reply content:

will be in my mark where the error, but this file is the system comes with, why will the error?

You can see if the permissions on your server directory allow Apache to read and write.

500 is a code error, and the error message is typed.

Now this is the last sentence to be an error.

Note the PHP version of your server, some versions of PHP do not support this type of writing:
`
(New Bigclassname)->func ();
`
Please change to the following wording:
`
$xx = new Bigclassname;
$xx->func ();
`

In addition, you should check the server error log, which is most helpful.

And if the machine is a Windows environment, note that file names are case-sensitive, and Linux is case-insensitive.

P.S. Mobile code word it's so hard.

Thank you for inviting me. Server 500 is a program error, I suggest you do breakpoint debugging, the specific problem or according to the breakpoint to find the reason is better

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