FrancescoManfredi
FrancescoManfredi

Reputation: 97

Permission denied config.inc.php

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?

Upvotes: 0

Views: 5685

Answers (1)

Panama Jack
Panama Jack

Reputation: 24448

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.

Upvotes: 1

Related Questions