On the Oracle Technology Network site today they've posted an updated version of their guide to getting PHP installed on Oracle HTTP Server 12c, complete with all the commands you'll need to get the job done.
This article shows how to install PHP on Oracle HTTP Server 12c (OHS). PHP is a hugely popular, interpreted scripting language commonly used for web applications. OHS is the web server component for Oracle Fusion Middleware. It is based on the Apache HTTP Server. OHS includes a FastCGI module which can easily be configured to use PHP's bundled FastCGI Process Manager ("PHP-FPM"). PHP-FPM has become a standard way of installing PHP. I
The remainder of the post is broken down into the steps you'll need to get it all installed and working:
- Install Oracle Linux
- Install Oracle HTTP Server
- Install Oracle Instant Client 12c
- Install PHP
- Configure PHP-FPM
- Configure OHS
- Start PHP-FPM & OHS
A simple test script (a phpinfo) is also included to help you ensure everything is running as it should be.