• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP as FCGI doesn't work

HMnet

Basic Pleskian
Hi @all!

I have the huge problem on my fresh and clean Debian 7.2 - Plesk 11.5.30 MU19 rootserver, that I can't use the php-handler as fastcgi.
The server came with PHP 5.4.4 as the standard installation. It works as apache module and cgi-application without any problems.
I can choose "set php as fastcgi-application" without errors, the last_httpd.conf of the vhost shows:

Code:
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/domain.com/etc/php.ini
SetEnv PP_CUSTOM_PHP_CGI_INDEX fastcgi

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

...

<IfModule mod_fcgid.c>
    <Files ~ (\.fcgi$)>
        SetHandler fcgid-script
        Options +FollowSymLinks +ExecCGI
    </Files>
</IfModule>
<IfModule mod_fcgid.c>
    <Files ~ (\.php$)>
        SetHandler fcgid-script
        FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
        Options +ExecCGI
    </Files>
</IfModule>

But if I call a .php the file starts to download.

Unfortunately there is no error for this case in any log (/var/log/apache2/error.log or vhosts/system/domain.com/logs/error.log).

All other apache-modules are working, but I have to install "libapache2-mod-fastcgi" manually for fastcgi-support.

I have tried to compile and use other PHPs (5.3.27, 5.4.20 and 5.5.5), the error is the same.
I could register the compiled php without any error in plesk.

Does anybody know how to fix it?
I try to solve this for three days now without success.

Thomas
 
Hey...

...any news for me?

Problem still there!

I installed another Plesk 11.5.30 on a Ubuntu 12.04 - NO PROBLEM!

Thomas
 
Good news:

I solved my problem:

The apache-module mod_fcgid (fastCGI) was not active. A "a2enmod fcgid" was the solution.

Thomas
 
Hey THANKS for writing the solution!

I had the same Problem on my debian srv.

After the last update fcgid was disabled.

Thanks a lot!
 
Back
Top