Archived Forum Post

Index of archived forum posts

Question:

Upgraded to php 5.6, can't load chilkat

Sep 30 '15 at 10:51

I want to install chilkat version 9.5.0.52 on linux server running php 5.6.7

I downloaded the file from this link

http://www.chilkatsoft.com/download/9.5.0.52/chilkat-9.5.0-php-5.6-x86_64-linux.tar.gz

following the instructions, I copied the .so file to the extensions directory and enabled it under dynamic extensions in the php.ini file.

When I run the included test.php I get this message:

PHP Warning: dl(): Dynamically loaded extensions aren't enabled in /home/<username>/chilkat-9.5.0-php-5.6-x86_64-linux/chilkat_9_5_0.php on line 22 PHP Fatal error: Call to undefined function new_CkCrypt2() in /home/<username>/chilkat-9.5.0-php-5.6-x86_64-linux/chilkat_9_5_0.php on line 4414

I double checked the php.ini file and enable_dl is set to On


Answer

Thanks.. I'll have a look..


Answer

I found 2 problems. First, there was a yet-to-be-seen problem with the .so, so I re-built all the PHP builds to v9.5.0.53. Re-download from here: http://www.chilkatsoft.com/php.asp

The 2nd problem is that you may have 2 versions of PHP installed. One might use the command "php", the other "php5". When I installed PHP 5.6.13 afresh, the command is "php5".

Therefore, when looking for the extensions directory, and the directory where php.ini is installed, use "php5" if that is the command for your PHP 5.6.* install.

On my Ubuntu 14.04 LTS machine, I have the following:

"php" is version 5.3.3, located at /usr/local/bin/php, with an extensions directory at /usr/local/lib/php/extensions/no-debug-non-zts-20090626, with php.ini in /usr/local/lib

"php5" is version 5.6.13, located at /usr/bin/php5, with an extensions directory at /usr/lib/php5/20131226, with php.ini in /etc/php5/cli


Answer

Try the new builds (v9.5.0.53) here: http://www.chilkatsoft.com/php.asp