• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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