phpmyadmin 5.1.3 exports and php 8.0.17 and 8.1.4

BillyS

Verified User
Joined
Jul 17, 2021
Messages
464
Apparently the most recent php releases resulted in a bug that does not allow the export of a database via phpmyadmin version 5.1.3. You can read about it here"


I run php 8.0 as the default version, but also have 7.4 compiled. I want to switch back to php 7.4 until the bug fix is released in phpmyadmin 5.1.4.

I've gone into Custom Build > Edit Options and changed php1_release to 7.4 and php2_release to 8.0 (basically switching the order) and saved the new configuration. Nothing happens. I tried restarting OpenLiteSpeed, same thing, php 8.0.17 remains running on both the websites and phpmyadmin. What am I missing?

Bill
 
you need to recompile php after switching their places and rewrite configs, it will drop selected versions for websites too
 
I use the script php-versions-selections to preserve the selected php-versions for websites. You can download the script from https://gitlab.com/nordhost/da-scripts.

1) You save the current PHP selections,
`php-version-selections > ~/selections.txt`
2) You update options.conf and rearrange PHP versions, or change the default
3) You update selections to make sure domains get the correct PHP version,
`php-versions-selections selections.txt`
4) You run `/usr/local/directadmin/custombuild/build rewrite_confs`
 
Back
Top