Re: Re: Samba or Apache issue?

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

 





致

         礼

唐明炎


2009-04-15

--------------------------------------------------------------------
Tabimado Co., Ltd Shanghai    Tang mingyan
Tel: +86-21-6351-5008 103
E-mail: tangmingyan@xxxxxxxxxxxxxxx
TABIMADO  CO.,LTD  SHANGHAI Technic dept.   tang mingyan
Room.2206,LT Square 500 Chengdu North Road,Shanghai,China. 200003

http://www.tabimado.net.cn/(Chinese)
http://big5.tabimado.net.cn/(TraditionalChinese)
http://travel.rakuten.co.jp/kaigai/(Japanese)
http://travel.rakuten.co.jp/en/(English)
http://kr-travel.rakuten.com/(Korean)
--------------------------------------------------------------------
 
发件人: Allen Chen
发送时间: 2009-04-10 03:23:00
收件人: General Red Hat Linux discussion list
抄送: 
主题: Re: Samba or Apache issue?

m.roth2006@xxxxxxx ??:
> Allen,
>
>   
> > Date: Thu, 09 Apr 2009 11:31:43 -0500
> > From: Allen Chen  <achen@xxxxxxxxxxxxxxxxxxxxxx >  
> >
> > I have a samba 2.0.22 and a apache 2.2.3 running on a separate RHEL4
> > machine.
> > If I change apache DocumentRoot to a mounted samba share, I cannot see
> > any static pages or files(images,css..) show up in broswer.In global
> > settings of httpd.conf, if I use EnableMMAP off and EnableSendfile off
> > options, this only changes apache access_log info from
> > "GET /mypage/test.html HTTP/1.1" 206 1106
> > to
> > "GET /mypage/test.html HTTP/1.1" 200 -
> >
> > But any php page works fine. It looks like apache doesn't like mounted
> > samba share. Any idea?
> >     
>
> What's the ownership and permissions on the samba share, and are they the same as who apache's running as?
>
>       mark
>
>   
Apache is running as nobody/nobody and all files&folders have 
nobody/nobody as the ownership.
I think there is no permissions issue. Because php page works fine in 
the same folder.
I have worked with samba and apache for 5 yrs. This is my first time to use
a mounted samba share as the DocumentRoot. I googled and found it is 
ralated to the httpd.conf:

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
EnableMMAP off
EnableSendfile off

Samba log has no error message.

Has anybody ever used mounted samba share as DocumentRoot for apache?


Allen
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux