Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-08 Thread Craig White
On Wed, 2009-04-08 at 08:06 +0200, Uwe Kiewel wrote:
> Craig White schrieb:
> > On Tue, 2009-04-07 at 23:18 +0200, Uwe Kiewel wrote:
> >> max bianco wrote:
>  SELinux was in fact the issue !
> 
>  Thanks for your help
>  --
> >>>  If you think you need to add policy rules , ask on fedora-selinux
> >>> first. The webserver policy is pretty well tested and there are
> >>> several booleans that usually will cover most of your needs.
> >>>
> >> The question is: Does he need selinux? For a normal server it is too
> >> paranoid I think. SElinux is the first thing I switch off after the setup.
> > 
> > I can see how life's easier when you disable technologies that
> > contribute to the overall security of your systems but I can't see the
> > logic of boasting about it.
> > 
> 
> My point of view: Use the technologies you need in your specific case - 
> do not use every technology you could use.
> 
> Fedora enables SElinux by default - other distributions do not so.

Those are separate issues.

Fedora is an edge distribution that drives Linux development in ways
that few other distributions can. 

RHEL (and it's various derivatives) definitely use SELinux and I find
that like all other technologies, I begin to grasp how they work over
time so the more I am exposed to the care and feeding, the more I
understand.

Other distributions - some of them have them but their adoption is
miniscule because it's not mandatory.

Security always seems to mean that you have to endure the learning curve
in order to implement. SELinux...yeah, it's like that.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-07 Thread Uwe Kiewel

Craig White schrieb:

On Tue, 2009-04-07 at 23:18 +0200, Uwe Kiewel wrote:

max bianco wrote:

SELinux was in fact the issue !

Thanks for your help
--

 If you think you need to add policy rules , ask on fedora-selinux
first. The webserver policy is pretty well tested and there are
several booleans that usually will cover most of your needs.


The question is: Does he need selinux? For a normal server it is too
paranoid I think. SElinux is the first thing I switch off after the setup.


I can see how life's easier when you disable technologies that
contribute to the overall security of your systems but I can't see the
logic of boasting about it.



My point of view: Use the technologies you need in your specific case - 
do not use every technology you could use.


Fedora enables SElinux by default - other distributions do not so.

Uwe

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Mikkel L. Ellertson
Craig White wrote:
> 
> mkdir /var/www/html/csweb
> mount -o bind /stage/webpages/csweb /var/www/html
> 
> and if that works, makes user, selinux happy, then you could permanently
> add it to fstab
> 
> Craig
> 
If that does not make SELinux happy, try something like:

mount -o bind,context=system_u:object_r:httpd_sys_content_t:s0 \
/stage/webpages/csweb /var/www/html

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-07 Thread Craig White
On Tue, 2009-04-07 at 23:18 +0200, Uwe Kiewel wrote:
> max bianco wrote:
> >> SELinux was in fact the issue !
> >>
> >> Thanks for your help
> >> --
> >  If you think you need to add policy rules , ask on fedora-selinux
> > first. The webserver policy is pretty well tested and there are
> > several booleans that usually will cover most of your needs.
> > 
> The question is: Does he need selinux? For a normal server it is too
> paranoid I think. SElinux is the first thing I switch off after the setup.

I can see how life's easier when you disable technologies that
contribute to the overall security of your systems but I can't see the
logic of boasting about it.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-07 Thread Uwe Kiewel
max bianco wrote:
>> SELinux was in fact the issue !
>>
>> Thanks for your help
>> --
>  If you think you need to add policy rules , ask on fedora-selinux
> first. The webserver policy is pretty well tested and there are
> several booleans that usually will cover most of your needs.
> 
The question is: Does he need selinux? For a normal server it is too
paranoid I think. SElinux is the first thing I switch off after the setup.

Uwe

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-07 Thread max bianco
>
> SELinux was in fact the issue !
>
> Thanks for your help
> --
 If you think you need to add policy rules , ask on fedora-selinux
first. The webserver policy is pretty well tested and there are
several booleans that usually will cover most of your needs.



-- 
"Any fool can know. The point is to understand."

-Albert Einstein

Bored??
http://fiction.wikia.com/wiki/Fuqwit1.0

http://fiction.wikia.com/wiki/Coding_the_Magic_into_the_Eight_Ball

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ? (SOLVED)

2009-04-07 Thread Kevin Kempter
On Tuesday 07 April 2009 14:38:23 max bianco wrote:
> On Tue, Apr 7, 2009 at 4:26 PM, Uwe Kiewel  wrote:
> > max bianco wrote:
> >> On Tue, Apr 7, 2009 at 4:16 PM, Kevin Kempter  
wrote:
> >>> On Tuesday 07 April 2009 14:05:49 Uwe Kiewel wrote:
>  Kevin Kempter wrote:
> > On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
> >> Kevin Kempter wrote:
> >>> Hi All;
> >>>
> >>>
> >>> I have a laptop running Fedora10 x86_64.
> >>>
> >>> I started the default config and I can go to http://localhost and I
> >>> see the expected Fedora Test Page.
> >>>
> >>> I want to install a web site in /stage/webpages/csweb (/stage is a
> >>> separate file system) so I did this:
> >>>
> >>> 1) I checked to make sure the httpd.conf file was including the
> >>> conf.d/* files with this line in the httpd.conf file:
> >>>
> >>> Include conf.d/*.conf
> >>>
> >>>
> >>> 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
> >>> directory:
> >>>
> >>> #
> >>> # Setup directory: /stage/webpages/csweb
> >>
> >> Is that directory readable by the webserver? In that case I talk
> >> about file system permissions.
> >>
> >>
> >> THT,
> >> Uwe
> >
> > Here's the file system perms:
> >
> >
> > /stage:
> > (ls -l / | grep stage)
> > drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
> >
> >
> > /stage/webpages
> > (ls -l /stage | grep webpages)
> > drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
> >
> >
> > /stage/webpages/csweb
> > (ls -l /stage/webpages | grep csweb)
> > drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
> 
>  What does the error_log say?
> 
>  /var/log/httpd/error_log
> 
> 
>  HTH,
>  Uwe
> >>>
> >>> [Tue Apr 07 14:15:31 2009] [error] [client 127.0.0.1] (13)Permission
> >>> denied: access to /csweb/ denied
> >>
> >> SELinux?
> >
> > Good hint, Max.
> >
> > e.g. dmesg might show this
>
> SELinux stores its logs in : /var/log/audit/audit.log
>
> ausearch is the best tool to search this from the CLI or use the
> graphical audit log analysis tools.
> --
> "Any fool can know. The point is to understand."
>
> -Albert Einstein
>
> Bored??
> http://fiction.wikia.com/wiki/Fuqwit1.0
>
> http://fiction.wikia.com/wiki/Coding_the_Magic_into_the_Eight_Ball

SELinux was in fact the issue !

Thanks for your help 
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread max bianco
On Tue, Apr 7, 2009 at 4:26 PM, Uwe Kiewel  wrote:
> max bianco wrote:
>> On Tue, Apr 7, 2009 at 4:16 PM, Kevin Kempter  
>> wrote:
>>> On Tuesday 07 April 2009 14:05:49 Uwe Kiewel wrote:
 Kevin Kempter wrote:
> On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
>> Kevin Kempter wrote:
>>> Hi All;
>>>
>>>
>>> I have a laptop running Fedora10 x86_64.
>>>
>>> I started the default config and I can go to http://localhost and I
>>> see the expected Fedora Test Page.
>>>
>>> I want to install a web site in /stage/webpages/csweb (/stage is a
>>> separate file system) so I did this:
>>>
>>> 1) I checked to make sure the httpd.conf file was including the
>>> conf.d/* files with this line in the httpd.conf file:
>>>
>>> Include conf.d/*.conf
>>>
>>>
>>> 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
>>> directory:
>>>
>>> #
>>> # Setup directory: /stage/webpages/csweb
>> Is that directory readable by the webserver? In that case I talk about
>> file system permissions.
>>
>>
>> THT,
>> Uwe
> Here's the file system perms:
>
>
> /stage:
> (ls -l / | grep stage)
> drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
>
>
> /stage/webpages
> (ls -l /stage | grep webpages)
> drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
>
>
> /stage/webpages/csweb
> (ls -l /stage/webpages | grep csweb)
> drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
 What does the error_log say?

 /var/log/httpd/error_log


 HTH,
 Uwe
>>> [Tue Apr 07 14:15:31 2009] [error] [client 127.0.0.1] (13)Permission denied:
>>> access to /csweb/ denied
>>>
>>>
>>>
>> SELinux?
>>
> Good hint, Max.
>
> e.g. dmesg might show this

SELinux stores its logs in : /var/log/audit/audit.log

ausearch is the best tool to search this from the CLI or use the
graphical audit log analysis tools.
-- 
"Any fool can know. The point is to understand."

-Albert Einstein

Bored??
http://fiction.wikia.com/wiki/Fuqwit1.0

http://fiction.wikia.com/wiki/Coding_the_Magic_into_the_Eight_Ball

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Craig White
On Tue, 2009-04-07 at 13:33 -0700, Craig White wrote:
> On Tue, 2009-04-07 at 13:10 -0600, Kevin Kempter wrote:
> > Hi All;
> > 
> > 
> > 
> > I have a laptop running Fedora10 x86_64.
> > 
> > 
> > 
> > I started the default config and I can go to http://localhost and I
> > see the expected Fedora Test Page.
> > 
> > 
> > 
> > I want to install a web site in /stage/webpages/csweb (/stage is a
> > separate file system) so I did this:
> > 
> > 
> > 
> > 1) I checked to make sure the httpd.conf file was including the
> > conf.d/* files with this line in the httpd.conf file:
> > 
> > 
> > 
> > Include conf.d/*.conf
> > 
> > 
> > 
> > 
> > 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
> > directory:
> > 
> > 
> > 
> > 
> > #
> > # Setup directory: /stage/webpages/csweb
> > #
> > AliasMatch ^/csweb(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$
> > "/stage/webpages/csweb$1"
> > 
> > 
> > 
> > 
> > Options Indexes
> > AllowOverride None
> > Order allow,deny
> > Allow from all
> > 
> > 
> > 
> > 
> > 
> > I restarted apache (service httpd restart) and I go to
> > "http://localhost/csweb"; and I get this:
> > 
> > 
> > 
> > 
> > Forbidden
> > 
> > 
> > 
> > You don't have permission to access /csweb on this server
> 
> I was under the impression that httpd would automatically load all conf
> files in /etc/httpd/conf.d and such an addition was unnecessary.
> 
> httpd runs as user 'apache' and would necessarily have to be able to
> descend to the proper folder in this setup.
> 
> output of...?
> ls -ld /stage /stage/webpages /stage/webpages/csweb
> 
> Also, this kind of setup would cause all sorts of problems with selinux
> if it's on and would require some chcon adjustments. All of this could
> be avoided by simply doing a bind mount of /stage/webpages/csweb to
> something in /var/www/html...
> 
> mkdir /var/www/html/csweb
> mount -o bind /stage/webpages/csweb /var/www/html
> 
> and if that works, makes user, selinux happy, then you could permanently
> add it to fstab

um...

mount -o bind /stage/webpages/csweb /var/www/html/csweb

probably would work better ;-)

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Craig White
On Tue, 2009-04-07 at 13:10 -0600, Kevin Kempter wrote:
> Hi All;
> 
> 
> 
> I have a laptop running Fedora10 x86_64.
> 
> 
> 
> I started the default config and I can go to http://localhost and I
> see the expected Fedora Test Page.
> 
> 
> 
> I want to install a web site in /stage/webpages/csweb (/stage is a
> separate file system) so I did this:
> 
> 
> 
> 1) I checked to make sure the httpd.conf file was including the
> conf.d/* files with this line in the httpd.conf file:
> 
> 
> 
> Include conf.d/*.conf
> 
> 
> 
> 
> 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
> directory:
> 
> 
> 
> 
> #
> # Setup directory: /stage/webpages/csweb
> #
> AliasMatch ^/csweb(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$
> "/stage/webpages/csweb$1"
> 
> 
> 
> 
> Options Indexes
> AllowOverride None
> Order allow,deny
> Allow from all
> 
> 
> 
> 
> 
> I restarted apache (service httpd restart) and I go to
> "http://localhost/csweb"; and I get this:
> 
> 
> 
> 
> Forbidden
> 
> 
> 
> You don't have permission to access /csweb on this server

I was under the impression that httpd would automatically load all conf
files in /etc/httpd/conf.d and such an addition was unnecessary.

httpd runs as user 'apache' and would necessarily have to be able to
descend to the proper folder in this setup.

output of...?
ls -ld /stage /stage/webpages /stage/webpages/csweb

Also, this kind of setup would cause all sorts of problems with selinux
if it's on and would require some chcon adjustments. All of this could
be avoided by simply doing a bind mount of /stage/webpages/csweb to
something in /var/www/html...

mkdir /var/www/html/csweb
mount -o bind /stage/webpages/csweb /var/www/html

and if that works, makes user, selinux happy, then you could permanently
add it to fstab

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Uwe Kiewel
max bianco wrote:
> On Tue, Apr 7, 2009 at 4:16 PM, Kevin Kempter  
> wrote:
>> On Tuesday 07 April 2009 14:05:49 Uwe Kiewel wrote:
>>> Kevin Kempter wrote:
 On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
> Kevin Kempter wrote:
>> Hi All;
>>
>>
>> I have a laptop running Fedora10 x86_64.
>>
>> I started the default config and I can go to http://localhost and I
>> see the expected Fedora Test Page.
>>
>> I want to install a web site in /stage/webpages/csweb (/stage is a
>> separate file system) so I did this:
>>
>> 1) I checked to make sure the httpd.conf file was including the
>> conf.d/* files with this line in the httpd.conf file:
>>
>> Include conf.d/*.conf
>>
>>
>> 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
>> directory:
>>
>> #
>> # Setup directory: /stage/webpages/csweb
> Is that directory readable by the webserver? In that case I talk about
> file system permissions.
>
>
> THT,
> Uwe
 Here's the file system perms:


 /stage:
 (ls -l / | grep stage)
 drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage


 /stage/webpages
 (ls -l /stage | grep webpages)
 drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages


 /stage/webpages/csweb
 (ls -l /stage/webpages | grep csweb)
 drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
>>> What does the error_log say?
>>>
>>> /var/log/httpd/error_log
>>>
>>>
>>> HTH,
>>> Uwe
>> [Tue Apr 07 14:15:31 2009] [error] [client 127.0.0.1] (13)Permission denied:
>> access to /csweb/ denied
>>
>>
>>
> SELinux?
> 
Good hint, Max.

e.g. dmesg might show this

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread max bianco
On Tue, Apr 7, 2009 at 4:16 PM, Kevin Kempter  wrote:
> On Tuesday 07 April 2009 14:05:49 Uwe Kiewel wrote:
>> Kevin Kempter wrote:
>> > On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
>> >> Kevin Kempter wrote:
>> >> > Hi All;
>> >> >
>> >> >
>> >> > I have a laptop running Fedora10 x86_64.
>> >> >
>> >> > I started the default config and I can go to http://localhost and I
>> >> > see the expected Fedora Test Page.
>> >> >
>> >> > I want to install a web site in /stage/webpages/csweb (/stage is a
>> >> > separate file system) so I did this:
>> >> >
>> >> > 1) I checked to make sure the httpd.conf file was including the
>> >> > conf.d/* files with this line in the httpd.conf file:
>> >> >
>> >> > Include conf.d/*.conf
>> >> >
>> >> >
>> >> > 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
>> >> > directory:
>> >> >
>> >> > #
>> >> > # Setup directory: /stage/webpages/csweb
>> >>
>> >> Is that directory readable by the webserver? In that case I talk about
>> >> file system permissions.
>> >>
>> >>
>> >> THT,
>> >> Uwe
>> >
>> > Here's the file system perms:
>> >
>> >
>> > /stage:
>> > (ls -l / | grep stage)
>> > drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
>> >
>> >
>> > /stage/webpages
>> > (ls -l /stage | grep webpages)
>> > drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
>> >
>> >
>> > /stage/webpages/csweb
>> > (ls -l /stage/webpages | grep csweb)
>> > drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
>>
>> What does the error_log say?
>>
>> /var/log/httpd/error_log
>>
>>
>> HTH,
>> Uwe
>
> [Tue Apr 07 14:15:31 2009] [error] [client 127.0.0.1] (13)Permission denied:
> access to /csweb/ denied
>
>
>
SELinux?



-- 
"Any fool can know. The point is to understand."

-Albert Einstein

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Kevin Kempter
On Tuesday 07 April 2009 14:05:49 Uwe Kiewel wrote:
> Kevin Kempter wrote:
> > On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
> >> Kevin Kempter wrote:
> >> > Hi All;
> >> >
> >> >
> >> > I have a laptop running Fedora10 x86_64.
> >> >
> >> > I started the default config and I can go to http://localhost and I
> >> > see the expected Fedora Test Page.
> >> >
> >> > I want to install a web site in /stage/webpages/csweb (/stage is a
> >> > separate file system) so I did this:
> >> >
> >> > 1) I checked to make sure the httpd.conf file was including the
> >> > conf.d/* files with this line in the httpd.conf file:
> >> >
> >> > Include conf.d/*.conf
> >> >
> >> >
> >> > 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
> >> > directory:
> >> >
> >> > #
> >> > # Setup directory: /stage/webpages/csweb
> >>
> >> Is that directory readable by the webserver? In that case I talk about
> >> file system permissions.
> >>
> >>
> >> THT,
> >> Uwe
> >
> > Here's the file system perms:
> >
> >
> > /stage:
> > (ls -l / | grep stage)
> > drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
> >
> >
> > /stage/webpages
> > (ls -l /stage | grep webpages)
> > drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
> >
> >
> > /stage/webpages/csweb
> > (ls -l /stage/webpages | grep csweb)
> > drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
>
> What does the error_log say?
>
> /var/log/httpd/error_log
>
>
> HTH,
>   Uwe

[Tue Apr 07 14:15:31 2009] [error] [client 127.0.0.1] (13)Permission denied: 
access to /csweb/ denied


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Uwe Kiewel
Kevin Kempter wrote:
> On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
>> Kevin Kempter wrote:
>> > Hi All;
>> >
>> >
>> > I have a laptop running Fedora10 x86_64.
>> >
>> > I started the default config and I can go to http://localhost and I see
>> > the expected Fedora Test Page.
>> >
>> > I want to install a web site in /stage/webpages/csweb (/stage is a
>> > separate file system) so I did this:
>> >
>> > 1) I checked to make sure the httpd.conf file was including the conf.d/*
>> > files with this line in the httpd.conf file:
>> >
>> > Include conf.d/*.conf
>> >
>> >
>> > 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
>> > directory:
>> >
>> > #
>> > # Setup directory: /stage/webpages/csweb
>>
>> Is that directory readable by the webserver? In that case I talk about
>> file system permissions.
>>
>>
>> THT,
>> Uwe
> 
> 
> Here's the file system perms:
> 
> 
> /stage:
> (ls -l / | grep stage)
> drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
> 
> 
> /stage/webpages
> (ls -l /stage | grep webpages)
> drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
> 
> 
> /stage/webpages/csweb
> (ls -l /stage/webpages | grep csweb)
> drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
> 


What does the error_log say?

/var/log/httpd/error_log


HTH,
Uwe

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Kevin Kempter
On Tuesday 07 April 2009 13:24:00 Uwe Kiewel wrote:
> Kevin Kempter wrote:
> > Hi All;
> >
> >
> > I have a laptop running Fedora10 x86_64.
> >
> > I started the default config and I can go to http://localhost and I see
> > the expected Fedora Test Page.
> >
> > I want to install a web site in /stage/webpages/csweb (/stage is a
> > separate file system) so I did this:
> >
> > 1) I checked to make sure the httpd.conf file was including the conf.d/*
> > files with this line in the httpd.conf file:
> >
> > Include conf.d/*.conf
> >
> >
> > 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d
> > directory:
> >
> > #
> > # Setup directory: /stage/webpages/csweb
>
> Is that directory readable by the webserver? In that case I talk about
> file system permissions.
>
>
> THT,
>   Uwe

Here's the file system perms:

/stage:
(ls -l / | grep stage)
drwxrwxrwx  18 root root   4096 2009-04-07 10:45 stage

/stage/webpages
(ls -l /stage | grep webpages)
drwxrwxr-x  4 kkempter kkempter   4096 2009-04-07 10:46 webpages

/stage/webpages/csweb
(ls -l /stage/webpages | grep csweb)
drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb




-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Apache Config - how to make a directory accessable ?

2009-04-07 Thread Uwe Kiewel
Kevin Kempter wrote:
> Hi All;
> 
> 
> I have a laptop running Fedora10 x86_64.
> 
> I started the default config and I can go to http://localhost and I see
> the expected Fedora Test Page.
> 
> I want to install a web site in /stage/webpages/csweb (/stage is a
> separate file system) so I did this:
> 
> 1) I checked to make sure the httpd.conf file was including the conf.d/*
> files with this line in the httpd.conf file:
> 
> Include conf.d/*.conf
> 
> 
> 2) I added this file (named csweb.conf) to the /etc/httpd/conf.d directory:
> 
> #
> # Setup directory: /stage/webpages/csweb

Is that directory readable by the webserver? In that case I talk about
file system permissions.


THT,
Uwe


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines