Page 1 of 1

unable to setup cron jobs

Posted: Fri May 03, 2013 12:01 pm
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?

Re: unable to setup cron jobs

Posted: Fri May 03, 2013 12:18 pm
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.

Re: unable to setup cron jobs

Posted: Fri May 03, 2013 12:22 pm
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.

Re: unable to setup cron jobs

Posted: Fri May 03, 2013 1:07 pm
by admin
Thanks, but it really depends on server setup.

Re: unable to setup cron jobs

Posted: Fri May 03, 2013 5:47 pm
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 :)

Re: unable to setup cron jobs

Posted: Fri May 03, 2013 6:09 pm
by admin
Sure, thank you !