cancel
Showing results for 
Search instead for 
Did you mean: 

PHP Settings Check fail displaying wrong memory limit

Re: PHP Settings Check fail displaying wrong memory limit

solution work for me:

I set it 756M in php.ini

then run commands 

php bin/magento cache:clean

then php <path to magento root>/bin/magento cron:run

 php <path to magento root>/update/cron.php

 php <path to magento root>/bin/magento setup:cron:run

 

wordpress and opencart themes developer
magento theme developer - laravel php developer

Re: PHP Settings Check fail displaying wrong memory limit

Hi there, 

 

I have been trying for a few nights now to get magento to update but nothing seems to work. Been through everything on this post. I have updated my php.ini file several times to see that the local number updates and it does. Currently sitting at 756M but magento still says im at 512M. 

 

My hosting looked and they don't know what is going wrong as they see it at 756. 

 

Can anyone help? 

 

Thanks

Craig 

Re: PHP Settings Check fail displaying wrong memory limit

Hi @alolamagento

 

If you can help me with this part please? Getting confuse with the path.

 

then php <path to magento root>/bin/magento cron:run

 php <path to magento root>/update/cron.php

 php <path to magento root>/bin/magento setup:cron:run

 

Here's the result from my CLI command php --ini

Configuration File (php.ini) Path:    /opt/alt/php70/etc

Loaded Configuration File:            /opt/alt/php70/etc/php.ini

Scan for additional .ini files in:      /opt/alt/php70/link/conf

Additional .ini files parsed:           /opt/alt/php70/link/conf/alt_php.ini

 

What should be the path to magento root?

php <path to magento root>/bin/magento cron:run

 

Thanks a lot

 

Re: PHP Settings Check fail displaying wrong memory limit

Hi this worked for me! I had to specify the php.ini file in command line because my server has multiple php.ini

 

php -c <path to php.ini>/php.ini <path to magento root>bin/magento cache:clean

php -c <path to php.ini>/php.ini <path to magento root>bin/magento cron:run
php -c <path to php.ini>/php.ini <path to magento root>update/cron.php
php -c <path to php.ini>/php.ini <path to magento root>bin/magento setup:cron:run

Re: PHP Settings Check fail displaying wrong memory limit

I had the same problem, I am on a cpanel shared hosting with ssh access.

 

The problem was the different php version used in web, command line and crontab.

 

Cron was using php-7.0 (default version, memory limit 128M), while system upgrade was using php-7.1 and command line php-7.3 .

 

The solution was to use the command sp-php (I don't know if it's a default tool or my hosting provider wrapper) which uses the php version selected in cpanel configuration.

 

Replacing php with sp-php in crontab and in command line fixed the problem.

 

After that, those commands are probably needed:

 

sp-php bin/magento cache:clean

sp-php bin/magento cron:run

sp-php update/cron.php

sp-php bin/magento setup:cron:run