I want to install chilkat version 18.104.22.168 on linux server running php 5.6.7
I downloaded the file from this link
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
asked Sep 24 '15 at 14:20
Thanks.. I'll have a look..
answered Sep 24 '15 at 16:42
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 v22.214.171.124. 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
answered Sep 24 '15 at 22:37