Keep on getting a 403 Forbidden error with httpd

Issues related to applications and software problems
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Keep on getting a 403 Forbidden error with httpd

Post by TrevorH » 2019/06/07 13:03:07

Where is /app/webroot in relation to /var/www/html?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Keep on getting a 403 Forbidden error with httpd

Post by hunter86_bg » 2019/06/07 16:32:43

Just find your Documentroot via:

Code: Select all

grep -Ri documentroot /etc/httpd

dbl
Posts: 11
Joined: 2019/06/05 00:06:01

Re: Keep on getting a 403 Forbidden error with httpd

Post by dbl » 2019/06/08 02:27:58

Sorry for the late response. /app/webroot/ is found under /var/www/html/MusicTime/sonerzh/app/webroot/

The document root is /var/www/html/MuiscTime

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Keep on getting a 403 Forbidden error with httpd

Post by hunter86_bg » 2019/06/08 05:51:34

Code: Select all

ls -ldZ /var/www/html/MuiscTime   /var/www/html/MusicTime/sonerzh   /var/www/html/MusicTime/sonerzh/app/webroot  

dbl
Posts: 11
Joined: 2019/06/05 00:06:01

Re: Keep on getting a 403 Forbidden error with httpd

Post by dbl » 2019/06/08 23:49:35

Result:

drwxr-xr-x. root root unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/html/MusicTime
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/html/MusicTime/sonerezh
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/html/MusicTime/sonerezh/app/webroot

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Keep on getting a 403 Forbidden error with httpd

Post by TrevorH » 2019/06/09 00:31:49

And the output from namei -l /var/www/html/MusicTime/sonerezh/app/webroot
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dbl
Posts: 11
Joined: 2019/06/05 00:06:01

Re: Keep on getting a 403 Forbidden error with httpd

Post by dbl » 2019/06/09 00:34:30

Here:

dr-xr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root www
drwxr-xr-x root root html
drwxr-xr-x root root MusicTime
drwxr-xr-x apache apache sonerezh
drwxr-xr-x apache apache app
drwxr-xr-x apache apache webroot

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Keep on getting a 403 Forbidden error with httpd

Post by TrevorH » 2019/06/09 00:37:08

What errors are you now seeing in /var/log/httpd/error_log (or its ssl equiv).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dbl
Posts: 11
Joined: 2019/06/05 00:06:01

Re: Keep on getting a 403 Forbidden error with httpd

Post by dbl » 2019/06/09 03:23:36

[Mon Jun 03 20:33:34.315424 2019] [core:notice] [pid 32380] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jun 03 20:33:34.318184 2019] [suexec:notice] [pid 32380] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 03 20:33:34.339440 2019] [auth_digest:notice] [pid 32380] AH01757: generating secret for digest authentication ...
[Mon Jun 03 20:33:34.341048 2019] [lbmethod_heartbeat:notice] [pid 32380] AH02282: No slotmem from mod_heartmonitor
[Mon Jun 03 20:33:34.348124 2019] [mpm_prefork:notice] [pid 32380] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Mon Jun 03 20:33:34.348190 2019] [core:notice] [pid 32380] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Jun 03 20:43:28.658085 2019] [autoindex:error] [pid 32384] [client 192.168.1.169:45140] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Mon Jun 03 20:51:49.617206 2019] [autoindex:error] [pid 1116] [client 192.168.1.169:45980] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Mon Jun 03 21:03:22.696820 2019] [mpm_prefork:notice] [pid 32380] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Jun 03 21:15:19.106021 2019] [core:notice] [pid 2421] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jun 03 21:15:19.107645 2019] [suexec:notice] [pid 2421] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 03 21:15:19.125239 2019] [auth_digest:notice] [pid 2421] AH01757: generating secret for digest authentication ...
[Mon Jun 03 21:15:19.126549 2019] [lbmethod_heartbeat:notice] [pid 2421] AH02282: No slotmem from mod_heartmonitor
[Mon Jun 03 21:15:19.132428 2019] [mpm_prefork:notice] [pid 2421] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Mon Jun 03 21:15:19.132487 2019] [core:notice] [pid 2421] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 17:56:18.478676 2019] [mpm_prefork:notice] [pid 2421] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 17:56:19.581223 2019] [core:notice] [pid 314] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 17:56:19.582897 2019] [suexec:notice] [pid 314] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 17:56:19.602927 2019] [auth_digest:notice] [pid 314] AH01757: generating secret for digest authentication ...
[Tue Jun 04 17:56:19.604067 2019] [lbmethod_heartbeat:notice] [pid 314] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 17:56:19.610367 2019] [mpm_prefork:notice] [pid 314] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 17:56:19.610449 2019] [core:notice] [pid 314] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 18:40:52.996072 2019] [mpm_prefork:notice] [pid 314] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 18:40:54.068762 2019] [core:notice] [pid 24556] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 18:40:54.070046 2019] [suexec:notice] [pid 24556] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 18:40:54.086835 2019] [auth_digest:notice] [pid 24556] AH01757: generating secret for digest authentication ...
[Tue Jun 04 18:40:54.088025 2019] [lbmethod_heartbeat:notice] [pid 24556] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 18:40:54.097600 2019] [mpm_prefork:notice] [pid 24556] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 18:40:54.097665 2019] [core:notice] [pid 24556] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 18:44:58.148711 2019] [mpm_prefork:notice] [pid 24556] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 18:44:59.223338 2019] [core:notice] [pid 30340] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 18:44:59.224848 2019] [suexec:notice] [pid 30340] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 18:44:59.242723 2019] [auth_digest:notice] [pid 30340] AH01757: generating secret for digest authentication ...
[Tue Jun 04 18:44:59.243807 2019] [lbmethod_heartbeat:notice] [pid 30340] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 18:44:59.249935 2019] [mpm_prefork:notice] [pid 30340] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 18:44:59.254169 2019] [core:notice] [pid 30340] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 18:59:14.033920 2019] [mpm_prefork:notice] [pid 30340] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 18:59:15.108111 2019] [core:notice] [pid 4030] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 18:59:15.109485 2019] [suexec:notice] [pid 4030] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 18:59:15.126787 2019] [auth_digest:notice] [pid 4030] AH01757: generating secret for digest authentication ...
[Tue Jun 04 18:59:15.127953 2019] [lbmethod_heartbeat:notice] [pid 4030] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 18:59:15.141258 2019] [mpm_prefork:notice] [pid 4030] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 18:59:15.141336 2019] [core:notice] [pid 4030] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:07:16.152075 2019] [mpm_prefork:notice] [pid 4030] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 19:07:17.364802 2019] [core:notice] [pid 8684] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 19:07:17.366216 2019] [suexec:notice] [pid 8684] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 19:07:17.383440 2019] [auth_digest:notice] [pid 8684] AH01757: generating secret for digest authentication ...
[Tue Jun 04 19:07:17.384774 2019] [lbmethod_heartbeat:notice] [pid 8684] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 19:07:17.390767 2019] [mpm_prefork:notice] [pid 8684] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 19:07:17.390839 2019] [core:notice] [pid 8684] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:15:25.046383 2019] [mpm_prefork:notice] [pid 8684] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 19:15:26.120838 2019] [core:notice] [pid 5248] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 19:15:26.122245 2019] [suexec:notice] [pid 5248] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 19:15:26.139582 2019] [auth_digest:notice] [pid 5248] AH01757: generating secret for digest authentication ...
[Tue Jun 04 19:15:26.140878 2019] [lbmethod_heartbeat:notice] [pid 5248] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 19:15:26.150770 2019] [mpm_prefork:notice] [pid 5248] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 19:15:26.150832 2019] [core:notice] [pid 5248] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:16:17.801201 2019] [mpm_prefork:notice] [pid 5248] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 19:16:18.875691 2019] [core:notice] [pid 10968] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 19:16:18.877105 2019] [suexec:notice] [pid 10968] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 19:16:18.894947 2019] [auth_digest:notice] [pid 10968] AH01757: generating secret for digest authentication ...
[Tue Jun 04 19:16:18.896001 2019] [lbmethod_heartbeat:notice] [pid 10968] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 19:16:18.903873 2019] [mpm_prefork:notice] [pid 10968] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 19:16:18.903958 2019] [core:notice] [pid 10968] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:41:29.193331 2019] [mpm_prefork:notice] [pid 10968] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 19:41:30.270378 2019] [core:notice] [pid 6226] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 19:41:30.272571 2019] [suexec:notice] [pid 6226] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 19:41:30.290407 2019] [auth_digest:notice] [pid 6226] AH01757: generating secret for digest authentication ...
[Tue Jun 04 19:41:30.291444 2019] [lbmethod_heartbeat:notice] [pid 6226] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 19:41:30.301358 2019] [mpm_prefork:notice] [pid 6226] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 19:41:30.301444 2019] [core:notice] [pid 6226] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:52:14.215863 2019] [mpm_prefork:notice] [pid 6226] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 19:57:07.969644 2019] [core:notice] [pid 5405] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 19:57:07.971294 2019] [suexec:notice] [pid 5405] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 19:57:07.988631 2019] [auth_digest:notice] [pid 5405] AH01757: generating secret for digest authentication ...
[Tue Jun 04 19:57:07.990217 2019] [lbmethod_heartbeat:notice] [pid 5405] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 19:57:08.001336 2019] [mpm_prefork:notice] [pid 5405] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 19:57:08.001437 2019] [core:notice] [pid 5405] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 19:59:09.234814 2019] [mpm_prefork:notice] [pid 5405] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jun 04 20:01:51.831635 2019] [core:notice] [pid 4583] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 20:01:51.971296 2019] [suexec:notice] [pid 4583] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 20:01:52.000468 2019] [auth_digest:notice] [pid 4583] AH01757: generating secret for digest authentication ...
[Tue Jun 04 20:01:52.002608 2019] [lbmethod_heartbeat:notice] [pid 4583] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 20:01:52.014850 2019] [mpm_prefork:notice] [pid 4583] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 20:01:52.014925 2019] [core:notice] [pid 4583] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jun 04 20:18:18.017687 2019] [core:notice] [pid 4618] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jun 04 20:18:18.178223 2019] [suexec:notice] [pid 4618] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 04 20:18:18.204698 2019] [auth_digest:notice] [pid 4618] AH01757: generating secret for digest authentication ...
[Tue Jun 04 20:18:18.206626 2019] [lbmethod_heartbeat:notice] [pid 4618] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 04 20:18:18.213902 2019] [mpm_prefork:notice] [pid 4618] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Tue Jun 04 20:18:18.213983 2019] [core:notice] [pid 4618] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Keep on getting a 403 Forbidden error with httpd

Post by TrevorH » 2019/06/09 11:34:58

The last error there is 5 days ago. Are you sure you're looking at the right file?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply