[PHP-users 15371]Re: SunOneWebServer6で PHP
Kenji ono
ono @ fjct.fujitsu.com
2003年 5月 19日 (月) 12:33:31 JST
織田さん、こんにちは。小野といいます。
> http://docs.sun.com/source/816-5683-10/migrate.htm#20780
> にありました。あと呼び名はInitディレクティブじゃなくて
> Initファンクション(Init指令)でした。
ここも見て以降の.confファイルの定義を記述してみました。
サーバプロセスは動作するようになったのですが。
SEVERE ( 3936): for host 127.0.0.1 trying to GET /test.php, func_exec reports: HTTP2122: cannot find function named php4_execute
といったエラーがです。
「php4_execute」が見つからないといっているようですが、PHPは
PHP4.3.1のWindows版をインストールして、php.iniをc:\windowへ複写。
php4ts.dllをc:\windows\system32へ複写してます。
念のため、c:\php4は環境定義で「path」に入れてます。
これだけやってnotfoundと言われても・・・。
正直お手上げ状態です。
Solarisに入れて、PHPをきちんとMAKEすれば動作するんでしょうか。
Solarisマシンを手に入れるのが大変です。
===>text.php
<?php phpinfo() ?>
===>magnus.conf
Init fn="load-modules"
funcs="php4_init,php4_close,php4_execute,php4_auh_trans"
shlib="D:\PHP4\sapi\php4nsapi.dll"
Init fn="php4_init" errorString="Failed to initialize PHP!" LateInit="ys"
===>mime.types
type=magnus-internal/x-httpd-php exts=php
===>server1-obj.conf
# Use only forward slashes in pathnames--backslashes can cause
# problems. See the documentation for more information.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn=pfx2dir from=/mc-icons dir="D:/SunOne/AppServer7/lib/icons" name="es-internal"
NameTrans fn=document-root root="$docroot"
PathCheck fn=nt-uri-clean
PathCheck fn="check-acl" acl="default"
PathCheck fn=find-pathinfo
# PathCheck fn=find-index index-names="index.html,home.html"
PathCheck fn="find-index" index-names="index.html,home.html,inex.php"
ObjectType fn=type-by-extension
ObjectType fn=force-type type=text/plain
Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
Error fn="error-j2ee"
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
AddLog fn=flex-log name="access"
</Object>
<Object name="j2ee">
ObjectType fn=force-type type=text/html
Service fn="service-j2ee" method="*"
</Object>
<Object name="cgi">
ObjectType fn=force-type type=magnus-internal/cgi
Service fn=send-cgi
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
</Object>
PHP-users メーリングリストの案内