2014年8月19日 星期二

建構Apache2.4.10+PHP5.5.15網際環境 (x64)


相關檔案來源:
httpd-2.4.10-win64-VC11.zip (Apache 2.4.10 Win64)
php-5.5.15-Win32-VC11-x64.zip (VC11 x64 Thread Safe (2014-Jul-24 01:03:51))
vcredist_x64.exe (Visual C++ Redistributable for Visual Studio 2012 Update 4)

相關語法如下

Apache設定檔(httpd.conf):
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_4.dll"
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php

批次啟動檔(Start.bat):
@echo off
bin\httpd.exe -k install -n "Apache2.4"
bin\httpd.exe -k start
start bin\ApacheMonitor.exe

批次停止檔(Stop.bat):
@echo off
bin\httpd.exe -k stop
bin\httpd.exe -k uninstall -n "Apache2.4"
TASKKILL /F /IM ApacheMonitor.exe

PHPInfo程式(phpinfo.php):
<?php phpinfo() ?>

註解:

沒有留言:

張貼留言