How To Change Upload_Max_Filesize on Synology NAS WordPress

How To Change Upload_Max_Filesize on Synology NAS WordPress

Surely you’re wondering how to change the upload_max_filsize value from 2MB to 128MB in your WordPress website hosted on a Synology NAS device. In this article I will teach you not only how to change the upload_max_filesize value, but also how to change all the following PHP values to the maximum values:

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. On 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 Core tab, then type in the following in the search box: upload_max_filesize. 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, 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 in STEP 3 for all the others 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 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 is 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 Monday / August 3rd, 2020 at 2:01 PM