Windows 7/8 64位下安裝64位Apache 2.4.7

來源:互聯網
上載者:User

標籤:

準備軟體:

  1. VC11 運行庫

  2. 64位的apache版本 傳送門:http://www.apachelounge.com/download/

安裝步驟:

修改httpd.conf設定檔

37行: ServerRoot "apache目錄" (e.g. ‘c:\apache24‘ 改為 d:\apache)

217行:ServerName 伺服器名稱 (e.g demo.app.com or 127.0.0.1)去掉#

241行: DocumentRoot 修改網站根目錄地址

242行:<Directory "網站根目錄地址">

358行:ScriptAlias /cgi-bin/ "apache目錄+/cgi-bin/"

374行:<Directory "apache目錄+/cgi-bin/">

安裝啟動:

啟動命令列管理員模式,然後cd到apache目錄下運行:

12345 #安裝服務httpd -k install #啟動服務httpd -k start

重啟與卸載:

12345 #重啟服務httpd -k restart #卸載服務httpd -k uninstall

 

關於安裝64位的apache就結束了。

 

python的apache配置基本上四個步驟:

1、開啟http.conf,找到 #ScriptInterpreterSource Registry,把前面的#去掉。如果沒有找到這句話,則自行添加。

2、找到AddHandler cgi-script,去掉前面的#,在後面加上.py

3、找到Options Indexes FollowSymLinks,在其後加上ExecCGI, 去掉 Indexes

4、儲存,重啟apache。

Windows 7/8 64位下安裝64位Apache 2.4.7

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.