Interestingly, the owner:group of /var/www/domainhostseotool.com/public_html is apache:apache and the mode is 755 . The owner:group of /var/www/domainhostseotool.com/public_html/.htaccess is also apache:apache and the mode is 644. Why does it complain the file is not readable and/or the directory is not executable? In fact, this is because SeLinux is acting. After disabling selinux by
1 |
setenforce 0 |
all problems are gone.