4

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.

MarioDS
  • 223
  • 2
  • 5
  • 15

2 Answers2

4

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.

user9517
  • 117,122
-1

Do the directory and the files have the same owner as the Apache's user ?

I don't know about Centos but I would do that on Ubuntu

chown -R www-data:www-data /webapps/nimbus/www/public_html
DJYod
  • 356