Control Web Panel

WebPanel => PHP Selector => Topic started by: hanliong on October 24, 2021, 08:49:19 AM

Title: where is php-fpm stored for a domain?
Post 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:
Code: [Select]
AddHandler application/x-httpd-php73 .phpBut 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.
Title: Re: where is php-fpm stored for a domain?
Post by: studio4host on October 25, 2021, 08:01:50 AM
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
Title: Re: where is php-fpm stored for a domain?
Post by: hanliong on October 26, 2021, 01:40:41 AM
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?
Title: Re: where is php-fpm stored for a domain?
Post by: studio4host on October 26, 2021, 07:52:25 PM
yes and apache as already said
/usr/local/apache/conf.d/vhosts/