• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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