I am pulling my hair on this one. Prior to easyApache4 the install directions that come with the JpGraph download would be pretty straight forward, but with easyApache and multiple instances of PHP it is no longer straight forward.
I have 3 versions of PHP installed, PHP71, 72 and 73, I have yet to update to 8.x. But the problem is that the directory structure is no longer the same.
Here is what know so far:
"whereis php" => /usr/bin/php /usr/local/bin/php
"which php" => /usr/local/bin/php
php -f "phpInfo();" (the relevant info)
==============================
<trimmed>
Configuration File (php.ini) Path => /opt/cpanel/ea-php73/root/etc
Loaded Configuration File => /opt/cpanel/ea-php73/root/etc/php.ini
Scan this dir for additional .ini files => /opt/cpanel/ea-php73/root/etc/php.d
Additional .ini files parsed => /opt/cpanel/ea-php73/root/etc/php.d/10-opcache.ini,
/opt/cpanel/ea-php73/root/etc/php.d/20-bcmath.ini,
/opt/cpanel/ea-php73/root/etc/php.d/20-bz2.ini,
... many more .ini files
extension_dir => /opt/cpanel/ea-php73/root/usr/lib64/php/modules => /opt/cpanel/ea-php73/root/usr/lib64/php/modules
include_path => .:/opt/cpanel/ea-php73/root/usr/share/pear => .:/opt/cpanel/ea-php73/root/usr/share/pear
PATH => /usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/cpanel/composer/bin:/home/userDir/bin
PWD => /home/userDir/php
========================
So it looks like everything is in the /opt/cpanel/ea-php73/root directory, but here is the output of that dir:
ls -la /opt/cpanel/ea-php73/root
total 0
dr-xr-xr-x 17 root root 224 Nov 24 2021 .
dr-xr-xr-x 3 root root 32 Nov 24 2021 ..
lrwxrwxrwx 1 root root 7 Nov 24 2021 bin -> usr/bin
dr-xr-xr-x 2 root root 6 Nov 22 2021 boot
drwxr-xr-x 2 root root 6 Nov 22 2021 dev
drwxr-xr-x 13 root root 248 Mar 25 17:55 etc
drwxr-xr-x 2 root root 6 Nov 22 2021 home
lrwxrwxrwx 1 root root 7 Nov 24 2021 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Nov 24 2021 lib64 -> usr/lib64
drwxr-xr-x 2 root root 6 Nov 22 2021 media
drwxr-xr-x 2 root root 6 Nov 22 2021 mnt
drwxr-xr-x 2 root root 6 Nov 22 2021 opt
dr-xr-xr-x 2 root root 6 Nov 22 2021 proc
dr-xr-x--- 2 root root 6 Nov 22 2021 root
drwxr-xr-x 3 root root 18 Nov 22 2021 run
lrwxrwxrwx 1 root root 8 Nov 24 2021 sbin -> usr/sbin
drwxr-xr-x 2 root root 6 Nov 22 2021 srv
drwxr-xr-x 2 root root 6 Nov 22 2021 sys
drwxrwxrwt 2 root root 6 Nov 22 2021 tmp
drwxr-xr-x 14 root root 166 Nov 24 2021 usr
drwxr-xr-x 18 root root 210 Nov 24 2021 var
Knowing the above...where exactly should I be copying/moving the jpgraph folder to? How can I install it so its available to all versions of php that are installed? Would that require moving jgraph to a more neutral location and create a sym link that makes it available for any/all versions of 'ea-php7x' or soon to be '-ea-php8x' versions? How would I go about doing that?
Any/all help is appreciated, been pulling my hair out on this one and quite oddly, I have not found a SINGLE reference anywhere on how to install jpgraph on a cPanel with easyApache installed.
Thanks.