当前位置:Linux教程 - Php - 在solaris 7下安装 PHP4 (with iPLANET)

在solaris 7下安装 PHP4 (with iPLANET)

在solaris 7下安装 PHP4 (web服务为 iPLANET)
在此感谢 Lester June Cabrera 的解答

在 solaris 7 下安装 PHP4 (web服务为 iPLANET)
============================================

1. gunzip -c php-4.0.2.tar.gz | tar xvf -
2. 编译 iPLANET 环境下的 PHP4
cd php-4.0.2
./configure --with-nsapi=
--enable-libgcc with-mysql=/usr/local/mysql
        -- enable-track-vars
        --enable-short-tags
        --enable-asp-tags
make
make install


拷贝所需的库文件到 /usr/lib
===========================
cd /usr/local/lib
cp libstdc++.so.2.10.0 /usr/lib
cp libstdc++.a.2.10.0 /usr/lib 


编辑 MIME.TYPES
===============
加入以下内容
#. add the ff line in mime.types
type=magnus-internal/x-httpd-php    exts=php


编辑 OBJ.CONF
=============
加入以下内容
# note place following two lines after mime types init!
Init fn=""load-modules"" funcs=""php4_init,php4_close,php4_execute,php4_auth_trans"" shlib=""/usr/netscape/server/bin/libphp4.so""
Init fn=php4_init errorString=""Failed to initialize PHP!""

.
.
. # NOTE this next line should happen after all ''ObjectType'' and before all ''AddLog'' lines
Service fn=""php4_execute"" type=""magnus-internal/x-httpd-php"".
.



ObjectType fn=""force-type"" type=""magnus-internal/x-httpd-php""
Service fn=php4_execute



启动 iPLANET 即可
=================
./stop
./start