Applicable to:
- Plesk for Linux
Question
How to check which PHP versions are active and which not in Plesk?
Answer
Via Graphical User Interface (GUI):
-
Go to Tools & Settings > PHP settings.
-
Active PHP versions are marked with the
icon while inactive versions - are not:
-
Connect to the server via SSH.
-
Execute the following command to get the list of active PHP versions (they have the enabled value at the end):
# plesk bin php_handler --list | grep enabled
plesk-php72-fastcgi 7.2.6 7.2.6 7.2 fastcgi /opt/plesk/php/7.2/bin/php-cgi /opt/plesk/php/7.2/bin/php /opt/plesk/php/7.2/etc/php.ini true enabled
plesk-php72-fpm 7.2.6 7.2.6 7.2 fpm /opt/plesk/php/7.2/sbin/php-fpm /opt/plesk/php/7.2/bin/php /opt/plesk/php/7.2/etc/php.ini true enabled -
Execute the next command to get the list of inactive PHP versions (they have the disabled value at the end):
# plesk bin php_handler --list | grep disabled
cgi 5.4.16 by OS vendor 5.4.16 5.4 cgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false disabled
<...>
plesk-php72-cgi 7.2.6 7.2.6 7.2 cgi /opt/plesk/php/7.2/bin/php-cgi /opt/plesk/php/7.2/bin/php /opt/plesk/php/7.2/etc/php.ini true disabled
Comments
0 comments
Please sign in to leave a comment.