• I was changing my chmod settings for my WP install. previously I had not been aware of the importants and everything was set to 777. so I found the codex page explaining how to setup chmod for WP, and I followed it. however once I finished the changes, it gave me a forbidden access error. So I then changed everything back to 777, and now it says internal server error. what have I screwed up, and can this be fixed? thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • directorys: 755
    files: 644

    Thread Starter tronicscribe

    (@tronicscribe)

    thanks, but I’m fairly certain I followed that structure based on the wp codex page about chmod, and yet it still gives me a server error. just to be clear, so I know I’m changing it right, directories would be any folder within root, correct? and I change only the folders chmod, or the folder and all sub folders and files? also on the codex page when it says set writable for only the user account, that means set “owner” writable in chmod, right? thanks again ??

    you have files or folders or both at 777. thats the source of your error — its an infrequent but safe set up that most hosts dont ascibe to (only the really good ones) — apache wont let you have world writable files and folders.

    If you look in your error log, it will have told you this.

    as I stated, previously:

    directorys: 755
    files: 644

    Thread Starter tronicscribe

    (@tronicscribe)

    ah thank you ?? I didn’t know about it disliking when both folders and files are world writable. I’ve now set them as they should be. thanks again.

    Thread Starter tronicscribe

    (@tronicscribe)

    ah thank you very much for that info about it not liking both folders and files being 777. however, I notice you suggest dir. be 755 and files 644. but, in the codex it says to make certain folders and certain files set other ways than that. does it matter if the 755 folders are public executable? isn’t it best not to allow any public file permissions if you dont need them? or are they needed here?

    the executable flag applied to directories is fine — it’s what allows apache to ‘move around’ within the web space.

    there is nothing, as of my typing this, anywhere in the codex that suggests setting directory permissions at 6**

    Apache cant work like that.

    Ive provided you the proper permissions, and I’m out of different replies unless you want to 1) provide a link to the page in the codex you want to discuss further and 2) explain how it relates to what you are trying to accomplish.

    Thread Starter tronicscribe

    (@tronicscribe)

    well thank you my good fellow with such a polite reply. anyway, I meant to imply that I got everything working fine with your wonderful advice on how to set folders and files. I most likely didn’t explain myself clear enough when I was referencing the codex vs your advice.

    https://codex.www.ads-software.com/Changing_File_Permissions

    It doesn’t actually say which *** number chmod to set, but I was pointing out such as for the admin folder it says to set it all file writable only on a user account. I took that to mean I only set the “owner” section of chmod to write, in which case would not result in a 755 or 644. so I was just trying to find out why the codex would suggest that, among other variations, and you would suggest as you did (which works exactly as it should, and I’m not to imply it is incorrect because I’m sure you know better than I). Anyway, again, thank you for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘chmod messed up, internal server error’ is closed to new replies.