LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-18-2007, 05:25 PM   #1
GSound
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Not displaying images from a Mounted CIFS folder


Hello guys, i have a little problem.

I have set up a web server in a linux box [192.168.1.10]. The running web site uses images from a FileServer in other linux box [192.168.1.20].
So I cifs mounted a folder in the WebServer referring to the fileserver shared folder.

Mount command:
Code:
mount.cifs //192.168.1.20/share_images_folder$ /var/www/html/app1/images -o user=user,pass=1234567,rw,nolock
Samba Configuration:

Code:
[share_images_folder$] 
        comment = Test
        path = /usr/data/samba/shared_images
        guest ok = yes
        browseable = yes
        writeable = yes
        create mask = 777
        directory mask = 777
        follow symlinks = yes
It looks pretty fine. They can be seen by terminal console. But if I try to see them with the web application, they don't display.

If I go to:
Code:
http: //192.168.1.10/app1/images/x.jpg
It does not display. It shows a failed imagen icon with the X.
I've been looking for this solution for weeks. I not sure if it is related with any Samba or Apache Configuration.

Thank you for your time!
GSound

Last edited by GSound; 10-26-2007 at 03:38 PM.
 
Old 10-18-2007, 11:40 PM   #2
GSound
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Any ideas?? plz...
 
Old 10-19-2007, 12:17 PM   #3
GSound
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I was helped with this problem. There is an issue with the Apache Server.

I had to add these lines:

Code:
<Directory "/path-to-nfs-files"> 
EnableSendfile Off 
</Directory>
More info in: http://httpd.apache.org/docs/2.0/mod...EnableSendfile

Hope you can find it helpful,

GSound
 
  


Reply

Tags
apache, cifs, error, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem displaying images in browser Tank Jr Mandriva 1 09-26-2007 12:22 PM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-30-2006 11:30 PM
Quick way of displaying images Hydroksyde Linux - Software 0 10-02-2005 08:24 PM
displaying jpeg images Dave31836 Programming 2 01-25-2005 10:28 AM
apache not displaying images tlgates Linux - Networking 0 01-24-2005 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration