php - file_put_contents failed to open stream: Permission denied -
i error while trying file_put_contents()
.
apache working apache
group, started sudo
rights. user in apache
group. dirs , files have 755
chmod.
file exists.
locally works fine, on remote centos server not. why? how debug thing?
this can solved changing directory permission.
run command like
chmod 777 database (the directory)
you can utilize getcwd()"
find directory path.
please have here
php linux file-permissions permission-denied
No comments:
Post a Comment