WordPress.org

Ready to get started?Download WordPress

Forums

Multiesite Byte Handling? (2 posts)

  1. mikachewie
    Member
    Posted 2 years ago #

    Does anyone know a workaround to get this working so I could stream video to iOS devices?

    I read this;

    "Serving video to iOS devices does not work in Multisite WordPress due to lack of byte-range support" Apparently iOS requires byte-range support for audio and video. Serving a static .mp4 file to an iOS from Apache works fine, but serving the same file from a WordPress MS 3.01 installation fails. This is because the file URL is rewritten to use ms-files.php. The PHP file does a readfile($file) on the file to serve it. This is incompatible with iOS devices and will fail."

    But I noticed people listing workarounds. I'm just wondering if anyone would know any? I've tried mod_xsendfile and it didn't work, or perhaps I didn't configure right. Not sure.

  2. mikachewie
    Member
    Posted 2 years ago #

    Finally have the solution;

    After 6 days of pure sadness, this ended up being the fix: http://maisonbisson.com/blog/post/14489/install-mod-x-sendfile-apache-wordpress/

    Here’s how to get it working on CentOS 5 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 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);

Topic Closed

This topic has been closed to new replies.

About this Topic