Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

'conf' folder permissions?

edited September 2006 in Vanilla 1.0 Help
Hello During the installation I changed the 'conf's folder permissions to 777 so that the installer could modify and add the settings ... after the installation ... what permissions should the folder(and all the contained files and folders) have ? Also do I need to change the permissions of the other folders or keep the recommended permissions that I've set during the installation? Last thing: is it safe to delete 'setup' folder?


  • edited September 2006
    you can delete the setup folder or not.

    for the permission that depends of your apache setting and of the owner of the conf folder and files inside.
    For the conf folder, the php user* need access to it; you could try 110 or 550 or 750.
    For the files in the conf folder, the php user* need read and write access, You could try 640 or 660.
  • Well, I can change the folder permission but the files won't change giving me errors like this : "550 Could not change perms on settings.php: Bad file descriptor" I wonder what is a file descriptor?
  • If you don't know which user is used for apache, for php and for the ftp server, you just have to guess the mode needed for your files. You should start by 777 for the conf folder and his files and try the decrease the permission, starting by decrease the right for "Other", then the group and maybe for the owner as well. Start by changing the mode of the conf folder to 777, then: For the files, the php user need 6, so try 666, then 660 and then 600. Then, change again the conf folder mode if you can change the mode of the folder without affecting the mode of the file inside - I don't know if it is possible with ftp. Php need access (1, 5 or 7), so try 555 then 550 then 500.
  • I tried all that and I found that I won't be able access vanilla unless the folder is 777 and the files 644 except settings.php is 777 ... there is something fishy in the configuration or I don't get it ... anyway long as it is working and safe ... it doesn't matter ... thanks for the replies
  • edited September 2006
    Change the options in vanilla and see if they are saved in settings.php. If it can work (read and write) with 644 it should work with 600.
    However for security, there is also a conf/.htaccess with:<Limit GET POST PUT> Order Allow,Deny Deny from All </Limit>
This discussion has been closed.