ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  php 5.5.3 Ubuntu
Posted by Mike Gibbons on Mar-08-2014 11:37
Peter,

I have not been able to get ChartDirector working on my development server since
upgrading to php 5.5.3

Error Log

The version and type of PHP in this system does not support dynmaic loading of PHP
extensions. All PHP extensions must be loaded by using extension statements in the PHP
configuration file.

Operating System : Linux 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC
2013 i686
PHP version : 5.5.3-1ubuntu2
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php5/apache2/php.ini"
PHP extension directory : "/usr/lib/php5/20121212"

I already had the latest ChartDirector version installed but downloaded (version
i386/i686) again for safety and copied the lib files into the php extension directory as
given in the error message.

I modified the new php.ini to include

extension = phpchartdir540.dll

and restarted Apache

Checked my work several times.

Grateful for your help.

  Re: php 5.5.3 Ubuntu
Posted by Peter Kwan on Mar-11-2014 00:07
Hi Mike,

Sorry for the out of date documentation. For PHP 5.5.x, it should be:

extension = phpchartdir550.dll

The latest version of ChartDirector for PHP should contain "phpchartdir550.dll".

Hope this can help.

Regards
Peter Kwan

  Re: php 5.5.3 Ubuntu
Posted by Mike Gibbons on Mar-12-2014 01:06
Thanks Peter. Working now.

  Re: php 5.5.3 Ubuntu
Posted by Mike Gibbons on Mar-14-2014 03:36
Peter,

It's working, but in my apache log I get

PHP Warning:  PHP Startup: ChartDirector PHP API: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20121212

If it can't initialize, why do I get charts?

  Re: php 5.5.3 Ubuntu
Posted by Peter Kwan on Mar-14-2014 23:54
Hi Mike,

It seems to suggest that your PHP is attempting to load "phpchartdir540.dll". Is it possible in
your "php.ini", you have a line that tries to load "phpchartdir540.dll" in addition to the line
that loads "phpchartdir550.dll"?

For your PHP version, phpchartdir550.dll should be the correct extension to load. If you
"php.ini" also tries to load phpchartdir540.dll, it would fail to load it, but the PHP will
continue to run. Your charts will still appear because the phpchartdir550.dll is successfully
loaded.

Regards
Peter Kwan