Ticket #1520 (closed defect: wontfix)

Opened 8 months ago

Last modified 8 months ago

mod_fastcgi dropping spaces in path names

Reported by: anonymous Owned by: jan
Priority: normal Milestone:
Component: core Version: 1.4.15
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

2008-01-14 14:53:57: (mod_fastcgi.c.998) execve failed for: /Volumes/DataArray/me/Projects/something/public/dispatch.fcgi No such file or directory 2008-01-14 14:53:57: (mod_fastcgi.c.1024) the fastcgi-backend /Volumes/Data Array/me/Projects/something/public/dispatch.fcgi failed to start:

When looking for CWD + "/dispatch.fcgi" in this config:

fastcgi.server = (

".php" => ( (

"min-procs" => 1, "max-procs" => 1, "socket" => CWD + "/tmp/sockets/php.socket",

"bin-path" => "/usr/local/php-fcgi/bin/php-cgi -c " + CWD + "/config/php.ini",

"bin-environment" => ( "RAILS_ENV" => "development" ) ) ),

".fcgi" => ( "localhost" => (

"min-procs" => 1, "max-procs" => 1, "socket" => CWD + "/tmp/sockets/fcgi.socket", "bin-path" => CWD + "/public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "development" ) ) )

)

The space in the path is dropped rather than escaped. The path is /Volumes/Data\ Array/...

Attachments

Change History

Changed 8 months ago by glen

  • status changed from new to closed
  • resolution set to wontfix
  • component changed from mod_fastcgi to core
  • milestone 1.5.0 deleted

it is how shell (/bin/sh) interprets the spaces. you should either use external spawning (via spawn-fcgi or write out the path yourself using backslash as escaping or include parameter in single quotes:

"bin-path" => "/usr/local/php-fcgi/bin/php-cgi -c /Volumes/Data\ Array/config/php.ini", 
"bin-path" => "/usr/local/php-fcgi/bin/php-cgi -c '/Volumes/Data Array/config/php.ini'", 

lighttpd doesn't provide scripting such as variable replacement in config, however you can use include_shell and do any external scripting you like.

Add/Change #1520 (mod_fastcgi dropping spaces in path names)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.