View Full Version : installing webserver
_Josh_
07-18-2006, 06:19 PM
ok does any one knows how to make a windows pc a webserver so that i can host my own website ???:confused:
Peace~ :thumbsup:
paulq
07-18-2006, 06:38 PM
Sure, it's easy. If you have Windows XP Pro, then you can use Windows' IIS. To install this, do the following:
1. Go to Control Panel
2. Open Add/Revome Programs
3. Click Add/Remove Windows Components
4. Select the Item labeled "Internet Information Services (IIS)"
5. Click Details
6. Make sure World Wide Web Service is checked.
7. Click OK to begin installing. YOU MAY NEED WINDOWS XP CD-ROM
Another popular option is to install Apache HTTPD (http://httpd.apache.org/). This works for multiple operating systems and is easy to install and to use.
Hope this helps!
_Josh_
07-18-2006, 07:12 PM
Sure, it's easy. If you have Windows XP Pro, then you can use Windows' IIS. To install this, do the following:
1. Go to Control Panel
2. Open Add/Revome Programs
3. Click Add/Remove Windows Components
4. Select the Item labeled "Internet Information Services (IIS)"
5. Click Details
6. Make sure World Wide Web Service is checked.
7. Click OK to begin installing. YOU MAY NEED WINDOWS XP CD-ROM
i did this thing .... but how to locate my website .... i am little confused :confused:
paulq
07-18-2006, 07:19 PM
You will have to spend some time familiarizing yourself with some basic IIS configurations. I believe that the default location of your web would be in "C:\InetPub\WWWRoot" so try putting an HTML file in there and name it "index.html" and then open up your web browser (Internet Explorer) and type "http://127.0.0.1". It should display your page (index.html).
_Josh_
07-18-2006, 07:23 PM
omg m so sorry.... but some1 told me IIS have too many security holes ... so i am installin apache ....
i'll let u know in a moment ... :)
thx alot mate :thumbsup:
but i need more help from you :D
_Josh_
07-18-2006, 07:24 PM
mean while can u tell me... where can i get these things
mysql, phpmyadmin, PHP... ? does that comes with apache?
paulq
07-18-2006, 07:25 PM
Sure thing. I am using Apache 1.3.35 now so I'd be able to help you with it better than I could with IIS ;).
paulq
07-18-2006, 07:27 PM
No, they don't come with Apache.
MySQL (http://www.mysql.com/)
PHP (http://www.php.net/)
phpMyAdmin (http://www.phpmyadmin.net/)
_Josh_
07-18-2006, 07:41 PM
ok mate i m downloadin this thingy
http://www.apachefriends.org/en/xampp-windows.html#641
XAMPP
it is bundled with these things
* Apache 2.2.2
* MySQL 5.0.21
* PHP 5.1.4
* phpMyAdmin 2.8.1
* XAMPP Control Panel Version 2.3
* FileZilla FTP Server 0.9.16c
_Josh_
07-18-2006, 08:12 PM
ok paulg i;ve downloaded that n installed that thing....
now how to see my website?
paulq
07-18-2006, 08:25 PM
For starters, try accessing the default page. Use your web browser to load it using : http://127.0.0.1. (Or just click that link)
This should show you some message from the Apache server. If this works your can start making some changes to the Apache configuration file. Go to where Apache is installed. For me it is "C:\Program Files\Apache Group\Apache" then enter the "conf" directory and open "httpd.conf" width word pad (not Word). Do a search for the term "DocumentRoot". That variable is where Apache will look for your web pages.
I think by default it is set to 'DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"' so you can just stick your pages in that folder and it will load them, or...
...you can change the DocumentRoot to whatever folder you wish to keep your documents in. For example I have it at DocumentRoot "C:\wwwroot\www"
If you make any changes to Apache's configuration files you must restart the service before they take effect. To do this open the command line (Start->Run->cmd.exe) and then type net stop apache then press enter and then restart the service by typing the command net start apache.
I hope this information helps!
_Josh_
07-18-2006, 08:34 PM
i've loaded the index page in my directory...
but my question is .... what will be my website url... that i can give it to my frnds so they can view? :confused:
thx for ur help mate... :thumbsup:
oracleguy
07-18-2006, 08:43 PM
That depends on how you are connected to the internet. Are you going through a router?
In that case it would be your external IP address, the IP address your router has on it's WAN port. And in order for your friends to get to it, they'd have to put that IP address in their browser. Additionally you'd need to setup port forwarding on your router to forward port 80 to the computer on your network where you installed Apache.
paulq
07-18-2006, 08:45 PM
Your URL would be your IP address. So you can give your friends your IP and they can type in the address bar in their web browser to view it. If you have dial-up, this IP will change every time you connect (probably). If you have cable\dsl, this usually stays the same for a while or until your modem is reset. If you have router that splits your connection to other computers in your house, you need to change its settings to allow port forwarding of port 80 to go to your IP address. It may sound a little complicated if you have never dealt with this stuff before but it is all very simple. Also, be aware of the security risks that you open up by changing router settings and giving your friends your IP address and such. If you are still unsure how to access it from the WWW let me know what kind of setup you have like what kind of internet connection you have and if you have a router (if so, the router make\model).
_Josh_
07-18-2006, 08:49 PM
i dunno what type of connection i am on... thats sounds funny but thats true...
i only know that my ip changed everytime i connect to internet...
its not a dialup connection :(
paulq
07-18-2006, 08:52 PM
Well, your external IP address can be found here (http://www.ipchicken.com). That would be the address your friends would need to connect. Again, if you are behind a router\firewall they will be unable to connect if you don't change port forwarding settings.
_Josh_
07-18-2006, 08:57 PM
i've done that and opened my ports 80 and 8080 ... but still nothing i can get ...
paulg i'll pm u my ip n u see it urself :o
paulq
07-18-2006, 08:59 PM
Sounds good. I'll see what I can do.
_Josh_
07-18-2006, 09:00 PM
*pm sent to paulg* :)
_Josh_
07-18-2006, 09:26 PM
thanks for ur help paulg :thumbsup: :thumbsup: :thumbsup: :thumbsup:
oracleguy
07-18-2006, 11:34 PM
Did you make sure to forward port 80 to the correct IP address on your LAN? Also if you have the Windows firewall turned on, you are going to need to add an exception for port 80 on there so it doesn't block the remote connections coming in.
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.