Error message

I keep getting this message on one of my V Server. Failed loading /usr/local/ioncube/  /usr/local/ioncube/ cannot open shared object file: No such file or directory

The problem is I have looked the folder, and the file is there, and all the programs that use it are working. Even the install wizard that came with the IONCube Loader says that it is installed, so its not IONCube that is causing the problem. Something is picking it up as a File not found error..

Any Ideas?




Howdy -- so is your web application actually working, you're just seeing that error in the logs?

What is the output of these two commands:

ls -ld /usr/local/ioncube
ls -l /usr/local/ioncube/

The programs that require this loader all work fine. If I look in usr/local/ioncube/ the file is there.

This is the output from those 2 scripts

[root@host ~]# ls -ld /usr/local/ioncube
ls: /usr/local/ioncube: No such file or directory
[root@host ~]# ls -l /usr/local/ioncube/
ls: /usr/local/ioncube/ No such file or directory

Hmm, I'm a little confused... where it it you're seeing that file?

The two 'ls' commands are showing that the directory "/usr/local/ioncube" doesn't exist.

OK I figured it out. The folder was names usr/local/IonCube NOT usr/local/ioncube

Not sure why it still fine it. But I'm sure that was the problem. Now I see another problem I now get another error

PHP Warning:  Module 'ionCube Loader' already loaded in Unknown on line 0
[Sat Dec 22 20:23:33 2012] [error] [client] [Sat Dec 22 20:23:33 2012] [warn-phpd] The ionCube PHP Loader is disabled because of startup problems. (pid 9696)

How do I find this other folder "ionCube/" in the usr/local/ioncube it's listed as ioncube

Regards Michael

OK here is my command in pdfmanualshop/ect/php5/php.ini

;zend_extension = /usr/local/ioncube/

As you can see it is commented out, so it's not using this one.

There is a ect/php,ini, and it is commented out in there too. So where do I look for the other command to start ionCube_loader?


Which log file specifically are you seeing that error in?

The system-wide Apache logs, in /var/log/httpd/error_log?

Or is that in an individual user Apache log, in $HOME/logs/error_log?

I don't know, its in Virtualmin/logs and reports/Apache error log. Not sure which one it is in.

Is there another php.ini file some where other the one for each Virtual Server?


Okay, that's the user's error logs, in $HOME/logs/error_log.

If the error is showing up in there, that means the entry is likely in one of the following places:


You can just grep for the text "ioncube" in those various .ini files.

OK there is 3 places that I found it in.

1.  username/etc/php.ini
2. username/etc/php5/php.ini  <--This is the one the Virtual Server uses.
3. etc/phpd/20ioncube.ini

I removed the call for ioncube in the 1st two, and left the one in the 3rd one. My error went away, and I can still access the scripts that require ioncube. (etc/phpd/20ioncube.ini) The call was the same in all of them.

So does this mean that the call in etc/phpd/20ioncube.ini is used for every Virtual Server?


Yes, anything in /etc/php.d/ is used for each Virtual Server on your system.

OK I guess you can mark this as Fixed

Have a Marry Christmas