Ad Widget

Collapse

Error 404 in Apache When Accessing Zabbix Frontend: DocumentRoot Not Found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suporte@netservbrasil.com
    Junior Member
    • Oct 2024
    • 7

    #1

    Error 404 in Apache When Accessing Zabbix Frontend: DocumentRoot Not Found

    I am encountering a 404 error when trying to access the Zabbix frontend on Apache. The Apache logs indicate that the DocumentRoot does not exist. This suggests that the path configured for the Zabbix root directory in the Apache configuration file may be incorrect or that the directory has been moved or deleted. I need to check the Apache configuration to ensure that the path to the Zabbix frontend is correct and that the files are in the appropriate location.
    My /etc/apache2/sites-available/zabbix.conf file is configured as follows:

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /usr/share/zabbix

    <Directory /usr/share/zabbix>
    Options FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/zabbix_error.log
    CustomLog ${APACHE_LOG_DIR}/zabbix_access.log combined

    <Directory "/usr/share/zabbix/conf">
    Require all denied
    </Directory>

    <Directory "/usr/share/zabbix/app">
    Require all denied
    </Directory>

    <Directory "/usr/share/zabbix/include">
    Require all denied
    </Directory>
    </VirtualHost>​

    Even though my Zabbix is running without any issues.

    ​I will send the logs that were generated below in tail -n 50 /var/log/apache2/error.log
    tail -n 50 /var/log/apache2/error.log [Wed Oct 23 00:00:12.411612 2024] [mpm_prefork:notice] [pid 513] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Wed Oct 23 00:00:12.411657 2024] [core:notice] [pid 513] AH00094: Command line: '/usr/sbin/apache2' [Wed Oct 23 10:40:12.929456 2024] [mpm_prefork:notice] [pid 513] AH00169: caught SIGTERM, shutting down [Wed Oct 23 10:40:13.200907 2024] [mpm_prefork:notice] [pid 19932] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Wed Oct 23 10:40:13.201001 2024] [core:notice] [pid 19932] AH00094: Command line: '/usr/sbin/apache2' [Wed Oct 23 10:46:59.782568 2024] [mpm_prefork:notice] [pid 19932] AH00171: Graceful restart requested, doing restart AH00112: Warning: DocumentRoot [/usr/share/zabbix] does not exist AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Wed Oct 23 10:46:59.925319 2024] [mpm_prefork:notice] [pid 19932] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Wed Oct 23 10:46:59.925343 2024] [core:notice] [pid 19932] AH00094: Command line: '/usr/sbin/apache2' [Wed Oct 23 10:47:17.216639 2024] [mpm_prefork:notice] [pid 19932] AH00169: caught SIGTERM, shutting down [Wed Oct 23 10:47:17.374485 2024] [mpm_prefork:notice] [pid 21522] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Wed Oct 23 10:47:17.374624 2024] [core:notice] [pid 21522] AH00094: Command line: '/usr/sbin/apache2' [Wed Oct 23 11:25:14.549141 2024] [mpm_prefork:notice] [pid 21522] AH00169: caught SIGTERM, shutting down [Wed Oct 23 11:25:15.919308 2024] [mpm_prefork:notice] [pid 30374] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Wed Oct 23 11:25:15.919441 2024] [core:notice] [pid 30374] AH00094: Command line: '/usr/sbin/apache2' [Wed Oct 23 11:47:41.647958 2024] [mpm_prefork:notice] [pid 30374] AH00169: caught SIGTERM, shutting down [Wed Oct 23 11:47:41.896284 2024] [mpm_prefork:notice] [pid 4153] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations

    Steps Attempted:
    Reinstall the Zabbix frontend
    Check directory permissions and ownership
    Configure ServerName in Apache

    System Information:
    Debian 10
    Apache 2.4.59
    Zabbix 5.2.7
    ​Can anyone help me figure out what this could be?​
  • suporte@netservbrasil.com
    Junior Member
    • Oct 2024
    • 7

    #2
    somebody ?

    Comment

    Working...