November 10th, 2009, 03:14 AM
Chmod 777 yet still no public access or file not found?
I've searched for this problem in several forums, and as I couldn't find it in any of them, I decided to start this thread. I am a magnet for weird problems.
There's this groupware webapplication that I want to test, and for that, I put it on my own personal domain using FileZilla. From there on, I had to install the application on my domain, which in part entails making some directories outside of the document root with 777 permissions. Each time I do that, and in whatever directory I put the directories, the application install can't seem to find them.
What's more striking, is what happened after I changed the permissions of all files and directories of said web application to 777, just as a test. After that, my browser rewarded me with a "The requested URL /works/trunk-clean/www/install was not found on this server." message whenever I entered some directory or file of the web application in my browser.
There's this other thing that may be related to the above problem. If I tell FileZilla to delete the entire directory of the web application, it says repeatedly and for every subdirectory, among others, "550 Remove directory operation failed," and the directories remain on the FileZilla GUI.
I'll try to locally change the permissions of the directory before uploading it again and see what happens then, but still... this is weird, isn't it? Any ideas?
[EDIT :] Well I did that last option, but I get similar results. The only difference is, when I copy the directories into the web application directory, and then do chmod 777 on them, I get a 403 error when I try to access them by typing the URL into the browser. So after FileZilla does a 777 on the directories (and the FileZilla GUI's directory listing says that went well), my browser greets me with a 403 error, saying I don't have enough permissions to access that directory "on this server". The strange thing is that while I can't access the directories with 777 permissions, I can still access other directories with 755 permissions from the browser.
Can anyone please help me on this one? I'm afraid it may take days before I can make any progress with my work because of this...
November 12th, 2009, 09:54 AM
What is the url of your website ? Would you pay someone to fix the problem ?
November 12th, 2009, 11:33 AM
Some web servers are configured to give a 403 error if you try to access a file with the world execute bit set. Web applications almost never actually need that though, you should be able to use 755 on directories and 744 on files without problems. If the application needs to write to a file or directory you can set it to 766.
November 13th, 2009, 03:39 AM
Differs fro O/S.
Originally Posted by E-Oreo
November 16th, 2009, 02:36 AM
I wouldn't pay someone to fix this, my intention is to learn.
The install of the web application requires two directories outside of the document root for security purposes. It never notices the 777 of these directories nor can I access the directories from the browser.