Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Requires: phpFox 4.4.0+

The file for running phpFox cron jobs is "cron.php" that stored in phpFox root folder. We suggest that you should config to execute the file every 5 minutes.

There are several ways to configure cron job, depend on your web server environment.

  1. Setup from cPanel (Mostly use for share hosting)

    With cPanel, you can follow the document in the link below to set up a cron job to excute execute the file "<path_to_phpfox_dir>/cron.php"

    https://documentation.cpanel.net/display/ALD/Cron+Jobs

  2. Setup from command line on web server via ssh

    Code Block
    languageapplescript
    $ > crontab -e
    $ > */5 * * * * php <path_to_phpfox_dir>/cron.php
  3. On Window Server
    Create a schedule task to execute the file "<path_to_phpfox_dir>/cron.php"

...