how to run apache on windows 7

How to Install Apache on a Windows Server

Download & install the Apache software. If you want to serve content to other computers on your network, allow port 80 traffic through the Windows Firewall. If you want to serve content out to the public, you must also allow the port 80 traffic through your router and direct it to the right machine. At 'Choose a Setup Type' accept the "Developer Default" and click Next. A number of downloads of required software may be identified. Click Execute and follow onscreen instructions to install them. At 'Installation progress' screen, hit Execute - the MySQL software will be installed.

Available Languages: en fr ko. This document explains how to install, configure and run Apache 2. If you have windowe after reviewing the documentation and any event and error logsyou should consult the peer-supported users' mailing list.

This document assumes that you are installing a binary distribution of Apache. If you want to compile Apache yourself possibly to help with development or tracking down bugssee Compiling Apache for Microsoft Windows. The primary Windows platform for running Apache 2. Always obtain and install the current service pack to avoid operating system bugs. Individual committers may provide binary packages as a convenience, but it is not a release deliverable.

If you cannot compile the Apache HTTP Server yourself, you can obtain a binary package from numerous binary distributions available on the Internet. Apache is configured by the files in the conf subdirectory. These are the same files used to configure the Unix version, but there are a few different directives for Apache on Windows. See the directive index for all the available directives.

Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache can on Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child process each request is handled by a separate thread. MaxConnectionsPerChild : Like the Unix directive, this controls how many connections a single child process will serve before exiting. However, unlike on Unix, a replacement process is not instantly available.

Use the default MaxConnectionsPerChild 0unless instructed to change the behavior to overcome a memory leak in third party modules or in-process applications. ThreadsPerChild : This directive is new.

It tells the server how many threads it should use. This is the maximum number of connections the server can handle at rin, so be sure to set this number high enough for your site if you get a lot of hits. The recommended default is ThreadsPerChildbut this must be adjusted to reflect the greatest anticipated number of simultaneous connections to accept. The directives that accept filenames as arguments must use Windows filenames instead apaceh Unix ones. However, because Apache may interpret backslashes as an "escape character" sequence, you should consistently use forward slashes in path names, winddows backslashes.

While filenames are generally case-insensitive on Windows, URLs are still treated internally as case-sensitive before they are mapped to the filesystem. If you wish to assure that only lowercase is used in URLs, you can use something like:. When running, Apache needs write access only to the logs directory and any configured cache directory tree. Due to the issue of case insensitive and short 8. This means that each directory which Apache evaluates, from the drive root up to the directory leaf, must have read, list and traverse directory permissions.

If Apache2. Apache for Windows contains the ability to load modules at runtime, without recompiling the server. To activate these or other modules, the LoadModule directive must be used. For example, to activate the status module, use the following in addition to the status-activating directives windowd access. Information on creating loadable modules is also available. More information is available. When running CGI scripts, the method Apache uses to find the interpreter for the script is configurable using the ScriptInterpreterSource directive.

Since it is often difficult to manage files with names like. This mechanism acts as a backup for those situations where Apache is not yet prepared to use the error. Apache comes with a utility called the Apache Service Monitor. With it you can see and manage the state of all installed Apache services on any machine on your network.

To be able to manage an Apache service with the monitor, you have to first install the service either automatically via the installation or manually. You can install Apache as a Windows NT how to stand up for what you believe in as follows from the command prompt at the Apache bin subdirectory:.

If you need to specify the name of the service you want to install, use the following command. You have to do this if you have several different service installations of Apache on your computer. If you specify a name during the install, you have to also specify it during any other -k windoes.

If you need to have specifically named configuration files for different services, you must use this:. What to serve with tourtiere meat pie you use the first command without any special parameters except -k installthe service will be called Apache2.

Before starting Apache as a service by any means, you should test the service's configuration file by using:. You can control an Apache service by its command line switches, too. To what is the best brand of cordless phone to buy an installed Apache service you'll use this:.

You can also restart a running service and force it to reread its configuration file by using:. By default, all Apache services are registered to run as the xpache user the LocalSystem account. It has, however, wide privileges locally. It is recommended that users create a separate account for running Apache service s.

If you have to access network resources via Apache, this is required. If you allow the account to log in paache a user and as a service, then you can log on with that account and test that the account has the privileges oj execute the scripts, read the web pages, and that you can start Apache in a console window.

If this works, and you have followed the steps above, Apache should execute as a service with no problems. When starting Apache as a service you may encounter an error message from the Windows Service Control Manager.

For example, if you try to start Apache by using the Services applet in the Windows Control Panel, you may get the following message:. Could not start the Apache2. You will get this generic error if there is any problem with starting the Apache service. In order to see what is really causing the problem you should follow the instructions for Running Apache for Paache from the Command Prompt.

If you are having problems with t service, it is suggested you follow the instructions below to try starting httpd. Running Apache as a service is usually the recommended how to prepare tandoori chicken without oven to use it, but it is sometimes easier to work from the command line, especially during initial configuration and testing.

This will open a console window and start Apache inside it. If you don't have Apache installed as a service, the window will remain visible until you stop Apache by pressing Control-C in the console window where Apache is running in.

The server will exit in a few seconds. However, if you do have Apache installed as a service, the shortcut starts the service. If the Apache service is running already, the shortcut doesn't do anything. If Apache is running as a service, you can tell it to stop by opening another console window and entering:.

Running as a service should be preferred over running in a console window because this lets Apache end any current windws and clean up gracefully. But if the server is running in a console window, you ruh only stop it by pressing Control-C in the same window. You can also tell Apache to restart. This forces it to reread the configuration file. Any operations in progress are allowed to complete without interruption.

To restart Apache, either press Control-Break in the console window you used for starting Apache, or enter. Change to the folder to which you installed Apache, type the command httpd. Then change to the logs folder, and review the error. When working with Apache it is important to know how it will find the configuration file.

You can specify a configuration file on the command line in two ways:. In both of these cases, the proper ServerRoot should be set in the configuration wpache.

This built-in path is relative to the installation directory. Apache will then try to determine its ServerRoot by trying the following, in this order:. If you did not do a binary install, Apache will in some scenarios complain about the missing registry key. This warning can be ignored if the server was otherwise able to find its configuration file.

The value of this key is the ServerRoot directory which contains the conf subdirectory. When Apache starts it reads the httpd. If this file contains a ServerRoot directive which contains a different rkn from the one obtained from the registry key above, Apache will forget the registry key and use the directory from the configuration file.

If you copy the Apache directory or configuration files to a new location it is vital that you update the ServerRoot directive in the httpd. After starting Apache either in a console window or as a service it will be listening on port 80 unless you changed the Listen directive in the configuration files or installed Apache only for the current user.

To connect to the server and access the default page, launch a browser and enter this URL:. Apache should respond with a welcome page and you should see "It Works! If nothing happens or you get an error, look in the error.

If you happen to be running Apache on an alternate port, you need to explicitly put that in the URL:. Once your basic installation is working, you should configure it properly by editing the files in the conf subdirectory. Again, if you change the configuration of the Windows NT service for Apache, first attempt to start it from the command line to make sure that the service starts with no errors.

These conflicting services include other WWW servers, some firewall implementations, and hod some client applications such as Skype which will use port 80 to attempt qindows bypass firewall issues. Mapped drive letters allow the administrator to maintain the mapping to a specific machine and path outside of the Apache httpd configuration.

However, these mappings are associated only with interactive sessions and are not directly available to Apache httpd when it is started as a service.

Why Apache?

Sep 22,  · Navigate to 'Downloads' and download/run the latest installer. Accept defaults until you get to 'Adjusting your PATH environment'. Select 'Run Git from the Windows Command Prompt' at this point. Accept remaining defaults and install; If you right click on folders in the file explorer you should now see additional Git commands. Step 7: Install Moodle. Apache will execute, and will remain running until it is stopped by pressing Control-C. You can also run Apache via the shortcut Start Apache in Console placed to Start Menu --> Programs --> Apache HTTP Server xx --> Control Apache Server during the installation. This will open a console window and start Apache inside it. Apache OpenOffice for Windows Windows Version Support. The current Apache OpenOffice supports Microsoft Windows XP, Vista, Windows 7, Windows 8 and Windows Specific platform version notes: Windows OpenOffice may work on Windows , but we don’t test or recommend it. Windows XP: Tested, stable, no platform-specific problems known.

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 determine which one is most likely to meet your particular needs before you spend the time installing and configuring a web service. Many server owners will choose to use a control panel which manages most of the common tasks usually needed to administer a web server such as e-mail and firewall configuration.

Alternately, some administrators who need more flexibility choose one of our Core or Self-Managed Windows Servers. This article is intended for the latter type of server with no Plesk or other server management control panel. This guide was written for a bit Windows server since a modern server is more likely to utilize that platform. There are also a few potential issues with Apache on a Windows bit systems nonbit which you should be aware of and can be reviewed here.

Download Here: Apache 2. This is the bit version with OpenSSL version 1. If you would like to utilize an alternate version they are listed here: Available Versions Page. We will assume that you have installed all the latest available updates for your version of Windows. If not, it is critical to do so now to avoid unexpected issues. These instructions are specifically adapted from the directions provided by ApacheHaus where we obtained the binary package.

Before installing Apache, we first need to install the below package. Once it has been installed, it is often a good idea to restart the system to ensure any remaining changes requiring a restart are completed. Step 1. Extract the compressed Apache download. This is the location we will be using for these instructions.

Step 2. Step 3. Step 4. Run the program httpd. Step 5. You will likely notice a dialogue box from the Windows Firewall noting that some features are being blocked. If everything is working properly, you should see the ApacheHaus' test page. Now that we have confirmed the Apache server is working and shut it down, we are ready to install Apache as a system service. In your Command Prompt window, enter or paste the following command:.

Restart your server and open a web browser once you are logged back in. To allow connections from the Internet to your new web server, you will need to configure a Windows Firewall rule to do so. Follow these steps. Click Next , ensure all the boxes on the next page are checked, then click Next again.

Step 6. Step 8. Open a browser and enter the IP address of your server. You should see the test web page. Step 9. Once you are ready to start serving your new web pages, re-enable that firewall rules, and they should be reachable from the Internet again. We now have the Apache Web Server installed on our Windows server.

Our technical support staff is always available to assist with any issues related to this article, 24 hours a day, 7 days a week days a year. We are available, via our ticketing systems at support liquidweb. We work hard for you so you can relax. Join our mailing list to receive news, tips, strategies, and inspiration you need to grow your business. Our Sales and Support teams are available 24 hours by phone or e-mail to assist. Search Search.

Preflight Check. Downloading Apache:. Install Apache on Windows. Download the x64 version for bit systems. Restart - This is optional, but recommended. Apache Installation. Test Apache Installation. Install Apache Service.

Testing httpd. Errors reported here must be corrected before the service can be started. Configure Windows' Firewall. Step 7. Alert Logic Security and Compliance Suite.

About the Author: Justin Palmer. Common Fixes Featured Articles Getting Started Other Products Cloud Sites 7. Managed WooCommerce Hosting Managed WordPress Security Bulletins Series Technical Support Tutorials InterWorx 2. Have Some Questions? Latest Articles. How Does Containerization Work? Read Article. Security Bulletins. Technical Support. Chat with a Human.