Forum Moderators: phranque

Message Too Old, No Replies

Permission to Upload

upload images, ok. Cgi-bin won't allow http: access, bad

         

HocusPocus

11:37 am on Jun 14, 2003 (gmt 0)

10+ Year Member



Seem to have a permissions/access problem, that has been driving me nuts for the last 90 minutes.

I'm customising a perl script to upload images.

The actual code works fine, I have set


## URL to folder where the photos go.
$photo_url="http://www.ANYSITE.com/cgi-bin/store/photos";

and the photos are uploaded fine to this directory.

However, when attempting to view in a browser I get-

Forbidden
You don't have permission to access /cgi-bin/store/photos/ on this server.

I've done all the normal things like chmod etc. makes no difference.

Also tried changing
## URL to folder where the photos go. $photo_url="http://www.ANYSITE.com/images";

but the server must be set up to prevent upload to this folder.

Is there anything I can do to either
change permissions to allow http access to "http://www.ANYSITE.com/cgi-bin/store/photos/"
or
allow upload to "http://www.ANYSITE.com/images"

Any help much appreciated, seem to be going round in circles at the moment.

DaveAtIFG

9:24 pm on Jun 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I encountered something similar a loooonnnggg time ago and if memory serves, ended up changing permissions on the folder containing "http://www.ANYSITE.com/images" to permit writing to it which got the darn script working. If this doesn't work for you and you haven't already contacted your hosting company...

[edited by: DaveAtIFG at 9:33 pm (utc) on June 14, 2003]

Storyteller

9:26 pm on Jun 14, 2003 (gmt 0)

10+ Year Member



1. Storing uploaded files under cgi-bin isn't a good idea
2. To browse the directory contents you need "Indexes" option enabled (in your .htaccess, for example)