unable to setup cron jobs

Post Reply
serbanb
Posts: 6
Joined: Fri May 03, 2013 11:58 am

unable to setup cron jobs

Post by serbanb »

Hello all,

I've successfully installed scmartcj free but I am unable to run the required cron jobs.
Ioncube is installed and running, I am amble to access scj admin.

Output from command cd /home/XXX/public_html/scj/bin; env HTTP_HOST=XXX.com /usr/bin/php -q cron.php ..

Site error: the file <b>/home/XXX/public_html/scj/bin/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the site administrator.

Can someone please help?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: unable to setup cron jobs

Post by admin »

Looks like CLI php and mod_php are using different php.ini files.

Ask admin to add ioncube_loader_lin_5.3.so to CLI PHP.
Don't forget to run script update
serbanb
Posts: 6
Joined: Fri May 03, 2013 11:58 am

Re: unable to setup cron jobs

Post by serbanb »

Fixed this using cd /home/XXX/public_html/scj/bin; env HTTP_HOST=XXX.com /usr/bin/php -c /home/XXX/etc/php-cron.ini -q cron.php

The .ini file contains one line:
zend_extension=/usr/lib/php/modules/ioncube.so

Replace XXX with your domain name without extension.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: unable to setup cron jobs

Post by admin »

Thanks, but it really depends on server setup.
Don't forget to run script update
serbanb
Posts: 6
Joined: Fri May 03, 2013 11:58 am

Re: unable to setup cron jobs

Post by serbanb »

admin wrote:Thanks, but it really depends on server setup.
I agree.
The above method worked for me on red had. The paths are of course relative to your configuration.

Maybe it helps someone :)
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: unable to setup cron jobs

Post by admin »

Sure, thank you !
Don't forget to run script update
Post Reply