0
votes

I'm trying to install canvace, but both in local and on another dev server I'm getting error "file_put_contents(config.inc.php): failed to open stream: Permission denied" during installation.

I've found 3 config.inc.php in my server and changed their permission to 777 (one at the time), but i still get the same error.

Any hint on what should i try next?

1
the directory needs write permission. if the file is remove and added again setting the 777 on file doesn't matter. - DevZer0
Check permissions of the folders - timmz
put 777 on the 3 directories and the 3 files... but i still get the same error... - FrancescoManfredi

1 Answers

1
votes

Make sure the file config.inc.php is not owned by root. You can use ls -al to see the user and group names in the directory the file is at. Try using CHOWN and changing the user/group to the PHP/web user and group.