作者共發了15篇帖子。
在官網下載Apache Httpd服務器需要在http://httpd.apache.org/下載
11樓 巨大八爪鱼 2015-10-10 10:02
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>cd C:/Web/Apache24/bin

C:\Web\Apache24\bin>httpd -k install
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.

C:\Web\Apache24\bin>



用管理員權限打開cmd,然後運行httpd -k install就可以安裝成系統服務了。然後再打開計算機管理 -> 系統服務,啟動那個名叫Apache2.4的服務,成功!
12樓 巨大八爪鱼 2015-10-10 10:15
因為我下載的php程序包是php-5.6.14-Win32-VC11-x86,是用Visual Studio 2012 (VC11)編譯的。所以需要去網上下載VS2012的運行庫才行。
13樓 巨大八爪鱼 2015-10-11 13:23

回復:6樓

當然如果怕麻煩的話要直接改DOCUMENT ROOT也行,例如改成其他盤符的文件夾E:\php

14樓 巨大八爪鱼 2015-10-11 14:13
這是關於alias子目錄的設置的參考資料:
http://www.cnblogs.com/bourneli/archive/2012/11/13/2767522.html
15樓 巨大八爪鱼 2015-10-11 14:35
一個簡單的配置Alias別名的示例:
<IfModule alias_module>
    Alias /test D:/Codes/PHP/test
</IfModule>
<Directory "D:/Codes/PHP/test">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
這樣一來,訪問http://localhost:81/test/example.php(我現在定義的端口是81,80被IIS佔了),讀取的文件就是D:/Codes/PHP/test/example.php。
AllowOverride All,這是開啟URL重寫的。

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
 
 
©2010-2025 Arslanbar [手機版] [桌面版]
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。