This document provides a guide for installing and configuring PHP 5.6.10 on VSI OpenVMS IA64, released in October 2017.
Key Points:
- Independence: This PHP kit is independent of HPE's CSWSPHP and can be used without CSWS. However, it includes MODPHP5 and support for PHP CGI scripts that can integrate with VSI's CSWS (Apache HTTPD), though this requires manual configuration.
- Contents: The kit includes the core PHP 5.6.10 language interpreter and numerous dynamically loadable extensions for database client APIs (e.g., MySQL, ODBC, OCI8), XML, compression, web services (SOAP, REST), graphics, and more. Some extensions are also statically included.
Requirements:
- VSI OpenVMS 8.4-1H1.
- CSWS 2.4 for VSI OpenVMS (optional, but required for MODPHP5). Older CSWS versions are incompatible with MODPHP5.EXE.
- Installation on an ODS-5 enabled disk.
- HP TCP/IP Services V5.7 – ECO 5 for network operations.
- Assumes user knowledge of OpenVMS and software development.
Installation Process:
- Before installation, any existing HP CSWS_PHP must be manually removed using
PRODUCT REMOVE CSWS_PHP.
- The kit is installed via PCSI using
PRODUCT INSTALL PHP.
- Post-installation requires adding generated PHP startup and shutdown scripts to
SYS$MANAGER:SYSTARTUP_VMS.COM and SYS$MANAGER:SYSHUTDWN.COM respectively.
- Users should define PHP as a foreign command (
$ PHP :== $PHP$ROOT:[BIN]PHP.EXE) and can customize PHP$ROOT:[ETC]PHP.INI.
CSWS/Apache Integration: To use MOD_PHP5 with CSWS 2.4 for dynamic web pages:
- Copy
MOD_PHP5.EXE to APACHE$COMMON:[MODULES].
- Edit
APACHE$COMMON:[CONF]HTTPD.CONF to load php5_module and define AddType directives for PHP file extensions.
- Restart CSWS.
- Test with a simple
phpinfo() script in APACHE$COMMON:[HTDOCS].
Alternative Installation Location: The /DESTINATION qualifier can be used, but requires manual copying of startup/shutdown scripts from the destination's [.SYS$STARTUP] to the standard SYS$STARTUP directory.
- Known Problems/Restrictions:
- MOD_PHP5.EXE is incompatible with CSWS versions prior to 2.4.
- All script files must be
stream-lf.
- Composer (PHP dependency manager) is not currently supported but is anticipated in future releases.