this post was submitted on 20 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

521 readers
6 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 2 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

Most likely second if you run php in fpm mode.

[–] [email protected] 1 points 1 year ago

You can also spawn php info file and it will tell you which one is being used

[–] [email protected] 1 points 1 year ago (1 children)

If 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.

[–] [email protected] 1 points 1 year ago

i am hosting this on my raspberry pi, where can i find the docker config file

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (3 children)

Check the loaded config files via phpinfo()

[–] [email protected] 1 points 1 year ago

Yup. 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

[–] [email protected] 1 points 1 year ago

so 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

[–] [email protected] 1 points 1 year ago

This. Call it in a php file on your web server through a browser and it will give you all the info you need :)

[–] [email protected] 1 points 1 year ago

Just rename php.ini.production to php.ini and change the value there.

[–] [email protected] 1 points 1 year ago

Try cli command: php --ini

[–] [email protected] 1 points 1 year ago

Holy 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.

https://fitib.us/2023/10/11/the-whole-secret-lies-in-confusing-the-enemy-so-that-he-cannot-fathom-our-real-intent/