PDA

View Full Version : setting write permissions


dmack
11-22-2005, 04:35 PM
The problem I'm having stems from a FileReference() example I'm working on. I've tried to make a directory on my server accessible for uploaded files, but each time I try to upload a file, I get an HTTP Error 500 message.

I've changed the permissions for a directory named "files" on my server using Fetch by choosing Remote > Set Upload Permissions from the Fetch menu and selecting all read/write options. When I go back to double-check the settings, everything is unselected again. However, when I change the permissions with Remote > Set Permissions, the settings stay.

I figure that I'll know if the permissions are set correctly if I try to access the directory directly from a browser window like this: http://www.mydomain.com/files/ I would expect to see a list of files, but when I try it, I get "403 Forbidden: You don't have permission to access /files/ on this server."

I know the server I am using supports PHP. Am I doing something wrong, or is it something that needs to be modified by the server admin? (Perhaps a PHP configuration file?)

dmack
11-22-2005, 05:34 PM
I checked with my hosting service and apparently they've upgraded their version of PHP from 4.0.6 to 4.1.1 and require new PHP scripts to have .phpn suffixes. I updated my scripts and all is well.

Hope this saves someone else many hours of frustration.

Flash Gordon
11-22-2005, 05:39 PM
that is a pretty crappy upgrade. You needed to have at least 4.3. There is a lot more functions in 4.3 and greater.

dmack
11-22-2005, 06:53 PM
They upgraded from v4.0.6 to v4.4.1 -- my bad (typo).