ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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:

Code:
yum install ea-php56
When you're ready to remove it, execute the following command as root:

Code:
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).
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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: Old Server.png
New Server: New Server.png
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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!
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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!
 

ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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:


Additionally, ensure the mbstring PHP extension is installed for PHP version 5.6 using WHM >> EasyApache 4.

Thank you.
 

ImperialTrader

Well-Known Member
Aug 31, 2014
196
21
68
Egypt
cPanel Access Level
Root Administrator
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:


Additionally, ensure the mbstring PHP extension is installed for PHP version 5.6 using WHM >> EasyApache 4.

Thank you.
Yea that's correct, mbstring PHP extension wasn't installed for all the PHP versions mbstring.png
I installed for all versions, and the website is now working.

Although it worked, but still having very small errors (find the attached error log file)

That's what I'm talking about, what is the important and known extensions I should install for all the PHP versions? to make sure any further website will work fine on my server
 

Attachments