Ad Widget

Collapse

Error when installing 1.4.1 ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vanyuan
    Junior Member
    • Feb 2007
    • 28

    #1

    Error when installing 1.4.1 ...

    Hi there,

    I am in the process of installing zabbix 1.4.1. A postgres database and user has been created. Im currently at step 4 of the web installation. (4. Configure DB connection.)

    The database connection tests successfully (Ok), but when I click Next, even although it goes tto the next screen (Pre-Installation Summary), if I click Next again, it takes me back to the "Configure DB connection", with the following error displayed in the top section of the screen...

    * Cannot modify header information - headers already sent by (output started at /var/www/html/zabbix/include/config.inc.php:21)[/var/www/html/zabbix/include/page_header.php:58]
    * Cannot modify header information - headers already sent by (output started at /var/www/html/zabbix/include/config.inc.php:21)[/var/www/html/zabbix/include/config.inc.php:1859]

    I have modified the file permissions (777) just to test, but this was to no avail.

    Can anyone help please?

    Thank You!

    Vanyuan
  • gryphius
    Member
    • Aug 2007
    • 30

    #2
    I had the same problem with the zabbix on postgres installation. I had to write the config manually. After that , zabbix worked but would often loose the connection to the postgres server, at that point I decided to use mysql which seems to work a lot better and the setup wizard worked without problems.

    Comment

    • Vanyuan
      Junior Member
      • Feb 2007
      • 28

      #3
      Rather use mysql, postgres setup unreliable?

      Alo there,

      Does this mean one cannot use the postgresql setup? Don't know what the use of including it is then if it cannot be used.

      V.

      Comment

      • rodrigotl
        Junior Member
        • Feb 2007
        • 8

        #4
        I´m having the same problem... could anyone help us to fix that? thanks

        Comment

        • nlp
          Junior Member
          • Oct 2008
          • 5

          #5
          Almost the same error in 1.4.2

          I get almost the same error in 1.4.2


          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

          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.....)
          Last edited by nlp; 24-10-2008, 09:17.

          Comment

          Working...