Re: Forbidden error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> chmod -R 755 /path/to/document/root

you should replace /path/to/document/root with the actual path to your
document root - the path to the folder you want apache to make
accessible. In my case for example, I keep my websites at /var/www
(which is the default location). You can check the location of your
document root in your config files, default under /etc/apache2. The
file you should be looking for from there is sites-available/default.
Check for the value behind DocumentRoot, and use that to replace
/path/to/document/root.

And, like Kirst says, find out what the value of apache's User is.

Evert

On Tue, Aug 19, 2008 at 2:58 PM, Ch Praveena <ps050202@xxxxxxxxx> wrote:
> Ok.. But please confirm me what exactly do I need to give the  command
> meaning "/path/to/document/root"?
>
> Is it something like the PREFIX path? or anything else..
>
>
>
> 2008/8/19 Evert Lammerts <evert.lammerts@xxxxxxxxx>
>>
>> How about :
>> >> chmod -R 755 /path/to/document/root
>>
>> I'm guessing that since configure went well, and apache actually works
>> (you're getting a 403 response), your prefix shouldn't be a problem.
>>
>> Evert
>>
>> On Tue, Aug 19, 2008 at 2:44 PM, Ch Praveena <ps050202@xxxxxxxxx> wrote:
>> > Very happy to see your response :)
>> >
>> > I ve got the message as follows in my command line:
>> >
>> > [root@praveena ~]# chown www-user /path/to/document/root
>> > chown: `www-user': invalid user
>> > [root@praveena ~]# chown www-data /path/to/document/root
>> > chown: `www-data': invalid user
>> >
>> > NOTE: I ve not given the default PREFIX path while configuring the httpd
>> > home directory.
>> >
>> >
>> >
>> > 2008/8/19 Evert Lammerts <evert.lammerts@xxxxxxxxx>
>> >>
>> >> > 1. I have started linux from the ROOT user.
>> >>
>> >> It doesn't matter which user you've started apache with. The
>> >> permissions apache works with are by default set to 'www-user' (in
>> >> apache2.conf), meaning that www-user needs to have access to your
>> >> document root folder.
>> >>
>> >> Check which folder is your document root and I think this command
>> >> should ix your problem:
>> >> >> chown www-user /path/to/document/root
>> >>
>> >> Try and let us know
>> >>
>> >> ---------------------------------------------------------------------
>> >> The official User-To-User support forum of the Apache HTTP Server
>> >> Project.
>> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> >>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > -Coolest Regards,
>> >
>> > Praveena Chalamcharla,
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>
>
>
> --
>
> -Coolest Regards,
>
> Praveena Chalamcharla,
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux