First of all, I will mention that the permissions are fine for the document root directory, which is
/webapps/nimbus/www/public_html
The www directory contains a PHP application. PHP is a problem for later if it doesn't work, as I've tested it with a plain html file (does not work either)
I just get 403 forbidden responses.
The permissions are 755 on webapps and all subdirectories.
I've checked other questions here and on the internet, but it was all about those permissions. Whatever info you still need, just ask, I don't know what's relevant as it's the first time ever I'm using webmin or configuring apache.
Answer
This will most likely be SELinux. You will need to ensure that the files you want to serve have a security context of httpd_sys_content_t
try
chcon -Rv --type=httpd_sys_content_t /webapps
Which will set the correct security context.
No comments:
Post a Comment