Applicable to:
- Plesk
- Plesk for Linux
- Plesk for Windows
Question
How to enable loopback connections for WordPress cron?
Answer
Some WordPress plugins use background processes.
WordPress simulates cron works by having the site connect back to itself via curl (or other available fallback connection methods if curl is unavailable) to trigger actions to take place behind the scene.
Connect to the server via SSH for Linux or RDP for Windows and enable loopback by adding the domain to the "hosts" file ( /etc/hosts
- for Linux, %SystemRoot%\System32\drivers\etc\hosts
- for Windows):
CONFIG_TEXT: 127.0.0.1 www.example.com example.com localhost localhost.localdomain
If the first solution does not work, add the code below to wp-config.php
:
-
Go to Domains > example.com > File Manager > httpdocs and click on
wp-config.php
file to edit and add the below string:CONFIG_TEXT: define ('ALTERNATE_WP_CRON', true);
Comments
0 comments
Please sign in to leave a comment.