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.

settings.php permission set to 644 - can't write to file?

edited September 2006 in Vanilla 1.0 Help
Forgive me if the answer exists elsewhere on the forum, but I couldn't find it via search. If it exists, please point me to the proper discussion. My settings.php file (in /conf) repeatedly gets set to 644 permissions from 755. I am no *nix guru but from what I have read trying to figure this out is that 644 is not much different from 755 for these purposes...but the forum will complain that the file doesn't have write access. I'll get this error, say, when I try and edit the text of the banner in "application settings". I have to delete the file and upload a fresh copy manually. Not the end of the world, but could it be an extensions conflict? A server problem?


  • Options
    php need read and write permissions (6), so the problem might be that the owner is changed in the same time than the mode. Try 664 or 666 on conf/settings.php.
  • Options
    edited September 2006
    It must be a problem with ownership because the mode is set to 755 currently and I still can't write to the /conf/settings.php.

    The only trouble is, I don't have command line access and can't chown through the web interface provided by my hosting company... so far the only solution has been to ftp the file content, copy it to a new file, delete the bad file and upload again.

    Why would this file change ownership, though? I've run into this problem constantly - is it something unique to my hosting service or something?
  • Options
    Apache or php can have access to your file by being the owner of the file (in this case, you need 644 on settings.php), by having some group privileges on the files (664 needed) or with the common privileges (666). You can ask your provider what should be mode of your file to give read and write right to apache or try the differents mode.

    You can do that with you ftp client. Depends of the ftp client, but you can try "right clic on settings.php", "properties" and look for something like "changing mode".
This discussion has been closed.