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

Message ListMessage List     Post MessagePost Message

  Chartdirector PHP on 64bit Ubuntu
Posted by Harlow Pinson on May-27-2011 01:43
Hi Peter. Thanks. I am having a problem and maybe you can help.

My OS is Ubuntu 11.4 64bit confirmed by:

lsb_release -a

Description:    Ubuntu 11.04
Release:        11.04
Codename:       natty

64 bit confirmed by:

uname - a: Linux vps.bddproject.org 2.6.36.2 #1 SMP Fri Dec 17 17:56:31
MST 2010 x86_64 x86_64 x86_64 GNU/Linux

php.ini is is /etc/php5/apache2/php.ini

PHP version is: 5.3.5-1ubuntu7

phpinfo() shows Thread Safety disabled.

I am using the 64 bit version of ChartDirector, downloaded today:
chartdir_php_linux_64.tar.gz

Extension is loaded thus: extension = phpchartdir530.dll

with that file located in /usr/lib/php5/20090626+lfs

For some reason I cannot get ChartDirector PHP to load into php. Apache2
is restarted.


When I load the sample charts, the error I get is:

Trying to load "phpchartdir530.dll" from the PHP extension directory
"/usr/lib/php5/20090626+lfs". Fatal error: Call to undefined function dl()
in /var/www/bddproject.org/ChartDirector/lib/phpchartdir.php on line 44

Any help would be appreciated.  Thanks!

  Re: Chartdirector PHP on 64bit Ubuntu
Posted by Peter Kwan on May-28-2011 00:38
Hi Harlow,

All the steps you mentioned seems correct. Would you mind to double confirm the followings?

(a) Is your PHP 64-bit? (Usually 64-bit Linux will use 64-bit PHP, but it is also possible for 64-bit to use 32-bit PHP, even though it is quite rare in practice. If your PHP comes with the OS, it is likely to be 64-bit. However, if it is a separate distribution, it may be possible that the PHP is 32-bit.)

(b) According to your phpinfo, is the active php.ini being "/etc/php5/apache2/php.ini"?

(c) Have you modified the active "php.ini" to include the line "extension = phpchartdir530.dll"?

(d) According to your phpinfo, is the PHP extension directory being "/usr/lib/php5/20090626+lfs"?

(e) Have you copied *everything* from "ChartDirector/lib" to your PHP extension directory? (Note: you should at least copy "phpchartdir530.dll" and "libchartdir.so" and the fonts subdirectory. Do not just copy "phpchartdir530.dll" only.)

(f) Have you set the file security so that the Apache/PHP can have read and execute access to the files in the PHP extension directory?

If after restarting Apache, the problem still cannot be solved, please check the Apache error log and the PHP error log file. This should contain important information as to the cause of the problem.

Please kindly let me know of any error message.

Also, you may try to start Apache in debug mode. In this way, you may see the error message in the console screen directly. I am not sure the exact command to do this in Ubuntu. In some Linux, it is like:

apachectl stop
apachectl -X

Regards
Peter Kwan

  Re: Chartdirector PHP on 64bit Ubuntu
Posted by Harlow Pinson on May-31-2011 22:53
Nuts... yes, the hosting company had installed 32 bit php on 64 bit linux. Using the 32 bit driver solved the problem and all is well. Thanks for the tip... I would have probably spent days...  -- Harlow