Ad Widget

Collapse

Web setup in 1.3.2 error at the end

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbadger
    Member
    • Dec 2005
    • 81

    #1

    Web setup in 1.3.2 error at the end

    I was able to make it all the way to the end of the web frontend setup without any problems doing a virgin install of Zabbix 1.3.2 on my test box (Fedora Core 5) util this one poped up:

    * fopen(/var/www/html/conf/zabbix.conf.php) [function.fopen]: failed to open stream: Permission denied[/var/www/html/include/setup.inc.php:414]


    It appears at the bottom of the screen and lets me click past it, but something fails to take the frontend out the setup mode and into working mode. Any ideas on what I may be missing?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Check permissions of *.php files. Apache must have read access to the files.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • sbadger
      Member
      • Dec 2005
      • 81

      #3
      World readable with a 644 permision.

      Comment

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

        #4
        Try to 'su - apache_user' and do 'less /var/www/html/include/setup.inc.php' to check if everything is fine.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • sbadger
          Member
          • Dec 2005
          • 81

          #5
          I needed to give the apache user a shell and then I was able to look at the setup.in.php file. Here is the output from tail:

          Code:
          [root@lin6410 html]# su - apache
          This account is currently not available.
          [root@lin6410 html]# su - apache
          -bash-3.1$ less /var/www/html/include/setup.inc.php
          -bash-3.1$ tail /var/www/html/include/setup.inc.php
          $DB_SERVER      = "'.$this->GetConfig('DB_SERVER'       ,'uncnown').'";
          $DB_DATABASE    = "'.$this->GetConfig('DB_DATABASE'     ,'uncnown').'";
          $DB_USER        = "'.$this->GetConfig('DB_USER'         ,'uncnown').'";
          $DB_PASSWORD    = "'.$this->GetConfig('DB_PASSWORD'     ,'').'";
          
          $IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
          ?>';
                          }
                  }
          ?>
          -bash-3.1$

          Comment

          • rino
            Junior Member
            • Jan 2007
            • 4

            #6
            Web Setup in 1.3.2

            Hi There, I am facing same prb configuring frontend.
            Almost at last step of the WEB configuration I have the following Warning messages.
            I have already doublechecked the permission on directories giving 777 to conf dir.
            I am now stuck at this point.
            PLease advice thank you
            Rino
            ================================================== ===========
            * CSetupWizard::include() [function.CSetupWizard-include]: Unable to access /var/www/html/zabbix/conf/zabbix.conf.php[/var/www/html/zabbix/include/setup.inc.php:627]
            * CSetupWizard::include(/var/www/html/zabbix/conf/zabbix.conf.php) [function.CSetupWizard-include]: failed to open stream: Permission denied[/var/www/html/zabbix/include/setup.inc.php:627]
            * CSetupWizard::include() [function.include]: Failed opening '/var/www/html/zabbix/conf/zabbix.conf.php' for inclusion (include_path='.:/usr/share/pear')[/var/www/html/zabbix/include/setup.inc.php:627]
            * Incorrect configuration file[/var/www/html/zabbix/conf/zabbix.conf.php]
            * fopen(/var/www/html/zabbix/conf/zabbix.conf.php) [function.fopen]: failed to open stream: Permission denied[/var/www/html/zabbix/include/setup.inc.php:414]
            ================================================== =============

            Comment

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

              #7
              It was already discussed somewhere elase. Something related to advanced security features if PHP (?) or a third party application.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • ReEzO
                Junior Member
                • Feb 2007
                • 7

                #8
                Frontend 1.3.2

                Did you guys get this working as yet ? I have the same problem if you can please assist me.

                Comment

                • choss
                  Junior Member
                  • Oct 2009
                  • 1

                  #9
                  Permissions Problems - check selinux

                  Had a whole bunch of permissions issues on step 7. Install. 'chmod -R 777 /var/www/html/zabbix' did nothing for me, but 'setenforce 0' as root to temporarily turn selinux off did; step 7. Install gave me a 'Configuration file: Ok'. Forgot how to modify the selinux config files, but I seem to remember it wasn't too hard - will check the FAQs later.

                  Comment

                  Working...