Skip to content
Advertisement

Tag: chmod

Apache does not have write permission on html folder

I installed apache, MySQL, PHP in CentOS 7. All work well, except apache cannot write file in html folder. I found this problem when I used file_put_contents. I tried Change owner of /var/www to apache:apache, not work Added Order allow,deny Allow from all to <Directory “/var/www/html”> in httpd.conf, restart httpd service, not work chmod -R 0777 /var/www/html, not work What

Advertisement