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

Message ListMessage List     Post MessagePost Message

  ChartDirector Installation
Posted by Rajeev Samuel on Jun-03-2011 06:35
Hi,

I am trying to install Chart director on a linux server at a company I am consulting for, however, the ext_libraries directory (/usr/lib64/php/modules) is off limits to 3rd party software.  Therefore, I cannot place the .so library file and the license key file in that directory.

Is there an alternate method of installing the library file and license key to any directory? Can we configure php to look for them somewhere else?

Thanks,,
Rajeev Samuel

  Re: ChartDirector Installation
Posted by Peter Kwan on Jun-04-2011 01:10
Hi Rajeev,

Yes. You can configure PHP to use an alternative PHP extension directory, or even configure to use an alternative PHP. It depends on which access rights do you have and how the Apache/PHP system is configued.

If you have access to the system PHP configuration file "php.ini" (you may use phpinfo to determine where the active "php.ini" is), you can always change the "extension_dir" statement line to specify an alternative PHP extension directory. Note that if your PHP/Web interface is SAPI or "apachehandler" or "apache2handler" (instead of CGI/FastCGI), you may need to restart Apache after modifying "php.ini". It is because for these handlers, PHP will only read "php.ini" during Apache start up.

If you do not have access to the system PHP configuration file, it may be possible to set up a private "php.ini" in your web document directory. Whether it is allowed, and the exact location and filename depends on how your Apache/PHP system is configured. It is sometimes called "php.ini" in the same directory as the script, but it can be using a different file name or location. You may need to refer to the adminstrator of your server (or to use its forum if there is one) for details.

In fact, just yesterday another of our customer has a similar issue with a hosting company. Their web site is hosted in using virtual hosting, and they do not have any adminstrative access. The problem is solved by simply using a private "php.ini". See:

http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_support&thread=1306497690#N1307053346

If you have CGI access, a final method is to configure your system to use a private instance of PHP. Usually this does not require administrative privilege, but it requires detail knowledge of CGI shell script and Apache .htaccess configuration. (Because every host is different, it is difficult to list out the exact steps. We may need to write a book to cover all possible cases.)

Hope this can help.

Regards
Peter Kwan