On Thursday, 29 October 2020 14:10:07 GMT the...@sys-concept.com wrote: > On 10/29/2020 06:21 AM, Remco Rijnders wrote: > > On Wed, Oct 28, 2020 at 10:36:12PM -0600, thelma wrote in > > > > <7b3d3416-77b0-02eb-ad05-f717fdf0b...@sys-concept.com>: > >> After installing apache 2.4 I can not access server subdirectory: > >> server/admin/index.html > >> > >> Forbiden > >> You don't have permission to access /admin/index.html on this server > >> > >> I can access index.html in a directory below /admin (server/index.html) > >> but not the server/admin/index.html > > > > That seems to suggest that either the permissions or ownership of > > admin/index.html are different from admin/server/index.html, or that > > there is a > > difference of that kind between the directories admin/ and admin/server. > > Are > > they? > > Here are the permissions: > > index on server/ > -rw-r--r-- 1 root root 19078 Jan 14 2011 index.php
The above is a .php file. > index on server/admin/ > drwxr-xr-x 6 root root 4096 Oct 28 22:08 admin > -rwxrwxrwx 1 apache apache 428 Oct 28 16:44 index.html You shouldn't need apache:apache or 0777 ownership of this file which is very insecure, unless apache is meant to be editing it live. Normally root:root and 0755 is what is used. Is 'server/' a subdirectory of '/var/www/'? .htaccess won't work if you have disabled it with 'AllowOverride None'. > It works on Apache 2.2 but not Apache 2.4 Directives changed on version 2.4. It would be worth familiarising yourself with the latest: https://httpd.apache.org/docs/2.4/upgrading.html
signature.asc
Description: This is a digitally signed message part.