You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Can Le <le...@yahoo.com> on 2007/01/19 20:51:24 UTC
[users@httpd] CGI Windows XP
Hi,
Please help me debug or post a sample link for CGI problem.
Affter I re-installed Windows and Apache2.2, I could open localhost home page from htdocs/index.html but not CGI from index.cgi. I viewed old apache1.3 plus new apache2.2 helps:
http://httpd.apache.org/docs/1.3/misc/FAQ.html#aixccbug
I am using Windows XP home, apache2.2 to write Perl cgi. I am having problem of running CGI with this error:
[Thu Jan 18 21:05:59 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin
I had these among other things in httpd.conf:
LoadModule cern_meta_module lib/apache2/mod_cern_meta.so
LoadModule cgi_module lib/apache2/mod_cgi.so
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
AddHandler cgi-script .cgi .html
Options Includes +ExecCGI MultiViews
LogLevel debug
DirectoryIndex index.html index.cgi
Myfile.cgi properties from Windows: unchecked Read only, apache in Registry: no group, but after I reboosted Windows XP, the Read only checkmark was checked again. Adding "debug" won't give any more hints.
Do I have to remove 2 LoadModules for default.so ? I did it then restarted Apache but the error remained.
Any help or guide is very thankful
Can Le
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
Re: [users@httpd] CGI Windows XP
Posted by Can Le <le...@yahoo.com>.
Hi Steve,
I checked my spells from Apache2.2 and my files, I had cgi while default was cgi-bin. It worls after I changed cgi-bin.
Thank you for your helps Steve
Can Le
Steve Swift <st...@gmail.com> wrote:I've deleted the history on this. "Read only" tends to come back on directories for some reason, but this wouldn't normally affect apache as it is most a "read only" application (apart from the logs).
Without the history I cannot imagine why you'd need to do anything in the registry. I run Apache 2.2 under Windows XP with CGI scripts and I've never been anywhere near the registry.
--
Steve Swift
http://www.swiftys.org.uk
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
Re: [users@httpd] CGI Windows XP
Posted by Steve Swift <st...@gmail.com>.
I've deleted the history on this. "Read only" tends to come back on
directories for some reason, but this wouldn't normally affect apache as it
is most a "read only" application (apart from the logs).
Without the history I cannot imagine why you'd need to do anything in the
registry. I run Apache 2.2 under Windows XP with CGI scripts and I've never
been anywhere near the registry.
On 19/01/07, Can Le <le...@yahoo.com> wrote:
>
> Hi Steve,
>
> I have had "Allow from all" as below:
>
> <Directory "C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin">
> AllowOverride None
> Options None
> ##Options Includes +ExecCGI MultiViews (tried)
> Order allow,deny
> Allow from all
> </Directory>
>
> Can you show me why I unchecked Read Only in my Windows XP, but after 1 or
> 2 second it returned Checked Read Only ? What permission should I take in
> Registry for system, Adm, and owner?
>
> Thank you for your helps.
>
> Can Le
>
> *Steve Swift <st...@gmail.com>* wrote:
>
> The default <Directory> block for the CGI directory under Windows is:
> <Directory "C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin">
> AllowOverride None
> Options None
> Order allow,deny
> Allow from all
> </Directory>
>
> I don't see the "Allow from all" in your version.
>
> On 19/01/07, Can Le < lecan75228@yahoo.com> wrote:
> >
> > Hi,
> >
> > Please help me debug or post a sample link for CGI problem.
> >
> >
> >
> ------------------------------
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games. <http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com>
>
>
--
Steve Swift
http://www.swiftys.org.uk
Re: [users@httpd] CGI Windows XP
Posted by Can Le <le...@yahoo.com>.
Hi Steve,
I have had "Allow from all" as below:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
##Options Includes +ExecCGI MultiViews (tried)
Order allow,deny
Allow from all
</Directory>
Can you show me why I unchecked Read Only in my Windows XP, but after 1 or 2 second it returned Checked Read Only ? What permission should I take in Registry for system, Adm, and owner?
Thank you for your helps.
Can Le
Steve Swift <st...@gmail.com> wrote: The default <Directory> block for the CGI directory under Windows is:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
I don't see the "Allow from all" in your version.
On 19/01/07, Can Le < lecan75228@yahoo.com> wrote:Hi,
Please help me debug or post a sample link for CGI problem.
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
Re: [users@httpd] CGI Windows XP
Posted by Steve Swift <st...@gmail.com>.
The default <Directory> block for the CGI directory under Windows is:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
I don't see the "Allow from all" in your version.
On 19/01/07, Can Le <le...@yahoo.com> wrote:
>
> Hi,
>
> Please help me debug or post a sample link for CGI problem.
>
> Affter I re-installed Windows and Apache2.2, I could open localhost home
> page from htdocs/index.html but not CGI from index.cgi. I viewed old
> apache1.3 plus new apache2.2 helps:
>
> http://httpd.apache.org/docs/1.3/misc/FAQ.html#aixccbug
>
> I am using Windows XP home, apache2.2 to write Perl cgi. I am having
> problem of running CGI with this error:
>
> [Thu Jan 18 21:05:59 2007] [error] [client 127.0.0.1] client denied by
> server configuration: C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin
>
> I had these among other things in httpd.conf:
>
> LoadModule cern_meta_module lib/apache2/mod_cern_meta.so
> LoadModule cgi_module lib/apache2/mod_cgi.so
>
> ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin/"
>
> <Directory "C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin">
> AllowOverride None
> AddHandler cgi-script .cgi .html
> Options Includes +ExecCGI MultiViews
>
> LogLevel debug
> DirectoryIndex index.html index.cgi
>
> Myfile.cgi properties from Windows: unchecked Read only, apache in
> Registry: no group, but after I reboosted Windows XP, the Read only
> checkmark was checked again. Adding "debug" won't give any more hints.
>
> Do I have to remove 2 LoadModules for default.so ? I did it then restarted
> Apache but the error remained.
>
> Any help or guide is very thankful
>
> Can Le
>
> ------------------------------
> Never miss an email again!
> Yahoo! Toolbar<http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/>alerts you the instant new Mail arrives.Check it out.
>
>
--
Steve Swift
http://www.swiftys.org.uk