• Resolved Jason King

    (@jasoncharlesstuartking)


    The MySQL version is outdated. WordPress requires 5.6+ but the server has 5.5.49.

    PHP is version 7.

    If I tried to install WordPress would it be usual to encounter a 500 error at the step when trying to connect the database? And this message…

    “[name of website] is currently unable to handle this request.”

    I just want to know how likely it is that the MySQL version is the reason for failure. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Yes if the required PHP and MYSQL version is not present on the server then latest wordpress may not get installed or may cause problems after installation.

    Thanks

    Thread Starter Jason King

    (@jasoncharlesstuartking)

    Thanks Clarion. Specifically would you expect it to be a 500 error?

    Switched on PHP debugging and got this:

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/healthw1/public_html/revamp/wp-includes/wp-db.php:1520 ... thrown in /home/healthw1/public_html/revamp/wp-includes/wp-db.php on line 1520

    Reckon that’s the MySQL version at fault?

    I just want to point the finger of blame in the correct direction!

    Hi Jason,

    Please check if MySQL service is running.

    Try checking to see if the PHP MySQL extension module is being loaded

    <?php
    phpinfo();
    ?>

    If it is not there, add the following line to the php.ini file and restart the apache.

    extension=php_mysql.dll

    P.S. I would advise to consider MySQL extension as deprecated and to use MySQLi or even PDO for working with databases

    Thanks

    Thread Starter Jason King

    (@jasoncharlesstuartking)

    Thanks for the clues Clarion, all fixed now.

    The MySQL wasn’t running because a box on the PHP 7 version chooser in cPanel was unticked.

    Glad your problem is solved. ??

    Hi Jason,

    I am getting the same error. Which box did you need to check? There are several MySQL options checked and unchecked in my cPanel and I can’t work out which one I need to activate.

    Many Thanks!

    Thread Starter Jason King

    (@jasoncharlesstuartking)

    Sorry, I really can’t remember. It was three months ago!

    And bear in mind that error message on your site could be caused by many things, not necessarily the same that caused mine.

    Thanks for your reply Jason. After testing it seems nd_mysqli get it working for me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘MySQL version, WP requirements and 500 error’ is closed to new replies.