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

Message ListMessage List     Post MessagePost Message

  Chartdirector on CentOS 8 and PHP 7.4.1
Posted by Harlow Pinson on Dec-30-2019 07:27
Hi. Long time Chartdirector user here.

Hello. I am building a new production CentOS 8 server that uses ChartDirector.

I cannot get CD to load.

Here is what I have tried.

Installed latest stable PHP (7.4.1) via dnf from remi

Downloaded latest Linux (x86_64) chartdir_php_linux_64.tar.gz

Copied entire lib dicrectory to /usr/lib64/php/modules/ including the fonts directory and both php files.

Checked that php was non-threadsafe:
php -i|grep Thread
Thread Safety => disabled

In /etc/php.ini (the only one on the disk)

uncommented extension_dir = "/usr/lib64/php/modules/"

Added
[ChartDirector]
extension = phpchartdir740.dll

PHPInfo shows that CD is not loading. No charts display.

I see no errors in the logs.

Can you help? Thank you.

  Re: Chartdirector on CentOS 8 and PHP 7.4.1
Posted by Harlow Pinson on Dec-30-2019 07:28
Oh, and yes I restarted httpd.

  Re: Chartdirector on CentOS 8 and PHP 7.4.1
Posted by Peter Kwan on Dec-30-2019 23:48
Hi Harlow,

The cause of the issue is because PHP is not restarted. Changes to "php.ini" only takes effect when PHP is restarted.

I have just tried it myself. The type of PHP in dnf remi is FPM/FastCGI. This type of PHP runs its own service independent of Apache. That means restarting the httpd service will not restart PHP. You would to restart the FPM PHP itself.

sudo service php-fpm restart

Hope this can help.

Regards
Peter Kwan

  Re: Chartdirector on CentOS 8 and PHP 7.4.1
Posted by Harlow Pinson on Dec-31-2019 10:05
Thank you so much Peter. It worked and I never would have thought of that.