Try Vultr Today with $50 Free On Us!

Get Started Now

How to Fix Magento's Readiness Check

Published on: Thu, Apr 18, 2019 at 5:13 pm EST

The readiness check that is done before upgrading or installing extensions is caused by two separate issues. One is that the cron tasks are either not setup or are in the wrong place. The second is that the PHP-FPM memory limit needs to be set very high or else Magento becomes unstable and will not print out detailed error messages.

If you are using the one-click app you can use the following line to resolve the issue.

wget PATH_TO:magento_patch.sh; chmod +x magento_patch.sh; ./magento_patch.sh

This script does the following, in case you wish to create it your self or run the procedure line by line.

#!/bin/bash

# Move the crontab to the right place
mv -f /var/spool/cron/nginx /var/spool/cron/crontabs/nginx

# Fix PHP memory limit
sed -i -e 's/php_admin_value\[memory_limit\] = 756M/php_admin_value\[memory_limit\] = 2G/' 
/etc/php/7.0/fpm/pool.d/www.conf

# Restart PHP-FPM
systemctl restart php7.0-fpm.service

After this is run, wait a minute for the cron script to run and then initiate a new readiness check.

Want to contribute ?

You could earn up to $300 by adding new articles!

Get started in the SSD Cloud!