Menu

#5 Permission Denied

open
5
2003-07-01
2003-07-01
Anonymous
No

I have phpmyadmin running on the same box without issue, so
Apache is working with mod_php and mysql nicely. This is the error
after I install the package and attempt to access it.

If this can get resolved, I'll create a ebuild for it for use with Gentoo.
Thanks!

Warning: main(admin/config/general.php): failed to open stream:
Permission denied in /home/httpd/htdocs/phpInv-0.7.0/global.php on
line 35

Fatal error: main(): Failed opening required 'admin/config/general.php'
(include_path='.:/usr/lib/php') in
/home/httpd/htdocs/phpInv-0.7.0/global.php on line 35

Discussion

  • Joel Majka

    Joel Majka - 2003-07-02

    Logged In: YES
    user_id=721009

    All fixed. chown & chgrp everything to the apache user.

    Also, it should be noted in the docs that Register Globals
    needs to be set to "On" in order for the search to work. This
    setting defaults to "Off" since 4.2.

    Thanks for the project!

     
  • Nobody/Anonymous

    Logged In: NO

    I had a similar problem and realised that all files were owned
    by 1000 1000 (redhat 9) after unzip. I used "chown -R
    apache.apache *" to change ownership to apache so it would
    have access to these files which fixed the problem

    Martin

     
  • Nobody/Anonymous

    Logged In: NO

    Change file permission to that file. ...

     
  • Anonymous

    Anonymous - 2004-09-16

    Logged In: YES
    user_id=679436

    You need to chmod your general.php file with read access for
    all.

     
  • Jay Hann

    Jay Hann - 2005-04-30

    Logged In: YES
    user_id=1269941

    This happend to me as well, but only on linux, and not on
    Windows.

    To resolve my issue, I had to issue the following command:

    chmod 644
    /home/httpd/htdocs/phpInv-0.7.0/admin/config/general.php

    in order to give read access to that file to Apache connections.

    And if I remember correctly, I had to do it as root.

    -Jay

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.