![]() |
|
#1
|
|||
|
|||
Forbidden -- You don't have permission to accessMac 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 GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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