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:
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.
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.
Now repeat the same instructions provided at STEP 3 for all the others values.
Go back to STEP 1 or you will deal with karma 🙂
Log into your WordPress and go to Media / Add New. If everything went well, you will see the Maximum upload file size: 128 MB.
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.X – PHP 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 / January 11th, 2021 at 5:50 AM