ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 8 replies, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 2 months ago.

  • Creator
    Topic
  • #21428

    janeka
    Participant

    Hi,

    I’ve installed Orocrm in a Centos 6.8 with CWP and the installation worked fine.

    When I set the cron job (/usr/local/bin/php /home/nbcmedic/public_html/sel.crm/app/console oro:cron –env prod), the taks won’t run and gives me the error sh: line 0: exec: php: not found.

    The Daemon is green and running.

    Can you help me?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #21429
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    It seems that you didn’t set ORO_PHP_PATH variable to apache virtual host:

    SetEnv ORO_PHP_PATH /opt/local/bin/php

    #21430

    janeka
    Participant

    Hi Mike,

    Thank you for the fast reply.

    I’ve already added the line to the Apache vHost and restarted Apache but still gives the same error…

    <IfModule mod_suexec.c>
    SuexecUserGroup nbcmedic nbcmedic
    </IfModule>

    <IfModule mod_suphp.c>
    suPHP_UserGroup nbcmedic nbcmedic
    suPHP_ConfigPath /home/nbcmedic
    </IfModule>

    <Directory “/home/nbcmedic/public_html”>
    AllowOverride All
    </Directory>

    SetEnv ORO_PHP_PATH /usr/local/bin/php

    </VirtualHost>

    #21432
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Make sure that script app/console able to find php. What happens when you run it?

    #21433

    janeka
    Participant

    php app/console

    #21435
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Can you show me where you got the error? Which job make error?

    #21436

    janeka
    Participant

    After executing the “php app/console oro:cron –env prod” again the job finished without problems, so I’ve changed the cron to “cd /home/nbcmedic/public_html/sel.crm; /usr/local/bin/php app/console oro:cron –env prod” and now it’s working 🙂

    Thank you very much 🙂

    #21439

    janeka
    Participant

    I’ve celebrated too soon…

    It was all fine until…

    One minute was working…

    The next one…

    This is very odd…

    #21455
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    For some reason job doesn’t find php. Did you find path to php after run “env |grep PATH” ?

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.