FINAL UPDATE: Bitnami will include mod_xsendfile to the MAPP stack as of the next release planned for somewhere around April 8, 2013.
I have tryed compiling and installing mod_xsendfile
on my mappstack5.4.12-0. I have tryed two methods, but I have failed each time:
Method 1: Automatic install using apxs. Problem => When running command "apxs -cia mod_xsendfile.c", apxs is trying to install mod_xsendfile on my mac instead of installing it on the mappstack and fails because permission is denied when trying to create the .so file in that protected area.
Method 2: Compiling with apxs and manual installation in Apache. Problem => When running command "apxs -c mod_xsendfile.c" in a folder that I fully own, it produces a .slo file instead of a .so file.
How can I transform this .slo file into a .so file? I couldn't find any relevant result for .slo files in google, nor anything usefull about my 2 issues.
With a .so file, I could install mod_xsendfile
manually in Apache using the instructions found in the following references:
I can't post more than 2 urls, but here is the relevant part for each:
- web-developpeur-php.com/blog/article/mod-xsendfile-forcer-le-telechargement-avec-apache-php
- codeutopia.net/blog/2009/03/06/sending-files-better-apache-mod_xsendfile-and-php/
- elivz.com/blog/single/mod_xsendfile/
Apache manual for apxs:
http://httpd.apache.org/docs/2.2/programs/apxs.html
This is my first time using apxs and I don't know much about compiling c code
Thanks.
PS: I was able to install mod_xsendfile
on the MAPPstack following instructions in stackoverflow answer https://stackoverflow.com/a/9615149/2193168, but I'm getting errors when restarting Apache.
httpd: Syntax error on line 529 of /Applications/mappstack-5.4.12-0/apache2/conf/httpd.conf:
Cannot load /Applications/mappstack-5.4.12-0/apache2/modules/mod_xsendfile.so into server:
dlopen(/Applications/mappstack-5.4.12-0/apache2/modules/mod_xsendfile.so, 10):
Symbol not found: _ap_log_rerror
Referenced from: /Applications/mappstack-5.4.12-0/apache2/modules/mod_xsendfile.so
Expected in: flat namespace
in /Applications/mappstack-5.4.12-0/apache2/modules/mod_xsendfile.so