Apache+php5
3572 ワード
1. , 。( D:\Acpache24 )
2. Apache24\conf httpd.conf , 。
(1) 37 ServerRoot "c:/Apache24" ServerRoot “D:/Apache24”;//Apache 。
(2) 204 ServerAdmin ;
(3) 213 ServerName “#” ;
(4) 237 DocumentRoot "c:/Apache24/htdocs" DocumentRoot "D:/www";//
238 <Directory "c:/Apache24/htdocs"> <Directory " D:/www ">;
: WWW , 。
(5) 271 DirectoryIndex index.html DirectoryIndex index.html index.php index.htm //
(6) 354 ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/" ScriptAlias /cgi-bin/ "d:/Apache24/cgi-bin/"
(7) 370 <Directory "c:/Apache24/cgi-bin"> <Directory "D:/Apache24/cgi-bin">
サービスにインストール
:httpd.exe -k install -n "servicename"
PHPモジュール搭載
# php5 support
LoadModule php5_module "d:/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "d:/php"