|
Cant make work ChartDirector |
Posted by Servando Mendoza on Jul-12-2012 16:05 |
|
Hi I can't run my ChartDirector, the example for phpdemo/cdinfo.php throws me the following error:
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 : Linux debianser 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686
PHP version : 5.3.3-7+squeeze13
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php5/apache2/php.ini"
PHP extension directory : "/usr/lib/php5/20090626+lfs"
--- The steps I did for installing are the following: ---
Basically followed the instructions for Use Extension Statement in php.ini to Load ChartDirector
-Downloaded ChartDirector for Linux (i386/i686).
-Extract and copied lib content on my extension directory /usr/lib/php5/20090626+lfs
-Add extension=phpchartdir530.dll to my php.ini in /etc/php5/apache2/php.ini
-Reload Apache web server.
my php.ini has safe_mode = Off and enable_dl = On
my os is debian linux 2.6
I have tried with extension=phpchartdir530mt.dll but still not work
I don't know what I did wrong, or what else I need to do?
Can someone please help me??
Thank you all |
Re: Cant make work ChartDirector |
Posted by Peter Kwan on Jul-13-2012 03:32 |
|
Hi Servando,
The steps you use are 100% correct.
To further diagnose the problem, is it possible to provide the following information:
(a) Go to your Apache error log file. It should have an entry the explains why the phpchartdir530.dll cannot be loaded.
(b) If you cannot find any information in the Apache error log file, please check if your PHP is really using "/etc/php5/apache2/php.ini". Please change the "extension_dir" statement to:
extension_dir=/aaa/bbb
Now try again to see if the PHP extension directory is reported as /aaa/bbb. If the PHP extension directory is still reported as "/usr/lib/php5/20090626+lfs", it is possible your PHP is not using your "php.ini", or the Apache has not been restarted. (The PHP only reads "php.ini" when Apache is restarted.) Please use phpinfo to confirm if the PHP is really using "/etc/php5/apache2/php.ini".
(c) Please issue the following command and inform me of the result:
cd /usr/lib/php5/20090626+lfs
ls -l
(d) If possible, you may attach your "php.ini" and inform me of the result of your "phpinfo" (or email to me at pkwan@advsofteng.net).
Regards
Peter Kwan |
Re: Cant make work ChartDirector |
Posted by Sherri Cargill on Nov-28-2012 11:30 |
|
Peter,
What was the solution to this installation issue? I have a very similar installation and I'm
also having problems getting ChartDirector to run. |
Re: Cant make work ChartDirector |
Posted by Peter Kwan on Nov-28-2012 15:55 |
|
Hi Sherri,
I am not sure what is the final result of this particular case, but if you have administrative access to the host, in almost 100% of the case, PHP installation issues can be solved. If you do not have administrative access (eg. if you are using a shared host), then in 90% of the cases, the problem can be solved. In the remaining 10% of the cases, the hosting company may have configured the system to be very restrictive (such as disallowing all shared objects in the user hard disk by mounting the disk with no_exec) so it is not possible to install any binaries
The followings are something you may check (assuming your have administrative access):
(a) Do you know what is the operating system architecture of your PHP? Is it for Linux (i386/i686), or is it for Linux (x86_64)? Please make sure you download the ChartDirector for PHP that matches your PHP operating system architecture.
(b) Do you know where is your PHP extensiond directory? Have you copied "everything" in "ChartDirector/lib" (including all DLLs and shared objects and the fonts subdirectory) to the PHP extension directory?
(c) Have you allowed the DLLs and shared objects to be readable and executable by the web server (which is normally running under a low privilege account reprensenting the anonymous user)? If your are using SELinux, have you configured the SELinux extended security attribtues (in addition to the "chmod 755") to make sure the web server has read and execute access? If you are not familiar with how to use SELinux, for testing purposes, you may consider to disable it entirely.
(d) Do you know where is your PHP configuration file "php.ini"? Have you added the line "extension=phpchartdir530.dll" to your PHP configuration file (assuming you are using non-thread-safe PHP 5.3.x)?
(e) Have you restarted Apache after modifying the "php.ini"?
If the above still does not solve the problem, would you mind to inform me the exact error message, and whether you have administrative access, or are using a shared host.
Regards
Peter Kwan |
Re: Cant make work ChartDirector |
Posted by Sherri Cargill on Nov-29-2012 01:40 |
|
Awesome Peter!! You are the "bees knees"!! I followed your directions and it's working!
Thank you. |
|