Ad Widget

Collapse

[error] [client xxxx] File does not exist: /var/www/zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clope023
    Junior Member
    • Sep 2013
    • 12

    #1

    [error] [client xxxx] File does not exist: /var/www/zabbix

    I am doing a fresh install of zabbix through the packages procedure according to the main page:



    The zabbix server, agent, mysql-server, and apache2 server are all runnning fine.

    However, when I tried to enter into the frontend through my host name, I got the following output:

    The requested URL /zabbix was not found on this server.

    So I checked the apache error logs and the result was the error:

    [error] [client xxxx] File does not exist: /var/www/zabbix

    I'm not what the cause of the error is, like what would cause that file to not be included in this directory upon installation. Any insights as to what this is is most appreciated, thank you.
  • Shoikan
    Junior Member
    • Jun 2009
    • 10

    #2
    A little more information about your server would be helpful: what distribution are you using exactly, where is your default document root (of the webserver), did you try to restart your server (if you add a new vhost, you'll have to restart it for instance or at least reload the config)..

    Comment

    • clope023
      Junior Member
      • Sep 2013
      • 12

      #3
      Originally posted by Shoikan
      A little more information about your server would be helpful: what distribution are you using exactly, where is your default document root (of the webserver), did you try to restart your server (if you add a new vhost, you'll have to restart it for instance or at least reload the config)..
      My linux distribution is Ubuntu 12.04, so the default document root is supposed to be in /var/www, I've restarted apache2 and mysql and the zabbix server and the zabbix agent several times but to no avail.

      Comment

      • Shoikan
        Junior Member
        • Jun 2009
        • 10

        #4
        When you go to the path specified in the error message, is there anything there? Can you also look in /etc/apache2/sites-enabled/ and see if you can find anything referring to zabbix there (aka a vhost file)? If so, can you post the contents?

        Comment

        • clope023
          Junior Member
          • Sep 2013
          • 12

          #5
          Originally posted by Shoikan
          When you go to the path specified in the error message, is there anything there? Can you also look in /etc/apache2/sites-enabled/ and see if you can find anything referring to zabbix there (aka a vhost file)? If so, can you post the contents?
          Nothing but 000-default in the sites-enabled folder, this is the contents of that folder.

          <VirtualHost *:80>
          ServerAdmin webmaster@localhost

          DocumentRoot /var/www
          <Directory />
          Options FollowSymLinks
          AllowOverride None
          </Directory>
          <Directory /var/www/>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          allow from all
          </Directory>

          ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
          <Directory "/usr/lib/cgi-bin">
          AllowOverride None
          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          Order allow,deny
          Allow from all
          </Directory>

          ErrorLog ${APACHE_LOG_DIR}/error.log

          # Possible values include: debug, info, notice, warn, error, crit,
          # alert, emerg.
          LogLevel warn

          CustomLog ${APACHE_LOG_DIR}/access.log combined

          Alias /doc/ "/usr/share/doc/"
          <Directory "/usr/share/doc/">
          Options Indexes MultiViews FollowSymLinks
          AllowOverride None
          Order deny,allow
          Deny from all
          Allow from 127.0.0.0/255.0.0.0 ::1/128
          </Directory>

          </VirtualHost>

          Comment

          • Shoikan
            Junior Member
            • Jun 2009
            • 10

            #6
            Ok. That looks like it indeed just expects the zabbix frontend to be in the directory /var/www/zabbix. When I get home I'll quickly set up a test system to check out what may be the issue.

            Comment

            • clope023
              Junior Member
              • Sep 2013
              • 12

              #7
              Originally posted by Shoikan
              Ok. That looks like it indeed just expects the zabbix frontend to be in the directory /var/www/zabbix. When I get home I'll quickly set up a test system to check out what may be the issue.
              Thank you for taking the trouble!

              Comment

              • tsalle
                Member
                Zabbix Certified Specialist
                • Oct 2012
                • 79

                #8
                I think the Ubuntu package install the zabbix frontend in /usr/share/zabbix

                You can change your apache 00-default (or create a new vhost) to replace /var/www by /usr/share/zabbix.

                Comment

                Working...