php

# pkg_add -vi php4-core
parsing php4-core-4.4.1p1
Dependencies for php4-core-4.4.1p1 resolve to: gettext-0.14.5p1, libiconv-1.9.2p3, recode-3.6p3 (todo: recode-3.6p3)
php4-core-4.4.1p1:parsing recode-3.6p3
Dependencies for recode-3.6p3 resolve to: gettext-0.14.5p1, libiconv-1.9.2p3
php4-core-4.4.1p1:recode-3.6p3: complete
php4-core-4.4.1p1: complete
--- php4-core-4.4.1p1 -------------------
To finish the install, enable the php4 module with:
    /usr/local/sbin/phpxs -s

To enable parsing of PHP scripts, add the following to
/var/www/conf/httpd.conf:

    AddType application/x-httpd-php .php

Copy the config file below into /var/www/conf/php.ini
/usr/local/share/examples/php4/php.ini-recommended

Don't forget that the default OpenBSD httpd is chrooted
into /var/www by default, so you may need to create support
directories such as /var/www/tmp for PHP to work correctly.

# /usr/local/sbin/phpxs -s
[activating module `php4' in /var/www/conf/httpd.conf]
cp /usr/local/lib/php/libphp4.so /usr/lib/apache/modules/libphp4.so
chmod 755 /usr/lib/apache/modules/libphp4.so
cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak
cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf
rm /var/www/conf/httpd.conf.new

You should copy the sample configuration files from
/usr/local/share/examples/php4 to /var/www/conf/php.ini

# cp /usr/local/share/examples/php4/php.ini-recommended /var/www/conf/php.ini

php-mysql

# pkg_add -vi php4-mysql
parsing php4-mysql-4.4.1p0
Dependencies for php4-mysql-4.4.1p0 resolve to: mysql-client-5.0.24a, php4-core-4.4.1p1
php4-mysql-4.4.1p0: complete
--- php4-mysql-4.4.1p0 -------------------
Enable this module in php.ini using the following command:

      /usr/local/sbin/phpxs -a mysql

# /usr/local/sbin/phpxs -a mysql
Adding extension : mysql

php-mcrypt

# pkg_add -vi php4-mcrypt
parsing php4-mcrypt-4.4.1p0
Dependencies for php4-mcrypt-4.4.1p0 resolve to: libltdl-1.5.22p1, libmcrypt-2.5.7p1, php4-core-4.4.1p1 
(todo: libltdl-1.5.22p1,libmcrypt-2.5.7p1)
php4-mcrypt-4.4.1p0:parsing libltdl-1.5.22p1
php4-mcrypt-4.4.1p0:libltdl-1.5.22p1: complete
php4-mcrypt-4.4.1p0:parsing libmcrypt-2.5.7p1
Dependencies for libmcrypt-2.5.7p1 resolve to: mhash-0.9.1p1, libltdl-1.5.22p1 (todo: mhash-0.9.1p1)
php4-mcrypt-4.4.1p0:parsing mhash-0.9.1p1
php4-mcrypt-4.4.1p0:mhash-0.9.1p1: complete
php4-mcrypt-4.4.1p0:libmcrypt-2.5.7p1: complete
php4-mcrypt-4.4.1p0: complete
--- php4-mcrypt-4.4.1p0 -------------------
Enable this module in php.ini using the following command:

      /usr/local/sbin/phpxs -a mcrypt

# /usr/local/sbin/phpxs -a mcrypt
Activating extension : mcrypt

php-mhash

# pkg_add -vi php4-mhash
parsing php4-mhash-4.4.1p0
Dependencies for php4-mhash-4.4.1p0 resolve to: mhash-0.9.1p1, php4-core-4.4.1p1
php4-mhash-4.4.1p0: complete
--- php4-mhash-4.4.1p0 -------------------
Enable this module in php.ini using the following command:

      /usr/local/sbin/phpxs -a mhash

# /usr/local/sbin/phpxs -a mhash
Activating extension : mhash

php-domxml

# pkg_add -vi php4-domxml
parsing php4-domxml-4.4.1p0
Dependencies for php4-domxml-4.4.1p0 resolve to: php4-core-4.4.1p1, libxml-2.6.26 (todo: libxml-2.6.26)
php4-domxml-4.4.1p0:parsing libxml-2.6.26
Dependencies for libxml-2.6.26 resolve to: libiconv-1.9.2p3
php4-domxml-4.4.1p0:libxml-2.6.26: complete
found libspec iconv.4.0 in dependent package libiconv-1.9.2p3
php4-domxml-4.4.1p0: complete
--- php4-domxml-4.4.1p0 -------------------
Enable this module in php.ini using the following command:

      /usr/local/sbin/phpxs -a domxml

# /usr/local/sbin/phpxs -a domxml
Activating extension : domxml