Wampserver install Ioncube error

vee picture vee · Nov 6, 2014 · Viewed 8.8k times · Source

I'm using Wampserver 2.5 Apache2.4 64bit, PHP 5.5 64bit and Ioncube PHP Loader v4.7.1 (Ioncube for PHP 5.5 vc11 ts)

When i test the encoded file i got "The connection was reset" error.

How do I make Ioncube work on Wampserver?

; Ioncube
zend_extension = "C:\wamp\bin\php\ioncube\ioncube_loader_win_5.5.dll"

Ioncube TS or NonTS are same result.
Ioncube is in phpinfo(); but not working.
Slash (/) or Back slash(\) has same effect. not working.

Ioncube did have 64bit vc11 for PHP. please check at http://www.ioncube.com/loaders.php

Windows VC11 (64 bits)
Windows VC11 (Non-TS) (64 bits)

Answer

RiggsFolly picture RiggsFolly · Nov 7, 2014

For WAMPServer all dll's must be compiled as Thread Safe (TS).

If you are using the 64bit version of WAMPServer then you need to download from the ioncube site the zip called Windows VC11 (64 bits)

All of which you seem to already know.

The only other thing I can think of is that the

zend_extension = "C:\wamp\bin\php\ioncube\ioncube_loader_win_5.5.dll"

line should go at the bottom of php.ini, just before the XDEBUG parameters is where I put mine.

Ah I think I spotted your error!!!!

Think what PHP does with backslashes inside double quote!

Just change the \ to / and you should be good to go.

zend_extension = "C:/wamp/bin/php/ioncube/ioncube_loader_win_5.5.dll"

But remember you need the Thread Safe version for WAMPServer.

REPEATED RECOMMENDATION

As I said above: Please move the zend_extension = "C:/wamp/bin/php/ioncube/ioncube_loader_win_5.5.dll" to the bottom of your php.ini file like this just before the zend_extension line for XDEBUG :-

; Local Variables:
; tab-width: 4
; End:

;ioncube Extension
zend_extension = "C:/wamp/bin/php/ioncube/ioncube_loader_win_5.5.dll"

; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"