Why wp-cron.php disabled in shared & How to make it works for a website?

Why wp-cron.php disabled in shared & How to make it works for a website?

Brong Asked on October 30, 2020 in WordPress.
Add Comment
1 Answer(s)

What is wp-cron.php?

In WordPress, there is a one function name called wp-cron. It is placed in the root path of your website with the name wp-cron.php. It is a kind of run cron job for making below.

>>> Checking Plugins & Themes Update.
>>> Publishing scheduled posts.
>>> Sending pingback and etc.

This cron runs in every time whenever a page is a load. And will check all scheduled events needs to be done at the moment.

Why wp-cron.php disabled in Shared Hosting?

In shared hosting servers, we are disabled this wp-cron.php ( https://php.net/), why because of the following reason.

>>> If this cron is executed in every visit, fine for low traffic website.
>>> But for high traffic sites. It will take more process and server load high.
>>> It will take a high load on the server and affect other websites too.
>>> Also your website will get loading issues.
>>> It will take the high process and affect hole server.

So that is the reason we are disabling this cron job in shared servers. And also for the security reason, we are not allowing this cron in the shared hosting account.

How to Enable?

If you want to run this cron job for your website in the shared hosting account. Please follow the below steps.

>>> Open .htaccess in the root path of your website in which you want to make.
>>> And paste the below Rule in your .htaccess and save and the check.

Order Deny, Allow
Allow from all

If you want to make this works for your all website in your account. Please upgrade your plan to VPS Hosting.
How to take a backup of emails and restore in shared Linux webmail

Default Answered on October 30, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.