Site Tools

 
 
 

how_to_increase_the_upload_limit_and_change_php_settings

How to increase the upload limit (and change PHP settings)

The maximum file size you can upload in eFrontPro depends on your actual server settings. In order to change this, you should have access to the server hosting your eFrontPro platform. Then follow the procedure below:

  1. Locate the php.ini file in effect. You can find this if you sign in as administrator and go to Maintenance→Information→PHP info and look for the value next to “Loaded Configuration File”.
  2. Use a text editor to open this file. You must have proper permissions to do so.
  3. Change the following values to be at least as large as the maximum file size you will be uploading:
    1. post_max_size: Recommended values are 50M or as large as the maximum file you will be uploading
    2. upload_max_filesize: Recommended values are 50M or as large as the maximum file you will be uploading
    3. memory_limit: Recommended values are at least 256M or as large as the maximum file you will be uploading

After you're done with your changes, you should save the file and restart your web server. You can verify that the changes have taken effect if you visit the PHP info page again and look for the values next to the settings you changed (upload_max_filesize for example)

Note: if you're uploading extremely large files (more 500MB each), then you might need to also tweak the following settings:

  • max_input_time in php.ini
  • max_execution_time in php.ini
  • FcgidMaxRequestLen in Apache, if you're using fastcgi
  • FcgidBusyTimeout in Apache, if you're using fastcgi
  • FcgidIOTimeout in Apache, if you're using fastcgi
  • Timeout in Apache
  • LimitRequestBody in Apache