Multisites, upload issues, and iOS!

After 6 days of pure sadness, this ended up being the fix: http://www.technowut.com/2012/05/14/how-to-stream-videos-to-ios-devices-with-multisite-wordpress/

Here’s how to get it working on CentOS 6 with the packaged Apache httpd:

Nils Maier wrote the module for Apache httpd. Download the source and take some time to review the docs there.

Compile and install the module on the command line:
/usr/sbin/apxs -cia mod_xsendfile.c

NOTE: I just used yum. 🙂

yum install mod_xsendfile

If you don’t have apxs, you probably need to install the httpd-devel package.

Get that with this command:

 yum install httpd-devel

Once compiled and installed, you’ll need to enable it in your httpd.conf or .htaccess (I enabled it by putting a file in my conf.d directory). These are the directives you’ll need to set:
*(Note, I put this in my /etc/httpd/conf.d/wordpress.conf file instead of the httpd.conf.)

 XSendFile on
    XSendFileAllowAbove on

Now restart Apache httpd

 /sbin/service httpd restart

Finally, you’ll need to enable the support in your wp-config.php:
define(‘WPMU_SENDFILE’, true);