BindAddress 127.0.0.1ServerName localhostScriptAlias /php4/ "C:/php4/"AddType application/x-httpd-php4 .phpAddType application/x-httpd-php4 .php3AddType application/x-httpd-php4 .php4Action application/x-httpd-php4 "/php4/php.exe"Alias /test/ "c:/php3/test/"Alias /jjjj/ "d:/timenet/"DirectoryIndex index.html index.htm index.php index.php3 index.php4info.php:<? phpinfo(); ?>https://localhost/info.php 驗證。C:\php4。C:\WINNT\system32(勿覆蓋既有檔案);將 php.exe 與 php.ini-dist 複製至 C:\WINNT。php.ini-dist 改名為 php.ini,於 ;Windows Extensions 區段啟用所需擴充(移除前方分號),例如:extension=php_calendar.dllextension=php_zlib.dllextension=php_ldap.dllextension=php_ftp.dllextension=php_mysql.dll 等。php_mssql70.dll 若無 MSSQL 7.0 請勿啟用,否則會導致錯誤。php.ini 設定:asp_tags = On(允許 ASP 標籤)upload_max_filesize = 2097152mysql.default_host = localhostmysql.default_user = rootmysql.default_password = yourpasswdinclude_path = path1;path2;path3doc_root = C:\php4\testC:\mysql。C:\mysql\bin\mysqld-nt.exe --install 安裝為服務。