Skip to content

Outdated PHP memory limit in .htaccess #24157

Closed
@brendanfalkowski

Description

@brendanfalkowski

Summary (*)

I'd like to open a PR to avoid this issue, and curious if it will be accepted before writing.

The files .htaccess and .htaccess.sample both set php_value memory_limit 756M.

This is below what Magento's install guide suggests (2048M):

As I understand it, Composer does some magic to raise or ignore the memory limit so its operations can complete installing modules.

This does not apply when Magento is serving requests, and keeping 756M fails on a simple user flow:

  1. Load the home page (works)
  2. Click "create account" (works)
  3. Submit the form (fails, out of memory)

I have limited system admin experience, and don't know the implications this change creates. This is a bad developer experience though, and it seems obvious that the recommended default memory limit should actually be used in default config files.

Proposed solution

Change the memory limit in these files to 2048M:

  • .htaccess
  • .htaccess.sample

This will reflect the documentation, and avoid a bad first experience as a developer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions