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, 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 in 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 backup of emails and restore in shared Linux webmail
0 Comment(s)