ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

Loaders Installed but script says it's not

Author Message
apicodeintegrations



Joined: 14 Feb 2012
Posts: 3

PostPosted: Tue Feb 14, 2012 2:06 am    Post subject: Loaders Installed but script says it's not Reply with quote

Hi, I wanted to get some insight into why this is happening.

I've used the loader-wizard file and it states that everything is installed and working correctly. Here is the output from the loader-wizard:

Loader-Wizard Successful Message:
Quote:
Loader Installed Successfully

The ionCube Loader version 4.0.12 for PHP 5.3 is installed and encoded files should run successfully.



additional info:
Code:
Loader is at:   /usr/local/IonCube/ioncube_loader_lin_5.3.so
Loader OS code:   lin
Loader architecture:   x86
Loader word size:   32
Loader PHP version:   5.3
Loader thread safety:   No
Loader compiler:   glibc2.1.3
Loader version:   4.0r12
File size is:   810280 bytes.
MD5 sum is:   66db210eaffba81b1cdb45860536206c
Loader file:   Download loader file
Loader found in ini file:   Yes
OS extra security:   None
PHPRC is:   EMPTY
INI DIR is:   EMPTY
Additional INI files:   (none)
Server type is:   DEDICATED
PHP uname:   Linux colo2.24-7noc.net 2.6.29.5-grsec-hostnoc-4.2.0-i386-libata #1 SMP Wed Jul 8 17:07:07 EDT 2009 i686
Server word size is:   32
Disabled functions:   EMPTY
Writeable loader locations:   /home/security/public_html, /home/security, /home/security/public_html/cgi-bin
Hosting provider:   24-7 noc
Provider URL:   24-7noc.com


Here is the loader information from `phpinfo()`:
Quote:
PHP Version 5.3.10
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with the ionCube PHP Loader v4.0.12, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies


Here is a small section of the php.ini file where it loads the loader:
Code:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"
extension="eaccelerator.so"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.check_mtime="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.debug="0"
eaccelerator.enable="1"
eaccelerator.filter=""
eaccelerator.optimizer="1"
eaccelerator.shm_max="0"
eaccelerator.shm_only="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_size="16"
eaccelerator.shm_ttl="0"


Now with everything stating that the loaders are install I'm getting this error message when I run an encrypted file:
Quote:

Site error: the file /home/security/public_html/wp-content/plugins/APICode_AuthNet/apicode_authnet-plugin.class.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.


The server is running on a cpanel Linux server and no matter if I add additional loaders in the public_HTML directory and create the custom php.ini file in the root web host directory (which does get loaded and added to the php.ini) the encrypted files still come back with the error stating that it's not installed. I've even tried running the encrypted files in the root directory of the site and I still get the same error messages.

I would also like to add, that even running the wizard-loader from the directory where the scripts are located at, it still returns that everything is loaded properly and working.

any help with this would be greatly appreciated
Back to top
View user's profile Send private message
apicodeintegrations



Joined: 14 Feb 2012
Posts: 3

PostPosted: Tue Feb 14, 2012 3:48 am    Post subject: Reply with quote

I wanted to add something as this is weird and I've run into a wall with this one. I've finally realized that if running the encrypted file directly it works. But the way I have my script is that it gets loaded (php include) from an unencrypted file.
This is a WordPress module and has worked in multiple different locations so far and this is the only install that this has happened with. So when I try to activate the module within WordPress it comes back that Ioncube needs to be installed. But when I access the script directly from the browser I get php errors from the actual code that it can't access some php functions.

So has anyone ever run into an issue like this before?
Back to top
View user's profile Send private message
apicodeintegrations



Joined: 14 Feb 2012
Posts: 3

PostPosted: Tue Feb 14, 2012 4:45 am    Post subject: Reply with quote

Ok, I've finally figured this installation out and have fixed the issue I was having.

Seems the customer had created a custom php.ini within one of the admin directories of WordPress. Because that php.ini file did not have the IonCube loader line, it wasn't loading the IonCube for that directory. So it caused the script not to load correctly.

Hope this helps someone out because it was a pain....
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2554

PostPosted: Tue Feb 14, 2012 1:50 pm    Post subject: Reply with quote

Bingo; this is a classic gotcha. Glad that you figured it out and added to your knowledge in the process.
_________________
Community Admin
Back to top
View user's profile Send private message
Ptsupport



Joined: 31 May 2012
Posts: 1

PostPosted: Thu May 31, 2012 3:29 am    Post subject: install Reply with quote

Hello,

Your descriptions are excellent of the situation with install. I hope you can share the fix with the custom php.ini file, as I have the same issue. Which lines need adding to the file to remove the error message? Thank you very much!

requires the ionCube PHP Loader ioncube_loader_dar_5.2.so to be installed by the site administrator.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2554

PostPosted: Thu May 31, 2012 9:32 am    Post subject: Reply with quote

The best thing is to use the Loader Wizard from http://ioncu.be/L

The Wizard can create a support ticket if necessary.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum