Z zhouqing New member Joined Dec 15, 2022 Messages 11 Dec 15, 2022 #1 How to change the PHP version? I just installed the DirectAdmin panel and found that PHP is 81, I want php72
How to change the PHP version? I just installed the DirectAdmin panel and found that PHP is 81, I want php72
Richard G Verified User Joined Jul 6, 2008 Messages 13,778 Location Maastricht Dec 15, 2022 #2 You can do that via the custombuild plugin. Change php1 to 72 and then recompile php. Alternative method, is login as root via ssh and issue these commands: Code: cd /usr/local/directadmin/custombuild ./build set php1_release 7.2 ./build php This can not be done on Alma Linux 9 and anything else using openssl 3.0 because on that you can only run php 8.1 and later.
You can do that via the custombuild plugin. Change php1 to 72 and then recompile php. Alternative method, is login as root via ssh and issue these commands: Code: cd /usr/local/directadmin/custombuild ./build set php1_release 7.2 ./build php This can not be done on Alma Linux 9 and anything else using openssl 3.0 because on that you can only run php 8.1 and later.
J johannes Verified User Joined Feb 18, 2007 Messages 946 Dec 15, 2022 #3 you should use at minimum php 8.0. Even php 7.4 is EOL now.
O Ohm J Verified User Joined Aug 16, 2019 Messages 1,814 Dec 15, 2022 #4 You can use EOL version, but don't expect security from php-core. You must security by yourself.