In DSM 7, Synology’s Web Station application has undergone some changes. Surely you’re wondering how to change the upload_max_filsize value from 2 MB to 512 MB on 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:
Note: The images and instructions below work for PHP 7.3 – 7.2 – 7.1 – 7.0 too, even though they are about PHP 7.4.
First of all, open the application named Web Station. Once opened, in the left menu click on Web Service Portal / select the current Default Portal, then click Edit. Follow the instructions in the image below.
Once you click on Edit, the following screen will open. In the dropdown menu select the PHP 7.4 Default Profile then click Save. Follow the instructions in the image below.
Note: If you can’t find PHP 7.4 in the dropdown menu, that means that you don’t have PHP 7.4 installed. In this case, go to Package Center and Install PHP 7.4
Go back to Web Station. In the left menu click on Script Language Settings / select the current Default Profile, then click Edit. Follow the instructions in the image below.
Once you click on Edit, the following screen will open. Go to the Core tab, then type in the following in the search box: upload_max_filesize. Change the default value from 2M to 512M then click Save. Follow the instructions in the image below.
Now repeat the same instructions provided at STEP 5 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: 512 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 even though they are about PHP 7.4.X
Note: Read my article Pay For Web Hosting vs Hosting on My Synology NAS.
Note: If you encounter any problems, just contact me.
Note: Find out how to change Upload_Max_Filesize on WordPress if you are using DSM 6.2.3
This post was updated on Sunday / December 27th, 2020 at 11:36 PM