Ad Widget

Collapse

Installation Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nlp
    Junior Member
    • Oct 2008
    • 5

    #1

    Installation Problem

    I am in the process of installing zabbix 1.4.2, but in "7. Finish" I get this Error

    Code:
        * Cannot modify header information - headers already sent by (output started at /etc/zabbix/dbconfig.php:14)[/usr/share/zabbix/include/page_header.php:58]
        * Cannot modify header information - headers already sent by (output started at /etc/zabbix/dbconfig.php:14)[/usr/share/zabbix/include/config.inc.php:1693]
    I am using a MySQL Database. The Server I installed it on is configured like this with Ubuntu 8.04:
    Code:
     
    apt-get update
    apt-get upgrade
    
    apt-get install build-essential
    apt-get install linux-headers-`uname -r`
    
    mount -t iso9660 /dev/cdrom /mnt
    cp /mnt/VMwareTools-*.tar.gz /tmp
    cd /tmp
    tar zxf VMwareTools-*.tar.gz
    cd vmware-tools-distrib
    umount /dev/cdrom
    ./vmware-install.pl
    reboot
    
    
    apt-get install apache2 
    apt-get install php5 
    apt-get install mysql-server
    apt-get install mysql-common
    apt-get install mysql-client
    
    mysql -u root -p
    
    mysql> CREATE DATABASE zabbix;
    mysql> SHOW DATABASES;
    mysql> GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY '##PASSWORD##';
    mysql> exit
    
    apt-get install zabbix-server-mysql 
    apt-get install zabbix-frontend-php 
    apt-get install zabbix-agent
    
    
    nano /etc/php5/apache2/php.ini
    edit "max_execution_time = 30" to "max_execution_time = 300"
    edit ";date.timezone = " to "date.timezone = Europe/Copenhagen"

    Code:
     
    /etc/init.d/apache2 stop
    /etc/init.d/apache2 start
    
    
    nano /usr/share/zabbix/conf/zabbix.conf.php
    INSERTED FOLLOWING
    Code:
     
    <?php
    global $DB_TYPE, $DB_SERVER, $DB_PORT, $DB_DATABASE, $DB_USER, $DB_PASSWORD, $IMAGE_FORMAT_DEFAULT;
    
    $DB_TYPE	= "MYSQL";
    $DB_SERVER	= "localhost";
    $DB_PORT	= "0";
    $DB_DATABASE	= "zabbix";
    $DB_USER	= "zabbix";
    $DB_PASSWORD	= "##PASSWORD##";
    
    $IMAGE_FORMAT_DEFAULT	= IMAGE_FORMAT_PNG;
    ?>
    Started the web installation:

    * 1. Introduction (Finished)
    * 2. Licence Agreement (Finished)
    * 3. Check of pre-requisites (Finished)
    * 4. Configure DB connection (Finished)
    * 5. Pre-Installation Summary (Finished)
    * 6. Install (Finished)
    * 7. Finish (Connot modify.....)


    Has anyone familiar with the problem, or just have an idea of how it can be solved...
  • tazzu
    Junior Member
    • Nov 2006
    • 26

    #2
    Did you load the DB schema? :

    mysql -D zabbix -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/schema/mysql.sql
    mysql -D zabbix -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/data/data.sql
    mysql -D zabbix -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/data/images_mysql.sql

    Maybe this wiki link will help you:

    http://www.zabbix.com/wiki/doku.php?...:ubuntuinstall

    Comment

    • chelsae
      Junior Member
      • Oct 2008
      • 1

      #3
      Hi,

      Try to set in php.ini Output_buffering ON

      grettings

      Comment

      • vinny
        Senior Member
        • Jan 2008
        • 145

        #4
        +1
        that's definitely a PHP error message so no need to check the DB/binary.

        but u re using zabbix v1.4.2.
        You should take a look at the 1.6 or 1.4.6

        vinny
        -------
        Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          It looks very much like extra spaces or EOL characters in zabbix.conf.php. Remove them (pay attention to first and last lines) to get rid of these warning messages.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...