SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ruffcodes@alien.topB to Self-Hosted Main@selfhosted.forumEnglish · 2 years ago

which php.ini file should i edit for 64mb uploads in wordpress docker

alien.top

message-square
12
fedilink
1

which php.ini file should i edit for 64mb uploads in wordpress docker

alien.top

ruffcodes@alien.topB to Self-Hosted Main@selfhosted.forumEnglish · 2 years ago
message-square
12
fedilink
alert-triangle
You must log in or register to comment.
  • ProKn1fe@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Most likely second if you run php in fpm mode.

  • madroots2@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

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

  • micalm@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    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.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

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

  • Tuffelluff@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Check the loaded config files via phpinfo()

    • whatthetoken@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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 :)

  • knifesk@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    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.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

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

  • llevii@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Try cli command: php --ini

  • neonsphinx@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    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/

Self-Hosted Main@selfhosted.forum

main@selfhosted.forum

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !main@selfhosted.forum

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

  • Service: Dropbox - Alternative: Nextcloud
  • Service: Google Reader - Alternative: Tiny Tiny RSS
  • Service: Blogger - Alternative: WordPress

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

  • Awesome-Selfhosted List of Software
  • Awesome-Sysadmin List of Software
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 2 users / week
  • 3 users / month
  • 19 users / 6 months
  • 13 local subscribers
  • 544 subscribers
  • 1.82K Posts
  • 10.5K Comments
  • Modlog
  • mods:
  • communick@selfhosted.forum
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org