Installing PHP on Windows with Apache 1.3.x
There are two ways to set up PHP to work with Apache 1.3.x
on Windows. One is to use the CGI binary (php.exe), the
other is to use the Apache module DLL. In either case you
need to stop the Apache server, and edit your httpd.conf
to configure Apache to work with PHP.
It is worth noting here that now the SAPI module has been
made more stable under Windows, we recommend it's use above
the CGI binary, since it is more transparent and secure.
Although there can be a few variations of configuring PHP
under Apache, these are simple enough to be used by the
newcomer. Please consult the Apache Docs for further configuration
directives.
If you unziped the PHP package to c:\php\ as described
in the Manual Installation Steps section, you need to insert
these lines to your Apache configuration file to set up
the CGI binary:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
Note that the second line in the list above can be found
in the actual versions of httpd.conf, but it is commented
out. Remember also to substitute the c:/php/ for your actual
path to PHP.
|