Technology

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

AwesomeScreenshot-web-hosting-images  quora   7-Google-Search-2019-07-17-10-07-16
Wordpres Web Hosting

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

What is wp-cron.php?

In WordPress, there is 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 every time whenever a page is a load. And will check all scheduled events that need 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, 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.

<Files wp-cron.php>

Order Deny, Allow

Allow from all

</Files>

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 

And today if you are looking to buy a Shared web hosting service for your website then here at HostingRaja we provide best-in-class shared web hosting option at an affordable price. Not only that we also provide amazing features, offers and discounts up to 55% on our Shared hosting. Not only that we also provide 24/7 customer support via phone, chat, email and ticket system. So what are you waiting for get the best Shared hosting from India #Best Hosting company!

Send this to a friend