top of page

Changing Group and Owner on Cent OS 7 for /var/www/html

  • Writer: سُلَيْمَان بْن دَاوُوْد
    سُلَيْمَان بْن دَاوُوْد
  • Aug 2, 2020
  • 1 min read

Often you see that you are presented with FTP screen while updating Plugin or find following happen when you try to update a plugin


Here are couple of tested command that do the magic




sudo chown -R apache:apache /var/www/html/
sudo find /var/www/html/ -type d -exec chmod 775 {} \;
sudo find /var/www/html/ -type f -exec chmod 664 {} \;
sudo chcon -R -t httpd_sys_content_t /var/www/html
sudo chcon -R -t httpd_sys_rw_content_t /var/www/html




Recent Posts

See All

Comments


© 2020 by syednazrulhassan

bottom of page