[php-maint] Bug#574000: Bug#574000: php5-cgi: When php run as fcgi, it tries to read system config file 'php-cgi-fcgi.ini' instead of 'php.ini'

Ondřej Surý ondrej at debian.org
Mon Mar 15 22:13:38 UTC 2010


tags 574000 +moreinfo unreproducible
severity 574000 important
thank you

> After upgraded php5-cgi to 5.3.2-1, my local web server's php scripts
> stop running, with message 'No input file specified.'
>
> I replaced my php binary instance in fcgi script directory as:
>
> #!/bin/sh
> exec strace ./php5.real $* 2>> /tmp/php5.strace

The strace you send is after you already made symbolic link.

strace under clean system looks like this:

open("./php-cgi-fcgi.ini", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/bin/php-cgi-fcgi.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/etc/php5/cgi/php-cgi-fcgi.ini", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("./php.ini", O_RDONLY)             = -1 ENOENT (No such file or directory)
open("/usr/bin/php.ini", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/etc/php5/cgi/php.ini", O_RDONLY) = 3
lstat("/etc/php5/cgi/php.ini", {st_mode=S_IFREG|0644, st_size=67459, ...}) = 0
lstat("/etc/php5/cgi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/etc/php5", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0


I believe there is something hidden inside this script. Could you
provide more info on your fcgi configuration?

-- 
Ondřej Surý <ondrej at sury.org>
http://blog.rfc1925.org/





More information about the pkg-php-maint mailing list