New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

Magento showing incorrect memory limit

A client reported issues with a 'readiness check' whereby the interface reported the incorrect memory_limit.

The phpinfo(); output shows whats set in the .user.ini, such as...

memory_limit 1024M

However, the readiness check was reporting the following...

Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit your php.ini file to increase memory_limit. (The command php --ini tells you where it is located.) After that, restart your web server and try again.

Further investigation revealed that the PHP variables being tested against were those applicable to the CLI version of PHP.

The solution is to also set the version of PHP for the CLI (in most cases, through the PHP Selector in cPanel) and set the variables through the same interface to 756M or above.

Then, the caches need to be cleared in Magento before re-attempting...

php /home/$USER/public_html/bin/magento cache:flush
  • 537 Users Found This Useful
Was this answer helpful?

Related Articles

 Connect to your server via SSH

SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is...

 How to force your site to use SSL (HTTPS) using

First of all, you will need to install an SSL certificate to your siteOnce your certificate is...

 How do I change PHP versions, or change my PHP settings / config?

The process of setting your PHP version and the 'variables' (such as memory_limit values) differs...

 How do I install a free SSL via cPanel?

Installing an SSL certificate in cPanel is easy! Best of all, it's free with WebGee!Important:...

 How to send emails in WordPress using the WP SMTP Mail plugin

Instead of using the default PHP mail() function, you can send emails using our SMTP services via...

Powered by WHMCompleteSolution