I was able to get it to work with the info from Alex (
06-Jan-2007 12:22) with one addition though.
When I did the steps he mentioned I did not see anything yet in my browser.
I still had to hard refresh my page by CTRL-F5, then I finally had an output from my testscript.
Br,
Tom.
Xitami(Microsoft Windows 用)
このセクションでは、Windows 上の » Xitami で PHP を使用する場合について説明します。
注意: まず始めに、マニュアルインストールの手順 をお読みください。
以下の手順は、Windows 上の Xitami でPHP の CGI 版バイナリを動作させる際の 設定方法です。
注意: CGI 版 PHP を使用する場合 cgi.force_redirectに関するFAQ に重要な情報がありますのでお読みください。このディレクティブが 0 にセットされている必要があります。 $_SERVER['PHP_SELF'] を使用する場合は、 cgi.fix_pathinfo をオンにする必要があります。
CGI モードで公開したサーバは、いくつかの脆弱性の標的となる可能性があります。 これらの攻撃からサーバを守る方法については、 CGI セキュリティ のセクションを参照してください。
-
Web サーバが正常に動作していることを確認し、 ブラウザで Xitami 管理用コンソール(通常は http://127.0.0.1/admin)を参照して、「Configuration」を クリックします。
-
「Filters」を選択し、php にパースさせるファイルの拡張子 (.php など) を 「File extensions (.xxx) 」フィールドに入力します。
-
「Filter command or script」に、CGI 版 PHP バイナリのパスと名前 (たとえば、c:\php\php.exe) を入力します。
-
「Save」アイコンを押します。
-
変更点を反映するためにサーバを再起動します。
Xitami(Microsoft Windows 用)
07-Mar-2008 07:31
06-Jan-2007 09:22
I used php v 5.1.4 and the latest Xitami version.
1st change, use 'C:\php\php-win.exe' (in Windows OS) instead of 'C:\php\php-cgi.exe'
2nd change, you must click on the save button after you have changed the filters page and then again in the standarn configuration page.
finally, restart the server by going to the windows Gui interface (right click on the Xitami symbol in the system tray and choose properties) and click suspend (so the background for the 'X' goes red) then click start again.
hope this helps anyone with problems
02-Nov-2004 06:07
I have successfully configured Xitami using cgi.redirect
in PHP
set cgi.redirect = 1
set cgi.redirect_status = CGI_REDIRECT_STATUS;
in Xitami, defaults.cfg
under CGI_ENVIRONMENT
insert CGI_REDIRECT_STATUS="-"
18-Sep-2004 07:23
I am running xitami as a business www server on ms-windows. I have a number of long-running PHP scripts. I developed a tiny java applet to receive and display progressive status information from these slow scripts. It effectively facilitates SERVER PUSH from PHP scripts to IE and Netscape browsers. Take a look: catalog.net.au/netClient.zip (Ron Boles, Melbourne, Australia)
12-Apr-2004 05:57
PHP via ISAPI with XITAMI
I have developed a small GUI in c++, which runs XITAMI and configures the Xitami ISAPI interface for use with PHP. It is so much faster than the PHP cgi interface and appears to be more stable too.
Take a look here: http://catalog.net.au/xisapi/default.html
Ron Boles
Melbourne, Australia
16-Oct-2003 01:39
I was only able to get PHP (4.3.3) working under Xitami (2.5c0) on Windows XP (SP1) by adding the following lines to defaults.cfg:
[Mime]
php=application/x-httpd-php
[Filter]
.php="c:/php/php.exe"
Note the quotation marks and the forward slashes in the filter section.
12-Sep-2003 04:54
Using the CGI (c:\php[version]\php.exe) with Xitami since PHP version 4.3.2 requires the following setting in php.ini before the $_SERVER['PHP_SELF'] call will return a value:
cgi.fix_pathinfo=1
Note that $_SERVER['SCRIPT_NAME'] still works.
30-Nov-2002 02:51
[Editors Note]
You can force IE to disregard a cached page by pressing the Control key and click the Refresh button.
Please, do not forget the IE caches files.
I had a test.php and got the error message. I changed the defaults.cfg and also the cgi.force_redirect to = 0. After restarting the Xitami the error message was still there.
After a while I saved the test.php file to test2.php and found that it is working fine...
