|
| Re: I want to use ~user/public_html |
 |
Tue, 26 Feb 2008 13:09:38 -050 |
R.A.M. wrote:
> Hello
> I have downloaded and installed Apache in Fedora Linux. I want to use
> ~robert/public_html directory with MyWebsite subfolder, but when I try to
> open localhost/~robert/MyWebsite/ I receive:
> Forbidden
> You don't have permission to access /~robert/MyWebsite/ on this
> server.
> In error log I can see:
> [Fri Feb 22 08:29:46 2008] [error] [client 127.0.0.1]
(13)Permission
> denied: access to /~robert/MyWebsite/ denied
> Someone told me that 'permission denied' means that it is a filesystem
> permission problem or a SELinux configuration problem, not an apache
> configuration problem.
>
> I have created public_html in my /home/robert directory. In httpd.conf
> file I have set:
> <IfModule mod_userdir.c>
> UserDir public_html
> </IfModule>
> <Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit
> Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> <Limit GET POST OPTIONS>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS>
> Order deny,allow
> Deny from all
> </LimitExcept>
> </Directory>
> But when I try to open localhost/~robert/MyWebsite/ I receive
> Forbidden
> You don't have permission to access /~robert/MyWebsite/ on this
> server.
> I also assigned public_html and MyWebsite directories to apache group,
> but it didn't help. Executable attribute was added to ~robert and
> public_html. I also added r-x attributes for apache group.
>
> Could you help me please?
> RAM
Sounds like a chmod problem.
On the Index, do a chmod a+r
Chmod your home directory, and the directory that the index.html is
in with a+r
|
| Post Reply
|
| I want to use ~user/public_html |
 |
Tue, 26 Feb 2008 14:46:51 +010 |
Hello
I have downloaded and installed Apache in Fedora Linux. I want to use
~robert/public_html directory with MyWebsite subfolder, but when I try to
open localhost/~robert/MyWebsite/ I receive:
Forbidden
You don't have permission to access /~robert/MyWebsite/ on this
server.
In error log I can see:
[Fri Feb 22 08:29:46 2008] [error] [client 127.0.0.1] (13)Permission
denied: access to /~robert/MyWebsite/ denied
Someone told me that 'permission denied' means that it is a filesystem
permission problem or a SELinux configuration problem, not an apache
configuration problem.
I have created public_html in my /home/robert directory. In httpd.conf
file I have set:
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
But when I try to open localhost/~robert/MyWebsite/ I receive
Forbidden
You don't have permission to access /~robert/MyWebsite/ on this
server.
I also assigned public_html and MyWebsite directories to apache group,
but it didn't help. Executable attribute was added to ~robert and
public_html. I also added r-x attributes for apache group.
Could you help me please?
|
| Post Reply
|
| Re: I want to use ~user/public_html |
 |
Thu, 28 Feb 2008 13:43:13 +010 |
pk.elektron wrote:
> On the Index, do a chmod a+r
> Chmod your home directory, and the directory that the index.html is
> in with a+r
Thanks, but...
I have already had a+r (I have checked).
So it doesn't help.
|
| Post Reply
|
| Re: I want to use ~user/public_html |
 |
Thu, 28 Feb 2008 17:24:48 -050 |
R.A.M. wrote:
> pk.elektron wrote:
>> On the Index, do a chmod a+r
>> Chmod your home directory, and the directory that the index.html is
>> in with a+r
>
> Thanks, but...
> I have already had a+r (I have checked).
> So it doesn't help.
> /RAM/
Did you make sure it can read/execute the modules you have loaded too?
What about the directories?
Are you sure that SElinux is configured properly?
Have you tried just using a simple html page with no modules loaded?
What happens if you assign it to the apache default directory /var/log/?
This is an interesting problem...
Tell us how it goes.
|
| Post Reply
|
| Re: I want to use ~user/public_html |
 |
Tue, 04 Mar 2008 14:45:33 +010 |
pk.elektron wrote:
> Are you sure that SElinux is configured properly?
> Have you tried just using a simple html page with no modules loaded?
I created simple test.html page in /home/robert/public_html. When I tried to
open it in a browser, I got "403 Forbidden". When I opened
setroubleshoot
window I noticed a message:
SELinux is preventing the http daemon from reading users' home
directories.
with suggestion to run a command:
setsebool -P httpd_enable_homedirs=1
I executed this command and rebooted my computer but it didn't help.
So I suspect that I should perform SELinux configuration, but I don't know
how.
Could you help me please?
|
| Post Reply
|
|
|
|
|
|
|
|
|
|