run the corn.php using php-cgi.exe or php.exe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 176

    run the corn.php using php-cgi.exe or php.exe?

    I have an espocrm running in windows platform and the following command is suggested in the "Scheduled Jobs" page
    C:\PHP\php-cgi.exe -f C:\inetpub\wwwroot\espo\cron.php

    if i run C:\PHP\php-cgi.exe -f C:\inetpub\wwwroot\espo\cron.php in command prompt, it will show "Cron can be run only via CLI"

    from http://php.net/manual/en/migration5.cli-cgi.php, php-cgi.exe is for CGI and php.exe is for CLI, i just wonder why the suggested command is php-cgi.exe.
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    What is your version of EspoCRM?
    It should be "php.exe". What is the correct path to your PHP?
    Job Offers and Requests

    Comment

    • Vincent
      Senior Member
      • May 2017
      • 176

      #3
      the version is 5.4.3

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        Is this path "C:\PHP\php.exe" correct for your PHP?
        Job Offers and Requests

        Comment

        • Vincent
          Senior Member
          • May 2017
          • 176

          #5
          Yes, the path of php.exe is "C:\PHP\php.exe"

          Comment

          Working...