• Resolved paulisawoof

    (@paulisawoof)


    i need to be able to upload video files, large video files like 1 or 2 gb max.
    large file uploads through media manager fail in a couple of different ways.
    either the upload finishes and immediately restarts uploading again, or it finishes and just shows “http error”
    ive tried everything, im on a vps and can edit all server configs.
    my php ini are set for max post and filesize of 2gb.

    the weird thing is the large files are there in the /tmp folder, just under a scrambled name but i can rename, chown, move and use them, so they upload ok but something goes wrong with them being imported into the media library and placed in the uploads directory.
    files under about 200m upload fine.
    any ideas or help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paulisawoof

    (@paulisawoof)

    asking a different way,

    what are the parameters in wordpress that could limit the upload size.

    i believe php.ini settings are ample for large uploads, and they ftp up fine, so it must be in the code.
    thanks.

    Thread Starter paulisawoof

    (@paulisawoof)

    ok posting solution in case someone with same problem finds this thread.
    the problem was not wordpress but server config. php handles the uploads through the media uploader, hence edit php.ini for the max size limit etc, but many servers use a second module with php called fastcgi or fcgid.
    switching my server site config from fcgid to either apache handler or php cgi from fcgid solved it. on my setup i used the virtualmin cp, under the virtual server for my site – server config – website options –

    and there is a selection for :
    PHP script execution mode
    Apache mod_php (run as Apache’s user)
    CGI wrapper (run as virtual server owner)
    FCGId (run as virtual server owner)

    using both apache and CGI wrapper worked ok for large uploads for me. stayed with CGI wrapper.

    without virtualmin i believe the relevant parameters are in your virtual server .conf file –
    /etc/apache2/sites-available/domain.com.conf
    on my ubuntu 12 server.

    tried to reconfig fcgid before switching increasing maxrequestlen and such but no dice.
    good luck.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Large File Uploads’ is closed to new replies.