|
Error Loading ChartDirector for PHP Extension |
Posted by yanto on Oct-17-2012 10:25 |
|
Dear ChartDirector Support Team,
Help me, please
I try to install ChartDirector on my 64 bit machine, but found error below
Error Loading ChartDirector for PHP Extension
My machine spec
Operating System : Windows NT INDECDIAG 6.0 build 6001 (Windows Server 2008 Small Business Server Service Pack 1) i586
PHP version : 5.4.7
PHP / Web Server interface : cgi-fcgi
PHP configuration file location : "C:\\PHP\\php.ini"
PHP extension directory : "C:\\PHP\\ext"
Installation step i do:
1. extract chartdir_php_win64.zip
2. copy ChartDirector/lib into c:\\PHP on my machine
3. put script below on php.ini
[PHP_ChartDirector]
; thread safe
extension=phpchartdir540.dll
thanks a lot before
regards,
Yanto |
Re: Error Loading ChartDirector for PHP Extension |
Posted by Peter Kwan on Oct-17-2012 19:03 |
|
Hi yanto,
I suspect you are using 32-bit PHP in your system.
Note that even if your machine or Windows is 64-bit, your PHP can still be 32-bit. In the official PHP web site, only the 32-bit PHP on Windows is available. Many common PHP on Windows distribution are also 32-bit only. So it is common for people to use 32-bit PHP on 64-bit Windows.
If you are not sure if your PHP is 32-bit or 64-bit, would you mind to clarify where do you obtain your PHP? I can check it for you. If it is downloaded from the official PHP web site, it is likely to be 32-bit.
If you are using 32-bit PHP, please use chartdir_php_win32.php instead.
To install ChartDirector for PHP on Windows, you would need to copy all files from "ChartDirector\\lib" to your PHP extension directory at "c:\\PHP\\ext" (not "c:\\PHP" as mentioned in your message). After copying, there should be the files "c:\\PHP\\ext\\phpchartdir540.dll", "c:\\PHP\\ext\\chartdir.dll" and other DLLs in your PHP extension directory. Also, please check if your PHP is thread-safe or non-thread-safe (you may use "phpinfo" to confirm). The "extension=phpchartdir540.dll" is only applicable for thread-safe PHP. For the "php.ini" file, please make sure you are modifying the "c:\\PHP\\php.ini". Finally, please enter "iisreset" from the command line after you performed the modification to restart the IIS/PHP.
Hope this can help.
Regards
Peter Kwan |
Re: Error Loading ChartDirector for PHP Extension |
Posted by yanto on Oct-18-2012 11:43 |
|
Problem Solved
First, follow Peter Kwan advice, i move Chartdirector\\lib to PHP\\ext, then
All file Chartdirector\\lib that put on PHP\\ext must setup readable to all user
Thanks a lot to Peter Kwan. |
|