Pergunta

I've got a problem with a cron.

This is the line:

09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete

When this line works i'm taking a mail from my server:

PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0 [Tue Nov 05 03:09:01 2013] [warn-phpd] The ionCube PHP Loader is disabled because of startup problems. (pid 32450)

When I remove the line related with ioncube from php.ini, site is not working. And when I remove the line from ioncube.ini ioncube doesn't work.

If I remove this job what happens? Any other solution?

I'm using Debian 6 x64, PHP Version 5.3.3-7

Thanks.

Foi útil?

Solução

Your post suggests that you have referenced the Loader in two php.ini files, the main php.ini and a second one (ioncube.ini) located in an additional ini scan directory. The ionCube Loader must be installed only once, and ideally referenced in only one php.ini file.

Produce phpinfo() output from both the webserver and CLI PHP used by the cron job, and check to see if the referenced php.ini locations are the same. Also check that the PHP version is the same as sometimes it isn't due to PHP being updated incorrectly/incompletely on a server.

If the PHP version is the same and there is a common php.ini file being referenced, such as /usr/local/lib/php.ini, then that's the best place to place the zend_extension line for ionCube. You can use -c to specify the location of a php.ini file if needed.

If the PHP version is different, you must not use the same php.ini file that references the Loader as you need different Loaders. Use a different php.ini file for the CLI case and reference its location with -c. Consider fixing the installation to use the same PHP version for web and CLI though.

Probably not the case here, but if you have edited only one php.ini file to reference the Loader, it would suggest that the php.ini file is being read twice. This is a flaw in PHP and can happen if the main php.ini directory is also one of the additional scan directories.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top