Please excuse me ... I was looking at some old emails and realized that Todd Lyons had give me an answer to this question. I was not in my normal work environment when I got the email so I misplaced it. His answer worked ... Thanks Todd!!!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of H. Carter Harris Sent: Monday, February 10, 2003 1:27 PM To: [EMAIL PROTECTED] Subject: [expert] File Permissions I have been reading the Wrox book on Perl and the O'Reilly book on Apache but I'm having a lot of trouble getting the examples and exercises to work on a Mandrake system. I have also read the Apache documentation but that hasn't helped either. I'm beginning to feel like a real imbecile. What I am trying to do is get a cgi script to execute under apache. I have two pages defined under this domain. A default page with is displayed as it should be when a browser is pointed to the domain name. And a cgi page which generates the following error: "You don't have permission to access /cgi-bin/cgihello.plx on this server." The permissions on the cgi-bin directory are: drwxr-xfr-x The permissions on the cgi program are: -rwxr-xr-x As you can deduct from the VirtualHost block for this domain below, the htdocs directory and the cgi-bin directory are on the same level. I considered that maybe the cgi-bin directory should be under the htdocs directory but nothing I read seemed to have such a restriction. <VirtualHost 192.168.1.103> ServerName www.domainname.com DocumentRoot /usr/www/vtest/htdocs ScriptAlias /cgi-bin/ /usr/www/vtest/cgi-bin/ <Directory /usr/www/vtest/htdocs> Options +ExecCGI Indexes MultiViews AddHandler cgi-script cgi plx pl AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> I added the AddHandler directive because the Wrox book was using .plx as the extension and I thought maybe it wasn't executing the file. I wondered if the first line of the cgi script (#!/usr/bin/perl) was not pointing to the perl program in Mandrake but I looked there and and that seems to be correct. I tried putting the ScriptAlias inside the Directory block but that gave me an error when I gracefully restated apache. Apache is version 1.3 running on version 8 of Mandrake. I would really appreciate any advice. Thanks in advance, Carter.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
