search

Home  >  Q&A  >  body text

nginx - Moving from php5.5 environment to php7.1, all 500 errors occurred when accessing the website

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?

给我你的怀抱给我你的怀抱2738 days ago833

reply all(5)I'll reply

  • 漂亮男人

    漂亮男人2017-06-05 11:09:04

    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.

    reply
    0
  • 黄舟

    黄舟2017-06-05 11:09:04

    Look at the error log as a whole

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-06-05 11:09:04

    Have you not upgraded on the test server now?

    reply
    0
  • 为情所困

    为情所困2017-06-05 11:09:04

    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.

    reply
    0
  • 習慣沉默

    習慣沉默2017-06-05 11:09:04

    php-error.log

    reply
    0
  • Cancelreply