<br><br><div class="gmail_quote">On Mon, Jul 18, 2011 at 10:49 AM, Chris G <span dir="ltr"><<a href="mailto:cl@isbd.net">cl@isbd.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Mon, Jul 18, 2011 at 03:00:09PM +0100, Colin Law wrote:<br>
> On 18 July 2011 14:38, Amrit Pal Pathak <<a href="mailto:amritpalpathak1@gmail.com">amritpalpathak1@gmail.com</a>> wrote:<br>
> ><br>
> ><br>
> > On Mon, Jul 18, 2011 at 8:23 AM, Colin Law <<a href="mailto:clanlaw@googlemail.com">clanlaw@googlemail.com</a>> wrote:<br>
> >><br>
> >> On 18 July 2011 12:52, Amrit Pal Pathak <<a href="mailto:amritpalpathak1@gmail.com">amritpalpathak1@gmail.com</a>> wrote:<br>
> >> > Log of access.log file of apache when i was browing.<br>
> >> ><br>
> >> >  127.0.0.1 - - [18/Jul/2011:07:49:52 -0400] "GET /GNDEC-SMS-Service/<br>
> >> > HTTP/1.1" 500 274 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;<br>
> >> > rv:1.9.2.3)<br>
> >> > Gecko/20100423 Ubuntu/10.04 (lucid) FireDownload/2.0.1 Firefox/3.6.3"<br>
> >> ><br>
> >> ><br>
> >> > Log of error.log file:<br>
> >> ><br>
> >> > [Mon Jul 18 07:49:50 2011] [notice] Apache/2.2.14 (Ubuntu)<br>
> >> > PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch configured -- resuming normal<br>
> >> > operations<br>
> >> > [Mon Jul 18 07:49:52 2011] [error] [client 127.0.0.1] PHP Warning:<br>
> >> > require_once(/var/www/GNDEC-SMS-Service/config.php): failed to open<br>
> >> > stream:<br>
> >> > Permission denied in /var/www/GNDEC-SMS-Service/constants.inc on line 61<br>
> >> > [Mon Jul 18 07:49:52 2011] [error] [client 127.0.0.1] PHP Fatal error:<br>
> >> > require_once(): Failed opening required 'config.php'<br>
> >> > (include_path='.:/usr/share/php:/usr/share/pear') in<br>
> >> > /var/www/GNDEC-SMS-Service/constants.inc on line 61<br>
> >><br>
> >> Have you tried to understand the error messages?<br>
> >> It says error in file constants.inc at line number 61 which is<br>
> ><br>
> >       require_once(FILE_CONFIG);<br>
> >        And config.php file is still exist in same directory.<br>
><br>
> OK, so it appears to say it cannot open the file config.php due to a<br>
> permissions problem though your previous posts seem to suggest that it<br>
> should be ok.  I don't know much about php.  Now that we have got to<br>
> the nub of the problem has anyone else got a suggestion?<br>
><br>
</div></div>First things to check to my mind are:-<br>
<br>
    What is the value of FILE_CONFIG?  It *might* point at a file<br>
    somewhere else and not the config.php in the same directory as<br>
    constants.inc (or anyway the file one *thinks* it's referring to).<br>
<br>
    Then, what user is running apache (a ps will reveal this) and does<br>
    that user have permission to access the config.php file?<br>
<font color="#888888"><br></font></blockquote><div>            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.<br>Even it is browsing easily in my pals's systems. <br>
<br>Thanks <br><a href="http://amritpalpathak.blogspot.com">amritpalpathak.blogspot.com</a><br></div></div>