How To Install Apache In Windows 10
When looking to host websites or services from a Windows server, there are several options to consider. It is worth reviewing the strengths and weaknesses of each server type to decide which i is most likely to run across your particular needs earlier you spend the time installing and configuring a web service.
Some of the about common spider web servers available for Windows services are Tomcat, Microsoft IIS (Cyberspace Information Services), and of course the Apache server. Many server owners will choose to utilise a control panel which manages most of the common tasks usually needed to administer a web server such equally electronic mail and firewall configuration.
At LiquidWeb, that choice means you're using one of our Fully Managed Windows Servers with Plesk. Alternately, some administrators who need more flexibility cull one of our Core or Cocky-Managed Windows Servers. This article is intended for the latter type of server with no Plesk (or other) server management control panel.
Preflight Cheque
This guide was written for a 64-scrap Windows server since a modern server is more likely to employ that platform. There are too a few potential problems with Apache on a Windows 32-bit systems (non-64-flake) which you should be aware of and can exist reviewed here.
Downloading Apache:
While there are several mirrors to cull from for downloading the pre-compiled Apache binaries for windows, we'll be using ApacheHaus for this chore.
(This is the 64-scrap version with OpenSSL version 1.ane.1a included). If you lot would like to use an alternating version they are listed here: Available Versions Folio
Install Apache on Windows
We will assume that you have installed all the latest available updates for your version of Windows. If not, information technology is critical to do so at present to avert unexpected issues. These instructions are specifically adapted from the directions provided past ApacheHaus where we obtained the binary package. You may observe the entire document in the extracted Apache folder under the file "readme_first.html".
Visual C++ Installation
Before installing Apache, nosotros first need to install the below package. One time information technology has been installed, information technology is frequently a good idea to restart the system to ensure any remaining changes requiring a restart are completed.
Notation:
Download the x64 version for 64-bit systems.
Restart - This is optional, merely recommended.
Apache Installation
Pace 1.
Extract the compressed Apache download. While y'all can extract it to any directory it is the best practice to excerpt information technology to the root directory of the drive information technology is located on (our case binder is located in C:\Apache24). This is the location we will be using for these instructions.
(Note: Once installed you can run across Apache'southward base path past opening the configuration file and checking the "ServerRoot" directive).
Step ii.
Open an "Administrator" command prompt. (Click the Windows "Start" icon, then type "cmd". Right-click the "Command Prompt" detail which appears, and select "Run As Administrator.")
Step 3.
Modify to the installation directory (For our purposes C:\Apache24\bin).
Step four.
Run the program httpd.exe.
Step v.
Y'all volition probable notice a dialogue box from the Windows Firewall noting that some features are beingness blocked. If this appears, place a checkmark in "Private Networks…" as well equally "Public Networks…", and then click "Permit access."
Test Apache Installation
Every bit noted in the ApacheHaus instructions: "Yous can at present test your installation by opening upwardly your Spider web Browser and typing in the address: http://localhost. If everything is working properly, you should run across the ApacheHaus' examination page."
To shut down the new Apache server case, y'all can go back to the Control Prompt and press "Control-C".
Install Apache Service
Now that we have confirmed the Apache server is working and shut it downward, we are ready to install Apache as a system service.
Step i.
In your Command Prompt window, enter (or paste) the following command:
httpd.exe -grand 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 earlier the service can be started.
Step two.
From your Command Prompt window enter the following command and press 'Enter.'services.msc and look for the service "Apache HTTP Server." Looking towards the left of that line you should run into "Automatic." If you practice not, double-click the line and change the Startup Type to "Automated."
Stride 3.
Restart your server and open a web browser one time you are logged dorsum in. Go 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, you will need to configure a Windows Firewall rule to do and so. Follow these steps.
Step1.
Click the "Windows Starting time" push, and enter "firewall." Click the "Windows Firewall With Advanced Security" item.
Step ii.
Click "New Dominion" on the right-hand sidebar.
Step iii.
Select "Port," and click Side by side. Select the radio button next to "Specific remote ports:" Enter the post-obit into the input box: 80, 443, 8080
Step 4.
Click Adjacent, then select the radio button side by side to "Allow the connexion."
Step 5.
Click Next, ensure all the boxes on the side by side page are checked, then click Adjacent over again.
Step half-dozen.
For the "proper noun" section, enter a clarification that is familiar enough that y'all will be able to recognize the rule's purpose afterward such as: "Allow Incoming Apache Traffic."
Step 7.
Click "finish".
Stride 8.
Endeavor connecting to your server's IP accost from a device other than the one you are using to connect to the server correct at present. Open a browser and enter the IP address of your server. For example, http://192.168.1.21/. You should run into the test web page.
Step 9.
For at present, become dorsum to the Windows firewall and right-click the new rule y'all created under the "Inbound Rules" section. Click "Disable Rule." This volition cake any incoming connections until you have removed or renamed the default test page as information technology exposes too much information well-nigh the server to the Cyberspace. Once you are fix to kickoff serving your new web pages, re-enable that firewall rules, and they should exist reachable from the Cyberspace once again.
That's information technology! We now have the Apache Web Server installed on our Windows server. From here yous'll likely want to install boosted Apache modules like the PHP and MySQL modules for Apache.
We pride ourselves on existence The Nearly Helpful Humans In Hosting™!
Our technical back up staff is e'er available to assist with whatever issues related to this commodity, 24 hours a solar day, 7 days a week 365 days a year.
We are available, via our ticketing systems at support@liquidweb.com, past phone (at 800-580-4986) or via a LiveChat or whatever method you adopt. We work hard for you lot and so yous tin can relax.
Source: https://www.liquidweb.com/kb/how-to-install-apache-on-a-windows-server/
Posted by: lambertgolly1938.blogspot.com

0 Response to "How To Install Apache In Windows 10"
Post a Comment