How to install Apache Server on Windows

      Note

      Those of you interested in the Apache 2.0.X tutorial, it has been abandon and I will no longer keep it updated, but it can be found here.

    Apache 2.2.X

    1. Download & Unpack

      Go to http://www.apache.org/dist/httpd/binaries/win32/ and choose a mirror. You want the latest win32-x86-no_ssl.msi "MSI Installer Package" release.

      My file was named: httpd-2.2.21-win32-x86-no_ssl.msi

      NOTE about finding the download links
      Apache sometimes moves the "quick download" link to the win32 binary. The long way to officially find it is Download > Other files > binaries folder (not the "Binary Releases" info link at the top) > win32 folder > then the latest win32-x86-no_ssl.msi release
    2. Install

      When you install Apache, you‘ll get a prompt for "Server Information." Here is the settings I used:

      Network Domain: localhost
      Server Name: localhost
      Admin Email: (any email. real or fake)
      
      [checked]: for All Users, on Port 80, as a Service
      
    3. Starting/Stopping Apache

      After installation Apache2 will automatically start. The  icon in the System Tray means it started. The icon means the "Monitor Apache Servers" is running, but Apache2 isn‘t started.

      You can easily start/stop/restart Apache and Apache2 via that icon in your System Tray. If you get "The requested operation has failed!" error while starting apache use the "Test Configuration" shortcut in the Start Menu to find the error (if the text window pops up then closes before you can read it, your config file is fine).

    4. Testing

      Now the ultimate test. To see if it‘s serving. Open your browser and head to: http://127.0.0.1/ orhttp://localhost/

      If it shows the It works! you have your server software installed and running.

    5. Making Apache point to your files

      Using Notepad open C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf (in the start-menu there should also be a "Apache HTTP Server 2.2 > Configure Apache Server > Edit the Apache httpd.conf Configuration File" shortcut) and search for DocumentRoot. Change it from something likeDocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" to the location where your HTML files and site are located. In my case: DocumentRoot "C:/public_html"

      NOTE
      The first time i installed Apache2, i accidentally changed ServerRoot. Make sure you change the correct line which is DocumentRoot and which is down about line 175.

      Then scroll down about one page and change: <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"> to point to the same location you set DocumentRoot to in the last step.

      Restart apache to make the changes take effect

时间: 2024-10-17 05:32:57

How to install Apache Server on Windows的相关文章

Install genghis server in Windows

Today, I want to install a Genghis server on my windows server, and I thought it would be easy. (Indeed, it is easy), but a little bit tricky. 1. Download Genghis from http://genghisapp.com/. 2. Install Apache server with PHP, I want to make it easy,

build your own website 1 -- how to install Apache Server

Operating System: Ubuntu 16.04 Web Server ?  most often used Web Server software is freely available Apache Server. Download Apache for free here ? https://httpd.apache.org/download.cgi#apache24 Unpack  httpd-2.4.29.tar.bz2 to ~/Downloads/httpd-2.4.2

转-How to install an SSH Server in Windows Server 2008

window也可以通过ssh客户端连接,具体方式参考下面 1 How to install an SSH Server in Windows Server 2008 2 freeSSHd and freeFTPd 下载 3 SSH server rejected X11 forwarding request

How to install SharePoint 2013 on Windows Server 2012 R2

[Update 26.02.2014] Many thanks to everybody commented on this post. As Falk already mentioned in the comments, a Service Pack for SharePoint 2013 has been recently released. This release makes this article obsolete, as any compatibility issues seems

程序包管理rpm,yum用法解析及自动化部署apache server实战,让您轻松拥有apache网站!

程序包管理器rpm,yum用法及apache httpd服务的自动化部署 程序包管理? 通常来说在windows中将需要安装的程序,程序名.exe下载下来然后点击setup的安装程序或直接点击程序包,下一步下一步即可.而Linux中程序包不是exe,不同的主流发行版有着不同的程序包管理机制.比较主流的主要是rpm程序包管理器和deb程序包管理. 这里要区别: 包名(PACKAGEFILE): rpm包程序文件的全名程序名(PACKAGENAME): rpm包不带版本号的程序名,比如QQ而不是QQ

How to Install Apache Solr 4.5 on CentOS 6.4

By Shay Anderson on October 2013 Knowledge Base  /  Linux  /  How to Install Apache Solr 4.5 on CentOS 6.4 In this tutorial I explain how to install Apache Solr 4.5 on CentOS 6.4. In all the examples below I am using the root user, if you are not you

Apache Server 添加虚拟主机(Virtual Host )

当前许多虚拟服务器如阿里云的ECS服务器,都提供各式各样的虚拟机,常见的有Linux.Windows等,如果我们使用了Apache Server作为虚拟机的Web服务器,并且我们希望多个web应用程序绑定多域名,这时候可以使用Apache Server的Virtual Host 节点进行配置. 下面我们以Linux下,XAMPP一站式生成的web应用程序绑定多域名为例子,实现多个域名绑定多个web应用程序. 1.ssh终端输入vim /opt/lampp/etc/httpd.conf,找到 In

Install Apache, PHP And MySQL On CentOS 7 (LAMP)

原文 Install Apache, PHP And MySQL On CentOS 7 (LAMP) This tutorial shows how you can install an Apache2 webserver on a CentOS 7.0 server with PHP5 support (mod_php) and MySQL support. LAMP is short for Linux, Apache,MySQL, PHP. 1 Preliminary Note In t

开启Apache Server Status

开启Apache Server Status 发布时间:August 1, 2008 分类:Apache <DdZend工具提供下载> <PHP中MD5函数效率> Apache的日志又多又杂,如果靠分析日志或者查看服务器进程来监视Apache运行状态的话,比较繁冗.其实在Apache 1.3.2及以后的版本中就自带一个查看Apache状态的功能模块server-status 打开Apache Server Status 如果你的Apache配置文件httpd.conf或者extra