Submitted by mike8 on Sat, 12/22/2012 - 21:28
I keep getting this message on one of my V Server.
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.2.so: /usr/local/ioncube/ioncube_loader_lin_5.2.so: 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?
Michael
Status:
Active
Comments
Submitted by andreychek on Sat, 12/22/2012 - 22:06 Comment #1
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/ioncube_loader_lin_5.2.so
Submitted by mike8 on Sat, 12/22/2012 - 22:21 Comment #2
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/ioncube_loader_lin_5.2.so
ls: /usr/local/ioncube/ioncube_loader_lin_5.2.so: No such file or directory
Submitted by andreychek on Sat, 12/22/2012 - 22:26 Comment #3
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.
Submitted by mike8 on Sat, 12/22/2012 - 22:51 Comment #4
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 66.249.74.33] [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
Submitted by mike8 on Sun, 12/23/2012 - 14:37 Comment #5
OK here is my command in pdfmanualshop/ect/php5/php.ini
;zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
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?
Michael
Submitted by andreychek on Sun, 12/23/2012 - 14:41 Comment #6
Which log file specifically are you seeing that error in?
Submitted by mike8 on Sun, 12/23/2012 - 16:23 Comment #7
in the Apache error log
Submitted by andreychek on Sun, 12/23/2012 - 16:26 Comment #8
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?
Submitted by mike8 on Sun, 12/23/2012 - 16:41 Comment #9
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?
Michael
Submitted by andreychek on Sun, 12/23/2012 - 17:51 Comment #10
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:
/home/USERNAME/etc/php.ini
/etc/php.ini
/etc/php.d/*.ini
You can just grep for the text "ioncube" in those various .ini files.
Submitted by mike8 on Sun, 12/23/2012 - 19:29 Comment #11
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?
Michael
Submitted by andreychek on Sun, 12/23/2012 - 19:58 Comment #12
Yes, anything in /etc/php.d/ is used for each Virtual Server on your system.
Submitted by mike8 on Sun, 12/23/2012 - 20:13 Comment #13
OK I guess you can mark this as Fixed
Have a Marry Christmas
Michael