point in the right direction?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kovax

    point in the right direction?

    I am receiving the following error when I attempt to go to a php
    webpage on my server (Apache installed on RH FC 5).

    Warning: main(conf/config.php) [function.main]: failed to open stream:
    Permission denied in /var/www/html/snortcon/index.php on line 3

    Fatal error: main() [function.requir e]: Failed opening required
    'conf/config.php' (include_path=' .:/usr/share/pear') in
    /var/www/html/snortcon/index.php on line 3

    Php is working, as I have another directory on the webserver that is
    utilizing php.

    I appreciate any direction on this. I just do not even know what this
    means. Obviously, I am fairly new to php.

    Kovax

  • David Haynes

    #2
    Re: point in the right direction?

    Kovax wrote:[color=blue]
    > I am receiving the following error when I attempt to go to a php
    > webpage on my server (Apache installed on RH FC 5).
    >
    > Warning: main(conf/config.php) [function.main]: failed to open stream:
    > Permission denied in /var/www/html/snortcon/index.php on line 3
    >
    > Fatal error: main() [function.requir e]: Failed opening required
    > 'conf/config.php' (include_path=' .:/usr/share/pear') in
    > /var/www/html/snortcon/index.php on line 3
    >
    > Php is working, as I have another directory on the webserver that is
    > utilizing php.
    >
    > I appreciate any direction on this. I just do not even know what this
    > means. Obviously, I am fairly new to php.
    >
    > Kovax
    >[/color]

    This says:
    1. on line 3 of /var/www/html/snortcon/index.php there is a require() or
    require_once() that is failing.
    2. The required file is 'conf/config.php'
    3. PHP will look for this file in the following areas:
    a) .
    b) /usr/share/pear

    I think you need to adjust your include_path in php.ini to point to the
    area where the conf directory that contains config.php is held.

    -david-

    Comment

    Working...