How to run artisan command schedule:run on “hostgator shared” hosting server? (Laravel 5.7)How to run artisan command schedule:run on hosting server? (Laravel)How to run artisan command schedule:run on hosting server? (Laravel)How to run laravel 5.2 artisan command on cron job on hostgator hosting server cpanel?Can't run a task schedule in Laravel using cron job in Godaddycron on a docker container for laravel not workingLaravel 5.4 task scheduler not running on windowsLaravel task scheduler for artisan command queue:work not working in shared hostingHow to run Laravel queue commands on shared hosting?Laravel 5.5 'No scheduled commands are ready to run.'cron job in cpanel not working for laravel schedulerLaravel command artisan not working as cron

Are tax years 2016 & 2017 back taxes deductible for tax year 2018?

How can I fix this gap between bookcases I made?

What Brexit solution does the DUP want?

Prevent a directory in /tmp from being deleted

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

Is there a familial term for apples and pears?

whey we use polarized capacitor?

How to make payment on the internet without leaving a money trail?

What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?

Shell script can be run only with sh command

How is it possible to have an ability score that is less than 3?

How do you conduct xenoanthropology after first contact?

How can I hide my bitcoin transactions to protect anonymity from others?

Example of a relative pronoun

Infinite past with a beginning?

How to type dʒ symbol (IPA) on Mac?

Why is "Reports" in sentence down without "The"

What is the logic behind how bash tests for true/false?

What defenses are there against being summoned by the Gate spell?

Can I make popcorn with any corn?

Should I join office cleaning event for free?

New order #4: World

Japan - Plan around max visa duration

If Manufacturer spice model and Datasheet give different values which should I use?



How to run artisan command schedule:run on “hostgator shared” hosting server? (Laravel 5.7)


How to run artisan command schedule:run on hosting server? (Laravel)How to run artisan command schedule:run on hosting server? (Laravel)How to run laravel 5.2 artisan command on cron job on hostgator hosting server cpanel?Can't run a task schedule in Laravel using cron job in Godaddycron on a docker container for laravel not workingLaravel 5.4 task scheduler not running on windowsLaravel task scheduler for artisan command queue:work not working in shared hostingHow to run Laravel queue commands on shared hosting?Laravel 5.5 'No scheduled commands are ready to run.'cron job in cpanel not working for laravel schedulerLaravel command artisan not working as cron






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have been trying for 2 days to set up a laravel command on hostgator shared hosting. I contacted with their support team but they are not giving coding issue support.
They said that i can set up min 15 mins cron on their shared hosting.
But i tested a cron that run in every 1 min: (for testing perpose)



*/1 * * * * php -q /home1/john/mydomain.com/cron.php


In that cron.php i wrote:



 <?php
$file = "cron.html";
if (!unlink($file))

echo ("Error deleting $file");

else

echo ("Deleted $file");


?>


This cron successfully deleted cron.html file if
found in every min.
This test is success but i can't run cron on another domain where my laravel 5.7 app is present.



I tested my code on local:
When i run php artisan php artisan schedule:run , it run on local successfully.



I want to run migration on hostgator shared hosting. That's why i changed console/kernel.php file :



protected function schedule(Schedule $schedule)


Log::info('cron worked');

// $schedule->command('inspire')
// ->hourly();



$schedule->command('migrate')
->everyMinute();



And i tried few cron on hostgator:



*/1 * * * * 

/usr/bin/php /var/www/home1/john/domain.com/artisan schedule:run

/usr/local/bin/php /home1/john/domain.com/artisan schedule:run >> /dev/null 2>&1


Also tried following this article:



Please provide me your tested solution if you do this on hostgator shared hosting.










share|improve this question






























    1















    I have been trying for 2 days to set up a laravel command on hostgator shared hosting. I contacted with their support team but they are not giving coding issue support.
    They said that i can set up min 15 mins cron on their shared hosting.
    But i tested a cron that run in every 1 min: (for testing perpose)



    */1 * * * * php -q /home1/john/mydomain.com/cron.php


    In that cron.php i wrote:



     <?php
    $file = "cron.html";
    if (!unlink($file))

    echo ("Error deleting $file");

    else

    echo ("Deleted $file");


    ?>


    This cron successfully deleted cron.html file if
    found in every min.
    This test is success but i can't run cron on another domain where my laravel 5.7 app is present.



    I tested my code on local:
    When i run php artisan php artisan schedule:run , it run on local successfully.



    I want to run migration on hostgator shared hosting. That's why i changed console/kernel.php file :



    protected function schedule(Schedule $schedule)


    Log::info('cron worked');

    // $schedule->command('inspire')
    // ->hourly();



    $schedule->command('migrate')
    ->everyMinute();



    And i tried few cron on hostgator:



    */1 * * * * 

    /usr/bin/php /var/www/home1/john/domain.com/artisan schedule:run

    /usr/local/bin/php /home1/john/domain.com/artisan schedule:run >> /dev/null 2>&1


    Also tried following this article:



    Please provide me your tested solution if you do this on hostgator shared hosting.










    share|improve this question


























      1












      1








      1








      I have been trying for 2 days to set up a laravel command on hostgator shared hosting. I contacted with their support team but they are not giving coding issue support.
      They said that i can set up min 15 mins cron on their shared hosting.
      But i tested a cron that run in every 1 min: (for testing perpose)



      */1 * * * * php -q /home1/john/mydomain.com/cron.php


      In that cron.php i wrote:



       <?php
      $file = "cron.html";
      if (!unlink($file))

      echo ("Error deleting $file");

      else

      echo ("Deleted $file");


      ?>


      This cron successfully deleted cron.html file if
      found in every min.
      This test is success but i can't run cron on another domain where my laravel 5.7 app is present.



      I tested my code on local:
      When i run php artisan php artisan schedule:run , it run on local successfully.



      I want to run migration on hostgator shared hosting. That's why i changed console/kernel.php file :



      protected function schedule(Schedule $schedule)


      Log::info('cron worked');

      // $schedule->command('inspire')
      // ->hourly();



      $schedule->command('migrate')
      ->everyMinute();



      And i tried few cron on hostgator:



      */1 * * * * 

      /usr/bin/php /var/www/home1/john/domain.com/artisan schedule:run

      /usr/local/bin/php /home1/john/domain.com/artisan schedule:run >> /dev/null 2>&1


      Also tried following this article:



      Please provide me your tested solution if you do this on hostgator shared hosting.










      share|improve this question
















      I have been trying for 2 days to set up a laravel command on hostgator shared hosting. I contacted with their support team but they are not giving coding issue support.
      They said that i can set up min 15 mins cron on their shared hosting.
      But i tested a cron that run in every 1 min: (for testing perpose)



      */1 * * * * php -q /home1/john/mydomain.com/cron.php


      In that cron.php i wrote:



       <?php
      $file = "cron.html";
      if (!unlink($file))

      echo ("Error deleting $file");

      else

      echo ("Deleted $file");


      ?>


      This cron successfully deleted cron.html file if
      found in every min.
      This test is success but i can't run cron on another domain where my laravel 5.7 app is present.



      I tested my code on local:
      When i run php artisan php artisan schedule:run , it run on local successfully.



      I want to run migration on hostgator shared hosting. That's why i changed console/kernel.php file :



      protected function schedule(Schedule $schedule)


      Log::info('cron worked');

      // $schedule->command('inspire')
      // ->hourly();



      $schedule->command('migrate')
      ->everyMinute();



      And i tried few cron on hostgator:



      */1 * * * * 

      /usr/bin/php /var/www/home1/john/domain.com/artisan schedule:run

      /usr/local/bin/php /home1/john/domain.com/artisan schedule:run >> /dev/null 2>&1


      Also tried following this article:



      Please provide me your tested solution if you do this on hostgator shared hosting.







      laravel-5 cron scheduled-tasks






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 8:45







      John

















      asked Mar 8 at 5:55









      JohnJohn

      4891023




      4891023






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057477%2fhow-to-run-artisan-command-schedulerun-on-hostgator-shared-hosting-server-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057477%2fhow-to-run-artisan-command-schedulerun-on-hostgator-shared-hosting-server-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved