GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 26-Oct-2009, 13:04
andynic andynic is offline
New Member
 
Join Date: Oct 2009
Posts: 1
andynic is on a distinguished road

Forbidden -- You don't have permission to access


Mac OS X 10.6
Apache 2.2
Perl CGI.

Would appreciate whatever ideas you can pass on to me -- I'm pretty much a newbie.

I have a set of cgi scripts that run perfectly on Apache 2.2 on Windows XP.
I am now porting the software to my iMac and cannot get past 1st base!

When I start an html file in Safari that contains the following image reference
<IMG src="icons/gallery_nicastro_logo.jpg" ...
The jpg displays as it should.

When I click the button in that same html file that contains the ref: href="http://localhost/dev/gfrm.cgi?init"
I get the Forbidden error message.

The directory for icons (which works) is defined like this in the httpd.conf file:
# For images displayed in the final webpage
# For images dispalyed in the maintenance scripts
Alias /icons/ "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac/icons/"
<Directory "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


The direcotry of the cgi scripts (which causes the error) is defined like this:
Attempt 1:
<Directory "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac">
Options +ExecCGI +Indexes
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
</Directory>
ScriptAlias /dev/ "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac/"

Attempt 2: (where the passwords file was created using htpasswd -c)
<Directory "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac">
Options +ExecCGI
require valid-user
AuthType Basic
AuthName "gfr"
AuthUserFile "/private/etc/apache2/passwords"
</Directory>
ScriptAlias /dev/ "/Users/andynic/Desktop/Mac_XP_SharedFiles/DocumentsCurrent/Documents_20090101_to_20091231/Computing/gfrmMac/"


The server is started by user root: sudo apachectl -k start
I have tried running the cgi script both as owner andynic and root (chown).
chmod privs are set to 755.

What am I doing wrong?
Thanks for your help.
Andynic
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
You don't have permission to access /mysql:// gleb MySQL / PHP Forum 2 23-Oct-2006 05:55
access violation gmn MS Visual C++ / MFC Forum 3 04-Aug-2004 07:19
You don't have permission to access / on this server athenaise MySQL / PHP Forum 2 04-Jul-2004 23:53
Access databases teessidemedia Computer Software Forum - Windows 0 25-Jun-2004 09:00
Forbidden You don't have permission to access Undefined index: ../PHP_SELF ghyndman MySQL / PHP Forum 2 15-Dec-2003 09:17

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:03.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.