Ad Widget

Collapse

HTTP 404 Error on login page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fulltilt
    Member
    • Nov 2006
    • 39

    #1

    HTTP 404 Error on login page

    I have installed zabixx on debian 3.1 with apt ...
    used howto from:


    zabixx is runnig and also the pid's are in /var/run/zabbix
    but i cant get the login page working.
    HTTP 404 Error page not found

    I'm using VHCS2 and i think that zabixx needs to be included in apache2.conf
    how can i get zabbix login working and fix that problem?

    regards
    Ralph
  • fulltilt
    Member
    • Nov 2006
    • 39

    #2
    not working

    i set up the vhost for zabbix and included the /etc/zabbix folder in apache2.conf

    after restarting apache i get:
    Syntax error on line 1 of /etc/zabbix/php/debian.inc.php:
    /etc/zabbix/php/debian.inc.php:1: <?> was not closed.

    my: vhost
    Alias /zabbix/ "/var/www/virtual/zabbix/"
    <Directory /var/www/virtual/zabbix>
    AllowOverride All
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    php_admin_value open_basedir "/var/www/virtual/zabbix/:/usr/share/php/:/tmp/"
    Order allow,deny
    Allow from all
    </Directory>

    i think it's not working with VHCS
    Last edited by fulltilt; 10-11-2006, 09:01.

    Comment

    • fulltilt
      Member
      • Nov 2006
      • 39

      #3
      found out how it works with vhcs

      o.k. i have it running for now ...

      1. create a vhost file in /etc/zabbix > zabbix.conf
      2. i set the vhost in zabbix.conf: (path for debian 3.1)

      Alias /zabbix "/var/www/zabbix"
      <Directory "/var/www/zabbix">
      Options Indexes
      AllowOverride None
      Order allow,deny
      Allow from all
      php_admin_value open_basedir "/var/www/zabbix/:/etc/default/:/etc/zabbix/:/usr/bin/:/var/log/zabbix/:/usr/local/lib/:/var/run/zabbix/:/usr/share/php/:/tmp/"

      <IfModule mod_php4.c>
      php_value session.save_path /tmp
      </IfModule>
      </Directory>

      3. ln -s /etc/zabbix/zabbix.conf /etc/apache2/conf.d
      4. restart
      5. login

      regards
      Ralph

      Comment

      • alj
        Senior Member
        • Aug 2006
        • 188

        #4
        Originally posted by fulltilt
        i set up the vhost for zabbix and included the /etc/zabbix folder in apache2.conf

        after restarting apache i get:
        Syntax error on line 1 of /etc/zabbix/php/debian.inc.php:
        /etc/zabbix/php/debian.inc.php:1: <?> was not closed.

        my: vhost
        Alias /zabbix/ "/var/www/virtual/zabbix/"
        <Directory /var/www/virtual/zabbix>
        AllowOverride All
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        php_admin_value open_basedir "/var/www/virtual/zabbix/:/usr/share/php/:/tmp/"
        Order allow,deny
        Allow from all
        </Directory>

        i think it's not working with VHCS

        Debian zabbix works for me out of the box, no need to write any apache configs, it is already provided with zabbix.

        However in my distribution (etch) that php include file is located in /etc/zabbix/ directory not in /etc/zabbix/php/

        Also make sure it is readable by apache (www-data group).
        :/etc/zabbix# ls -l dbconfig.php
        -rw-r----- 1 root www-data 119 2006-11-07 10:16 dbconfig.php

        You also have to copy password from /etc/zabbix/zabbix_server.conf to that file for php interface to work.

        Your zabbix should be available as http://host/zabbix/

        Zabbix during installation already creates its config for apache:

        # ls -l /etc/apache2/conf.d/zabbix
        lrwxrwxrwx 1 root root 23 2006-11-07 08:51 /etc/apache2/conf.d/zabbix -> /etc/zabbix/apache.conf


        Your apache server should have php module enabled:
        :/etc/apache2/mods-enabled# ls -l php*
        lrwxrwxrwx 1 root root 27 2006-11-07 09:51 php5.conf -> ../mods-available/php5.conf
        lrwxrwxrwx 1 root root 27 2006-11-07 09:51 php5.load -> ../mods-available/php5.load
        wfc-zit-ops-005:/etc/apache2/mods-enabled#

        (read manpage for a2enmod)


        After you have this working go ahead and create vhost for it.

        Comment

        Working...