Ioncube Loader doesn't work

#1
I have followed all of the other threads in the forum that I could find, but my server is saying it is an open_basedir restriction causing the issue. If I look at phpinfo, it is not showing ioncube either so it appears it is not loading.

I get the following message in my web app that requires it:

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613) is not within the allowed path(s):

(/home/user:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp)

Any ideas?
 

mistwang

LiteSpeed Staff
#2
Are you using cPanel? If yes, use the "Build Matching PHP" feature in WHM plugin.

If you have to use the "compile PHP" feature from web console, you can set "Install Path Prefix" to "/usr/local", the default open_basedir should work.

If you need to install PHP to /usr/local/lsws/lsphp5, you have to add
"/usr/local/lsws/lsphp5/lib/php/" to open_basedir.
 
Top