Current time: 11-16-2024, 02:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
ispcpphptemp
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: ispcpphptemp
It seems that your server has a problem with:
Code:
for ini in "${fcgidir}/php4/php.ini ${fcgidir}/php5/php.ini"; do
        if [ ! -f "$ini" ]; then
                continue;
        fi
....

This should loop two times, one with ini = /var/www/fcgi/domain.tld/php4/php.ini and another with ini = /var/www/fcgi/domain.tld/php5/php.ini. Now, looking at your trace file, we see the following:

Code:
stat("/var/www/fcgi/master/php4/php.ini /var/www/fcgi/master/php5/php.ini", 0x7fffb8768440) = -1 ENOENT (No such file or directory)

So it's checking both files as if they were a single one. AFAIK, the script file is correctly assuming that they would be treated as separate entries, and the only thing that could change that is the setup of the IFS environment variable. Therefore, I would try the following things:

1. As you don't have php4, just remove the "${fcgidir}/php4/php.ini " part from the "for" lines (note that there are two fors like this in the script). After that, try to re-execute (don't have to wait for cron, just do it manually) and see if it now ends in a reasonable time...

2. Once you've ensured that this is actually the problem, recover the original script and add
Code:
IFS=" "
at the beggining of it, to ensure that spaces are detected as "item separators".

If it works when using the second method, I'll patch the script accordingly Wink
10-21-2009 05:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispcpphptemp - givre - 10-20-2009, 05:11 AM
RE: ispcpphptemp - kilburn - 10-20-2009, 05:26 PM
RE: ispcpphptemp - givre - 10-20-2009, 08:42 PM
RE: ispcpphptemp - givre - 10-21-2009, 04:22 AM
RE: ispcpphptemp - kilburn - 10-21-2009 05:55 PM
RE: ispcpphptemp - givre - 10-22-2009, 06:35 AM
RE: ispcpphptemp - kilburn - 10-22-2009, 04:47 PM
RE: ispcpphptemp - givre - 10-22-2009, 05:21 PM
RE: ispcpphptemp - kilburn - 10-22-2009, 08:23 PM
RE: ispcpphptemp - givre - 10-22-2009, 08:37 PM
RE: ispcpphptemp - kilburn - 10-22-2009, 08:40 PM
RE: ispcpphptemp - givre - 10-22-2009, 08:51 PM
RE: ispcpphptemp - givre - 10-24-2009, 09:49 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)