Hi Sathish,
For you case, please kindly verify the followings:
(a) I assume the Apache/PHP that you are using is comes with the operating system (and
not a third party distribution or compile my yourself). If the Apache/PHP comes with your
OS, it should be of the x86_64 architecture (the same as that of your OS). In this case,
please ensure you have download the "ChartDirector for PHP for Linux (x86_64)". The
"libchartdir.so" file should be of size 4295960 bytes.
(b) Please copy "everything" from "ChartDirector/lib" to your PHP extension directory
"/usr/lib/php5/20100525". After copying, you should see the files
"/usr/lib/php5/20100525/phpchartdir540.dll", "/usr/lib/php5/20100525/libchartdir.so" and
the "/usr/lib/php5/20100525/fonts" subdirectory, and also of DLL files. Please ensure you
have copied everything (the dll, so and fonts), not just the DLL.
Please make sure all the files copied are readable and executable by the web server. (For
testing, you may simply make then readable and executable by "everyone".)
(c) Please modify the file "/etc/php5/apache2/php.ini" by including the line:
extension=phpchartdir540.dll
(I usually do not include the double quotes. I guess the double quotes will not cause any
issue, but to avoid uncertainly, you may omit them.)
(d) Restart Apache. (Because the PHP type you are using is "apache2handler", changing
"php.ini" will have no effect until you restart Apache.)
If the above still does not solve the problem, please look at the Apache error log file. It
may contain error messages that explain why the line "extension=phpchartdir540.dll"
cannot load the PHP extension. Please kindly let me know of the error messages you find.
If your machine is accessible from the Internet, and you can provide me with an account
that can have read and write access to the PHP extension directory and the php.ini, I
can try to install ChartDirector for you.
Regards
Peter Kwan |