Author |
|
ejoniec
Joined: 08 Oct 2013 Posts: 4 Location: USA, Maine
|
Posted: Tue 08 Oct '13 18:15 Post subject: mod_fcgid-2.3.9 PR 51194 is not working |
|
|
I just downloaded mod_fcgid-2.3.9 and I am trying to run it on httpd-2.4.6-win32-VC11 and I can't use a space in the path name of my FcgidWrapper
ERROR:
C:\Program Files (x86)\Scrutinizer\Apache24\bin>httpd.exe
AH00526: Syntax error on line 550 of C:/Program Files (x86)/Apache24
/conf/httpd.conf:
Wrapper C:/Program cannot be accessed: (720002)The system cannot find the file specified.
Apache will start if I use the 8dot3name of the path.
Has the fix below been included in this compile?
PR 51194:
*) Correctly parse quotation and escaped spaces in FcgidWrapper and the
AAA Authenticator/Authorizor/Access directives' command line argument,
as currently documented. PR 51194 [William Rowe] |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 08 Oct '13 19:18 Post subject: |
|
|
The unchanged source from ASF is used, and all documented changes are there.
The change talks about escaped spaces, did you did that ?
Did you tried:
/, \, // or \\ and with the path in quotes ?
Btw.
It is always recommended not to install Apache in a folder with spaces in it. Like with most software *nix origin. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 08 Oct '13 19:53 Post subject: |
|
|
I don't consider PR 51194 to be closed really. It does have it's problems as I had mentioned in the bug report, especially with \\
I don't stick Apache below Program Files (so no spaces in the path) and had changed my conf. I completely forgot to mention this on the dev list during the 2.3.8/2.3.9 review |
|
Back to top |
|
ejoniec
Joined: 08 Oct 2013 Posts: 4 Location: USA, Maine
|
Posted: Tue 08 Oct '13 19:57 Post subject: PR 51194: |
|
|
Hi Steffen,
I have tried all these variations with no success:
FcgidWrapper "C://Program Files (x86)//html//fcgi//myfile.fcgi"
FcgidWrapper "C:/Program Files (x86)/html/fcgi/myfile.fcgi"
FcgidWrapper "C:\\Program Files (x86)\\html\\fcgi\\myfile.fcgi"
FcgidWrapper "C:\Program Files (x86)\html\fcgi\myfile.fcgi"
FYI:
On Windows, the most common default directories that most installers suggest are C:\Program Files and C:\Program Files (x86)
Thanks for the response |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 08 Oct '13 20:04 Post subject: |
|
|
Just curious, and when you escape:
FcgidWrapper "C:/Program\ Files\ (x86)/html/fcgi/myfile.fcgi" |
|
Back to top |
|
ejoniec
Joined: 08 Oct 2013 Posts: 4 Location: USA, Maine
|
Posted: Tue 08 Oct '13 20:11 Post subject: All Right! |
|
|
This works!
Well at least httpd starts.
Just curious, and when you escape:
FcgidWrapper "C:/Program\ Files\ (x86)/html/fcgi/myfile.fcgi"
Thanks again Steffen! |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 08 Oct '13 23:30 Post subject: |
|
|
How to get rid of PR 51194 issue completely? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 09 Oct '13 10:08 Post subject: |
|
|
@maskego What issue do you still have ?
Escaping spaces is by design. Change Pr 51194 says: Correctly parse quotation and escaped spaces in FcgidWrapper.. |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Wed 09 Oct '13 12:44 Post subject: |
|
|
Steffen wrote: | Escaping spaces is by design. Change Pr 51194 says: Correctly parse quotation and escaped spaces in FcgidWrapper.. |
Correctly parese quotation (At least on Windows Envirements) means (should mean) that a String in Quotes can hold spaces
So "C:\Program files\php" Should just work. Without the need of "C:/Program\ files/php". Cause Elese the use of Quotation is useless. |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Wed 09 Oct '13 12:45 Post subject: |
|
|
But then again, no need to complain here about it, should open PR 51194 again |
|
Back to top |
|
franciscomesa
Joined: 14 Oct 2013 Posts: 1
|
Posted: Tue 15 Oct '13 17:07 Post subject: Re: All Right! |
|
|
ejoniec wrote: | This works!
Well at least httpd starts.
Just curious, and when you escape:
FcgidWrapper "C:/Program\ Files\ (x86)/html/fcgi/myfile.fcgi"
Thanks again Steffen! |
I use Apache 2.4.6, PHP Version 5.3.4, fcgid 2.3.9. W2k3AS and cannt configure it with spaces. I get the 720002 error.
Also If I try to use server-status doesn't work all the time. I get an error...
[fcgid:debug] [pid 7520:tid 1692] fcgid_pm_main.c(357): mod_fcgid: gracefully terminated 2 processes
...and kill the php-cgi.exe process |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 17 Oct '13 15:54 Post subject: Re: All Right! |
|
|
franciscomesa wrote: |
Also If I try to use server-status doesn't work all the time. I get an error...
[fcgid:debug] [pid 7520:tid 1692] fcgid_pm_main.c(357): mod_fcgid: gracefully terminated 2 processes
...and kill the php-cgi.exe process |
That is not an error! Just an notice that the php process was killed after the configured idle time or configured life time or configured number of accesses. |
|
Back to top |
|