Oracle Application Server 10g Release 3 allows you to run PHP and J2EE applications on the same server
- Transfer
Oracle includes PHP d Application Server 10g Release and this allows you to use the same server for J2EE and PHP applications.
PHP is activated by default. The root of the HTTP server in Oracle is here:
$ ORACLE_HOME / Apache / Apache / htdocs
Files with the extensions .php or .phtml in this directory will be processed using PHP. Files with the .phps extensions will be displayed as formatted source code.
Application Server (AS) version 10.1.3.0 ships with PHP 4.3.11. Patch AS 10.1.3.2 adds PHP 5.1.2. If you have a serious need to use a different version of PHP without installing another server, then you can compile your PHP release.
Note: changing the PHP version in AS is not supported (and not recommended), but technically possible in some environments. In case of errors, the support service will ask you if you have reinstalled PHP.
The technical issue is that Oracle libraries do not include header files. This can be circumvented by connecting PHP and Oracle using Oracle Instant Client, but this is also problematic since AS does not use Instant Client libraries. On the other hand, you will get the same error or unpredictable behavior.
The rest of the article provides technical details on reinstalling PHP.
PHP is activated by default. The root of the HTTP server in Oracle is here:
$ ORACLE_HOME / Apache / Apache / htdocs
Files with the extensions .php or .phtml in this directory will be processed using PHP. Files with the .phps extensions will be displayed as formatted source code.
Application Server (AS) version 10.1.3.0 ships with PHP 4.3.11. Patch AS 10.1.3.2 adds PHP 5.1.2. If you have a serious need to use a different version of PHP without installing another server, then you can compile your PHP release.
Note: changing the PHP version in AS is not supported (and not recommended), but technically possible in some environments. In case of errors, the support service will ask you if you have reinstalled PHP.
The technical issue is that Oracle libraries do not include header files. This can be circumvented by connecting PHP and Oracle using Oracle Instant Client, but this is also problematic since AS does not use Instant Client libraries. On the other hand, you will get the same error or unpredictable behavior.
The rest of the article provides technical details on reinstalling PHP.