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

Message ListMessage List     Post MessagePost Message

  Error Loading ChartDirector for PHP Extension
Posted by Sathish on Feb-04-2014 19:39
I am trying to install Chart Director for PHP in Ubuntu 13.04 (64-Bit OS). I have loaded dll
files in php extension directory. Also I have added the line extension = "phpchartdir540.dll"
in php.ini file. I have also enabled auto loading in php. I even restarted the system. But I am
stuck with the following error.

Error Loading ChartDirector for PHP Extension

It appears this PHP system has not loaded the ChartDirector extension by using an
extension statement in the PHP configuration file (typically called "php.ini"). An attempt has
been made to dynamically load ChartDirector on the fly, but it was not successful. Please
refer to the Installation section of the ChartDirector for PHP documentation on how to
resolve this problem.

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.

System Information
Operating System : Linux ameex-desktop 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3
01:24:59 UTC 2013 x86_64
PHP version : 5.4.9-4ubuntu2.4
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php5/apache2/php.ini"
PHP extension directory : "/usr/lib/php5/20100525"
Can you please look into this issue an ensure me where I went wrong in Installation?

  Re: Error Loading ChartDirector for PHP Extension
Posted by Peter Kwan on Feb-04-2014 21:35
Hi Sathish,

For you case, please kindly verify the followings:

(a) I assume the Apache/PHP that you are using is comes with the operating system (and
not a third party distribution or compile my yourself). If the Apache/PHP comes with your
OS, it should be of the x86_64 architecture (the same as that of your OS). In this case,
please ensure you have download the "ChartDirector for PHP for Linux (x86_64)". The
"libchartdir.so" file should be of size 4295960 bytes.

(b) Please copy "everything" from "ChartDirector/lib" to your PHP extension directory
"/usr/lib/php5/20100525". After copying, you should see the files
"/usr/lib/php5/20100525/phpchartdir540.dll", "/usr/lib/php5/20100525/libchartdir.so" and
the "/usr/lib/php5/20100525/fonts" subdirectory, and also of DLL files. Please ensure you
have copied everything (the dll, so and fonts), not just the DLL.

Please make sure all the files copied are readable and executable by the web server. (For
testing, you may simply make then readable and executable by "everyone".)

(c) Please modify the file "/etc/php5/apache2/php.ini" by including the line:

extension=phpchartdir540.dll

(I usually do not include the double quotes. I guess the double quotes will not cause any
issue, but to avoid uncertainly, you may omit them.)

(d) Restart Apache. (Because the PHP type you are using is "apache2handler", changing
"php.ini" will have no effect until you restart Apache.)

If the above still does not solve the problem, please look at the Apache error log file. It
may contain error messages that explain why the line "extension=phpchartdir540.dll"
cannot load the PHP extension. Please kindly let me know of the error messages you find.

If your machine is accessible from the Internet, and you can provide me with an account
that can have read and write access to the PHP extension directory and the php.ini, I
can try to install ChartDirector for you.

Regards
Peter Kwan