Forum Moderators: phranque

Message Too Old, No Replies

Apache Server Setup

Setting Up Apache on Windows

         

Technologist

1:56 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



Hello all you good people, im new here, this is my very first post.

I want to setup an Apache server on my computer which runs on Windows Xp Home edition. I know virtually nothing about this subject and am just getting started newly.

Now my computer specifications are, i have got two computers:

Windows XP Home Edition on a Laptop
Laptop has got a Wireless-b 2.4 GHz, 802.11b, Cisco systems to connect to the router.

Another normal desktop PC has Windows Xp Proffesional.
Desktop Pc has got a Wireless -G Pc Card compatible with- Wireless-B(802.11b) and Wireless -G(802.11G)

My Internet connection is connected to my Modem with Sweex Wireless Router 11G

I Have tried to install Apache before via www.mundy.org/xp. But i could not do it, it did not work.

1-I would like to know which version i have to install to run on Windows Xp Home edition primarily. I have read the documentation on the subjects but I cannot seem to find it.
2-Do you have to install extra windows components like TCP/IP ansofort?
3-Any other suggestions are very welcome.

I have read on this Forum too, about the subject but I simplly cannot find it, or just cannot understand. I have just started with webservers, so I hope you guys can help me out. Just push me in the right direction.

Hope i can learn from all you, and thanks in advance.

ChadSEO

4:28 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



Technologist,

Welcome to WebmasterWorld!

Probably the best site to download Apache from is the Apache website, you can get it here: [httpd.apache.org ] You will want to download the "Win32 Binary (MSI Installer)". You should have all the necessary Windows components already installed. If you have any problems with this, post specifics: how far did it get, did you get any error messages, etc.

If you want your website to be available from the internet, you will have to setup port forwarding from your Sweex Wireless Router to the computer that you installed Apache on. A quick search on "Sweex Wireless Router port forwarding" will usually get you a few sites that explain how to set that up.

Good luck!

Chad

Technologist

10:14 am on Aug 17, 2005 (gmt 0)

10+ Year Member



Thx ChadSEO,

I now have come to the conclusion that I do not understand a thing about what I am doing. I simply do not even know why I am downloading Apache in the first place. I just want a webserver on my computer. But with only installing a Webserver you are not finished. And here lies my problem now.

I have downloaded a full packet of Apache, Php, MySQL, SSL. I also forwarded the ip adresses and ports on my router like Chad said.

So now i have all the programs in place, up and running too. When I type [127.0.0.1...] in my webbrowser I get a big 'Congratulations' too! When other computers type in my ip adress they get this screen too. So i seem to have a connection with the internet. But how do I now get my website on this screen?

On Wikipedia I read about webservers. Webservers are http based computers responsible for serving documents. So my computer asks webmasterworld's adress specific documents and I get to see what I am seeing now. Ok I understand that. A webserver 'Serves http'. Simple as that.

1-Now what botthers me is, what to do with my website? Where do I place it to see it on [127.0.0.1?...]
2- Where do you need FTP for?

Hope you al can and Want to help me.

Technologist

12:40 am on Aug 24, 2005 (gmt 0)

10+ Year Member



Alright now I do understand it. Your website must be placed in the Htdocs file. The main page at 127.0.0.1 is the file named Index.html. My Webserver is set up now i installed apache_2.0.47- for windows. I have got two computers both connected to the same internet modem via a wireless router. I forwarded both computers Ip Adresses at port 80. I can see from both computers my index.html but I cant see it on remote outside computers out of my direct network.

Why cant other people from different computers out of my house see my webpages by typing in my ip adress?

jdMorgan

1:37 am on Aug 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Many ISPs block access from the internet to customers' port 80, because running a server is against their terms of service. There are valid reasons for this, epsecially on ADSL where the uplink and downlink speed and traffic concentration parameters are different. Review your ISP's terms of service for more info.

I'm not sure how you can have both computers' port 80 forwarded from the firewall, unless you have two WAN IP addresses. To simplify things, pick one machine and get that working first.

You might also want to be sure that you haven't got Windows Firewall (or a third-party software firewall) blocking incoming port 80 TCP/IP.

Jim

dannic

5:56 pm on Aug 26, 2005 (gmt 0)

10+ Year Member



a good place to start would be [easyphp.org...]

This will give you all of the basics you need for installing an apache server with php and mysql on your windows pc.

pnllan

5:04 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



"Your website must be placed in the Htdocs file."

Not to be a smartalec, but I hope you meant folder (directory) and not file. Actually, HTDOCS is the default folder that Apache uses, but it can be changed to just about anything as long as the PC Apache is installed on has access to it. To change what folder you want to use, you must edit your HTTPD.CONF file (the default HTTPD.CONF i.e. the one Apache installed with, has descriptions of what each directive does). Again, as previously stated by others, the Apache manual has everything you need to get started...you do not have to know it all but you will pick up valuable knowledge that at some point you will most likely use.

"The main page at 127.0.0.1 is the file named Index.html."

You almost have it, but by the way you explain it...not quite. INDEX.HTML is INDEX.HTML...it's a file that is 'marked-up' with HTML...nothing more...nothing less. The IP address of 127.0.0.1 is TCP/IP's way of saying 'LOCALHOST'. Localhost is the PC that you are working on. Every PC has a 'localhost' no matter what. Whether a server is located on localhost or not, is what is important. The reason you see INDEX.HTML when you type 127.0.0.1 into your browser is because:
1. You have a webserver on your localhost.
2. The webserver is configured to display INDEX.HTML should the root of the server be requested. This is controlled by the DIRECTIVE 'DirectoryIndex' which by default is set like below:

DirectoryIndex index.html index.html.var

This is telling Apache that if a specific file is not requested go to INDEX.HTML, and if doesn't exist then use INDEX.HTML.VAR (the Apache Test Page which is setup for multiple languages)

"I have got two computers both connected to the same internet modem via a wireless router. I forwarded both computers Ip Adresses at port 80. I can see from both computers my index.html but I cant see it on remote outside computers out of my direct network."

Networking 101 - What you are describing is problematic at best. Your ROUTER IS CONFUSED at best...pick one or the other for right now...later if you want to do LoadBalancing then read up on it after you get the basics down pat. Your Desktop would be my choice. You can run a webserver on a laptop (I have and I do), but I only use it for development and testing purposes.
Which leads me to ask this...are you asking friends or are you trying to hit you webserver via 127.0.0.1? As stated above, 127.0.0.1 equals 'localhost'. In order for browsers outside of your network to be able to see your webserver you need to know the IP address that your ISP has assigned to your modem. Most Routers that I have used will display this IP Address somewhere in the Router Configuration. This will NOT be a IP Address that starts like 192.168.*.*. That is usually a DHCP generated IP. BTW, forget IPCONFIG it will give the Router (DHCP) assigned IP, and NOT the ISP assigned IP. Knowing the IP Address that is ASSIGNED by the ISP is a MUST.

Technologist

1:46 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



Well I meant to say folder of course. I now understand the basics, how to configure files and how it works. The webserver is actually placed IN the localhoat so it can acces the files i want place on a site which i want to be available to be seen from other computers.

I Use my Laptop with Windows Home Edition for Apache.

I ask friends to type in a IP adress I find in Network Connections. It starts with 192.186... Which means that it is a DHCP adress right? So that may be the reason others cant acces my website.

How do you find out about your ISP Ip adress? Call them?

Man, if I just could get it work so that other computers could see my self-made Html files it would be so Rocking cool and I would be you all very thankfull.Bye

Technologist

1:56 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



I Called my ISP and it is not blocking any incoming traffic.

I find out how to find your real IP number too: Just google 'MY IP'. That's it.

Now lets try it again..

Technologist

2:12 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



My ISP seems to be 62.163.***.49

I type this in in my own Webbrowser but it doesnt gives the web site i expect.

Anybody can try get in too using ip adress above just too try.

Any other suggestions?

[edited by: jdMorgan at 3:47 pm (utc) on Sep. 3, 2005]
[edit reason] Obscured unique IP address [/edit]

pnllan

5:55 am on Sep 5, 2005 (gmt 0)

10+ Year Member



The IP address looks like more of what I would expect to see.

You say you do not see the web page you expect...So...what are you seeing that you are not expecting to see?

or phrased another way...

When you enter the IP Address 62.163.***.49 into your browser, what is being displayed?

Details please