OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

This topic contains 8 replies, has 2 voices, and was last updated by  Mike Kudelya 7 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #27228

    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
  • #27229

    Mike Kudelya
    Participant

    Hi,

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

    SetEnv ORO_PHP_PATH /opt/local/bin/php

    #27230

    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>

    #27231

    Mike Kudelya
    Participant

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

    #27232

    janeka
    Participant

    php app/console

    #27233

    Mike Kudelya
    Participant

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

    #27234

    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 :)

    #27235

    janeka
    Participant

    I’ve celebrated too soon…

    It was all fine until…

    One minute was working…

    The next one…

    This is very odd…

    #27236

    Mike Kudelya
    Participant

    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)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top