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 kennyH on Apr-10-2012 21:31
Hi, peter help me please,
I use ChartDirector for Linux i386 ver.
I already added "extension=phpchartdir520.dll" in /etc/php.ini, and copy all files in lib
folder, and still got bellow info. Please help me !

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


Trying to load "phpchartdir520.dll" from the PHP extension directory
"/usr/lib/php/modules".

dl(): Unable to load dynamic library '/usr/lib/php/modules/phpchartdir520.dll' -
/usr/lib/php/modules/phpchartdir520.dll: cannot open shared object file: No such file or
directory


System Information
Operating System : Linux san.ntsu.edu.tw 2.6.18-274.17.1.el5PAE #1 SMP Tue Jan 10
18:05:48 EST 2012 i686
PHP version : 5.2.10
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php.ini"
PHP extension directory : "/usr/lib/php/modules"

  Re: Error Loading ChartDirector for PHP Extension
Posted by Peter Kwan on Apr-11-2012 00:09
Hi kennyH,

The error message is "No such file or directory" for "/usr/lib/php/modules/phpchartdir520.dll". Would you mind to double check if everything from "ChartDirector/lib" (including the fonts subdirectory) has already been copied to "/usr/lib/php/modules/"? At least, you would need to have the files phpchartdir520.dll,  libchartdir.so and the fonts subdirectory in "/usr/lib/php/modules/". The "dll" and "so" should be readable and executable by everyone, while the fonts subdirectory should be readable by everyone.

Also, please double check if your PHP is in fact for Linux (i386). The "phpchartdir520.dll" should be 9304 bytes.

If the above still cannot solve the problem, would you mind to provide the following information to me to help diagnose the problem?

(a) The result of "phpinfo".

(b) Please go to the directory "/usr/lib/php/modules", then enter "ls -l", and inform me of the result.

Regards
Peter Kwan

  Re: Error Loading ChartDirector for PHP Extension
Posted by kennyh on Apr-19-2012 12:22
Hi, Peter,
thank you very much!
my mistake was not fond the real "/usr/lib/php/modules/" of my server !
after your step-by-step explain, and I already fix it. Thank you very much again !