Skip to main content

Websites are not working on PHP 5.6

Comments

9 comments

  • cPanelMichael
    Hello @ImperialTrader, Do you notice any specific PHP errors logged to the error_log file within the domain's document root? Note if PHP-FPM is enabled, the default PHP error log path is /home/example/logs/example_com.php.error.log where example represents the account username and example_com represents the domain name. Thank you.
    0
  • ImperialTrader
    Hello @ImperialTrader, Do you notice any specific PHP errors logged to the error_log file within the domain's document root? Note if PHP-FPM is enabled, the default PHP error log path is /home/example/logs/example_com.php.error.log where example represents the account username and example_com represents the domain name. Thank you.

    Whatever any php version I'm using, all the issues are MySQL issues. Small example: At my old server, (mysql_query) was working fine. But at my new server, it's a big issue and it's forcing me to use (mysqli_query). Could you please check the attached screenshots from the server information (Old & New) and tell me if there is anything I should do at my new server Old Server: New Server:
    0
  • cPanelMichael
    Hello @ImperialTrader, Could you share any specific MySQL error messages that you see when reproducing the issue? I notice you are using MySQL version 5.7 on the new server, and you were using MariaDB 10.2 on the old server. Was this your intent? Thank you.
    0
  • ImperialTrader
    Hello @ImperialTrader, Could you share any specific MySQL error messages that you see when reproducing the issue? I notice you are using MySQL version 5.7 on the new server, and you were using MariaDB 10.2 on the old server. Was this your intent? Thank you.

    Sorry for my late reply.. Kindly find the attached error log file. This client is using Prestashop. There are many errors appeared when I transferred his website from the old shared hosting to my new server, although I'm using the same php version!
    0
  • cPanelMichael
    Hello @ImperialTrader, Can you verify if it was your intent to switch from MariaDB 10.2 to MySQL 5.7?
    I notice you are using MySQL version 5.7 on the new server, and you were using MariaDB 10.2 on the old server. Was this your intent?

    Thanks!
    0
  • ImperialTrader
    Hello @ImperialTrader, Can you verify if it was your intent to switch from MariaDB 10.2 to MySQL 5.7? Thanks!

    My intent to move my clients from the old shared server at other company to my new server I don't care about MySQL version and I don't know if the database is the reason of these errors or something else at my new server like (PHP extensions/versions/Apache)
    0
  • cPanelMichael
    Hello @ImperialTrader, The images you shared earlier on this thread show that PHP version 7.2 is enabled on the website. Since your script requires PHP version 5.6, check to ensure you've assigned that version to the domain using WHM >> MultiPHP Manager:
    0
  • ImperialTrader
    Hello @ImperialTrader, The images you shared earlier on this thread show that PHP version 7.2 is enabled on the website. Since your script requires PHP version 5.6, check to ensure you've assigned that version to the domain using WHM >> MultiPHP Manager:
    0
  • ImperialTrader
    Hello @ImperialTrader, Additionally, ensure the mbstring PHP extension is installed for PHP version 5.6 using WHM >> EasyApache 4. Thank you.

    Any update for my previous comment? :)
    0

Please sign in to leave a comment.