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

Message ListMessage List     Post MessagePost Message

  ChartDirector Installation - Error
Posted by Rajeev Samuel on Jun-07-2011 01:47
Hi,

Getting a strange error.  ChartDirector is trying to load a dll but it's installed on a linux machine.

Error Loading ChartDirector for PHP Extension

An attempt has been made to dynamically load ChartDirector, but it was not successful. Please refer to your ChartDirector for PHP documentation or click here for how to resolve the problem.


Error Log

Trying to load "phpchartdir530.dll" from the PHP extension directory "/usr/local/zend/lib/php_extensions".

cdLoadDLL(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead

  Re: ChartDirector Installation - Error
Posted by Rajeev Samuel on Jun-07-2011 01:53
tried with
ChartDirector for PHP - Software and HTML Doc   Linux (i386)   7.3 MB   Download   Download
ChartDirector for PHP - Software and HTML Doc Linux (x86_64) 6.8 MB Download Download

  Re: ChartDirector Installation - Error
Posted by Peter Kwan on Jun-07-2011 22:54
Hi Rajeev,

It is not abnormal to use ".dll" in Linux. There is a common misunderstanding that Linux must use ".so". This is not true for "dynamically loaded" shared objects. You can use any extension you want. The Linux OS itself uses other extensions as well, such as ".ko" or simply no extension.

For your case, I assume you are using PHP 5.3.x. PHP 5.3.x does not support dynamic loading of PHP extensions. All PHP extensions must be loaded using "php.ini". The installation section of the ChartDirector documentation has detail steps on how to install ChartDirector using extension statements in "php.ini". In brief, the steps are:

(a) Download the ChartDirector for PHP editor that fits your PHP architecture. If your OS is Linux (i386) or (i686), please download ChartDirector for Linux (i386). If your OS is Linux (x86_64), usually you should use ChartDirector for Linux (x86_64).

(b) Copy *everything* (all files and subdirectories) from "ChartDirector/lib" to your PHP extension directory.

(c) Modify the "php.ini" to include the following line.

extension=phpchartdir530.dll

(d) If you are not using CGI to interface PHP with Apache, you would need to restart Apache after changing "php.ini".

If you are not sure the exact type of Linux OS you are using, or where is your PHP extension directory or "php.ini", please use "phpinfo" to find out.

Note: The warning message "It is not safe to rely on the system's timezone settings. ..." is not related to ChartDirector. It probably is due to your PHP being configured incorrectly. Please set up the timezone settings in your "php.ini" to satisfy the PHP. (This warning message may be hiding the real error message, so we cannot see the actual error, which should be "Call to undefined function dl()".

Please let me know if the above can solve the problem.

Regards
Peter Kwan