Unable to browse /var/www/directory
Amrit Pal Pathak
amritpalpathak1 at gmail.com
Mon Jul 18 16:31:35 UTC 2011
On Mon, Jul 18, 2011 at 12:27 PM, Chris G <cl at isbd.net> wrote:
> On Mon, Jul 18, 2011 at 12:25:30PM -0400, Amrit Pal Pathak wrote:
> > On Mon, Jul 18, 2011 at 12:14 PM, Chris G <[1]cl at isbd.net> wrote:
> >
> > On Mon, Jul 18, 2011 at 12:00:27PM -0400, Amrit Pal Pathak wrote:
> > > 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.
> >
> > Er, I think you're a little confused. There isn't a user 'sudo',
> that's
> > just a command for you to obtain root privileges from the command
> line.
> > What we need to know is what user the apache2 process is running as,
> you
> > need to run the command 'ps -ef | grep apache2' at the command line
> and
> > you will see several apache2 processes and their user, on my system
> I
> > see:-
> >
> > chris$ ps -ef | grep apache2
> >
> >
> >
> > it gives me following
> >
> >
> > root 1137 1 0 12:16 ? 00:00:00
> /usr/sbin/apache2 -k
> > start
> > www-data 1143 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > www-data 1144 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > www-data 1145 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > www-data 1146 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > www-data 1147 1137 0 12:16 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > www-data 1765 1137 0 12:19 ? 00:00:00 /usr/sbin/apache2 -k
> start
> > amrit 1807 1790 0 12:22 pts/3 00:00:00 grep --color=auto
> apache2
> >
> > Now what i have to check ?
> > is amrit have the privilages to access that directory? is it?
> >
> No, you need to check that the user www-data can access the file.
> Here user is who?is it amrit ?
>
if you know how to check , can you please tell me ?
Thanks for hellp
amritpalpathak.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110718/8774c8d6/attachment.html>
More information about the ubuntu-users
mailing list