Hello,
I hope that somebody would be able to help me with this. This is my server configuration:
Droplet: 2 GB Memory / 1 Intel vCPU / 60 GB Disk Panel: CyberPanel Web Server: LiteSpeed PHP Version: 8.2.15 (64-bit support) PHP SAPI: litespeed PHP Settings: Max Input Variables: 1000 Time Limit: 300 Memory Limit: 512M Max Input Time: 300 Upload Max Filesize: 512M Post Max Size: 512M
I am unable to upload files larger than 100MB from both the back and front end of my two WordPress sites. Files under 100MB upload successfully, but files over 100MB get stuck at 1%.
To rule out any conflict with the Wordpress/Plugin/Theme I created a simple upload script inside the root directory and I had exactly the same issue, I was able to upload any file under 100MB just fine, but anything over 100MB would do nothing.
I contacted the DO support if there is any server limitations, but they are basically just giving me generic answers that do not explain the issue.
Any help would be really appreciated.
Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi,
Thank you both for your time trying to help me, but it turns out that the limit of why I am unable to upload any file over 100 MB is not related to Wordpress, Cyberpanel or DO, but to Cloudflare.
I use free CF and it has a 100MB client limit for uploading any file to any part of the site that goes through the CF proxy, when I turned CF off and just used it for DNS hosting I could upload any file over 100MB with no problem.
Somebody just totally randomly mention this somewhere else and it all made sense, so maybe this will help somebody else in the future.
Heya,
Most on the topic has been said, what I can offer more as an advice is to check some limits in CyberPanel that might be interfering with the upload limits.
ALso make sure you are updating the proper php.ini and that it’s actually geting these updates you are adding.
To do so, add an info.php file in your WordPress directory with the content of
Once you open it, you’ll see which php your website is loading, where is the config file, what are the limits and so on.
Heya, @bighomerx
You can modify the PHP configuration files directly. Here’s how you can do it:
your_username
with your actual username andyour_droplet_ip
with your Droplet’s IP address:The PHP configuration file,
php.ini
, controls many PHP settings, including file upload limits. The location ofphp.ini
depends on the PHP version and the server configuration. You can typically find it in/etc/php/{version}/apache2/
if you are using Apache or/etc/php/{version}/cli/
or/etc/php/{version}/fpm/
if you are using Nginx. You can use thephp -i | grep "Loaded Configuration File"
command to find the exact path.Once you’ve located the
php.ini
file, open it in a text editor like nano or vim. For example, if you’re using nano and PHP 8.1, you might use:Look for the following lines:
upload_max_filesize
: This directive sets the maximum size of an uploaded file.post_max_size
: This directive sets the max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger thanupload_max_filesize
.Increase these values as needed, for example:
Replace
64M
with the size you need.Or for Nginx:
upload_max_filesize
andpost_max_size
values. You can create a file namedinfo.php
in your WordPress root directory with the following content:Access this file in your browser (http://yourdomain.com/info.php), and check the updated values. Don’t forget to delete this file after checking for security reasons.
Let me know how it goes!