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

Message ListMessage List     Post MessagePost Message

  Installation problem in nginx server
Posted by Sam on Nov-16-2016 13:29
we are trying to install it in nginx server.
1. lib extentions are copied in module.
2. php.ini file modified with the dll extension .
But it is not working.

  Re: Installation problem in nginx server
Posted by Peter Kwan on Nov-16-2016 23:26
Hi Sam,

Please kindly double check the followings:

(a) Please make sure you have used the ChartDirector editions that matched your PHP type. If you are using PHP  for Linux (x86_64), please download "ChartDirector for PHP for Linux (x86_64)". If you are using PHP for Linux (i386/i686), please download  "ChartDirector for PHP for Linux (i386/i686)".

(b) Please extract the download distribution to a directory, and copy everything inside "ChartDirector/lib"  (including the fonts subdirectory) to your PHP extension directory.
You mentioned "lib extensions are copied in module". Please make sure the "module" you mentioned are in fact the PHP extension directory. Please use phpinfo to confirm that it is the PHP extension directory.

Suppose phpinfo mentions that your PHP extension directory is /usr/lib/php5/abc. After copying, your system should have the files "/usr/lib/php5/abc/phpchartdir???.dll",  "/usr/lib/php5/abc/libchartdir.so" and "/usr/lib/php5/abc/fonts/*.*".

(c) Please modify your PHP configuration file "php.ini" to include the suitable extension statement. The exact extension statement depends on your PHP version. See:

http://www.advsofteng.com/doc/cdphp.htm#phpinstall.htm

Please use phpinfo to determine the location of the "php.ini". It is common for systems to have multiple php.ini, and only one of them is the "real" one, and the phpinfo will display which one is the real one.

(d) On some systems, you would need to start the web server for the PHP to reload the "php.ini". If you are not sure if your system requires restart the web server, please restart the nginx server anyway for safety.

If the above still cannot solve the problem, please kindly provide the following information to help me diagnose the problem:

(a) The output of the phpinfo

(b) In the ChartDirector sample code main page (ChartDirector/phpdemo/index.php), there is a link on the left to check the installation. Please let me know what is the result.

(c) If possible, you may attach the "php.ini", and inform me which directory are using as the PHP extension directory and the full path of the "php.ini" you are using.

If you web server is accessible from the Internet, you may provide the URL of the ChartDirector sample code page to me, so I can go in to have a look. If you cannot post the URL in a public forum, you may email me at pkwan@advsofteng.net

Hope this can help.

Regards
Peter Kwan

  Re: Installation problem in nginx server
Posted by Sam on Nov-17-2016 15:51
Attachments:
(a) We already downloaded "ChartDirector for PHP for Linux (x86_64)".
(b) Here is the output "phpinfo.out".
     This is the url:      https://ttsdev.techtexas.net/complitrack/ChartDirector/phpdemo/index.php

(c) Full path description of php.ini -   /etc/php.ini
phpinfo.out
phpinfo.out

29.82 Kb
    
result.png

  Re: Installation problem in nginx server
Posted by Peter Kwan on Nov-18-2016 03:35
Hi Sam,

Thanks for the information. Please double check the followings:

(a) Please go to the "usr/lib64/php/modules" folder, and verify that there are the following files:

phpchartdir560.dll   (12160 bytes)
libchartdir.so  (around 4.8M)
fonts  (a folder)

(b) Please verify that the above files are accessible by Apache. Usually, making the files readable and executable by "everyone " (chmod 755) is sufficient. However, in some secure Linux installation, additional configuration may be needed.

(c) Please verify that the following line is in your "/etc/php.ini".

extension=phpchartdir560.dll

Please make sure there is no other extension=phpchartdir???.dll in your "php.ini".

(d) Please restart your web server. The exact method depends on your web server. In some Apache systems, the command can be: (I am not sure what it the command for nginx.)

apachectl restart

or:

/sbin/service httpd restart

(You may need to use "sudo" to run the above commands.)


If the above still does not solve the problem, the server should have an error log. Please look at the error log file to see if you can find any useful error message. Normally, if the extension=phpchartdir560.dll does not work, it will leave a message in the error log file explaining the reason for the failure.

If you can provide an account for me so that I can configure the "php.ini", upload to "/usr/lib64/php/modules" and upload to one of the web directories for testing the installation, I can try to install ChartDirector for PHP for you. You may email me at pkwan@advsofteng.net


Regards
Peter Kwan