Bahawolf1
Fully Optimized
- Messages
- 2,605
- Location
- United States
This guide is to discuss how to set up a server on your local computer. Please be aware that some Internet Service Providers (ISPs) will have policies against running a server from your connection. I advise you to to refer to the TOS of your ISP before doing this, or you may be disconnected from your service.
How do we begin?
To begin, the first thing that we need to download is an application called Apache. Apache is a server client that will run the neccassary processes to let the core of your server operate. Installing apache is rather simple, but I will walk through the installation of Apache to be helpful.
You may begin by downloading Apache from:
http://httpd.apache.org/download.cgi
We shall download Apache HTTP Server 2.0.55 because it is a stable version of Apache (as of April 6th, 2006). If you view this article in some time from now, Apache may have a newer version out. -- I reccomend to download the latest version from the website for increased security, and greater functionality.
Unfortunately, the Apache organization has not made a Win32 Binary (installer) application for Apache HTTP Server v2.2.0 yet, so we will use v2.0.55 to make it easiest on ourselves.
http://government-grants.org/mirror...ries/win32/apache_2.0.55-win32-x86-no_ssl.exe
Going through the installation is rather simple, until you get to entering the 'Server Information', where you'll need to manually enter information. It is just basically server configuration options, and you may use the following:
Network Domain (e.g. somenet.com): localhost
Server Name (e.g. somenet.com): localhost
Administrators Email Address (e.g. webmaster@somenet.com): Your email address
Then we'll select “for All Users, on Port 80, as a Service –- Recommendedâ€. This will start Apache as a service and run it automatically when the system reboots. This would be the best solution for users that want something quick and simple, no maintenance needed.
Instead of selecting 'Typical' for the Setup Type, select 'Custom' because we're going to keep everything in an organized folder for you.
From the next window that appears, select “Apache HTTP Server†and click on the “Change…†button located in the bottom right.
This will bring up another window, where we're going to change the default installation folder. To keep everything very simple, I'd reccomend changing the default install directory to something like: C:\Server\ -- Whatever you use, remember the ending backslash. Click Ok and then Next.
Apache should begin to install, and a few moments later it'll be done.
Now we can test to see if Apache is installed and running correctly. Open your favorite browser, and give it a try. Simply type in http://localhost/ as the URL and hit enter. If you see a page generated, the install was successful and you may continue.
Remember that we setup Apache to run as a service so the only time the server needs to be stop or restarted is when changes to the httpd.conf file are made. This file contains all the configurations for the server and in most cases doesn't need to be edited as this application will pretty much work out of the box, so to speak.
Now we can edit and add pages to our new server by going to “C:\Server\Apache2\htdocs\â€. This will be where all the web pages will be located and should be stored. This can be changed by configuring the location in the httpd.conf file. Remember to restart if anything is changed within this file.
To restart apache, you may go to the following:
Start>All Programs>Apache HTTP Server 2.0.55>Control Apache Server>Restart
That will restart your apache server, and load any changes done to httpd.conf.
By the way, to change any settings manually in httpd.conf (such as the port Apache runs on), the file is located in "C:\Server\Apache2\conf\". Please remember to restart Apache after making changes.
How do we begin?
To begin, the first thing that we need to download is an application called Apache. Apache is a server client that will run the neccassary processes to let the core of your server operate. Installing apache is rather simple, but I will walk through the installation of Apache to be helpful.
You may begin by downloading Apache from:
http://httpd.apache.org/download.cgi
We shall download Apache HTTP Server 2.0.55 because it is a stable version of Apache (as of April 6th, 2006). If you view this article in some time from now, Apache may have a newer version out. -- I reccomend to download the latest version from the website for increased security, and greater functionality.
Unfortunately, the Apache organization has not made a Win32 Binary (installer) application for Apache HTTP Server v2.2.0 yet, so we will use v2.0.55 to make it easiest on ourselves.
http://government-grants.org/mirror...ries/win32/apache_2.0.55-win32-x86-no_ssl.exe
Going through the installation is rather simple, until you get to entering the 'Server Information', where you'll need to manually enter information. It is just basically server configuration options, and you may use the following:
Network Domain (e.g. somenet.com): localhost
Server Name (e.g. somenet.com): localhost
Administrators Email Address (e.g. webmaster@somenet.com): Your email address
Then we'll select “for All Users, on Port 80, as a Service –- Recommendedâ€. This will start Apache as a service and run it automatically when the system reboots. This would be the best solution for users that want something quick and simple, no maintenance needed.
Instead of selecting 'Typical' for the Setup Type, select 'Custom' because we're going to keep everything in an organized folder for you.
From the next window that appears, select “Apache HTTP Server†and click on the “Change…†button located in the bottom right.
This will bring up another window, where we're going to change the default installation folder. To keep everything very simple, I'd reccomend changing the default install directory to something like: C:\Server\ -- Whatever you use, remember the ending backslash. Click Ok and then Next.
Apache should begin to install, and a few moments later it'll be done.
Now we can test to see if Apache is installed and running correctly. Open your favorite browser, and give it a try. Simply type in http://localhost/ as the URL and hit enter. If you see a page generated, the install was successful and you may continue.
Remember that we setup Apache to run as a service so the only time the server needs to be stop or restarted is when changes to the httpd.conf file are made. This file contains all the configurations for the server and in most cases doesn't need to be edited as this application will pretty much work out of the box, so to speak.
Now we can edit and add pages to our new server by going to “C:\Server\Apache2\htdocs\â€. This will be where all the web pages will be located and should be stored. This can be changed by configuring the location in the httpd.conf file. Remember to restart if anything is changed within this file.
To restart apache, you may go to the following:
Start>All Programs>Apache HTTP Server 2.0.55>Control Apache Server>Restart
That will restart your apache server, and load any changes done to httpd.conf.
By the way, to change any settings manually in httpd.conf (such as the port Apache runs on), the file is located in "C:\Server\Apache2\conf\". Please remember to restart Apache after making changes.