How to switch back to mod_fcgi?

explosive

Verified User
Joined
Dec 29, 2010
Messages
181
Location
PL/EU
Hi,

Apache 2.4.4 with php-fpm (via proxy_fcgi_pass) has soooo many errors so we have no choice - need back to mod_fcgi, but HOW? I don't see in FAQ this.

What I do:

set in CB options: php1&php2 = fastcgi
./build apache
./build php
./build rewrite_confs

but this not working.

Code:
[core:error] [pid 679476:tid 140204335597312] [client 37.38.28.247:45169] [B]End of script output before headers: index.php[/B]
[fcgid:warn] [pid 679476:tid 140204325107456] (104)Connection reset by peer: [client 37.38.28.247:46497] [B]mod_fcgid: error reading data from FastCGI server[/B]
 
Code:
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory

but there is that file!!!

Code:
# /usr/local/php54/bin/php-cgi54 -v
PHP 5.4.13 (cgi-fcgi) (built: Mar 26 2013 21:29:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

WHY fastcgi don't work?!?
 
Code:
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory
fcgid54.sh: line 23: /usr/local/php54/bin/php-cgi54: No such file or directory
fcgid54.sh: line 23: exec: /usr/local/php54/bin/php-cgi54: cannot execute: No such file or directory

but there is that file!!!

Code:
# /usr/local/php54/bin/php-cgi54 -v
PHP 5.4.13 (cgi-fcgi) (built: Mar 26 2013 21:29:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

WHY fastcgi don't work?!?

Becuase /usr/local/php54/bin/php-cgi54 is not available in user's environment. You can "su" to that user and will notice that. One of the reasons could be CageFS enabled on the system and not updated to the latest version, which supports CB 2.0.
 
One of the reasons could be CageFS enabled on the system and not updated to the latest version, which supports CB 2.0.

Yes, probably you have right, thank you. Which is latest version? That was compiled yesterday, i suppose that is the latest version.

edit:

Code:
CageFS: added directories /usr/local/safe-bin, /usr/local/php53, /usr/local/php54, /usr/local/php55 to directadmin.cfg

It's in enablerepo=cloudlinux-updates-testing, I don't use it, It's too buggy. I've added this manualy and... it's works! ;)
Martynas thanks!
 
Last edited:
Back
Top