How To Install Apache On Windows 10
When looking to host websites or services from a Windows server, there are several options to consider. Information technology is worth reviewing the strengths and weaknesses of each server blazon to determine which one is nearly likely to meet your item needs before y'all spend the time installing and configuring a spider web service.
Some of the nearly mutual spider web servers available for Windows services are Tomcat, Microsoft IIS (Internet Information Services), and of course the Apache server. Many server owners will choose to utilize a control panel which manages most of the common tasks usually needed to administer a web server such every bit electronic mail and firewall configuration.
At LiquidWeb, that pick means you're using ane of our Fully Managed Windows Servers with Plesk. Alternately, some administrators who need more than flexibility choose i of our Core or Self-Managed Windows Servers. This article is intended for the latter blazon of server with no Plesk (or other) server direction control panel.
![How to Install Apache on a Windows Server](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2020/10/install.apache.win_.gif)
Preflight Check
This guide was written for a 64-bit Windows server since a modern server is more likely to utilize that platform. In that location are likewise a few potential issues with Apache on a Windows 32-bit systems (non-64-fleck) which you should be aware of and tin can be reviewed here.
Downloading Apache:
While at that place are several mirrors to cull from for downloading the pre-compiled Apache binaries for windows, we'll be using ApacheHaus for this job.
(This is the 64-bit version with OpenSSL version i.one.1a included). If you would like to utilize an alternate version they are listed here: Available Versions Page
Install Apache on Windows
Nosotros volition assume that you lot have installed all the latest available updates for your version of Windows. If not, information technology is critical to do so now to avert unexpected issues. These instructions are specifically adapted from the directions provided by ApacheHaus where nosotros obtained the binary bundle. You may find the entire document in the extracted Apache folder nether the file "readme_first.html".
Visual C++ Installation
Before installing Apache, we get-go demand to install the below package. Once it has been installed, it is often a good idea to restart the organization to ensure any remaining changes requiring a restart are completed.
Note:
Download the x64 version for 64-bit systems.
Restart - This is optional, but recommended.
Apache Installation
Step 1.
Extract the compressed Apache download. While you tin can extract it to whatsoever directory it is the best practise to extract information technology to the root directory of the bulldoze it is located on (our example binder is located in C:\Apache24). This is the location we will be using for these instructions.
(Note: Once installed you lot can see Apache'southward base of operations path past opening the configuration file and checking the "ServerRoot" directive).
![apache_extract](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/apache_extract.jpg)
Step two.
Open an "Administrator" command prompt. (Click the Windows "Outset" icon, then blazon "cmd". Correct-click the "Control Prompt" item which appears, and select "Run As Administrator.")
Stride 3.
Alter to the installation directory (For our purposes C:\Apache24\bin).
Step 4.
Run the program httpd.exe.
Pace 5.
Y'all will probable notice a dialogue box from the Windows Firewall noting that some features are being blocked. If this appears, place a checkmark in "Private Networks…" also equally "Public Networks…", and and then click "Allow admission."
Test Apache Installation
As noted in the ApacheHaus instructions: "You can now test your installation by opening up your Spider web Browser and typing in the address: http://localhost. If everything is working properly, yous should come across the ApacheHaus' exam page."
![apache_test_page](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/apache_test_page.jpg)
To close down the new Apache server instance, you tin become dorsum to the Command Prompt and press "Control-C".
Install Apache Service
Now that nosotros have confirmed the Apache server is working and shut it down, we are ready to install Apache as a organisation service.
Step i.
In your Command Prompt window, enter (or paste) the following command:
httpd.exe -1000 install -n "Apache HTTP Server"
Output:
Installing the 'Apache HTTP Server' service The 'Apache HTTP Server' service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started.
![apache_service](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/apache_service.jpg)
Pace ii.
From your Command Prompt window enter the following control and press 'Enter.'services.msc
and wait for the service "Apache HTTP Server." Looking towards the left of that line you should come across "Automatic." If y'all practice not, double-click the line and change the Startup Type to "Automatic."
Step 3.
Restart your server and open up a web browser once you are logged dorsum in. Get to this folio in the browser's URL bar: http://localhost/.
Configure Windows' Firewall
To allow connections from the Cyberspace to your new web server, y'all will need to configure a Windows Firewall rule to do so. Follow these steps.
Step1.
Click the "Windows Start" push, and enter "firewall." Click the "Windows Firewall With Advanced Security" detail.
Step ii.
Click "New Dominion" on the right-hand sidebar.
![firewall1](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/firewall1.jpg)
Step 3.
Select "Port," and click Side by side. Select the radio button next to "Specific remote ports:" Enter the following into the input box: lxxx, 443, 8080
![firewall2](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/firewall2.jpg)
Stride four.
Click Next, then select the radio button next to "Allow the connection."
Pace 5.
Click Adjacent, ensure all the boxes on the next folio are checked, and so click Adjacent once more.
Step 6.
For the "name" section, enter a description that is familiar enough that you volition be able to recognize the rule'south purpose later such as: "Let Incoming Apache Traffic."
![firewall3](https://res.cloudinary.com/lwgatsby/f_auto/www/uploads/2019/04/firewall3.jpg)
Footstep 7.
Click "finish".
Step 8.
Effort connecting to your server's IP address from a device other than the ane you are using to connect to the server right now. Open a browser and enter the IP accost of your server. For example, http://192.168.1.21/. Yous should see the test spider web folio.
Stride ix.
For now, go back to the Windows firewall and correct-click the new rule y'all created under the "Inbound Rules" department. Click "Disable Dominion." This will block whatever incoming connections until you lot have removed or renamed the default test page as information technology exposes besides much information about the server to the Internet. Once you lot are ready to kickoff serving your new web pages, re-enable that firewall rules, and they should be reachable from the Net again.
That's information technology! We now accept the Apache Spider web Server installed on our Windows server. From hither you'll likely want to install additional Apache modules like the PHP and MySQL modules for Apache.
We pride ourselves on existence The Near Helpful Humans In Hosting™!
Our technical support staff is e'er available to assist with any problems related to this article, 24 hours a mean solar day, 7 days a week 365 days a year.
We are bachelor, via our ticketing systems at support@liquidweb.com, by phone (at 800-580-4986) or via a LiveChat or whatever method you prefer. Nosotros piece of work difficult for you and so yous can relax.
Source: https://www.liquidweb.com/kb/how-to-install-apache-on-a-windows-server/
Posted by: crumpleryouscinfecto.blogspot.com
0 Response to "How To Install Apache On Windows 10"
Post a Comment