Pzz
Verified User
Hi,
How can I list all domains with the installed PHP version?
I want to find all the PHP-7.2 domains I have
How can I list all domains with the installed PHP version?
I want to find all the PHP-7.2 domains I have
egrep php[1,2,3,4]_select= /usr/local/directadmin/data/users/*/domains/*.conf
[root@server ~]# /usr/local/directadmin/custombuild/build options | grep PHP
PHP (default): 5.6 as suphp
PHP (additional): 5.3 as suphp
PHP (additional, 3rd): 7.2 as suphp
PHP (additional, 4th): 7.3 as suphp
[root@server ~]#
egrep php3_select=1 /usr/local/directadmin/data/users/*/domains/*.conf
Nice Plugin but bit cumbersome to install how about a installer to use with the plugin system ?
Really nice plugin. Thanks!This can maybe help for you: PHP version list plugin: download it here. Project page: here
only for the running users i my case those are admins.nice plugin but function shell_exec must be enabled, on shared hosting environments that is no go in my opinion
I understand this concern. The shell_exec is used to read out the users configuration file to see which php version is configured per domain.nice plugin but function shell_exec must be enabled, on shared hosting environments that is no go in my opinion
May I suggest and extensive edit of the readme. since it looks like you have covert most concerns people are just not aware ?I understand this concern. The shell_exec is used to read out the users configuration file to see which php version is configured per domain.
I agree that you should disable this for your users but this is running under the user "diradmin".
Did some modifications: https://bitbucket.org/wavoe/phpversionlist/src/master/May I suggest and extensive edit of the readme. since it looks like you have covert most concerns people are just not aware ?
#!/usr/local/bin/php
#!/usr/local/bin/php -nc/usr/local/directadmin/plugins/phpversionlist/php.ini
It would be a great feature to have a way to see the number of websites using a specific PHP version and then when clicking on the number per PHP, see a list or popup of the list of domains for that PHP version.
Thanks for that! I knew I had seen this somewhere, however, as a new DA user, I having difficulty finding things a second time.Just for future reference you can also view all users PHP versions at server manager >>> custom HTTPD configurations.
Just for future reference you can also view all users PHP versions at server manager >>> custom HTTPD configurations.
With the PHP version next to the username in brackets (clickable)There's only the Domain and user shown here...