How To Change Upload_Max_Filesize on Synology NAS WordPress

How To Change Upload_Max_Filesize on Synology NAS WordPress

If you are hosting your website on a Synology NAS device, you’ve surely been wondering how to change the upload_max_filsize value from 2MB to 128MB for a higher upload capacity. In this article I will teach you not only how to change the upload_max_filesize value for your WordPress website hosted on a Synology NAS, but also how to change all the other PHP values to the maximum values:

Note: The guide below is for DSM 6.2.4 – For DSM 7 check here: How To Change Upload_Max_Filesize on WordPress Running DSM 7

upload_max_filesize 128M
post_max_size 128M
memory_limit 256M
max_execution_time 300
max_input_time 300

  • STEP 1

Please Support My Work by Making a Donation.

  • STEP 2

Go to Web Station. In the left sidebar click on PHP Settings then double click on Default PHP Profile. Follow the instructions in the image below.

1 Step Upload_Max_Filesize Synology NAS WordPress

  • STEP 3

After you double click on Default PHP Profile, the window below will open. Go to the Core tab then type in upload_max_filesize in the search box. Change the default value from 2M to 128M then click OK.

Note: Sometimes you have to repeat the operation for the settings to be saved. If your settings aren’t saved after you click OK the first time, perform the exact same operation again in order for the settings to be saved. Follow the instructions in the image below.

2 Step Upload_Max_Filesize Synology NAS WordPress

  • STEP 4

Now repeat the same instructions provided at STEP 3 for all the other values.

post_max_size 128M
memory_limit 256M
max_execution_time 300
max_input_time 300

  • STEP 5

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 6

Log into your WordPress Dashboard and go to Media / Add New. If everything went well, you will see the Maximum upload file size: 128 MB.

Upload_Max_Filesize Synology NAS WordPress

Note: Many people believe that it’s enough to add a file called php.ini in the main WordPress folder to change the upload_max_filsize value, but this is not the case when hosting a website from home on a Synology NAS server. Not even adding the variables to the wp-config.php WordPress file will solve the problem. The only 100% working solution is to change the settings directly in Web Station. The instructions above work perfectly with PHP 7.0.XPHP 7.2.X – PHP 7.3.X
Note: Sometimes you have to repeat the operation for the settings to be saved. So on STEP 3, if your settings aren’t saved after you click OK, perform the exact same operation again in order for the settings to be saved. This issue occurs because of a bug in Web Station.
Note: Read my article Pay For Web Hosting vs Hosting on My Synology NAS.
Note: If you encounter any problems, just contact me.

This post was updated on Tuesday / August 31st, 2021 at 2:08 AM