• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Verify if a domain uses FASTCGI as php module ( Command Line )

RobertNic

New Pleskian
Hello All,

I`ve searched on google if there is a way to find if a domain uses FASTCGI as php module from the command line ,
basically I want to create a bash script to look into the vhost directory and search for each domain listed if it uses FASTCGI as php module .
I would really appreciate if some knows how and is able to provide me some info !
 
Hello Robert,

From
Code:
/etc/httpd/conf/plesk.conf.d/vhosts/domain.com.conf
you will get the full path to the vhost file being loaded for that respective domain name ...

If you open the contents of the above vhost file you should get all connections to PHP as FastCGI or as Apache module ..
Such as:

Code:
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/domains.com/etc/php.ini
SetEnv PP_CUSTOM_PHP_CGI_INDEX module

<IfModule mod_fcgid.c>
    FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/domains.com/etc/php.ini
    FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX module
    FcgidMaxRequestLen 134217728

</IfModule>

This is what I suggest, enable PHP as an Apache module and look closely to the file to see what changes and what stays, do the same for FastCGI or CGI and again monitor the changes, the difference will be what you are looking for :)
 
I`ve looked into the /etc/httpd/conf/ directory , but there is no plesk.conf.d directory there , I should mention that I use plesk 11.5 , also I was able to find in /var/www/vhost/domain.com/conf/last_httpd.include that variables /settings for the virtual host I assume that I should pay attention there to see what is changing when I`ll switch a domain to FASTCGI
 
Perhaps your paths are different and you can confirm the path where plesk keeps the vhost configuration files by looking for the parameter HTTPD_CONF_D in

Code:
/etc/psa/psa.conf
 
Back
Top