5

How to Fix Magento's Readiness Check

 2 years ago
source link: https://www.vultr.com/docs/how-to-fix-magentos-readiness-check
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
<?xml encoding="utf-8" ??>

Introduction

Magneto performs a readiness check before installing or updating extensions. If this check fails, it will not allow you to proceed. There are two common reasons for a readiness check failure&mdashincorrectly configured cron tasks and low PHP-FPM memory limits. The PHP-FPM memory limit needs to be set very high, or Magento becomes unstable and will not display error messages.

One-step Repair Script

This script will address both issues. Save the following script on your server as "magento_patch.sh".

#!/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

Run the script.

chmod +x magento_patch.sh; ./magento_patch.sh

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

Other Issues

There are several other, less common reasons for a readiness check failure. Please refer to the official documentation, which has the latest information.

Vultr One-Click

There is another simple solution to this problem! Deploy a Vultr One-Click Magneto app and launch your server in minutes. We update our One-Click apps regularly to make sure your deployments are trouble-free.

Want to contribute?

You could earn up to $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK