• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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