You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

To upload a large sized file more than 2G in PHP, the OS must be based in 64bits instead of 32bits, and you should change some settings in /etc/php.ini and LimitRequestBody=0 in httpd.conf or virtualhost

In the /etc/php.ini, you should change some values like

post_max_size = 0
upload_max_filesize = 0

And one more a action you should do is adding LimitRequestBody 0 to your httpd.conf. In my case, I just added to vhost like below:

<VirtualHost *:80>
        ServerName partner.net
        DocumentRoot "/www/production/partner.net/"

        LimitRequestBody 0
</VirtualHost>

  • No labels