PHP Manual
后退 | 章 6. Installation on Windows systems | 前进

# Xitami on Microsoft Windows

This section contains notes and hints specific to Xitami on Windows.

> 注: You should read the manual installation steps first!

This list describes how to set up the PHP CGI binary to work with Xitami on Windows.

> Important for CGI users: Read the faq on cgi.force_redirect for important details. This directive needs to be set to 0. If you want to use $_SERVER['PHP_SELF'] you have to enable the cgi.fix_pathinfo directive.

警告
如果使用 CGI 方式安装，则服务器对于某些可能的攻击是开放的。请阅读 CGI 安全 章节以学习如何防御这些攻击。

- Make sure the webserver is running, and point your browser to xitamis admin console (usually http://127.0.0.1/admin), and click on Configuration.

- Navigate to the Filters, and put the extension which PHP should parse (i.e. .php) into the field File extensions (.xxx).

- In Filter command or script put the path and name of your PHP CGI executable i.e. `C:\php\php.exe` for PHP 4, or `C:\php\php-cgi.exe` for PHP 5.

- Press the 'Save' icon.

- Restart the server to reflect changes.

后退 | 起点 | 前进
Sambar Server on Microsoft Windows | 上一级 | Building from source