Ad Widget

Collapse

File not found on clean install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevenagy88
    Junior Member
    • Jul 2025
    • 5

    #1

    File not found on clean install

    Hi,

    After a clean install of Zabbix 7.4 on a LAMP stack on Ubuntu 24,04 with PHP 8.4, following the guide at https://www.zabbix.com/download?zabb...ysql&ws=apache, I am getting a page saying "File not found." at http://[server_ip]/zabbix. Apache, PHP and MariaDB are all running. What am I missing?

    Thanks,
    Steve Nagy
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    The usual reason for that error is not restarting apache2 service. Did you check that you restarted it?

    Also, your link leads to Alma Linux install guide.

    Markku

    Comment

    • stevenagy88
      Junior Member
      • Jul 2025
      • 5

      #3
      Hi,

      I copied the wrong link, sorry. The installation was done using this link:

      Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


      Apache is running, also evidenced by the fact that a web page is loaded, but with the text "File not found."

      Any suggestions?

      Thanks,
      Steve Nagy

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        Note that any new Apache configuration files (like the ones Zabbix UI provides) are not automatically loaded by Apache. That's why I asked about restarting Apache, so can you confirm that?

        Markku

        Comment

        • stevenagy88
          Junior Member
          • Jul 2025
          • 5

          #5
          I just restarted Apache again, to be sure. No changes in the web access.

          Steve

          Comment

          • stevenagy88
            Junior Member
            • Jul 2025
            • 5

            #6
            I did a reload of the server and a clean install of Ubuntu 24.04, Apache, MariaDB and PHP 8.4 and installed Zabbix 7.4 as root following these instructions:

            Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


            Here is my /etc/apache2/conf-enabled/zabbix.conf, with an alias pointing to the correct directory:

            Code:
            root@monitor:~# cat /etc/apache2/conf-enabled/zabbix.conf
            # Define /zabbix alias, this is the default
            <IfModule mod_alias.c>
            Alias /zabbix /usr/share/zabbix/ui
            </IfModule>
            
            <Directory "/usr/share/zabbix/ui">
            Options FollowSymLinks
            AllowOverride None
            Order allow,deny
            Allow from all
            
            <IfModule mod_php.c>
            php_value max_execution_time 300
            php_value memory_limit 128M
            php_value post_max_size 16M
            php_value upload_max_filesize 2M
            php_value max_input_time 300
            php_value max_input_vars 10000
            php_value always_populate_raw_post_data -1
            </IfModule>
            
            <IfModule mod_php7.c>
            php_value max_execution_time 300
            php_value memory_limit 128M
            php_value post_max_size 16M
            php_value upload_max_filesize 2M
            php_value max_input_time 300
            php_value max_input_vars 10000
            php_value always_populate_raw_post_data -1
            </IfModule>
            </Directory>
            
            <Directory "/usr/share/zabbix/ui/conf">
            Order deny,allow
            Deny from all
            <files *.php>
            Order deny,allow
            Deny from all
            </files>
            </Directory>
            
            <Directory "/usr/share/zabbix/ui/app">
            Order deny,allow
            Deny from all
            <files *.php>
            Order deny,allow
            Deny from all
            </files>
            </Directory>
            
            <Directory "/usr/share/zabbix/ui/include">
            Order deny,allow
            Deny from all
            <files *.php>
            Order deny,allow
            Deny from all
            </files>
            </Directory>
            
            <Directory "/usr/share/zabbix/ui/local">
            Order deny,allow
            Deny from all
            <files *.php>
            Order deny,allow
            Deny from all
            </files>
            </Directory>
            
            <Directory "/usr/share/zabbix/ui/vendor">
            Order deny,allow
            Deny from all
            <files *.php>
            Order deny,allow
            Deny from all
            </files>
            </Directory>
            root@monitor:~#
            I checked that mod_alias is available:

            Code:
            root@monitor:~# apache2ctl -M | grep alias
            alias_module (shared)
            root@monitor:~#
            After installation, I restarted Apache. http://[ip] is accessible, but http://[ip]/zabbix/ shows a page saying 'File not found', In order to eliminate potential permission issues, I tried changed ownership of /usr/share/zabbix and all files and subfolders to www-data:www-data, but that made no difference.

            What am I missing?
            Last edited by stevenagy88; 14-07-2025, 04:32.

            Comment

            • Markku
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Sep 2018
              • 1781

              #7
              I don't know, works here when installed on a new Ubuntu 24.04 host.

              root@ubuntutest2404:~# curl http://10.0.200.11/zabbix/ -I
              HTTP/1.1 302 Found
              Date: Mon, 14 Jul 2025 16:31:05 GMT
              Server: Apache/2.4.58 (Ubuntu)
              Location: setup.php
              Content-Type: text/html; charset=UTF-8

              root@ubuntutest2404:~# ls -l /etc/apache2/conf-enabled/zabbix.conf
              lrwxrwxrwx 1 root root 29 Jul 14 16:25 /etc/apache2/conf-enabled/zabbix.conf -> ../conf-available/zabbix.conf
              root@ubuntutest2404:~# ls -l /etc/apache2/conf-available/zabbix.conf
              lrwxrwxrwx 1 root root 23 Jul 14 16:25 /etc/apache2/conf-available/zabbix.conf -> /etc/zabbix/apache.conf
              root@ubuntutest2404:~# ls -l /etc/zabbix/apache.conf
              -rw-r--r-- 1 root root 1764 Jun 30 10:28 /etc/zabbix/apache.conf

              root@ubuntutest2404:~# dpkg -l zabbix\*
              Desired=Unknown/Install/Remove/Purge/Hold
              | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
              |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
              ||/ Name Version Architecture Description
              +++-===================-=====================-============-================================================== =====================
              ii zabbix-agent 1:7.4.0-1+ubuntu24.04 amd64 Zabbix network monitoring solution - agent
              ii zabbix-apache-conf 1:7.4.0-1+ubuntu24.04 all Zabbix network monitoring solution - apache configuration for front-end
              ii zabbix-frontend-php 1:7.4.0-1+ubuntu24.04 all Zabbix network monitoring solution - PHP front-end
              un zabbix-nginx-conf <none> <none> (no description available)
              ii zabbix-release 1:7.4-1+ubuntu24.04 all Zabbix official repository configuration
              ii zabbix-server-mysql 1:7.4.0-1+ubuntu24.04 amd64 Zabbix network monitoring solution - server (MySQL)
              un zabbix-server-pgsql <none> <none> (no description available)
              ii zabbix-sql-scripts 1:7.4.0-1+ubuntu24.04 all Zabbix network monitoring solution - sql-scripts

              root@ubuntutest2404:~#

              Markku

              Comment

              • stevenagy88
                Junior Member
                • Jul 2025
                • 5

                #8
                This is what I am seeing:

                Code:
                steve@Steves-MacBook-Pro-2 ~ % curl http://144.202.21.89/zabbix/ -I
                HTTP/1.1 404 Not Found
                Date: Wed, 16 Jul 2025 17:47:06 GMT
                Server: Apache/2.4.58 (Ubuntu)
                Content-Type: text/html; charset=UTF-8
                
                steve@Steves-MacBook-Pro-2 ~ % curl http://144.202.21.89/ -I
                HTTP/1.1 200 OK
                Date: Wed, 16 Jul 2025 17:47:13 GMT
                Server: Apache/2.4.58 (Ubuntu)
                Content-Type: text/html; charset=UTF-8
                
                steve@Steves-MacBook-Pro-2 ~ %
                Code:
                root@monitor:~# ls -l /etc/apache2/conf-enabled/zabbix.conf
                lrwxrwxrwx 1 root root 29 Jul 13 21:55 /etc/apache2/conf-enabled/zabbix.conf -> ../conf-available/zabbix.conf
                root@monitor:~# ls -l /etc/apache2/conf-available/zabbix.conf
                lrwxrwxrwx 1 root root 23 Jul 13 21:55 /etc/apache2/conf-available/zabbix.conf -> /etc/zabbix/apache.conf
                root@monitor:~# ls -l /etc/zabbix/apache.conf
                -rw-r--r-- 1 root root 1764 Jun 30 10:28 /etc/zabbix/apache.conf
                root@monitor:~# dpkg -l zabbix\*
                Desired=Unknown/Install/Remove/Purge/Hold
                | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                ||/ Name Version Architecture Description
                +++-===================-=====================-============-====================>
                ii zabbix-agent 1:7.4.0-1+ubuntu24.04 amd64 Zabbix network monit>
                ii zabbix-apache-conf 1:7.4.0-1+ubuntu24.04 all Zabbix network monit>
                ii zabbix-frontend-php 1:7.4.0-1+ubuntu24.04 all Zabbix network monit>
                un zabbix-nginx-conf <none> <none> (no description avai>
                ii zabbix-release 1:7.4-1+ubuntu24.04 all Zabbix official repo>
                ii zabbix-server-mysql 1:7.4.0-1+ubuntu24.04 amd64 Zabbix network monit>
                un zabbix-server-pgsql <none> <none> (no description avai>
                ii zabbix-sql-scripts 1:7.4.0-1+ubuntu24.04 all Zabbix network monit>​

                Comment

                • Markku
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                  • Sep 2018
                  • 1781

                  #9
                  Right. I'd just start messing around with apache.conf to find out if Apache for some reason ignores the file or if there is some other reason for it to not access files in /usr/share/zabbix/ui.

                  Markku

                  Comment

                  Working...