How To Increase The PHP Max Upload Size In Hestia
Your website’s PHP configuration limits your ability to upload files. For security reasons, the maximum file upload size is set to 1 GB by default. However, you can always increase that limit if you would like to upload larger, higher-quality videos.
This article will explain how to increase the PHP maximum upload size by using Hestia. If you’d like to know how to increase the maximum upload size limit in a different control panel, check out our guides on how to do it through cPanel, Plesk, aaPanel, or FTP.
Note: You will receive your login information by email. If you cannot find the login details in your email inbox, check the support tickets in Vicetemple’s client area, or send us a message over live chat.
Step 1
To log into your Hestia control panel, enter your IP address or domain into a new browser tab.
Enter your username into the Username field, and click Next. Then, enter your password into the Password field and click Login.
Once you are logged in, click the cogwheel icon in the top right to access your panel’s settings.
Finally, select the php-fpm service, with your version of PHP in the middle — for example, if you have the 7.4 version, you would be looking for php7.4-fpm.
Step 2
Enter your new upload limit in the fields next to the following directives:
post_max_size
upload_max_filesize
Please keep in mind the values will have to match.
Note: K (kilobyte), M (megabyte), and G (gigabyte) are the only accepted measurements. If you use measurements like kb, Mb, or GB, your PHP configuration will display errors.
For example, if you want a 10 GB maximum file size limit, you should change the values to 10G.
Step 3
For your website to have enough time to process large files before timing out, you will need to update the following directives:
max_execution_time
max_input_time
If the values for these directives remain low and you attempt to upload a large file, the upload may be interrupted. That is why we recommend scaling the available time with file size limits.
For example, if you increase the upload limit by ten, you should also multiply the max time directives by the same value. Therefore, if you increase the upload limit from 1 GB to 10 GB, the max_execution_time and max_input_time values should be increased from 60 and 90 seconds to 600 and 900 seconds, respectively.
Step 4
After updating the values described under Step 2 and Step 3, click the Save button located to the right.
Your website will now accept files with sizes up to the indicated limit.