arrow-left arrow-right brightness-2 chevron-left chevron-right circle-half-full facebook-box facebook loader magnify menu-down rss-box star twitter-box twitter white-balance-sunny window-close
Changing php variables for wordpress in docker
1 min read

Changing php variables for wordpress in docker

Create a wordpress.ini file that contains the specific variables that you need.  
For example:

file_uploads = On
memory_limit = 256M
upload_max_filesize = 128M
post_max_size = 256M
max_execution_time = 300
max_input_vars = 5000

Save it to in wordpress folder

Then in docker (Synology client) - VOLUME

Point the file to the mount path:

/usr/local/etc/php/conf.d/wordpress.ini