How update PHP version for phpMyAdmin?

Can anyone advise how update phpMyAdmin PHP version to 8.1? It’s still run 7.3 on fresh cyberpanel install.
Same issue is with snappymail I would like update PHP on it too.

Alright, i found what is hapenning and why we can’t change it.

I went to OLS admin panel, changed the lsphp at external app from 73 to 81.
imagem

YET IT DIDN’T WORK!
That controls the default PHP for the websites, so I went to look further.


Solution:

The PHP 7.3 binary being used is duplicated at /usr/local/lscp/fcgi-bin/lsphp.

So to change your phpmyadmin version, you can do like I did:

Delete the current binary:
rm -f /usr/local/lscp/fcgi-bin/lsphp

Create symbolic link to the php81 binary where the duplicated binary resided:
ln -s /usr/local/lsws/lsphp81/bin/lsphp /usr/local/lscp/fcgi-bin/lsphp

To change to another version, for example PHP 7.4 instead of 8.1, but replace “lsphp81” with “lsphp74” on the command above.

And done:



1 Like

Mate you are legend, Usman should hire you to be bug fixer!

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.