So the story is that a few days ago I uploaded a plugin file that I bought from an Indonesian software developer and is ready to upload it to the Digital Ocean VPS
But the limit is too small to pass the file I want to upload, in the end I tried uploading several times but it still failed to upload.
Don’t worry, it turns out that all you have to do is set a few settings, finally the plugin file was successfully uploaded to the VPS smoothly without any hiccups.
How to set php.ini on the Digitalocean Server
There are things that must be prepared, and I chose the easiest way, namely with the help of the Bitvise SSH Client and the like.

Just log in by entering the server IP, root user and droplet/server password, then enter the directory (example using apace).
The location of the file is in the /etc/php/7.4/apache2 folder
Continue with the steps below:
1. Open your php.ini file.
Double-click on the file you want to edit and a pop-up will appear / select edit using notepad.
2. Increase Memory Limit.
limit_memory = 750M
Sometimes, the default amount of memory used to process websites is insufficient. Websites require more than the default amount of memory. One can increase the limits according to the requirements.
3. Increase Maximum size for post:
post_max_size = 750M
post_max_size is the maximum size for all POST content data. It’s like supersets. Be sure to check post_max_size for all POST data types.
4. Increase the maximum file size for upload:
upload_max_filesize = 1000M
By default, a 2MB upload/import size limit in PHPMyAdmin is set. It makes it impossible for larger files to upload configuration files. Usually, on servers like CentOs, it’s located in /etc/php.ini. This is the maximum size for posted files only.
5. Increase Maximum Execution Time:
max_execution_time = 5000
max_execution_time is the time limit for how long the PHP script can run. Again, it can be adjusted according to needs. This is how the hosting provider can limit the use and abuse of server resources, especially for shared hosting.
6. Increasing Maximum Input Time:
max_input_time = 3000
Maximum input time is the maximum time a script is allowed to parse input data, such as POST and GET. This is usually enhanced to allow uploading of larger files.
7. Save / Save
Still in notepad, please click File and Save, then Close.
8. Restart Droplet on Power Off
After updating your php.ini file, make sure to restart the server.
Well, that’s what I did, and it turned out to be very easy. if it’s hard, just enjoy it.