logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_fcgid-2.3.9 PR 51194 is not working
Author
ejoniec



Joined: 08 Oct 2013
Posts: 4
Location: USA, Maine

PostPosted: Tue 08 Oct '13 18:15    Post subject: mod_fcgid-2.3.9 PR 51194 is not working Reply with quote

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

PostPosted: Tue 08 Oct '13 19:18    Post subject: Reply with quote

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

PostPosted: Tue 08 Oct '13 19:53    Post subject: Reply with quote

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

PostPosted: Tue 08 Oct '13 19:57    Post subject: PR 51194: Reply with quote

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

PostPosted: Tue 08 Oct '13 20:04    Post subject: Reply with quote

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

PostPosted: Tue 08 Oct '13 20:11    Post subject: All Right! Reply with quote

This works!
Well at least httpd starts. Smile

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

PostPosted: Tue 08 Oct '13 23:30    Post subject: Reply with quote

How to get rid of PR 51194 issue completely?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Wed 09 Oct '13 10:08    Post subject: Reply with quote

@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

PostPosted: Wed 09 Oct '13 12:44    Post subject: Reply with quote

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

PostPosted: Wed 09 Oct '13 12:45    Post subject: Reply with quote

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

PostPosted: Tue 15 Oct '13 17:07    Post subject: Re: All Right! Reply with quote

ejoniec wrote:
This works!
Well at least httpd starts. Smile

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

PostPosted: Thu 17 Oct '13 15:54    Post subject: Re: All Right! Reply with quote

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


Reply to topic   Topic: mod_fcgid-2.3.9 PR 51194 is not working View previous topic :: View next topic
Post new topic   Forum Index -> Apache