Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

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.init


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

Code Block
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:

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

        LimitRequestBody 0
</VirtualHost>