How To Install Apache Server In Windows 10
This article is the outset office of our "How to install prerequisites needed for running a cocky-hosted edition of MIDAS from a Windows server" series. It applies to self-hosted installations of a MIDAS room booking and resources scheduling system on Windows-based servers only. This offset commodity outlines how to install Apache on Windows. Other web servers (such as Microsoft'south Cyberspace Information Services (IIS)) are as well available for Windows. Please annotation that this article is provided "every bit is" and is correct at time of writing. For further assistance installing or configuring Apache, please refer to the vendor's own documentation/support. Both 32-bit (x86) and 64-bit (x64) versions are available, depending upon whether your Windows server runs a 32 or 64-bit version of Windows: As per the information on the ApacheLounge download page, y'all'll also demand to ensure that you accept the relevant C++ Redistributable for Visual Studio installed on your server also. It's possible that this volition already be installed on your system, but if in uncertainty, download and run "vc_redist_x64.exe" (for a 64-scrap operating system), or "vc_redist_86.exe" (for a 32-bit organisation) from the links on the ApacheLounge site first. By default, this configuration file assumes that you've extracted Apache to C:\Apache24. If however yous've extracted Apache to a different location (i.due east. D:\Apache), you'll need to update the Ascertain SRVROOT "C:/Apache24" → Define SRVROOT "D:/Apache" If there is no SRVROOT variable present in your httpd.conf file, and so instead you'll need to manually update all instances of "C:/Apache24", i.e.: ServerRoot "C:/Apache24" → ServerRoot "D:/Apache" Regardless of where you extracted Apache to, you'll also demand to make the post-obit modifications to the http.conf file: Options Indexes FollowSymLinks Options Indexes FollowSymLinks ExecCGI AddHandler cgi-script .cgi AddHandler cgi-script .pl ScriptInterpreterSource Registry If y'all opened a control prompt, start Apache by entering the post-obit command: httpd.exe If you lot opened a PowerShell prompt, showtime Apache by inbound the following control: & "D:\Apache\bin\httpd.exe" If you see a Windows Firewall prompt, let access equally appropriate. If you fail to allow Apache access through your server'south firewall, other computers/devices will be unable to connect to your web server, then be sure to allow access accordingly: If Apache (httpd.exe) fails to start with a "could not demark to accost" error, this will probable be due to some other service already running on Apache'due south default port (fourscore). Check that you don't currently take an IIS (Internet Information Services) server already running. If y'all do, you'll need to stop/disable IIS in order to run Apache (or alter the listening port on either IIS or Apache to allow both services to run concurrently. You may demand to refer to the vendor's own documentation for assistance changing server listening ports). If Apache is running, you should see the words "It works!" displayed in your browser: httpd.exe -g install Beginning-Process PowerShell -Verb RunAs & "D:\Apache\bin\httpd.exe" -m install You tin then start the service by typing: internet start Apache2.4 TIP: To quickly locate your Startup folder on Windows ten and afterward, printing WinKey + R and and then type "shell:startup" (current user) or "shell:common startup" (all users)Contents:
Step ane - Download Apache for Windows
Apache for Windows may be freely downloaded from ApacheLounge.
For this guide, we'll presume that the Windows server is running a 64-fleck operating system, and then we'll download Apache 2.4.52 Win64 (httpd-ii.4.52-win64-VC16.zip)
Pace 2 - Unzip
Once the download has completed, open up the downloaded "httpd-two.4.52-win64-VC16.goose egg" file, and excerpt its contents to a suitable location on your server i.e. C:\Apache24 or D:\Apache, etc
Stride 3 - Configure Apache
Once yous've extracted Apache, we'll need to configure it. First by locating the file "httpd.conf" (which volition be in the "conf" subdirectory), and open this in a standard text editor.${SRVROOT} variable within in the httpd.conf file to indicate to the new location accordingly, i.e:
DocumentRoot "C:/Apache24/htdocs" → DocumentRoot "D:/Apache/htdocs"
<Directory "C:/Apache24/htdocs"> → <Directory "D:/Apache/htdocs">
ScriptAlias /cgi-bin/ "C:/Apache24/cgi-bin/" → ScriptAlias /cgi-bin/ "D:/Apache/cgi-bin/"
Locate the following line:
Step iv - Start Apache
Open up a Command or PowerShell prompt in the "bin" binder at the location where you extracted Apache (Concur "Shift" whilst correct-clicking and select "Open command window here" or "Open up PowerShell window here"):
Step 5 - Bank check Apache
With the previous command window still open, open up your web browser and navigate to http://127.0.0.1
Step vi - Install as a Windows service:
When y'all close the command/PowerShell window, Apache will exit.
Nevertheless, to ensure that Apache is running all the time, information technology can rapidly be installed equally a Windows service.
Simply open an administrative control prompt or PowerShell prompt again, and this time enter the following, for a Control Prompt:
Pace 7 - Monitor Apache (optional)
To allow y'all to monitor the current state of your Apache server, likewise as allow you to quickly start/finish/restart the server, Apache comes with a pocket-size utility called "Apache Monitor".
Double click ApacheMonitor.exe from the bin binder to run the utility, or identify a shortcut to, in your Startup folder so that it automatically runs whenever Windows starts.
Next In This Series...
Source: https://mid.as/kb/00143/install-configure-apache-on-windows
Posted by: leebrigingening37.blogspot.com

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