How to change the PHP version?

zhouqing

New member
Joined
Dec 15, 2022
Messages
11
How to change the PHP version? I just installed the DirectAdmin panel and found that PHP is 81, I want php72
 
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 use EOL version, but don't expect security from php-core. You must security by yourself.
 
Back
Top