Join the community today
Register Now

php cronjob?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by arlon, Apr 15, 2018.

  1. arlon

    arlon Member

    91
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    8:47 AM
    1.13.6
    10.1
    How to run php using cron job?
    php -q my command.php doesn't work
    it need /path/tp/php -q mycommand

    how to do it?


    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6.9 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.12.2
    • PHP Version Installed: 5.6.30
    • MariaDB MySQL Version Installed:10.1.21
    • When was last time updated Centmin Mod code base ? :today
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc
      No
     
  2. eva2000

    eva2000 Administrator Staff Member

    34,624
    7,653
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,771
    Local Time:
    11:47 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    path to php or any binary can be found with command
    Code (Text):
    which php
    
     
..