I'm currently running the Apache webserver on Fedora 29 and am facing directory access issues.
I can run php and HTML files located in …/www/html/applications/views
just fine, but encounter the 403 Forbidden Error when I try running scripts located in …/www/html/applications/controllers
.
I tried matching the permissions of the latter directory and its contents to those of the former, but to no avail. I tried switching ownership over to the current user and modifying the permissions yet again, but I still encounter this error.
Also, I've checked the apache server error logs and there seems to be nothing related to this (concluded from the fact that the last error it shows is dated May 22 while the last rerun of the php scripts was on May 25, correct me if I'm wrong). The following are the 3 latest error messages :
[Wed May 22 22:40:07.338339 2019] [lbmethod_heartbeat:notice] [pid 17890:tid 139756349729024] AH02282: No slotmem from mod_heartmonitor
[Wed May 22 22:40:07.350863 2019] [mpm_event:notice] [pid 17890:tid 139756349729024] AH00489: Apache/2.4.39 (Fedora) OpenSSL/1.1.1b mod_perl/2.0.10 Perl/v5.28.2 configured -- resuming normal operations
[Wed May 22 22:40:07.350906 2019] [core:notice] [pid 17890:tid 139756349729024] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Also, given below is the content of the .htaccess
file:
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
Any idea about what is going on and how I can fix it?
.htaccess
file, something in the actual application blocking access and replying to your request with the 403 ....