I’m testing M2.4.3-p1 installation but this time on Nginx + php-fpm.
The installation process was painless but I struggle to increase the memory limit.
I followed the Magento official documentation setting php
In short, I modified /etc/php/7.4/cli/php.ini & /etc/php/7.4/fpm/php.ini.
Pls. see my setting below.
In 2.4, the .htaccess file that states the memory_limit has been moved from Magento Root Directory to the Pub Directory. This file overrides values set in your global PHP Configuration files.
I added the folowing line the the to /etc/php/7.4/fpm/pool.d/www.conf file php_value[memory_limit] = 2048M
This didn’t work so I replaced the line with php_admin_value[memory_limit] = 2048M
The only difference between both, according to the article, is that the second cannot be overridden by *.ini files or ini_set().
Now, I can see that the memory_limit Local value has been increased to 4096M. Why 4096, not 2048???
After the memory_limit Loval Value has been increased I haven’t got access to my Magento.
" 3. If PHP is running using the FastCGI module on your web server it may override execution time settings in php.ini or .htaccess files. If there are additional FastCGI settings, you need to review all the directives in your FastCGI configuration which can possibly affect the time settings in Magento. Paying attention to the following ones:
I’m still fighting with correctly increasing the Local value memory limit.
From what I read in the default www.conf file (/etc/php/7.4/fmp/pool.d)
There are no default values defined except the value in php.ini. Values in php.ini are set correctly.
@digitalstartup Craig, it would be great if you record a tutorial on how to set up Mag on Nginx + Php-fpm. The installation process is pretty easy. It might be useful for the ‘DS’ community.