|
ChartDirector for PHP |
Posted by Bobpat on May-26-2012 00:32 |
|
Hi All,
We are trying to run ChartDirector on PHP 5.3.8. I have updated phpchartdir530.dll
in ext and updated php.ini file with extension=phpchartdir530.dll , but still getting error. Any
help is appreciated.
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 : Windows NT C7ENGS007 6.1 build 7601 (Windows Server 2008 R2
Standard Edition Service Pack 1) i586
PHP version : 5.3.8
PHP / Web Server interface : cgi-fcgi
PHP configuration file location : "C:\\Program Files (x86)\\PHP\\v5.3\\php.ini"
PHP extension directory : "C:\\Program Files (x86)\\PHP\\v5.3\\ext\\"
Thanks,
Bob |
Re: ChartDirector for PHP |
Posted by Peter Kwan on May-26-2012 03:23 |
|
Hi Bobpat,
First, please confirm if you are using thread-safe or non-thread-safe PHP (use phpinfo). It is well known that non-thread-safe PHP is more stable, so it is common for non-thread-safe PHP to be used with FastCGI/CGI, as this type of server interface does not require multi-threading. If you are using non-thread-safe PHP, the extension statement should be "extension=phpchartdir530nts.dll". If you are using thread-safe PHP, it should be "extension=phpchartdir530.dll".
There can be many "php.ini" file in your system. According to the error message, the one that is actually being used by your PHP is:
"C:\\Program Files (x86)\\PHP\\v5.3\\php.ini"
Would you mind to confirm that you have added extension statment to the "php.ini" at "C:\\Program Files (x86)\\PHP\\v5.3\\php.ini"?
As your program file path has (x86) there, it appears you are using 64-bit Windows. In 64-bit Windows, your PHP can be 64-bit or 32-bit. If you are using 32-bit PHP, you should use the ChartDirector for PHP for Windows (32-bit). If you are using 64-bit PHP, you should use the ChartDirector for PHP for Windows (64-bit). Note that the Windows 32-bit and Windows 64-bit refers to the PHP architecture, not that of the OS. Please make sure you are using the ChartDirector edition that matches your PHP archiecture, which may not be the same as your OS architecture.
If your PHP is downloaded precompiled from the official PHP web site, then it is likely to be 32-bit. (From what I am aware, there is no official 64-bit PHP on Windows. But as PHP is open source software, there are some 64-bit PHP compiled by third parties.)
Please make sure you have copied "everything" (including the "phpchartdir530.dll", "phpchardir530nts.dll" and also the "chartdir.dll") from "ChartDirector/lib" to your PHP extension directory at "C:\\Program Files (x86)\\PHP\\v5.3\\ext\\". Please make sure the files are readable and executable by everyone (the server usually runs as the "anonymous user").
If you are using FastCGI, you may need to restart the web server for any modification to take effect. If your web server is IIS, you would need to open the command prompt, and enter "iisreset". If you are using Apache, please the Apache control to stop and then start the server.
If the above still cannot solve the problem, please look at the server error log or the PHP error log file. This should contain the detail error message that occurs when PHP is initializing and attempting to load ChartDirector from "php.ini". Please let me know what is the error message. Also, please kindly inform me of your "phpinfo".
Regards
Peter Kwan |
Re: ChartDirector for PHP |
Posted by bobpat on May-30-2012 02:28 |
|
Hi Peter,
Thanks for reply. I change the "extension=phpchartdir530nts.dll" in php.ini file and it's working now.
Thanks,
Bob. |
|