您的位置:首页 > 文档 > 编程技术 >
 文章分类 

在solaris 7下安装 PHP4 (with iPLANET)


创建:2005-10-28 00:00:00
作者:Unlinux
来自: http://www.Unlinux.com

在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

转载自:http://www.unlinux.com/doc/program/20051106/7984.html

评论】 【加入收藏夹】 【 】 【打印】 【关闭
 *  请尊重我们的劳动,转载请注明出自UnLinux.Com及作者名 * 

※ 相关链接
 ·在solaris9下安装qmail+vpopmail+mysql的详细过程  (2005-10-27 16:18:22)
 ·一个在Solaris下配置SMTP(sendmail)+POP3(qpopper)的例子  (2005-10-27 16:18:22)

Copyright © 2005 UnLinux.Com All Rights Reserved