分类: BSD
2006-06-23 10:38:59
安装php4的核心
# export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/
# pkg_add -v php4-core-4.4.1p0.tgz
parsing php4-core-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-core-4.4.1p0 resolve to: gettext-0.10.40p3, recode-3.6p2, libiconv-1.9.2p1 (todo: libiconv-1.9.2p1,recode-3.6p2,gettext-0.10.40p3)
php4-core-4.4.1p0:parsing libiconv-1.9.2p1
php4-core-4.4.1p0:libiconv-1.9.2p1: complete
php4-core-4.4.1p0:parsing recode-3.6p2
Dependencies for recode-3.6p2 resolve to: gettext-0.10.40p3, libiconv-1.9.2p1 (todo: gettext-0.10.40p3)
php4-core-4.4.1p0:parsing gettext-0.10.40p3
Dependencies for gettext-0.10.40p3 resolve to: libiconv-1.9.2p1
php4-core-4.4.1p0:gettext-0.10.40p3: complete
php4-core-4.4.1p0:recode-3.6p2: complete
php4-core-4.4.1p0: complete
--- php4-core-4.4.1p0 -------------------
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.
#
生成php.ini
cp /usr/local/share/examples/php4/php.ini-recommended /var/www/conf/php.ini
使安装生效
# /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
#
mkdir /var/www/tmp
chmod 1777 /var/www/tmp
安装php的扩展
pkg_add -v php4-extensions-4.4.1p0.tgz
# pkg_add -v php4-extensions-4.4.1p0.tgz
parsing php4-extensions-4.4.1p0
Dependencies for php4-extensions-4.4.1p0 resolve to: php4-core-4.4.1p0
php4-extensions-4.4.1p0: complete
--- php4-extensions-4.4.1p0 -------------------
This is a place-holder package to inform you that the PHP port is
now split into small sub-packages, designed to allow you to install
modules independently of the main PHP engine.
For example, to install the IMAP module, just pkg_add the
php-imap-4.4.1.tgz package and activate it using the
'phpxs' command.
This package contains no files or dependencies and may be
safely uninstalled.
#
安装php的图形库
# pkg_add -v php4-gd-4.4.1p0-no_x11.tgz
parsing php4-gd-4.4.1p0-no_x11
Dependencies for php4-gd-4.4.1p0-no_x11 resolve to: t1lib-5.0.0, jpeg-6bp2, php4-core-4.4.1p0, png-1.2.8, freetype-1.3.1p1
php4-gd-4.4.1p0-no_x11: complete
--- php4-gd-4.4.1p0-no_x11 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a gd
#
# /usr/local/sbin/phpxs -a gd
Activating extension : gd
# pkg_add -v php4-mysql-4.4.1p0.tgz
parsing php4-mysql-4.4.1p0
Dependencies for php4-mysql-4.4.1p0 resolve to: php4-core-4.4.1p0, mysql-client-4.0.24
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
#
# pkg_add -v php4-ncurses-4.4.1p0.tgz
parsing php4-ncurses-4.4.1p0
Dependencies for php4-ncurses-4.4.1p0 resolve to: php4-core-4.4.1p0
php4-ncurses-4.4.1p0: complete
--- php4-ncurses-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a ncurses
# /usr/local/sbin/phpxs -a ncurses
Adding extension : ncurses
#
# pkg_add -v php4-imap-4.4.1p0.tgz
parsing php4-imap-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-imap-4.4.1p0 resolve to: c-client-4.61p0, php4-core-4.4.1p0 (todo: c-client-4.61p0)
php4-imap-4.4.1p0:parsing c-client-4.61p0
php4-imap-4.4.1p0:c-client-4.61p0: complete
php4-imap-4.4.1p0: complete
--- php4-imap-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a imap
#
# /usr/local/sbin/phpxs -a imap
Activating extension : imap
#
# pkg_add -v php4-curl-4.4.1p0.tgz
parsing php4-curl-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-curl-4.4.1p0 resolve to: curl-7.15.0, php4-core-4.4.1p0 (todo: curl-7.15.0)
php4-curl-4.4.1p0:parsing curl-7.15.0
php4-curl-4.4.1p0:curl-7.15.0: complete
php4-curl-4.4.1p0: complete
--- php4-curl-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a curl
# /usr/local/sbin/phpxs -a curl
Activating extension : curl
#
# pkg_add -v php4-dbx-4.4.1p0.tgz
parsing php4-dbx-4.4.1p0
Dependencies for php4-dbx-4.4.1p0 resolve to: php4-core-4.4.1p0
php4-dbx-4.4.1p0: complete
--- php4-dbx-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a dbx
#
# /usr/local/sbin/phpxs -a dbx
Activating extension : dbx
#
# pkg_add -v php4-ldap-4.4.1p0.tgz
parsing php4-ldap-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-ldap-4.4.1p0 resolve to: openldap-client-2.2.27p0, php4-core-4.4.1p0 (todo: openldap-client-2.2.27p0)
php4-ldap-4.4.1p0:parsing openldap-client-2.2.27p0
installed /etc/openldap/ldap.conf from /usr/local/share/examples/openldap/ldap.conf********************************* | 81%
php4-ldap-4.4.1p0:openldap-client-2.2.27p0: complete
php4-ldap-4.4.1p0: complete
--- php4-ldap-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a ldap
# /usr/local/sbin/phpxs -a ldap
Activating extension : ldap
#
# pkg_add -v php4-pdf-4.4.1p0.tgz
parsing php4-pdf-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-pdf-4.4.1p0 resolve to: tiff-3.7.3, jpeg-6bp2, php4-core-4.4.1p0, png-1.2.8, pdflib-4.0.3p0 (todo: tiff-3.7.3,pdflib-4.0.3p0)
php4-pdf-4.4.1p0:parsing tiff-3.7.3
Dependencies for tiff-3.7.3 resolve to: jpeg-6bp2
php4-pdf-4.4.1p0:tiff-3.7.3: complete
php4-pdf-4.4.1p0:parsing pdflib-4.0.3p0
Dependencies for pdflib-4.0.3p0 resolve to: tiff-3.7.3, png-1.2.8
php4-pdf-4.4.1p0:pdflib-4.0.3p0: complete
php4-pdf-4.4.1p0: complete
--- php4-pdf-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a pdf
# /usr/local/sbin/phpxs -a pdf
Activating extension : pdf
#
# pkg_add -v php4-snmp-4.4.1p0.tgz
parsing php4-snmp-4.4.1p0
Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/:
Unknown command.
Dependencies for php4-snmp-4.4.1p0 resolve to: php4-core-4.4.1p0, net-snmp-5.1.3p0 (todo: net-snmp-5.1.3p0)
php4-snmp-4.4.1p0:parsing net-snmp-5.1.3p0
installed /etc/snmp/snmpd.conf from /usr/local/share/examples/net-snmp/EXAMPLE.conf**************************** | 77%
php4-snmp-4.4.1p0:net-snmp-5.1.3p0: complete
php4-snmp-4.4.1p0: complete
--- net-snmp-5.1.3p0 -------------------
To have snmpd start at boot time, you must edit /etc/snmp/snmpd.conf
and uncomment the following in /etc/rc.local.
#if [ -x /usr/local/sbin/snmpd ]; then
# echo -n ' snmpd'; /usr/local/sbin/snmpd
#fi
This will start snmpd and use /etc/snmp/snmpd.conf for the configuration.
The snmpconf tool can be used to help edit your configuration files. See
snmpconf(1), snmpd(8), and snmpd.conf(5) for more options.
--- php4-snmp-4.4.1p0 -------------------
Enable this module in php.ini using the following command:
/usr/local/sbin/phpxs -a snmp
# /usr/local/sbin/phpxs -a snmp
Activating extension : snmp
#