bitnami-espocrm-5.0.5-0-windows-installer / windows 10 and cron

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rucrm
    Member
    • May 2016
    • 84

    bitnami-espocrm-5.0.5-0-windows-installer / windows 10 and cron

    hello
    install on windows bitnami-espocrm-5.0.5-0

    comand: C:\Bitnami\espocrm-5.0.5-0\apache2\bin\httpd.exe -f C:\Bitnami\espocrm-5.0.5-0\apps\espocrm\htdocs\cron.php
    resilt: httpd.exe: Syntax error on line 36 of C:/Bitnami/espocrm-5.0.5-0/apps/espocrm/htdocs/cron.php: Include takes one argument, Name(s) of the config file(s) to be included; fails if the wildcard does not match at least one file
    what could be the problem?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    find php.exe on your server and set it path instead of C:\Bitnami\espocrm-5.0.5-0\apache2\bin\httpd.exe in the command

    Comment

    • rucrm
      Member
      • May 2016
      • 84

      #3
      C:\Bitnami\espocrm-5.0.5-0\php
      how i can set path? sorry)

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Sorry, didn't try Bitnami EspoCRM for Windows. Thy to find Windows Task Scheduler, find this task, modify the command
        something like C:\Bitnami\espocrm-5.0.5-0\php\php.exe -f C:\Bitnami\espocrm-5.0.5-0\apps\espocrm\htdocs\cron.php
        you can run this command in terminal at first to check if the path is OK.

        Comment

        • rucrm
          Member
          • May 2016
          • 84

          #5
          work)

          Comment

          • rucrm
            Member
            • May 2016
            • 84

            #6
            HI )

            Moved CRM to another PC, successfully updated but cron gives an error. What can be error?
            Version 5.2.5

            C:\Users\Admin>C:\Bitnami\wampstack-7.1.19-0\php\php.exe -f C:\Bitnami\wampstack-7.1.19-0\apache2\htdocs\cron.php
            PHP Fatal error: Uncaught Error: Class 'Espo\Core\Application' not found in C:\Bitnami\wampstack-7.1.19-0\apache2\htdocs\cron.php:38
            Stack trace:
            #0 {main}
            thrown in C:\Bitnami\wampstack-7.1.19-0\apache2\htdocs\cron.php on line 38

            LINE 38: $app = new \Espo\Core\Application();

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              check, what php version is using in crontab

              Comment

              • rucrm
                Member
                • May 2016
                • 84

                #8
                PHP Version 7.1.19

                Comment

                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #9
                  I met this error only, when the version was too old, check it twice, please. (the version in cli could be different, than the version on web server)
                  I just tried to know version of my PHP from windows command typing, C:\> php -v But it is not working. It says php is not recognized as internal or external command.

                  Comment

                  • rucrm
                    Member
                    • May 2016
                    • 84

                    #10

                    Comment

                    • tanya
                      Senior Member
                      • Jun 2014
                      • 4308

                      #11
                      try to run in cli
                      php cron.php

                      Comment

                      • AikoELarA007
                        Junior Member
                        • Oct 2019
                        • 2

                        #12
                        Hi Tanya thank you so much

                        Comment

                        • sylvaind
                          Junior Member
                          • Jan 2020
                          • 6

                          #13
                          I have install the latest version 5.7.11 and it keep said to do add this line to Windows TASK :
                          C:\server\apps\Apache24\bin\httpd.exe -f C:\CS3.2\stage\web\backend\espocrm\cron.php

                          I have change my line to php -f C:\CS3.2\stage\web\backend\espocrm\cron and it work now.

                          Comment

                          Working...