You've found the prerequisites pour PHP. Good.
You can verify with phpinfo(). Give us the results ...
I suppose you server have AND Communication Service (/ocsinventory with Perl module) AND Administration Service (/ocsreports with Php module).
IMHO it's more difficult to get all Perl dependencies (you'll need to get CPAN command ...).
Also, with lot of tutos available on Internet, with easy Debian or Centos distribution, you can create a server ready in less than 1 hour : myself, 2 months ago, with my own Proxmox at home, I've created 5 new VM fully operationnal based on Debian Buster with OCS 2.4, 2.5, 2.6, 2.7 and 2.8.1 fully operational ... in less 2 hour, using my own tuto nearly similar as the link supplied. (new = installation of OS included, it was easy doing the 5 VM simultaneously, step for one, same step for next, and so ...)