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

Message ListMessage List     Post MessagePost Message

  Setup on Shared hosting
Posted by Jason on Aug-23-2012 21:24
Hello,

I have a very unique problem and would appreciate any help in that area.

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 "phpchartdir520.dll" from the PHP extension directory "/aaa/public/temp/".

dl(): Unable to load dynamic library '/aaa/public/temp/phpchartdir520.dll' -
/aaa/public/temp/phpchartdir520.dll: cannot open shared object file: No such file or
directory

It appears the PHP extension directory of this system is configured as
"/aaa/public/temp/", but this directory does not exist or is inaccessible. PHP will then
refuse to load extensions from any directory due to invalid directory configuration. Please
ensure that directory exists and is accessible by the web server.


System Information
Operating System : Linux web25c40 2.6.31.12.With.Authcache+Pxeboot_Cmdline_4096
#1 SMP Mon Dec 13 21:56:57 EST 2010 i686
PHP version : 5.2.17
PHP / Web Server interface : cgi
PHP extension directory : "/aaa/public/temp/"


***

Shared hosting does have enable_dl on and safe_mode off.  The file(s) is in the directory
and yet throwing errors.  Any ideas?

Thanks
Jason

  Re: Setup on Shared hosting
Posted by Peter Kwan on Aug-23-2012 22:50
Hi Jason,

Note that the PHP extension directory is a file system path (the path that you use to access the file system). The leading "/" means the root of the hard disk. It is not a URL path or FTP path. (In a URL path, the "/" refers to the root of the web document directory and subjected to virtual directory mapping. Similarly, in a FTP path, the "/" refers to the root of the FTP root directory. They are not the same as the file system path.)

In your case, you have set the path to "/aaa/public/temp/". It is very uncommon to put the directory "/aaa" at the root of the hard disk (especially in a shared host). Are you sure the above is a file system path, and not your FTP path? You may use phpinfo to confirm the true file system path of your "aaa" directory.

In your case, as your are using 32-bit Linux, the ChartDirector edition to use should be "ChartDirector for PHP for Linux (i386)". (In some 32-bit Linux, if you use the 64-bit edition of ChartDirector, the Linux OS will report "No such file or directory" error even if the file exists.)

If the above still cannot solve the problem, is it possible to inform me the result of your phpinfo (or provide a link to your phpinfo page if it is accessible from the Internet - you may email the URL to me at pkwan@advsofteng.net if you do not want to make the link public).

Regards
Peter Kwan