RE: [expert] permissions for a cgi script

2003-02-13 Thread Carter Harris
Add a second Directory block for the cgi-bin directory.  In that
block, in the options, add ExecCGI as an option.  Todd Lyons on this
list helped me with this the other day and I am happy to pass it on.  If
you need a copy of mine, I can get it for you when I get back to my
normal work location.

Carter

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Benjamin
Pflugmann
Sent: Wednesday, February 12, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [expert] permissions for a cgi script


On Thu 2003-02-06 at 22:08:29 -0600, [EMAIL PROTECTED] wrote:
[...]
 VirtualHost 192.168.1.103
 ServerName www.xxx.com
 DocumentRoot /usr/www/vtest/htdocs
 ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/
 Directory /usr/www/vtest/htdocs
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 /VirtualHost

This looks OK, I think.

 When I go to the default file on the domain it works.  When I try to 
 go to www.xxx.com/cgi-bin/cgihello.plx I get the following message:
 
 You don't have permission to access /cgi-bin/cgihello.plx on this 
 server.

What does the error log say (should be /var/log/httpd/error_log)?

 chmod was used to set the directory and file as follows:
 
 directory: drwxr-xr-x
 cgi-file: -rw-r--r-x

Please show the whole line from 

  ls -l /usr/www/vtest/cgi-bin/cgihello.plx

One thing that is unusual: You don't have given executable rights to
user or group. If the web server is in the in the group, it won't be
allowed to execute the file.

HTH,

Benjamin.






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] permissions for a cgi script

2003-02-12 Thread Benjamin Pflugmann
On Thu 2003-02-06 at 22:08:29 -0600, [EMAIL PROTECTED] wrote:
[...]
 VirtualHost 192.168.1.103
 ServerName www.xxx.com
 DocumentRoot /usr/www/vtest/htdocs
 ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/
 Directory /usr/www/vtest/htdocs
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 /VirtualHost

This looks OK, I think.

 When I go to the default file on the domain it works.  When I try to go to
 www.xxx.com/cgi-bin/cgihello.plx I get the following message:
 
 You don't have permission to access /cgi-bin/cgihello.plx on this server.

What does the error log say (should be /var/log/httpd/error_log)?

 chmod was used to set the directory and file as follows:
 
 directory: drwxr-xr-x
 cgi-file: -rw-r--r-x

Please show the whole line from 

  ls -l /usr/www/vtest/cgi-bin/cgihello.plx

One thing that is unusual: You don't have given executable rights to
user or group. If the web server is in the in the group, it won't be
allowed to execute the file.

HTH,

Benjamin.





msg65947/pgp0.pgp
Description: PGP signature


RE: [expert] permissions for a cgi script

2003-02-07 Thread H. Carter Harris
Thanks James ...

The command alone didn't do it but I found the mod_perl page and some other
apache documentation that I think will complete the task.  I appreciate your
help.

Carter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of James Sparenberg
Sent: Friday, February 07, 2003 1:15 AM
To: Expert List
Subject: Re: [expert] permissions for a cgi script


Try adding ExecCGI to your options list.

James

On Thu, 2003-02-06 at 20:08, H. Carter Harris wrote:
 I have been trying to find the answer to this question and the closest I
 have come is the O'Reilly book on Apache.  But I'm wondering if it is
 specific enough.

 I have apache 1.3.23.4mdk running.  I have virtual hosts configured and
they
 are working correctly with index.html.  Now I want to use a cgi script on
 one of the sites.  The host to use the cgi script has the following
 directives:

 VirtualHost 192.168.1.103
 ServerName www.xxx.com
 DocumentRoot /usr/www/vtest/htdocs
 ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/
 Directory /usr/www/vtest/htdocs
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 /VirtualHost

 When I go to the default file on the domain it works.  When I try to go to
 www.xxx.com/cgi-bin/cgihello.plx I get the following message:

 You don't have permission to access /cgi-bin/cgihello.plx on this
server.

 chmod was used to set the directory and file as follows:

 directory: drwxr-xr-x
 cgi-file: -rw-r--r-x

 What am I overlooking?

 Thanks for any help in advance.  Carter




 __

 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com
--
James Sparenberg [EMAIL PROTECTED]






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] permissions for a cgi script

2003-02-07 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

H. Carter Harris wrote on Thu, Feb 06, 2003 at 10:08:29PM -0600 :
 
 VirtualHost 192.168.1.103
   ServerName www.xxx.com
   DocumentRoot /usr/www/vtest/htdocs
   ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/
   Directory /usr/www/vtest/htdocs
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
   /Directory
Directory /usr/www/vtest/cgi-bin
  Options ExecCGI -Indexes -Multiviews
  AllowOverride None
  Order allow,deny
  Allow from all
/Directory
 /VirtualHost

Blue skies...   Todd
- -- 
   MandrakeSoft USA   http://www.mandrakesoft.com
   Easy things should be easy, and hard things should be possible.
--Larry Wall
  Mandrake Cooker Devel Version, Kernel 2.4.21pre4-1mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Q/Wjlp7v05cW2woRAnK4AJwPkGgiAkgcYI1mPNaBR05XivlklACgi4L2
cjpjsPAn2aO7i376HpHTVTI=
=+Ayu
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] permissions for a cgi script

2003-02-06 Thread James Sparenberg
Try adding ExecCGI to your options list.

James

On Thu, 2003-02-06 at 20:08, H. Carter Harris wrote:
 I have been trying to find the answer to this question and the closest I
 have come is the O'Reilly book on Apache.  But I'm wondering if it is
 specific enough.
 
 I have apache 1.3.23.4mdk running.  I have virtual hosts configured and they
 are working correctly with index.html.  Now I want to use a cgi script on
 one of the sites.  The host to use the cgi script has the following
 directives:
 
 VirtualHost 192.168.1.103
 ServerName www.xxx.com
 DocumentRoot /usr/www/vtest/htdocs
 ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/
 Directory /usr/www/vtest/htdocs
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 /VirtualHost
 
 When I go to the default file on the domain it works.  When I try to go to
 www.xxx.com/cgi-bin/cgihello.plx I get the following message:
 
 You don't have permission to access /cgi-bin/cgihello.plx on this server.
 
 chmod was used to set the directory and file as follows:
 
 directory: drwxr-xr-x
 cgi-file: -rw-r--r-x
 
 What am I overlooking?
 
 Thanks for any help in advance.  Carter
 
 
 
 
 __
 
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com
-- 
James Sparenberg [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com