nginx - Moving from php5.5 environment to php7.1, all 500 errors occurred when accessing the website
给我你的怀抱
给我你的怀抱 2017-06-05 11:07:04
0
5
740

Package the entire site files, configure pseudo-static, upload the database, and modify the database address and account number.
Access is a 500 error, and all pages are 500.
The previous environment was php5.5 mysql5.1 on Alibaba Cloud virtual host
Now it is the lnmp environment of oneoneinstack php7.1 mysql 5.7
Is there a way to solve it?

给我你的怀抱
给我你的怀抱

reply all (5)
漂亮男人

This is normal.
Just like a bunch of software that you can use in XP, you can’t use it in win10

Then find out where the 500 error occurs.
Put this php in first and put it at the beginning

error_reporting(E_ALL); ini_set('display_errors', 1);

Then see what the error is. If the error message is still 500 and there is no detailed error content, go to the error log of the web server to find it, usually called error.log.

Then I checked and fixed the errors one by one. .

Your PHP and MySQL are both major upgrades, and there must be a lot of problems. Good luck.

    黄舟

    Look at the error log as a whole

      淡淡烟草味

      Have you not upgraded on the test server now?

        为情所困

        The 500 error represents an internal error in the server, that is, a code error. Many ways of writing 5 are not supported by 7. Look at the errors reported and correct them one by one.

          習慣沉默

          php-error.log

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!