Ticket #1668 (closed defect: invalid)

Opened 2 months ago

Last modified 2 months ago

spawn-fcgi sometimes cannot resolve symlinks

Reported by: szoftos@freemail.hu Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: spawn-fcgi Version: 1.4.19
Severity: normal Keywords: spawn-fcgi php-fcgi symlink
Cc: Blocking:
Need Feedback: 1

Description

Hello,

recently i changed my operadting system from linux to freebsd, which has its default documentroot in /usr/local/www, and linux had it in /var/www. i moved my files to /usr/local/www, but i made a symlink into /var:

'cd /var'

'ln -s ../usr/local/www www'

lighttpd has its old configs, locating files in /var/www, but this shouldn't be a problem with the symlink.

php got its settings locating files in /usr/local/www, and i got sometimes a mystical response from the fcgi-php: 'No input file specified.'

i lowered the spawned processes to 2 (sadly i couldn't lower it to 1), and traced one of the two processes. one of them was the faulty, and i had luck: i have seen that lighttpd passed /var/www (normally) to php-fcgi, and somehow php-fcgi couldn't really resolve the symlink.

the problem solved when i changed /var/www to /usr/local/www in lighty's configuration.

this looks like a problem to me, and it is not unique. i had this situation with one of my other virtualhosts too. the spawned processes are resolving that symlink good in most of the time, but then one process stops resolving it right, and produces the message, as i have written.

this should be a problem.

Attachments

Change History

05/17/2008 12:59:49 PM changed by hoffie

This really looks like a php problem which cannot be solved in lighttpd.

(in reply to: ↑ description ) 05/20/2008 02:47:24 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to invalid.

i have seen that lighttpd passed /var/www (normally) to php-fcgi, and somehow php-fcgi couldn't really resolve the symlink.

not our problem.


Add/Change #1668 (spawn-fcgi sometimes cannot resolve symlinks)




Change Properties
Action