Ad Widget

Collapse

Configuration File Fail in Zabbix 1.3.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ibrahim
    Junior Member
    • Sep 2006
    • 19

    #1

    Configuration File Fail in Zabbix 1.3.1

    Hi,
    I am trying to install Zabbix 1.3.1 on the same host where Zabbix 1.1.4 is running. What I did is that I created a new zabbix database called zabbix2, and installed the server with a different prefix /usr/local/zabbix2). The PHP script are saved also to a new folder. Then I changed the configuration files accordingly. That should be ok, right?

    Now in the installation wizard, I get the following error at step 6 (Install):

    * checkconfigurationfile(/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php): failed to open stream: Permission denied[/var/www/html/zabbix_1.3.1/include/setup.inc.php:627]
    * checkconfigurationfile(): Failed opening '/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php' for inclusion (include_path='.:/usr/share/pear')[/var/www/html/zabbix_1.3.1/include/setup.inc.php:627]
    * Incorrect configuration file[/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php]
    * fopen(/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php): failed to open stream: Permission denied[/var/www/html/zabbix_1.3.1/include/setup.inc.php:414]



    Could Anybody Explain what is happening here.
    Many thanks
    Ibrahim
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It seems that Apache does not have permossions to access /var/www/html/zabbix_1.3.1/conf/zabbix.conf.php
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #3
      Does you web server (apache ?) have access to those files ?
      Looks like it doesn't !

      Comment

      • LEM
        Senior Member
        Zabbix Certified Specialist
        • Sep 2004
        • 112

        #4
        Originally posted by Ibrahim
        Hi,
        I am trying to install Zabbix 1.3.1
        (...)
        Now in the installation wizard, I get the following error at step 6 (Install):
        Code:
            * checkconfigurationfile(/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php): failed to open stream: Permission denied[/var/www/html/zabbix_1.3.1/include/setup.inc.php:627]
            * checkconfigurationfile(): Failed opening '/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php' for inclusion (include_path='.:/usr/share/pear')[/var/www/html/zabbix_1.3.1/include/setup.inc.php:627]
            * Incorrect configuration file[/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php]
            * fopen(/var/www/html/zabbix_1.3.1/conf/zabbix.conf.php): failed to open stream: Permission denied[/var/www/html/zabbix_1.3.1/include/setup.inc.php:414]
        Could Anybody Explain what is happening here.
        If your apache is ran by www-data.www-data, you should :
        Code:
        # chown -R www-data.www-data /var/www/html/zabbix_1.3.1/
        # chmod o+w /var/www/html/zabbix_1.3.1/conf/
        And remove the 'write' access on .../conf/ after configuration (once you ZABBIX 1.3.1 install is fine and running).

        Alteratively, you could
        Code:
        # chmod 777 /var/www/html/zabbix_1.3.1/conf
        during the setup phase, and
        Code:
        # chmod 555
        later (after setup successfull).

        Cheers,
        --
        LEM

        Comment

        • Ibrahim
          Junior Member
          • Sep 2006
          • 19

          #5
          Thanks for the replies. Yes it had to do with permissions. However, I messed up few things while working on that that I had to remove the php scripts and copy them again making sure apache has permissions to conf.

          Now it works and I am so glad
          Ibrahim

          Comment

          Working...