I asked my VPS hosting provider to install mod_xsendfile. Here is what I got in response: "I am sorry that I forgot to respond about mod_xsendfile. My research shows that the module has not been developed in over 4 years. Here is the developers website:


I would not suggest installing an Apache modules that has not kept pace with the develpment of Apache. In addition, the version of Apache is 2.4 on your server so it is most likely not compatible."

I would like to know, if mod_sendfile works fine on Apache 2.4. If not, are there other alternatives except readfile in PHP, as I want users to be able to download large files with authorization.


I stumbled upon this while doing other searches related to mod_xsendfile...

Anyway, mod_xsendfile is working perfectly well on Ubuntu 16.04, which has Apache version 2.4.18.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.