#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Red face Chmod 777 yet still no public access or file not found?


    Hi all,

    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...

    Cheers,
    Wilmar.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2007
    Posts
    222
    Rep Power
    0
    What is the url of your website ? Would you pay someone to fix the problem ?
  4. #3
  5. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    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.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0
    Originally Posted by E-Oreo
    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.
    Differs fro O/S.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo