lando / lando/wordpress

Unable to load a custom php.ini configuration with wordpress recipes

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage
Dominant language
JavaScript
Stars
22
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Hi all,

I´m afraid that I cannot load a custom php.ini conf with wordpress recipe.
I want to change the upload_max_filesize. Here is the .yaml:

name: standalone
recipe: wordpress
config:
  php: "7.4"
  via: apache
  webroot: .
  xdebug: true
  config:
    php: config/php.ini

I've try to

php: absoluteLocationTo/php.ini``

php: php.ini and put the php.ini in the same folder as lando.yml

It creates a directory named "php.ini", but not the file. If I create the file, it does not load it. It does not show it on phpinfo or in the terminal, if I try to load some values there, it does not work...what Im doing wrong?

thanks in advanced

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the wordpress recipe configuration in lando.yml and the referenced config/php.ini path. Reproduce the setup and inspect the generated php.ini directory, then verify the active configuration through phpinfo and the terminal. Done means the custom file is loaded and upload_max_filesize reflects its value.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.