likebetter.com Posted October 13, 2006 Share Posted October 13, 2006 Either this is really weird or really stupid of me.I'm setting up a new Apache server with php5. I'm using the latest Apache (2.x.x) on Fedora FC5.Loading of PHP files works. But when I try to load any static file (txt, css, etc), it returns a blank file to the browser for files larger than 255 characters. It reports 200 OK and the content-length header is reported correctly (256 bytes). But no content.Drop off one character and apache sends the file fine with all the content.Any ideas? This is starting to feel like voodoo. Quote Link to comment Share on other sites More sharing options...
likebetter.com Posted October 13, 2006 Author Share Posted October 13, 2006 Okay, I figured it out, but it wasn't obvious. I neglected to mention that this FC5 box was running on vmware inside a windows xp machine. If that's not custom enough for you, the web root was set to a shared vmware directory. After much sleep I took another look at httpd.conf, and sure enough there was a option causing this behavior: EnableSendFileI set it to 'off' and everything started working again. I don't really understand why Apache would behave in this way when using NFS (especially because no errors were being written in the logs), but I'm just happy it's all working now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.