Websites are not working on PHP 5.6
Hello @ImperialTrader, PHP version 5.6 was removed from the default EasyApache 4 profiles because it reached end-of-life status (PHP no longer publishes security updates for version 5.6). I recommend updating any PHP scripts that lack compatibility with newer PHP versions at your earliest convenience. If you plan to upgrade your scripts to work with a supported PHP version but need to use PHP 5.6 temporarily, execute the following command as root to install PHP version 5.6:yum install ea-php56
When you're ready to remove it, execute the following command as root:yum remove ea-php56
Thank you.
Hi Michael :) After I installed php5.6 and activated it from WHM, there are still some websites using php5.6 aren't working properly! Although these websites were working fine at their old shared hosting company. Is there any missing modules or packages I should install from (EasyApache 4) or from anything else? I also see other websites using WordPress are missing (mysql extension).
-
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 -
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 -
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 -
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 -
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 -
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 -
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.
Comments
9 comments