Script for listing used PHP versions

Hello,

DirectAdmin supports up to 9 instances of PHP as of now. So you might update your script to check them all

For example I have:

Bash:
# grep "^php[0-9]_release=" /usr/local/directadmin/custombuild/options.conf
php1_release=8.4
php2_release=8.3
php3_release=8.2
php4_release=8.1
php5_release=8.0
php6_release=7.4
php7_release=7.3
php8_release=7.2
php9_release=5.6

I couln't find it back so created it as new.
 
Hard to keep track of everything, no worries. :-) It'll list the php version currently used by all domains and subdomains on the server. There's some information in the comments at the top of the script that explains how it can be used.
 
Last edited:
Back
Top