When I run a readiness check for a module upgrade on my Magento 2 site, I receive the error "Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more.". I have updated my php.ini file memory limit to 756M and also added the recursive setting in the .htaccess file at the same level.
Even after these updates, I am still receiving the 512M memory limit error in Magento 2.
Is there something that we need to do to fix this error/issue.
Thank you for your question regarding changing your PHP Memory limit in Magento 2. I recommend viewing your PHP settings with a phpinfo page. This will allow you to view the PHP memory that is being assigned, and confirm it is being increased.
Could my cron jobs be pointing to a different php.ini file per the article here: http://alanstorm.com/your-current-php-memory-limit-is-128m-and-other/
Current cron job settings are as follows:
/opt/php70/bin/php /home/founta26/public_html/bin/magento setup:cron:run >> /home/founta26/public_html/var/log/setup.cron.log
/opt/php70/bin/php /home/founta26/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/founta26/public_html/var/log/magento.cron.log
When you run a cron from command line, it uses the servers default PHP settings. You may be able to set your PHP settings from command line, but this will require you to test/troubleshoot further. With Easy Apache 4 all the extensions for PHP have their own .ini file and you cannot include the includes path for them in any ini but the default. So you would need to combine all those little ini files into a single larger php.ini. The .ini files should be located here: /opt/ea-phpXX/root/confd
Just cat * in that directory and echo the output to a single file.