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

Message ListMessage List     Post MessagePost Message

  Cant make work ChartDirector
Posted by Servando Mendoza on Jul-12-2012 23:51
Hi I can't run my ChartDirector, the example for phpdemo/cdinfo.php throws me 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 debianser 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686
    PHP version : 5.3.3-7+squeeze13
    PHP / Web Server interface : apache2handler
    PHP configuration file location : "/etc/php5/apache2/php.ini"
    PHP extension directory : "/usr/lib/php5/20090626+lfs"

--- The steps I did for installing are the following: ---

Basically followed the instructions for Use Extension Statement in php.ini to Load ChartDirector

-Downloaded ChartDirector for Linux (i386/i686).
-Extract and copied lib content on my extension directory /usr/lib/php5/20090626+lfs
-Add extension=phpchartdir530.dll to my php.ini in /etc/php5/apache2/php.ini
-Reload Apache web server.

my php.ini has safe_mode = Off and enable_dl = On
my os is debian linux 2.6
I have tried with extension=phpchartdir530mt.dll but still not work

I don't know what I did wrong, or what else I need to do?

Can someone please help me??


Thank you all

  Re: Cant make work ChartDirector
Posted by Peter Kwan on Jul-13-2012 03:32
Hi Servando,

The steps you use are 100% correct.

To further diagnose the problem, is it possible to provide the following information:

(a) Go to your Apache error log file. It should have an entry the explains why the phpchartdir530.dll cannot be loaded.

(b) If you cannot find any information in the Apache error log file, please check if your PHP is really using "/etc/php5/apache2/php.ini". Please change the "extension_dir" statement to:

extension_dir=/aaa/bbb

Now try again to see if the PHP extension directory is reported as /aaa/bbb. If the PHP extension directory is still reported as "/usr/lib/php5/20090626+lfs", it is possible your PHP is not using your "php.ini", or the Apache has not been restarted. (The PHP only reads "php.ini" when Apache is restarted.) Please use phpinfo to confirm if the PHP is really using "/etc/php5/apache2/php.ini".

(c) Please issue the following command and inform me of the result:

cd /usr/lib/php5/20090626+lfs
ls -l

(d) If possible, you may attach your "php.ini" and inform me of the result of your "phpinfo" (or email to me at pkwan@advsofteng.net).

Regards
Peter Kwan