IIS で dotproject を動くようにする方法 その2
構築前にphpがまともに動かない場合に注意すべき点。
・phpの最新版を使うと動かないところがいくつか出てくるので4.7.7を使用したほうがよさげ。
4.3.9では日付関連の関数が変?みたい。
http://jp2.php.net/get/php-4.3.7-Win32.zip/from/a/mirror
php.ini関連。
変更前 | 変更後 |
---|---|
register_globals = Off | register_globals = On |
magic_quotes_gpc = On | magic_quotes_gpc = Off |
extension_dir = “./" | extension_dir = “c:/php/extensions/" |
;upload_tmp_dir = | upload_tmp_dir =c:/tmp |
upload_max_filesize = 2M | upload_max_filesize = 5M |
;extension=php_gd2.dll | extension=php_gd2.dll |
;extension=php_mbstring.dll | extension=php_mbstring.dll |
;session.save_path = /tmp | session.save_path = /tmp |
session.use_trans_sid = 0 | session.use_trans_sid = 1 |
[mbstring] | [mbstring] mbstring.encoding_translation = On mbstring.language = Japanese mbstring.internal_encoding = EUC-JP mbstring.http_input = EUC-JP mbstring.http_output = EUC-JP mbstring.detect_order = auto mbstring.substitute_character = none |
・php4ts.dll を %windir%system32 にコピー
・php.ini を直すたびにIIS再起動
IISRESET.EXE /STOP
net stop w3svc
net start w3svc
IISRESET.EXE /START