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

Self-Hosted Main

582 readers
19 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
[–] Tuffelluff@alien.top 1 points 2 years ago (3 children)

Check the loaded config files via phpinfo()

[–] whatthetoken@alien.top 1 points 2 years 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

[–] ruffcodes@alien.top 1 points 2 years 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

[–] DWolfUK40@alien.top 1 points 2 years 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 :)

[–] ProKn1fe@alien.top 1 points 2 years ago

Most likely second if you run php in fpm mode.

[–] madroots2@alien.top 1 points 2 years ago

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

[–] micalm@alien.top 1 points 2 years 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.

[–] ruffcodes@alien.top 1 points 2 years ago

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

[–] knifesk@alien.top 1 points 2 years 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

[–] Massive_Analyst1011@alien.top 1 points 2 years ago

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

[–] llevii@alien.top 1 points 2 years ago

Try cli command: php --ini

[–] neonsphinx@alien.top 1 points 2 years 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/