Unable to browse /var/www/directory

Amrit Pal Pathak amritpalpathak1 at gmail.com
Mon Jul 18 16:00:27 UTC 2011


On Mon, Jul 18, 2011 at 10:49 AM, Chris G <cl at isbd.net> wrote:

> On Mon, Jul 18, 2011 at 03:00:09PM +0100, Colin Law wrote:
> > On 18 July 2011 14:38, Amrit Pal Pathak <amritpalpathak1 at gmail.com>
> wrote:
> > >
> > >
> > > On Mon, Jul 18, 2011 at 8:23 AM, Colin Law <clanlaw at googlemail.com>
> wrote:
> > >>
> > >> On 18 July 2011 12:52, Amrit Pal Pathak <amritpalpathak1 at gmail.com>
> wrote:
> > >> > Log of access.log file of apache when i was browing.
> > >> >
> > >> >  127.0.0.1 - - [18/Jul/2011:07:49:52 -0400] "GET /GNDEC-SMS-Service/
> > >> > HTTP/1.1" 500 274 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > >> > rv:1.9.2.3)
> > >> > Gecko/20100423 Ubuntu/10.04 (lucid) FireDownload/2.0.1
> Firefox/3.6.3"
> > >> >
> > >> >
> > >> > Log of error.log file:
> > >> >
> > >> > [Mon Jul 18 07:49:50 2011] [notice] Apache/2.2.14 (Ubuntu)
> > >> > PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch configured -- resuming
> normal
> > >> > operations
> > >> > [Mon Jul 18 07:49:52 2011] [error] [client 127.0.0.1] PHP Warning:
> > >> > require_once(/var/www/GNDEC-SMS-Service/config.php): failed to open
> > >> > stream:
> > >> > Permission denied in /var/www/GNDEC-SMS-Service/constants.inc on
> line 61
> > >> > [Mon Jul 18 07:49:52 2011] [error] [client 127.0.0.1] PHP Fatal
> error:
> > >> > require_once(): Failed opening required 'config.php'
> > >> > (include_path='.:/usr/share/php:/usr/share/pear') in
> > >> > /var/www/GNDEC-SMS-Service/constants.inc on line 61
> > >>
> > >> Have you tried to understand the error messages?
> > >> It says error in file constants.inc at line number 61 which is
> > >
> > >       require_once(FILE_CONFIG);
> > >        And config.php file is still exist in same directory.
> >
> > OK, so it appears to say it cannot open the file config.php due to a
> > permissions problem though your previous posts seem to suggest that it
> > should be ok.  I don't know much about php.  Now that we have got to
> > the nub of the problem has anyone else got a suggestion?
> >
> First things to check to my mind are:-
>
>    What is the value of FILE_CONFIG?  It *might* point at a file
>    somewhere else and not the config.php in the same directory as
>    constants.inc (or anyway the file one *thinks* it's referring to).
>
>    Then, what user is running apache (a ps will reveal this) and does
>    that user have permission to access the config.php file?
>
>             Well user is sudo and it has rights.I was accessing it without
any problem in my previous installed ubuntu but in newly installed i didn't
work.
Even it is browsing easily in my pals's systems.

Thanks
amritpalpathak.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110718/def01d88/attachment.html>


More information about the ubuntu-users mailing list