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

Message ListMessage List     Post MessagePost Message

  Error Loading ChartDirector for PHP Extension after domain moved to a new server.
Posted by Paul Huffman on Oct-21-2009 07:11
After my hosting company moved my domain to a new server, my ChartDirector libraries for PHP are not loading. I tried compiling my own version of php, but that didn't work. I followed their directions to just make a custom php.ini in my cgi-bin directory, but that doesn't work.  In my php.ini, I made sure I added:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/home/ykfpdata/ykfp.org/php/ChartDirector/lib"
and enable_dl = On and  safe_mode = Off

cdinfo (http://ykfp.org/php/ChartDirector/phpdemo/cdinfo.php) shows the current configuration, using the host's default php configuration with my modified php.ini. This indicates they are running 5.2.9. Is this too new for the CD I have.

Also see http://ykfp.org/php/phpinfo.php. Not sure if my php.ini over rides theirs at /etc/php5/cgi

  Re: Error Loading ChartDirector for PHP Extension after domain moved to a new server.
Posted by Peter Kwan on Oct-21-2009 22:31
Hi Paul,

The error is because the operating system you are using has changed. I suspect previously you are using Linux (i386) or Linux (i686). Currently, your computer is using Linux (x86_64).

Linux can be compiled in many CPU architectures, and the Linux OS is designed such that different Linux architectures are not binary compatible. In your case, the ChartDirector you are using is for Linux (i386/i686), and Linux (x86_64) is not compatible with it.

To solve the problem, please download "ChartDirector for Linux for x86_64" from http://www.advsofteng.com/download.html, and use it instead of your existing ChartDirector.

Hope this can help.

Regards
Peter Kwan

  Re: Error Loading ChartDirector for PHP Extension after domain moved to a new server.
Posted by Paul Huffman on Oct-22-2009 02:21
Yes, Peter, that was it.   If you remeber, a couple years ago, I couldn't get ChartDirector to work on this server because I downloaded the 64 bit version.  Now the host has switched to 64 bit.

This solution was missed by the hosting company's second tier support too, so you should feel extra clever.

Thanks.