<br><br><div class="gmail_quote">On Mon, Jul 18, 2011 at 12:27 PM, 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 12:25:30PM -0400, Amrit Pal Pathak wrote:<br>
> On Mon, Jul 18, 2011 at 12:14 PM, Chris G <[1]<a href="mailto:cl@isbd.net">cl@isbd.net</a>> wrote:<br>
><br>
> On Mon, Jul 18, 2011 at 12:00:27PM -0400, Amrit Pal Pathak wrote:<br>
> > 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<br>
> to).<br>
> ><br>
> > Then, what user is running apache (a ps will reveal this) and<br>
> does<br>
> > that user have permission to access the config.php file?<br>
> ><br>
> > Well user is sudo and it has rights.I was accessing it<br>
> without<br>
> > any problem in my previous installed ubuntu but in newly installed<br>
> i<br>
> > didn't work.<br>
><br>
> Er, I think you're a little confused. There isn't a user 'sudo', that's<br>
> just a command for you to obtain root privileges from the command line.<br>
> What we need to know is what user the apache2 process is running as, you<br>
> need to run the command 'ps -ef | grep apache2' at the command line and<br>
> you will see several apache2 processes and their user, on my system I<br>
> see:-<br>
><br>
> chris$ ps -ef | grep apache2<br>
><br>
><br>
><br>
> it gives me following<br>
><br>
><br>
> root 1137 1 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k<br>
> start<br>
> www-data 1143 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> www-data 1144 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> www-data 1145 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> www-data 1146 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> www-data 1147 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> www-data 1765 1137 0 12:19 ? 00:00:00 /usr/sbin/apache2 -k start<br>
> amrit 1807 1790 0 12:22 pts/3 00:00:00 grep --color=auto apache2<br>
><br>
> Now what i have to check ?<br>
> is amrit have the privilages to access that directory? is it?<br>
><br>
</div></div>No, you need to check that the user www-data can access the file.<br>
<div><div></div><div class="h5">Here user is who?is it amrit ?<br></div></div></blockquote><div> if you know how to check , can you please tell me ?<br><br> Thanks for hellp<br> <a href="http://amritpalpathak.blogspot.com">amritpalpathak.blogspot.com</a> </div>
</div>