Re: Help needed to set correct permissions

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

 



Tried that and it did not work. It's a permission error, not missing
file. It worked fine on my other server when I was running apache as
root.

Now I'm getting the permission error when I run it as a user.



On 02/04/2010 07:04 PM, Daniel Reinhardt wrote:
>
> --------------------------------------------------
> From: "Perl Whore" <whoreperl@xxxxxxxxx>
> Sent: 04 February, 2010 12:38
> To: <users@xxxxxxxxxxxxxxxx>
> Subject:  Help needed to set correct permissions
>
>> I'm running a default httpd install from the yum repository (Fedora
>> 12). The user and group that starts the httpd process is "apache"
>> (default configuration in httpd.conf).
>>
>> The default page is located in /var/www/html/
>>
>> I have a few users on this box for whom I need to setup virtual hosts
>> and their httpd root directory should be in their home directories,
>> i.e. /home/somebody/www
>>
>> This is an example configuration for a virtual host
>>
>> <VirtualHost *:80>
>> ServerName mydomain.com
>> ServerAlias www.mydomain.com
>> DocumentRoot /home/somebody/www/
>>
>> <Files ~ "^\.ht">
>> </Files>
>> <Directory />
>>    Options FollowSymLinks
>>    AllowOverride None
>>    Order deny,allow
>>    allow from all
>> </Directory>
>>
>> </VirtualHost>
>>
>> When I try to access any page on the virtual host, it says I do not
>> have permission. error_logs show the following
>>
>> [Wed Feb 03 23:55:51 2010] [error] [client 1.2.3.4] (13)Permission
>> denied: access to /favicon.ico denied
>>
>> I changed the group of /home/sombody to "apache" by exectuing chgrp -R
>> apache /home/somebody. What am I missing here?
>>
>> ---------------------------------------------------------------------
>> 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
>>
>
> Leave off the trailing / and that should fix your issue.  The server is looking for /home/user/www// and its not finding it.
>
> Thanks,
> Dan
>
> ---------------------------------------------------------------------
> 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
>
>
>

---------------------------------------------------------------------
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