magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Request: .user.ini files for FPM config

Open clockworkgeek opened this issue 12 years ago • 5 comments

On a couple of Magento1 sites I've had to configure nginx and have found .user.ini files to be most reliable. It is significantly easier than editing the system php.ini then restarting PHP-FPM and worrying about automatic updates over writing your work. Although the exact filename can be changed with user_ini.filename setting I have yet to see any server change this.

For Magento 2 I suggest two files, /.user.ini and /pub/.user.ini, to allow for situations where Magento files are not stored in the web root and are linked to instead. Their content is derived from the .htaccess.

memory_limit=768M
max_execution_time=18000
session.auto_start=off

clockworkgeek avatar Oct 25 '14 16:10 clockworkgeek

Anything like this should be included as a .sample file only. Including the real file (eg .user.ini or even .htaccess) causes conflict with the "do not modify core" rule. Since the file is included in the install, I consider it "core". However, there are situations that require editing this file (thus breaking the rule).

lazyguru avatar Oct 25 '14 17:10 lazyguru

Thanks for your suggestion! I will ask the architect review it. We will get back to you once we have the answer.

verklov avatar Nov 09 '14 20:11 verklov

Internal ticket: MAGETWO-30489

vpelipenko avatar Jan 29 '15 12:01 vpelipenko

Thank you for your submission.

We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.

Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).

We are closing this GitHub ticket and have moved your request to the new forum.

piotrekkaminski avatar Aug 30 '16 20:08 piotrekkaminski

Yeah you really f***ed me here, moved away from apache to avoid issues caused by this sort of BS. Shame on you for forcing this into production systems, 2 hours of headaches wondering why my php-fpm memory limits aren't working. Thanks for your stupidity! 🤬

brianmcdo avatar Mar 11 '26 18:03 brianmcdo