LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2006, 01:42 PM   #1
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
FC5 Apache can't display symlinks


I just recently upgraded from FC2 to FC5. I have apache configured as my webserver. I also have a mount point (CIFS since the upgrade) that points to a windows share. In my www/html directory I have a symlink that points to this mount point. This windows share contains Word Docs that I serve to my users. Now when users click on one of the links Word opens up on their machine, but they get a blank document.

I can open these files from the server by going through the symlink. I can also see a listing of the directory in my browser. As an additional test I put a "test.html" document on this share and it opens in my browser without problem. I don't see any error messages in my error log or my access log, but I can't seem to open the Word docs (or Excel docs too).

Any suggestions?
 
Old 05-10-2006, 02:14 PM   #2
frankjoshua
Member
 
Registered: May 2006
Posts: 32

Rep: Reputation: 15
Are you using Firefox or Mozilla? It could be browser security settings. Check out this article.
 
Old 05-10-2006, 03:54 PM   #3
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I've tried Firefox and IE. Neither are working. They both worked up until I upgraded the server.
 
Old 08-01-2006, 03:52 PM   #4
onyxBlackstone
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Same here

Same issue here bricox, but it appears to be any binary file my issue is with JPG (All my images are on the windows share) tried a .doc too after I saw this post and got the same problem. But its fine with a text file ?!?!?!?!?

Anyone have any ideas or bricox do you solve it?
 
Old 08-04-2006, 08:28 AM   #5
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Resolved

Yes, I did finally manage to solve this. I don't remember where I saw the article to point me in this direction, but what I did was change EnableMMAP to off. By default it is on. That appeared to fix it.
 
Old 11-11-2006, 08:27 AM   #6
pruhnke
LQ Newbie
 
Registered: Aug 2005
Distribution: RH9, FC4
Posts: 13

Rep: Reputation: 0
Thumbs up Other fix

I am running FC5 with Apache 2.2.2, and I had the same problem. I am using the box to run a personal site to share pictures of my daughter with the family, GBs worth of pictures on my Windows PC being shared via CIFS.

Any way i found this post and tried setting EnableMMAP off, but found this did not fix my issue. I did however fix my issue by setting EnableSendfile to off. Once that fixed it turned it back up globally and shut is down just for the CIFS directory.
Code:
 
<Directory /var/www/html/images/winpic>
  EnableSendfile Off 
</Directory>
More information on this serivce can be found here:
http://httpd.apache.org/docs/2.2/mod...enablesendfile

Hope this helps others it took me a few days to find this before I rembered good ole linuxquestions.org
 
Old 11-22-2006, 01:31 AM   #7
rickyone
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Thanks! That made my day! Finally my stuff works!

I am also using FC5 with Apache 2.2.2.

During my debug session I found wget helpful.
I was trying with wget to get files from my Windows(CIFS) share, but other than .html files, I did not get anything (0 bytes).

I simply uncommented "EnableSendfile off" in my httpd.conf file and all started working fine!

--------------
wget http // myserver/myCIFSshare/front.gif
--02:58:08-- http // myserver/myCIFSshare/front.gif
=> `front.gif'
Resolving myserver... 127.0.0.1
Connecting to myserver|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9,320 (9.1K) [image/gif]

0% [ ] 0 --.--K/s

02:58:08 (0.00 B/s) - Connection closed at byte 0. Retrying.

--02:58:09-- http // myserver/myCIFSshare/front.gif.1
(try: 2) => `front.gif.1'
Connecting to myserver|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9,320 (9.1K) [image/gif]
front.gif.1 has sprung into existence.
Retrying.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5 - Apache and PHP not working well Boby Fedora 9 11-16-2006 07:16 AM
export display acts firewalled - FC5 shanec Linux - Networking 4 08-21-2006 11:43 AM
FC5 Display problem.. bruse Fedora 3 05-05-2006 08:05 AM
FC5 Graphic display issue abcd_test Fedora 2 04-27-2006 06:59 PM
Apache Symlinks gdw Linux - Networking 1 02-27-2003 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:32 PM.

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