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. Common Fixes Featured Articles 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 operations and clean up gracefully.
But if the server is running in a console window, you can 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 file. 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 directory 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 even some client applications such as Skype which will use port 80 to attempt to 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.
Use only UNC paths for network resources in httpd. Arcane and error prone procedures may work around the restriction on mapped drive letters, but this is not recommended. When running Apache httpd as a service, you must create a separate account in order to access network resources, as described above. If more than a few dozen piped loggers are used on an operating system instance, scaling up the "desktop heap" is often necessary. For more detailed information, refer to the piped logging documentation.
Copyright The Apache Software Foundation. Licensed under the Apache License, Version 2. Command line examples are in the snippet below. If we get an error similar like the one in the snippet below while starting the Apache server, check if there is a httpd process already running or if IIS is running and listening to the port IIS is the default web server installed and is configured to listen To disable it from getting started on next reboot, you can turn change the startup type to manual.
Also, if Skype is installed on the server, it also conflicts with the port Open the php. Also, we can enable required extensions in the php. We will also need to update the variable sessions.
Before restarting the Apache service, we need to mention PHP modules in the httpd. Add the following lines to the end of the httpd.
0コメント