Chapter 2: Install on Rocky Linux
Install ChartDirector
- Download the Linux x86_64 PHP archive from the ChartDirector downloads page.
- Record its SHA-256 checksum and retain the original archive with your deployment record. The vendor updates the archive behind a stable download URL; the saved checksum identifies your exact copy.
- Extract it under
/optso the library is/opt/ChartDirector/lib.
mkdir -p /tmp/chartdirector-download cd /tmp/chartdirector-download curl -fL -o chartdir_php_linux_64.tar.gz \ https://www.advsofteng.com/chartdir_php_linux_64.tar.gz sha256sum chartdir_php_linux_64.tar.gz sudo tar -xzf chartdir_php_linux_64.tar.gz -C /opt ls /opt/ChartDirector/lib/phpchartdir830.dll file /opt/ChartDirector/lib/phpchartdir830.dll ldd /opt/ChartDirector/lib/phpchartdir830.dll
Install freetype, fontconfig and dejavu-sans-fonts before running the APPX installer on a minimal Rocky image. Its bundled Java runtime uses FreeType even for unattended installation. These prerequisites do not require a web server or desktop environment.
sudo dnf install -y freetype fontconfig dejavu-sans-fonts
Keep the complete lib directory, including libchartdir.so, phpchartdir.php and fonts. Keep its files readable by the APPX runtime identity and its directories traversable. The runtime account needs write access to chart output, not to the vendor library.