目錄
PHP环境配置-从Apache官网下载windows版apache服务器,phpapache
首頁 php教程 php手册 PHP环境配置-从Apache官网下载windows版apache服务器,phpapache

PHP环境配置-从Apache官网下载windows版apache服务器,phpapache

Jun 13, 2016 am 08:56 AM
apache

PHP环境配置-从Apache官网下载windows版apache服务器,phpapache

由于个人有强迫倾向,下载软件都喜欢从官网下载,摸索了好久终于摸清楚怎么从Apache官网下载windows安装版的Apache服务器了,现在分享给大家。

进入apache服务器官网http://httpd.apache.org/,这里我们以下载稳定版的

httpd 2.2.29为例,点击download。

由于官方网页改版,以前的方式可能五法进行下载,为了不浪费大家的时间,特此修正2015-01-24\

第一步依旧是点击download

点击链接Files for 3 Microsoft Windows

The Apache HTTP Server Project itself does not provide binary releases of softwar

e, only source code. Individual committers may provide binary packages as a con

venience, but it is not a release deliverable.

If you cannot compile the Apache HTTP Server yourself, you can obtain a binary p

ackage from numerous binary distributions available on the Internet.

Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on

Microsoft Windows, include:

ApacheHaus

Apache Lounge

BitNami WAMP Stack

WampServer

XAMPP

大致意思是说apache本身不提供已编译的安装包,只提供源码,如果你自己无法编

译,可以选择下面这些官方推荐的第三方提供编译的网站。

其中后两个是有名的wamp以及xampp集成环境,如果只想下载apache可以选择前三个

网站,这里我们第一个ApacheHaus为例。

打开ApacheHaus之后你会发现这个网站上有各种windows版本,可以尽情选择你要下

载的版本。

点击红框中的图标即可开始下载,x86是32位的,x64是64位的,根据自己的操作系统选

择下载

解压后 是一个压缩包,把他移动到你想放置的地方。

命令行下进入到apache下面的bin目录,输入

httpd -k install

把apache安装成windows后台服务。

利用ApacheMonitor来启动你的apache

The Apache Monitor is a desktop tray application that allows you to monitor the

existence of a running Apache service and easily start, stop and restart Apache. T

o use it just double click on the ApacheMonitor.exe in the \Apache24\bin folder. I

f you want it to start automatically for you when you log into the computer, just

drag a copy into the Startup folder in Window's Start Menu.

更多操作请参考附带的说明10 文档readme_first.html。

针对大家遇到的一些问题做下简单总结

1、由于apache默认是监听80端口,如果你的电脑iis是启动状态,并且也使用了80端

口,apache将无法正常启动,需要先停止iis,另外迅雷也可能会使用80端口,所以也要

关闭迅雷。查看80端口是否被占用,命令行下输入:

netstat -aon|findstr "80"

如果看到如图的结果,说明80端口已被使用,需要先关闭相关软件,或者修改apache默

认的监听端口

打开apache目录下的conf/httpd.conf 搜索 "Listen 80"

修改为Listen 8088

保存之后再重新启动apache

2、httpd -k install 输入该命令后查看服务是否安装成功

开始-->运行-->services.msc-->确定

打开后如果在服务列表能够看到apache字样,说明,服务安装成功,可以直接点击左边

的启动按钮来启动服务

3、服务无法正常安装,首先确定软件32位和64位是否和自己的系统匹配

其次,看电脑有没有安装软件相应的运行包,比如你下载的是VC9版本,那么你需要先安

装Microsoft Visual C++ 2008 Redistributable ,同理VC11版本你需要安装Microsoft

Visual C++ 2012 Update 4 Redistributable Package (X86 & x64)

在ApacheHaus网站的最底部提供了相应的Visual Studio Redistributable Packages下

载链接

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

apache中cgi目錄怎麼設置 apache中cgi目錄怎麼設置 Apr 13, 2025 pm 01:18 PM

要在 Apache 中設置 CGI 目錄,需要執行以下步驟:創建 CGI 目錄,如 "cgi-bin",並授予 Apache 寫入權限。在 Apache 配置文件中添加 "ScriptAlias" 指令塊,將 CGI 目錄映射到 "/cgi-bin" URL。重啟 Apache。

apache80端口被佔用怎麼辦 apache80端口被佔用怎麼辦 Apr 13, 2025 pm 01:24 PM

當 Apache 80 端口被佔用時,解決方法如下:找出佔用該端口的進程並關閉它。檢查防火牆設置以確保 Apache 未被阻止。如果以上方法無效,請重新配置 Apache 使用不同的端口。重啟 Apache 服務。

apache怎麼連接數據庫 apache怎麼連接數據庫 Apr 13, 2025 pm 01:03 PM

Apache 連接數據庫需要以下步驟:安裝數據庫驅動程序。配置 web.xml 文件以創建連接池。創建 JDBC 數據源,指定連接設置。從 Java 代碼中使用 JDBC API 訪問數據庫,包括獲取連接、創建語句、綁定參數、執行查詢或更新以及處理結果。

怎麼查看自己的apache版本 怎麼查看自己的apache版本 Apr 13, 2025 pm 01:15 PM

有 3 種方法可在 Apache 服務器上查看版本:通過命令行(apachectl -v 或 apache2ctl -v)、檢查服務器狀態頁(http://<服務器IP或域名>/server-status)或查看 Apache 配置文件(ServerVersion: Apache/<版本號>)。

apache不能啟動怎麼解決 apache不能啟動怎麼解決 Apr 13, 2025 pm 01:21 PM

Apache 無法啟動,原因可能有以下幾點:配置文件語法錯誤。與其他應用程序端口衝突。權限問題。內存不足。進程死鎖。守護進程故障。 SELinux 權限問題。防火牆問題。軟件衝突。

怎麼查看apache版本 怎麼查看apache版本 Apr 13, 2025 pm 01:00 PM

如何查看 Apache 版本?啟動 Apache 服務器:使用 sudo service apache2 start 啟動服務器。查看版本號:使用以下方法之一查看版本:命令行:運行 apache2 -v 命令。服務器狀態頁面:在 Web 瀏覽器中訪問 Apache 服務器的默認端口(通常為 80),版本信息顯示在頁面底部。

apache怎麼啟動 apache怎麼啟動 Apr 13, 2025 pm 01:06 PM

啟動 Apache 的步驟如下:安裝 Apache(命令:sudo apt-get install apache2 或從官網下載)啟動 Apache(Linux:sudo systemctl start apache2;Windows:右鍵“Apache2.4”服務並選擇“啟動”)檢查是否已啟動(Linux:sudo systemctl status apache2;Windows:查看服務管理器中“Apache2.4”服務的狀態)啟用開機自動啟動(可選,Linux:sudo systemctl

apache怎麼刪除多於的服務器名 apache怎麼刪除多於的服務器名 Apr 13, 2025 pm 01:09 PM

要從 Apache 中刪除多餘的 ServerName 指令,可以採取以下步驟:識別並刪除多餘的 ServerName 指令。重新啟動 Apache 使更改生效。檢查配置文件驗證更改。測試服務器確保問題已解決。

See all articles