which php.ini file should i edit for 64mb uploads in wordpress docker
which php.ini file should i edit for 64mb uploads in wordpress docker
Most likely second if you run php in fpm mode.
1ReplyYou can also spawn php info file and it will tell you which one is being used
1ReplyIf that's a screenshot from your docker host, none. Your wordpress docker image uses it's own config file, which may or may not be easily reconfigurable. Check the documentation.
1Replyi am hosting this on my raspberry pi, where can i find the docker config file
1Reply
Check the loaded config files via phpinfo()
1ReplyYup. And make sure you check via the web server request and not from cli as they're not guaranteed to be loaded the same way
1Replyso it told me its using the cli file, can you please telll what fields should i edit, i believe i am going wrong there only
1ReplyThis. Call it in a php file on your web server through a browser and it will give you all the info you need :)
1Reply
I wouldn't use WordPress. It's a massive security risk for any infrastructure it's running on. In the past, every client I had who used WordPress got hacked. Even the ones that used no plugins or themes
1ReplyJust rename php.ini.production to php.ini and change the value there.
1ReplyHoly shit, I think I just figured this out and wrote a blog post about it.
Are you using WordPress, mariadb, and phpnyadmin in docker (or on bare metal)? Are you also using nginx?
Nginx by default only allows 1MB uploads. But it's super easy to change.
1Reply