This list describes how to set up the PHP CGI binary
to work with Xitami on Windows.
Note:
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.
Warning
A server deployed in CGI mode is open
to several possible vulnerabilities. Please read our
CGI security section to learn how to
defend yourself from such attacks.
Make sure the web server 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.