|
ERROR CHARTDIRECTOR |
Posted by sanoussi on Apr-14-2016 17:56 |
|
I have this error when testing ChartDirector
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 SRVINTRANET01 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64
PHP version : 5.5.9-1ubuntu4.14
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php5/apache2/php.ini"
PHP extension directory : "/usr/lib/php5/20121212" |
Re: ERROR CHARTDIRECTOR |
Posted by Peter Kwan on Apr-14-2016 23:18 |
|
Hi sanoussi,
This usually means that ChartDirector for PHP is not installed in your system.
The Installation section of the ChartDirector for PHP documentation describes how to install ChartDirector on various types of PHP and servers. For your particular case, the installation steps are:
(a) Download ChartDirector for PHP for Linux (x86_64). (Your OS is Linux (x86_64). If your PHP comes with your OS, it is usually also of Linux (x86_64). The ChartDirector OS architecture needs to match with the PHP OS architecture.)
(b) Extract the distribution to a directory on your web server. For example:
tar xvfz chartdir_php_linux_64.tar.gz
(c) Copy everything inside "ChartDirector/lib" (including the fonts subdirectory) to your PHP extension directory, which is at "/usr/lib/php5/20121212". For example:
cp -r ChartDirector/lib/* /usr/lib/php5/20121212
(d) Add the following line in your PHP configuration file, which is at "/etc/php5/apache2/php.ini":
extension=phpchartdir550.dll
(*** NOTE ***: The above assumes your PHP is non-thread-safe, which is the most common type of PHP on Linux. If your PHP is thread-safe, please use extension=phpchartdir550mt.dll instead. You may use <?php phpinfo() ?> to determine if your PHP is thread-safe or not.)
(e) As your PHP/Server interface type is "apache2handler" (as opposed to FastCGI/CGI), you would need to restart Apache for any change to take effect. On some Linux, it can be done by:
sudo restart apache2
or
sudo service apache2 restart
If you are on a shared host and does not have administrative access to the PHP extension directory or php.ini or cannot restart Apache, please let me know.
Hope this can help.
Regards
Peter Kwan |
Re: ERROR CHARTDIRECTOR |
Posted by SANOUSSI on Apr-15-2016 14:24 |
|
Hi
I do what you said but have the same problems
Thanks for your help ! |
Re: ERROR CHARTDIRECTOR |
Posted by Peter Kwan on Apr-16-2016 00:43 |
|
Hi SANOUSSI,
If your server is accessible from the Internet, and you can allow me to access the server, I can go in to install it for you. You may email me at pkwan@advsofteng.net.
If the above is not possible, please kindly provide the following information:
- Please go to your server error log to see if there is any error information.
- Please inform me of the result of the "phpinfo"
- Please provide me with the "php.ini" file
- Please let me know of the result of the followings. Please make sure the dll and libchartdir.so is readable and executable by everyone (chmod 755 if necessary)
cd /usr/lib/php5/20121212
ls -l
Regards
Peter Kwan |
Re: ERROR CHARTDIRECTOR |
Posted by SANOUSSI on Apr-19-2016 02:53 |
|
Hi
I update documents about my ubuntu server.
- php.ini
- result of cd /usr/lib/php5/20121212 ls -l
thanks for your help |
Re: ERROR CHARTDIRECTOR |
Posted by SANOUSSI on Apr-19-2016 02:55 |
|
php.ini
|
Re: ERROR CHARTDIRECTOR |
Posted by SANOUSSI on Apr-19-2016 03:12 |
|
result of cd /usr/lib/php5/20121212 ls -l |
Re: ERROR CHARTDIRECTOR |
Posted by SANOUSSI on Apr-19-2016 03:14 |
|
result of cd /usr/lib/php5/20121212 ls -l |
Re: ERROR CHARTDIRECTOR |
Posted by Peter Kwan on Apr-20-2016 03:06 |
|
Hi SANOUSSI,
In your "php.ini", I found two lines:
extension=phpchartdir530.dll
and
extension=phpchartdir550.dll
If you are using PHP 5.5.x, the first line "extension=phpchartdir530.dll" should be unnecessary and may cause error. Please remove that line. Then restart Apache for the change to take effect.
For some reason, I cannot see the result of the:
cd /usr/lib/php5/20121212
ls -l
Is it possible to execute the command once more, and copy and paste the result to the message?
The phpinfo is also important. Please create a web page with just one line on your server:
<?php phpinfo(); ?>
then access that web page. It should display some PHP information. Please right click on the web page and press "Save As" to save the web page to a file, and attach the file with the message. Note that when you upload the file to the forum, you would need to press the "Send File" button, otherwise the file may not be uploaded.
If your web server is accessible from the Internet, and you can allow me to login or upload files, I can install ChartDirector for you. You may email me at pkwan@advsofteng.net
Regards
Peter Kwan |
|