Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Why wp-cron.php disabled in shared & How to make it works for a website

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 480
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: