Ad Widget

Collapse

failed to open stream: Permission denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dwhite
    Junior Member
    • Nov 2010
    • 2

    #1

    failed to open stream: Permission denied

    I've reinstalled ubuntu and zabbix twice now and each time I get to the end I get this error opening the webpage

    * include(/etc/zabbix/dbconfig.php): failed to open stream: Permission denied[/home/zabbix/public_html/include/config.inc.php:131]

    * include(): Failed opening '/home/zabbix/public_html/conf/zabbix.conf.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')[/home/zabbix/public_html/include/config.inc.php:131]
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    This is obviously a 'rights'/chroot issue. Both locations of the file look strange to me.

    Why is your dbconfig.php in /etc/zabbix/ and not under the web-directory? Why are you running zabbix under a user directory and not in /var/www/ or as a normal apache virtual host?

    Maybe you can share a little more detail about your setup and the way you installed zabbix?

    Comment

    • dwhite
      Junior Member
      • Nov 2010
      • 2

      #3
      setup

      I used the wiki directions for ubuntu:

      http://www.zabbix.com/wiki/howto/ins.../ubuntuinstall

      some things were a little different because I used apt-get install to do that actual install.

      for the web section I followed these commands

      mkdir /home/zabbix/public_html
      cp -R frontends/php/* /home/zabbix/public_html/

      and added this

      Alias /zabbix /home/zabbix/public_html/
      <Directory /home/zabbix/public_html>
      AllowOverride FileInfo AuthConfig Limit Indexes
      Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
      <Limit GET POST OPTIONS PROPFIND>
      Order allow,deny
      Allow from all
      </Limit>
      <LimitExcept GET POST OPTIONS PROPFIND>
      Order deny,allow
      Deny from all
      </LimitExcept>
      </Directory>

      the major problem is there's no frontends directory in my install so I had to go find the files. I do believe this is most of the problem but am not good enough with ubuntu permissions to correct the problem.

      Comment

      • EnigmA-X
        Senior Member
        Zabbix Certified Specialist
        • Oct 2010
        • 116

        #4
        Ok. When you apt-get the packages, everything will be installed for you. The guide you are referring to, suggests to use the source package (which is different from the apt-get package in many ways).

        It looks to me that you now have some funny combination between package installation and source configuration.

        I suggest to either follow the guide (for a 100%) or install the package with apt-get. Not a piece from one and another piece from the other.

        Comment

        Working...