Control Web Panel
WebPanel => PHP Selector => Topic started by: hanliong on October 24, 2021, 08:49:19 AM
-
I have tried to find at google, where actually CWP stores which PHP-FPM choosen by customer for his domain.
If we use PHP-CGI, we simply change it at .htaccess like this:
AddHandler application/x-httpd-php73 .php
But when we choose for example PHP 7.4 (FPM), it is not written in .htaccess.So, where does CWP store it? I want to check my customer uses which PHP-FPM version quickly without use phpinfo(); at his site.
-
the easiest is to check webservers vhost conf apache/nginx if nothing is there related to php-fpm then it's php-cgi meaning default from switcher if not custom-defined in the .htaccess
-
the easiest is to check webservers vhost conf apache/nginx if nothing is there related to php-fpm then it's php-cgi meaning default from switcher if not custom-defined in the .htaccess
Do you mean at this location for nginx /etc/nginx/conf.d/vhosts/[domain_name].conf?
-
yes and apache as already said
/usr/local/apache/conf.d/vhosts/