Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-18-2007, 06:25 PM   #1
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 []. The running web site uses images from a FileServer in other linux box [].
So I cifs mounted a folder in the WebServer referring to the fileserver shared folder.

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

        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:
http: //
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!

Last edited by GSound; 10-26-2007 at 04:38 PM.
Old 10-19-2007, 12:40 AM   #2
LQ Newbie
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Any ideas?? plz...
Old 10-19-2007, 01:17 PM   #3
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:

<Directory "/path-to-nfs-files"> 
EnableSendfile Off 
More info in:

Hope you can find it helpful,



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 01:22 PM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-31-2006 12:30 AM
Quick way of displaying images Hydroksyde Linux - Software 0 10-02-2005 09:24 PM
displaying jpeg images Dave31836 Programming 2 01-25-2005 11:28 AM
apache not displaying images tlgates Linux - Networking 0 01-24-2005 04:06 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:44 AM.

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