View Issue Details

IDProjectCategoryView StatusLast Update
0000573PHP for OS/2, ArcaOS & eComStation (PHP versions v8.x v7.x v5.x)Feature Requestpublic2022-09-24 10:57
Reporterasavage Assigned Topsmedley  
Status resolvedResolutionno change required 
Platformx86OSeCSOS Version2.1
Summary0000573: README.OS2 additions requested
DescriptionThe current README.OS2 could be enhanced with additional documentation, specifically the destination for various files contained in the ZIP.
Additional InformationSuggested draft follows. There is some ambiguity as to where and should go, and I've left "???" as placeholders in the text below.

This is a port of PHP v5.4.10 to OS/2.

New in this build is:
- Updated to PHP 5.4.10 source

Requires a copy of libc065.dll which can currently be downloaded from

A guide to where to extract files:

* If this is a new installation, extract /php.ini.sample to %ETC% and rename to php.ini if you wish. Edit to suit. See notes on timezone setting below.
* Extract /php.dll to a dir on LIBPATH . If using with Apache, you can generally put it where httpd.dll resides (/Apache2, etc.)
* Extract /cgi/php.exe to your Apache cgi dir if you plan on running php as CGI, or elsewhere if you wish to run it commandline.
* To load the Apache2 module, copy Apache2/modphp5.dll to the Apache2 module directory, and add:
    LoadModule php5_module modules/modphp5.dll
  to httpd.conf. Some users have reported that modphp5 needs to be the LAST module loaded.
* Extract to ???
* Extract to ???
* Extract /modules/*.dll to somewhere that matches the line in php.ini
   extension_dir =

Patches for thread support and detection of php.ini in c:\mptn\etc have been included in the executable largely based on Brian Havard's patches for PHP 4.3.1

I have included support for some external modules - bz2, curl, dbase, gd, exif, filepro,, gd, gettext, mbstring, mysql, mysqli, openssl, pdo_mysql, pdo_sqlite, pgsql (postgresql) & sqlite are loadable as shared modules. Other modules including those from pecl, can most likely be built pretty easily - if there is something you need, please contact me.

PHP has problems detecting the timezone in OS/2 - to workaround this, and set the default in your php.ini you need to add date.timezone simular to what is shown below in context. You can get the timezones supported in the php.ini from :

; Module Settings ;

; Defines the default timezone used by the date functions
date.timezone = Australia/Adelaide

As always, any feedback to is appreciated - bug reports should be submitted via the bugtracker at It's really nice to hear of people using my ports!

If you like this software and want to support continued ports, please consider donating via PayPal via the link at, or via the Mensys online store at


Paul Smedley
Adelaide, Australia
23rd December, 2012
TagsNo tags attached.
Attached Files
readme.os2 (3,108 bytes)



2022-09-24 10:57

administrator   ~0004583

readme.os2 is now in git at Please raise a PR against the source file with suggested changes.

Issue History

Date Modified Username Field Change
2013-05-04 14:38 asavage New Issue
2013-05-04 14:38 asavage File Added: readme.os2
2022-09-24 10:57 psmedley Assigned To => psmedley
2022-09-24 10:57 psmedley Status new => resolved
2022-09-24 10:57 psmedley Resolution open => no change required
2022-09-24 10:57 psmedley Note Added: 0004583