Bug #971
closedspawn-fcgi ignores php command line arguments like "-c /var/www/userxyz/php/php.ini"
Description
Everthing works fine if I type ''php-cgi -c /var/www/userxyz/php/php.ini'' into the bash.
But if i use the spawn-fcgi command, lighttpd just ignores the arguments. There is already a patch for this:
http://forum.lighttpd.net/topic/446
Please add this patch to lighttpd 1.5! I need this to spawn secure forked php-fcgi child's. I want to have an extra php.ini for every user (to set the right base_dir for example)
-- ice
Updated by Anonymous almost 18 years ago
what php version?
i think this bug was fixed in recent php versions.
as workaround try:
PHPRC="var/www/userxyz/php/" spawn-fcgi ....
Updated by Anonymous almost 18 years ago
The patch for spawn-fcgi version 1.4.13 can found here: http://steph.rdev.info/devel/spawn_fcgi_1.4.13.diff
BR
-- steph
Updated by darix almost 18 years ago
the link gives 404.
can you answer the question and try the PHPRC workaround please?
i know that at least when spawning php from lighttpd the cmdline arguments were ignored until php 5.2. with 5.2 the arguments where no longer ignored when spawning a fastcgi from lighttpd.
Updated by Anonymous almost 18 years ago
Updated by Anonymous almost 18 years ago
it might be just me ... but a php centric patch like that ... i dont think it is the correct solution
i will experiment a bit more with spawn-fcgi. the PHPRC thing will work at least.
Updated by Anonymous almost 18 years ago
root@host:/var/www/fastcgi/startup# php-cgi -v
PHP 5.1.6 (cgi-fcgi) (built: Nov 2 2006 12:43:56)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
PHP 5.2 is not available for Debian and Ubuntu.
the PHPRC workaround works perfect!
I just added a line ''PHPRC="var/www/fastcgi/userxyz/"'' in my startup Script (userxyz.sh in /var/www/fastcgi/startup/) and everything worked fine, thanks!
I followed the how-to at http://trac.lighttpd.net/trac/wiki/HowToSetupFastCgiIndividualPermissions
-- ice
Updated by Anonymous almost 18 years ago
Replying to ice@qgabi.de:
...
PHP 5.2 is not available for Debian and Ubuntu.
...
Luckily, PHP is not only free, but also OPEN SOURCE, if you catch the drift. No pre-compiled binary? Compile one yourself!
It IS available for Debian/Ubuntu!
Updated by darix almost 18 years ago
- Status changed from New to Fixed
- Resolution set to invalid
Also available in: Atom