Project

General

Profile

Actions

Bug #971

closed

spawn-fcgi ignores php command line arguments like "-c /var/www/userxyz/php/php.ini"

Added by Anonymous over 17 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
High
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by Anonymous over 17 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 ....
Actions #2

Updated by Anonymous over 17 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

Actions #3

Updated by darix over 17 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.

Actions #4

Updated by Anonymous over 17 years ago

i'm sorry, the correct link:
http://steph.rdev.info/devel/spawn-fcgi_1.4.13.diff

BR

-- steph

Actions #5

Updated by Anonymous over 17 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.

Actions #6

Updated by Anonymous over 17 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

Actions #7

Updated by Anonymous about 17 years ago

Replying to :

...
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!

Actions #8

Updated by darix about 17 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid
Actions #9

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom