• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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