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

Message ListMessage List     Post MessagePost Message

  ChartDirector on Windows 2012 IIS8
Posted by Lim on May-31-2015 16:12
Hi,

I just purchase ChartDirector yesterday and test in my computer (Windows 8.1, XAMPP,
ChartDirector 32 bits) everything work fine.

After installing ChartDirector on Windows 2012 with IIS8, PHP 5.3.28 there is error

-------------------------- Start
ChartDirector Information
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 MONIONLINESRV 6.2 build 9200 (Unknow Windows
version Standard Edition) i586
PHP version : 5.3.28
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\\"
-------------------------- End

If you want to access into the page, please tell me. It is on Internet.

Please help to fix this problem.

Best regards,
Lim

  Re: ChartDirector on Windows 2012 IIS8
Posted by Peter Kwan on Jun-01-2015 19:04
Hi Lim,

First, please make sure you have downloaded the edition of ChartDirector that matches
the arhichitecture of your PHP. From your error message, it seems you are using Windows
64-bit OS, but your PHP architecture for Windows 32-bit. (I am not 100% sure, and is
just based on that the PHP is in the "C:\\Program Files (x86)" subdirectory, which is
usually for 32-bit applications on 64-bit OS".) If your PHP architecture is really for
Windows 32-bit, please make sure you are using "ChartDirector for PHP" for Windows 32-
bit (*not* the one for Windows 64-bit).

Please also copy "all files" from "ChartDirector/lib" to your PHP extension directory
"C:\\Program Files (x86)\\PHP\\v5.3\\ext\\". Note that it is suggested you copy all files, not
just the "phpchartdir???.dll", but also the "chartdir.dll".

There are two types PHP, and they are binary incompatible. One is thread-safe, and the
other is non-thread-safe. If you are not sure which type of PHP you are using, please use
"phpinfo" to found out if it is thread-safe or not. From your error message, which
mentions about "cgi-fcgi", it can be non-thread-safe. If this is the case, the PHP
extension to load is "phpchartdir530nts.dll". So please put the following line in your
"C:\\Program Files (x86)\\PHP\\v5.3\\php.ini" file:

extension=phpchartdir530nts.dll

You can then restart the IIS by opening a command shell and enter:

iisreset

If the above still cannot solve the problem, would you mind to copy the entire
"ChartDirector" director to your site, and inform me of the URL of that directory. You can
email me at pkwan@advsofteng.net

Regards
Peter Kwan

  Re: ChartDirector on Windows 2012 IIS8
Posted by Lim on Jun-02-2015 00:26
Dear Peter,

1. I let Web PI to install so I did not choose 32bits or 64bits
2. confirm that I use ChartDirector 32bits
3. confirm that I copy all files from ChatDirector/lib to PHP/ext
4. I try with PHP version
- 5.3.28
- 5.5.11
- 5.6.0
- 5.3.1 (copy everything from my computer and work fine)
other versions; if load not *nts.dll, will get the error same as my first post and cannot see
graph. If load not *nts.dll, php will not start at all (cannot open any PHP page).

I already copied "ChartDirector" on my server, I will send URL via email.

Anyway, I think problem is using Web PI to install PHP, as I noticed that it changed all
setting in php.ini into bottom of the file, but I cannot find difference. I will send you php.ini
of not working too.

Thanks
Lim