Go Back   TechArena Community > ARENA > Guides & Tutorials
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 21-11-2009
Join Date: Jan 2009
Posts: 1,738
Setup Apache Web Server and File Server on Windows

Here is another tutorial to Install and Setup Apache Web Server and File Server on Windows Operating System the most simplest way.
First you will need to download Apache from here. Now install Apache. Follow the Image Tutorial to Install Apache :

Enabling and Disabling the Apache Service

The Apache installer installs Apache to automatically start the Apache service when the installation finishes. If you wish to stop the Apache 2 service and only start it manually when you need it, You can disable it from : Control Panel > Administrative Tools > Services > Apache2. Double click on it and you can stop and start the service and change the startup type to "Automatic" or "Manual" whenevr you want. If you make Apache2 service to be manual, apache service will terminate and start only when you run it manually. This could be useful if you're only using the apache server on your system to test your scripts and web pages and don't want the server running all the time.

Create a Web Server on Apache :
Go to C drive > Program Files > Apache Software Foundation > Apache2.2 > htdocs. Now here if you have created a website, copy the contents to this folder and your home page should be index.htm. If you which to change the default location of the web site you can do this to. Open this file : C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf. It will open in notepad. Now search for "DocumentRoot" and it will have this code :
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
Chane this to any folder you like, but make sure its a folder and not a drive root else Apache Service will not run. Ok once you have made changes to this file, save it and restart apache. You can do this by accessing it from the system tray icon.
Note : Before making changes to the httpd.conf file, i would recommend you to take its backup, else in case you screw the system, it wont be recoverable. If you want to make this server private so that no one else can access this except the one you like to acces, you can change the default port number. Default port for web service is Port 80. In httpd.conf file search for :
ServerName localhost:80
Change this from localhost:80 to localhost:9201 or any other port you want. Save the conf file and restart Apache.

Create a File Server on Apache :

Search for "DocumentRoot" and there enter the path for the folder which you want to host on the file server. Now make sure there is no "index.html" file in that folder else it will take take the location you mentioned as a website instead of the file server. Now open httpd.conf file and search for :
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
Now replace this with :
<Directory />
    Allow from all
This will let you access the directory based structure.
Thats it! Done...
Reply With Quote
Old 11-05-2011
Join Date: Aug 2008
Posts: 540
Re: Setup Apache Web Server and File Server on Windows

The Apache web server comes standard with three aliases defined, which are also displayed for each virtual machine. In addition, it can mask a directory at the root of the document if it has the same name. You may would like to remark line 477-484 (Alias / icons / up to and including), Line 491 to 505 (AliasMatch ^ / manual ... up to and including), and the line from 515 to 526 ( ScriptAlias / cgi-bin / up to and including).
Reply With Quote

  TechArena Community > ARENA > Guides & Tutorials
Tags: , , , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Setup Apache Web Server and File Server on Windows"
Thread Thread Starter Forum Replies Last Post
Does Windows Server 2008 is most perfect for Server setup Oms-waroop Networking & Security 5 25-02-2011 11:47 PM
Apache web server with windows Mishraji Networking & Security 5 10-11-2010 02:37 AM
Windows Server 2003 VPN Server Setup Sheravat Operating Systems 3 27-08-2010 10:26 PM
how to setup ftp client on apache server? Joyjeet Technology & Internet 3 22-06-2009 11:22 AM

All times are GMT +5.5. The time now is 05:15 PM.