IBM Redpaper explaining how to download, compile, install, and configure PHP 4.3.0 or 4.2.2 on an iSeries server using OS/400 PASE and Apache.
This IBM Redpaper describes bringing PHP to an IBM iSeries server. It explains the PHP engine as an open-source CGI program running in OS/400 Portable Application Solutions Environment (PASE) with the HTTP Server powered by Apache, and it covers installing PHP versions 4.3.0 and 4.2.2.
The document includes prerequisites, Apache configuration entries for PHP files, a comparison of PHP in PASE versus a Linux logical partition, and examples of HTML forms and DB2 queries. It also notes that IBM does not support the open-source PHP engine or PHP scripts, while supporting PASE, VisualAge C++ compilers, and Apache CGI support.
| Required OS/400 release | V5R1 or newer |
|---|---|
| PHP versions covered | 4.3.0 and 4.2.2 |
| Runtime environment | OS/400 PASE |
| Web server | HTTP Server (powered by Apache) |
| PHP engine form in PASE | CGI-bin process only |
It explains installation of PHP 4.3.0 and the older version 4.2.2.
The document says you need V5R1 or later and must have PASE installed.
No. The document states that PHP is not supported on the iSeries server by IBM.
The Web server configuration file must include script aliases for PHP, using ScriptAlias, AddType and Action entries.