• Hello,

    I am trying to update from PHP 5.6 to PHP 7.0. But I got an error message when trying to go to login admin with the following message:

    “Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
    More information about this error may be available in the server error log.
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”

    So, I revert it back to PHP 5.6 and everything is getting normal again. I also contacted all developers of plugins as well as themes. All of them told me that their plugins and themes were compatible with PHP 7.0.

    Can someone tell me what the problem is? Is it due to mysql? I have heard that mysql has been deprecated and it is no longer be used with PHP 7.0? If so, is there any documentation how to change from mysql to mysqli in wordpress?

    Thanks for all inputs.

    • This topic was modified 5 years, 3 months ago by beyonz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the default theme for your version of WordPress to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter beyonz

    (@beyonz)

    @t-p,

    Thanks for your reply. I really appreciate for the reply. I will do what you’ve said. Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘500 Internal Server Error After Updating to PHP 7.0’ is closed to new replies.