|
Installing ChartDirector on new Server Issues |
Posted by Joe on Feb-04-2014 01:16 |
|
Hello,
I am installing ChartDirector on a Windows 2008 server, with IIS 7.5. I have PHP 5.2.17 running and ChartDirector 5.1 is what I am trying to setup. I have setup the files in My PHP extension folder and have also added the line "extension=phpchartdir520.dll" to my php.ini file.
As soon as I hit my first PHP page that includes phpchartdir.php, I get the following:
"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.
Trying to load "phpchartdir520.dll" from the PHP extension directory "C:\\PHP\\ext\\".
dl(): ChartDirector PHP API: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match
Also trying to load "phpchartdir520.dll" from "localsite\\includes".
dl(): Temporary module name should contain only filename
PHP version : 5.2.17
PHP / Web Server interface : cgi-fcgi
PHP configuration file location : "C:\\PHP\\php.ini"
PHP extension directory : "C:\\PHP\\ext\\" |
Re: Installing ChartDirector on new Server Issues |
Posted by Peter Kwan on Feb-04-2014 23:48 |
|
Hi Joe,
From the spelling of the error message, it appears the "phpchartdir.php" you are using is
from ChartDirector 4.x. If you are sure you are using ChartDirector 5.x, may be you also
have an older version of "phpchartdir.php" in your system, and your script is using that older
version of "phpchartdir.php". (It is not uncommon for people to copy "phpchartdir.php" to
their own script directories. When the ChartDirector is upgraded, it is easy to forget to
upgrade those older "phpchartdir.php".)
Your PHP is a non-thread-safe PHP. This type of PHP is not binary compatible with thread-
safe PHP, and it did not exist at the time of ChartDirector 4.x, so ChartDirector 4.x would
not know how to handle them. The "phpchartdir.php" in ChartDirector 5.1 should know how
to handle them (by loading "phpchartdir520nts.dll" instead of "phpchartdir520.dll"). You can
also modify "php.ini" to explicitly set the extension to "extension=phpchartdir520nts.dll".
To avoid uncertainly, please reset the IIS after modifying "php.ini". The easiest way to do
this is to open a command prompt, and enter "iisreset" (this takes only a few seconds to
reset). Sometimes the PHP will not read the modified "php.ini" until IIS is reset.
Hope this can help.
Regards
Peter Kwan |
|