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

Message ListMessage List     Post MessagePost Message

  Move to Linux
Posted by Dennis Geller on Apr-28-2006 02:20
I moved an application from windows to the (linux) server, maintaining the relative directoiry structure . I thought that ChartDirector would have no problem, but in fact I see the error messsage that follows this query.

This is the server configuration:
Linux| is the php_os
5.1.1Is the PHP version

I don't expect to be able to drop anything in the php extensions file, so I wonder how I can twiddle phpchartdir.php to look in a library under my control?

I have tried putting both the folder LIB and the contents of the folder in my top level directory, where the scripts all live, and there's no change.

Help would certainly be appreciated.

(Oh, final note: I keep (on Windows) the phpchartdir.php file in a directory below the one where the scripts that use Chart Dir live . On windows, where I have the extension library, to fool with that's fine-- coukd there be some reason why that file needs to be in the same place as the others?

Error Loading ChartDirector for PHP Extension

An attempt has been made to dynamically load ChartDirector, but it was not successful. Please refer to your ChartDirector for PHP documentation or click here for how to resolve the problem.


Error Log

Trying to load "phpchartdir510.dll" from the PHP extension directory "/usr/lib/php4".

dl(): Unable to load dynamic library '/usr/lib/php4/phpchartdir510.dll' - /usr/lib/php4/phpchartdir510.dll: cannot open shared object file: No such file or directory

Also trying to load "phpchartdir510.dll" from "/home/lmap/html/utilities".

dl(): Unable to load dynamic library '/home/lmap/html/utilities/phpchartdir510.dll' - /home/lmap/html/utilities/phpchartdir510.dll: cannot open shared object file: No such file or directory

  Re: Move to Linux
Posted by Peter Kwan on Apr-28-2006 03:46
Hi Dennis,

Where the ChartDirector libraries should be located is in fact determined and controlled by PHP (and therefore the system administrator for PHP).

If you are not the system administrator, and have no access to the PHP extension directory, you may anyway try to put in the directory that the error message suggests:

'/home/lmap/html/utilities/'

(Is there a "utilities" directory under you control?)

You should copy all *everything* in "ChartDirector/lib" (including the fonts subdirectory) to that directory. There should be a file '/home/lmap/html/utilities/phpchartdir510.dll' and also other files like '/home/lmap/html/utilities/libchartdir.so'.

If the above still cannot solve the problem, you may inform me the URL of your Linux host, and also put a "phpinfo" page in your host. I may go in to have a look.

Regards
Peter Kwan

  Re: Move to Linux
Posted by Dennis Geller on May-01-2006 19:46
Peter
You asked (in an email that isn't posted here)  about a directory named /DAV'. My mail response Friday bounced (someplace between us, near as I can tell). The story is that the DAV is some
Microsoft hook for viewing files on a remote server using Exporerer. It is not actually
a directory.

As for the actual problem, I've finally gotten administration to put all the files in the right places, and will be trying the program soon.

  Re: Move to Linux
Posted by Dennis Geller on May-01-2006 20:59
And gosh, now that the files are installed properly, CD works again. Thanks

  Re: Move to Linux
Posted by Peter Kwan on May-02-2006 01:43
Hi Dennis,

Sorry for my ignorance of the "/DAV" directory. I am glad to hear that it works now.

Regarding the email bouncing, we have know that emails to "advsofteng.com" is easy to bounce because of aggressive spam filtering of the ISP. (Even the word "FreeBSD" in the email subject may cause the mail to bounce because it sees the keyword "Free".) So our formal email address is using the advsofteng.net domain instead (hosted by another ISP). My email is pkwan@advsofteng.net. You may use this address to contact me in the future.

Regards
Peter Kwan