0

I have set up a cron job to run every 5 minutes, however, I'm getting the following error from the cron daemon:

Site error: the file <b>/home/domain.com/public_html/pipe/pop.php</b>
requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the
site administrator.

Which doesn't make much sense to me as ionCube is enabled on my server. I can see it in the phpinfo() output as well as I have already installed application that requires ionCube to work and it went smoothly.

This is the cron job:

php -q /home/domain.com/public_html/pipe/pop.php

I am using Debian 5 x86-64

Richard Knop
  • 1,089
  • 2
  • 19
  • 33

2 Answers2

2

On Debian I there are different php ini files for the cli binary and mod_php in apache.

have a look the configuration files in /etc/php5/

you should have /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini

it is possible that the ioncube_loader_lin_5.2.so stuff is only present in the ini file for apache2.

Justin
  • 3,776
  • 15
  • 20
1

Who is the cron job running as? It's probably an environment variable issue. Check the variables with ENV between the user cron is running as (probably root) and the user you regularly run the program as.

hurfdurf
  • 933
  • 7
  • 11
  • It doesn't run as root. It runs as mydomain user which is a user for virtual server (substitute mydomain with an actual domain). – Richard Knop Jan 08 '10 at 03:20