Results 1 to 4 of 4

Thread: Cron command to activate a php script?

  1. #1
    Jory is offline Newbie
    Join Date
    Sep 2014
    Posts
    4

    Default Cron command to activate a php script?

    Is it this?
    /usr/local/bin/php -q /home/myusername/public_html/script.php

  2. #2
    AndrewGlow is offline Master Glow Jedi
    Join Date
    Sep 2009
    Posts
    1,243

    Default

    Hello Jory,

    Yes, this should work correctly.
    Have no fear,
    GlowHost is Here!

  3. #3
    techinfo is offline Newbie
    Join Date
    Feb 2021
    Posts
    1

    Default

    Depends on the path where php is installed . Usually its /usr/bin/php path of script

  4. #4
    hostguy is offline Newbie
    Join Date
    Aug 2021
    Posts
    3

    Default

    You can use below path for the cron job:
    /home/user/public_html/script.php

    If you are using cpanel control panel then you can easily create it in cpanel:
    Login to cpanel >> Click on "Cron Jobs" under "Advanced section"

    You can create cron jobs in cpanel.

Similar Threads

  1. When does a cron job activate?
    By Jory in forum General Support
    Replies: 3
    Last Post: 09-07-2014, 02:09 PM
  2. How do I activate Fantistico on my server?
    By rebecca in forum General Support
    Replies: 3
    Last Post: 02-03-2009, 04:57 PM
  3. How to activate new domain?
    By TobiasEhlig in forum General Support
    Replies: 3
    Last Post: 03-28-2008, 05:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12