Strange problem today that I'm running out of ideas on how to troubleshoot.
Have two sites running xenforo and php 5.6.
On old server:
Site A is running EA PHP 5.6
Site B is running ALT PHP 5.6
Using cloudlinux php selector in cpanel, I can change Site A or Site B from ALT PHP 5.6 to EA PHP 5.6 or from EA PHP 5.6 to ALT PHP 5.6 with no errors on the old server.
Imported to a new server.
Site A is running EA PHP 5.6 (no errors)
Site B is running ALT PHP 5.6 (no errors)
However, If I change Site A to ALT PHP 5.6 xenforo errors with a mysqli error. If I change it back to EA PHP 5.6 it works fine.
If I change Site B to EA PHP 5.6 xenforo on that site errors with a mysqli error. If I change it back to ALT PHP 5.6 it works fine.
So it seems like each works with the php version that it was imported from backup running fine, but I can't change the php version on the new server without a mysqli error.
phpinfo and things other than xenforo that don't use mysql seem to operate fine after switching php versions.
Since Site A runs fine with EA PHP 5.6 and Site B runs on the same new server with ALT PHP 5.6, I'm not sure what to try since my logic tells me that both EA PHP 5.6 and ALT PHP 5.6 are running fine on the server with mysqi working fine, as long as I don't use the php selector to switch either site.
php modules specified in /home/siteA/.cl.selector/defaults.cfg match exactly php modules specified in /home/siteB/.cl.selector/defaults.cfg for php 5.6 on new and old servers. Obviously the EA-PHP module options should be the same between the two accounts on the same server.
Any ideas on what could cause this behavior when switching php versions with the cloudlinux php slector?
Have two sites running xenforo and php 5.6.
On old server:
Site A is running EA PHP 5.6
Site B is running ALT PHP 5.6
Using cloudlinux php selector in cpanel, I can change Site A or Site B from ALT PHP 5.6 to EA PHP 5.6 or from EA PHP 5.6 to ALT PHP 5.6 with no errors on the old server.
Imported to a new server.
Site A is running EA PHP 5.6 (no errors)
Site B is running ALT PHP 5.6 (no errors)
However, If I change Site A to ALT PHP 5.6 xenforo errors with a mysqli error. If I change it back to EA PHP 5.6 it works fine.
If I change Site B to EA PHP 5.6 xenforo on that site errors with a mysqli error. If I change it back to ALT PHP 5.6 it works fine.
So it seems like each works with the php version that it was imported from backup running fine, but I can't change the php version on the new server without a mysqli error.
phpinfo and things other than xenforo that don't use mysql seem to operate fine after switching php versions.
Since Site A runs fine with EA PHP 5.6 and Site B runs on the same new server with ALT PHP 5.6, I'm not sure what to try since my logic tells me that both EA PHP 5.6 and ALT PHP 5.6 are running fine on the server with mysqi working fine, as long as I don't use the php selector to switch either site.
php modules specified in /home/siteA/.cl.selector/defaults.cfg match exactly php modules specified in /home/siteB/.cl.selector/defaults.cfg for php 5.6 on new and old servers. Obviously the EA-PHP module options should be the same between the two accounts on the same server.
Any ideas on what could cause this behavior when switching php versions with the cloudlinux php slector?
Last edited: