hi everyone,
I was aiming at building a site with guest book, log in, e mail set up, etc. It is more or less the know how of it really at this time.
So far I have php server w/ apachi set up and every thing seems to be working fine. Here is what I am after. http…my ip address/name of the file.html. For now it is the Flashmatzz guestbook. If you can’t see it, then will you please tell me the steps I need to take to get there.
Thank you. LINK
update (10/18/2004): because I couldn’t figure things out, just took the url off this thread.
I use my computer as a test server for all kinds off stuph I spew, but it’s allways annoying how ones IP changes everytime you re-connect to the net. Is there anyway around this?
I think you’re referring to dynamic ips causing the dns to get messed up, you can use dns servers from ipupdater.com (what I use now) or no-ip.com (what I used to use)… and they support dynamic ip address, because they have a app that runs on your computer that checks your ip address every minute or so and updates their server to the correct ip
You need to tell us what Operating System you are using. Chmod is for unix or linux types. Unless you install that windows/unix cli thing. Majority of ISP’s block port 80 and some block port 8080 so people cannot host a server from home. Your alternative is to set your default port to something else. Try 8080 first, and if this doesn’t work, then get on google and look at port numbers, find one that isn’t being used and try that one. So your address would be:
http://ip-address:8080/index.html for example…
Regarding dynamic IP addresses. Unless you are on dial-up your IP will not change everytime you connect to the internet. Cable / DSL lines use a leased IP which is on a time frame. If you are still connected when that lease expires it will not release your IP. You can theoretically have the same IP for many months or even a few years if you stay connected the entire time. But ISP’s do force a release renew on occassions. But if you do an IP check you will see you can have the same IP for quite some time, even if you are on and off the internet (computer is shutdown) for periods thru-out the day…
I use win xp pro.
Because I have cable, my ip has been the same. I guess this means that I have LAN connection. I don’t know how this effects on me trying to use my com. as a server.
You can use your computer as a server, but note what I mentioned about port blocking, which is the usual case with home servers and ISP’s. You have to set your IP and pick a different port in your httpd.conf file. Make sure you have your computer locked down and you have a decent firewall, preferably not the same machine as your server/home pc.
Marble,
I appreciate your help.It’s just over my limit of undrestanding. When I was installind php server, I did not see the port 80 . I have zone alarm firewall on my machine. how do I lock down my computer?
Can you help me with this:You have to set your IP and pick a different port in your httpd.conf file.
thanks
There is a setting somewhere where it shows what domain/IP and port Apache should listen on:
Listen 64.234.24.53:8080
For example…
You’ll have to set your firewall to accept incoming traffic on that port. But just remember you are now opening your computer to a world of possible problems by allowing anonymous access from the web. For a home computer web server setup you are better off getting a seperate computer as a firewall and another as a web server, with 2 extra nic cards in the firewall - one goes to your computer on one network, then put a rule in that says to forward port 8080 traffic to this other computer (your webserver), which would be on it’s own network… These don’t have to be nice pc’s by any means. A firewall can be a p1 or p2. The web server should be something like a p3 600 or higher, imo…
For example (if it displays correctly):
WAN --> Firewall |---> Home PC (192.168.0.100)
|----> Web server (172.16.0.100)
Based on what you told me, I better just lay this issue to rest. I guess I can use the server as a testing ground for the files I am working on. Let me explain. Couple of years ago my wife was taking some web design classes in a college. Because she wasn’t quite good at using dreamweaver, I had to go to a library to see how her files looked on other computers. Then I would take note and she would make adjustments to the files mainly when tables and nesting tables were concerned. Now, is it safe to assume that through a web server by using “localhost”, I see the files the way others see it?
Yeah not a problem. You tell Apache to listen to 127.0.0.1 and it won’t broadcast it’s a webserver. Running apache w/ php will get you the same results as you would running it from a webserver. There are slight differences you can encounter, like maybe libraries (php) are different or the versions are different. But primarily you will get the same results.
Some people have no problems running a web server from home. I always discouraged it unless you knew what you were doing and took measures to keep your computer safe. No reason to make your pc a slave for some dos attack against M$… (well…)
I never was able to see this Listen to, and don’t know why. May be because the company that provides my internet which makes me part of a LAn uses it’s own set up and I bypassed it or something.
When I was installing php server, the server name became: dc.dc.cox.net. Was I suppose to change that to localhost?
when I get the ipconfig, I get four different setting, with dc.dc.cox.net being the first. The other is ip address and 2 more setting, Subnet Mask and Default Gateway.
You are on your own lan, don’t worry about your ISP and you cannot override their settings and they have nothing to do with your home server or conf or php.ini settings except they can block incoming and outgoing traffic at their end…
Your pc --> sends a packet out port 25 (mail smtp) --> ISP’s router blocks it -->|
OR:
Some d00d on the web sends an http request packet (default port 80) -->| ISP Router blocks it from reaching you.
So they are the “middle people” between you and your web server. They are not part of your lan at all. It’s just you have to go thru them (their routers) first on the web.
A lan is an internal network. So if you went out and bought a router of some kind or made one from a pc and connected 4 computers at home, using internal LAN designated IP addresses, then you would have your own network. This, in a basic way, is a LAN. Large companies will create several LAN’s, maybe one for the sales department, one for research, and one for testing, for example. Then they could set up their own domain server and run their own “world” within their several networks. This is also a LAN. You can have a LAN setup and not be connected to the internet at all and have nothing to do with any ISP.
But after I rambled here, I was pointing out that your ISP has nothing to do with how you set your php.ini or httpd.conf file other than you might need to make some changes to get around what ports your ISP blocks.
I haven’t used windows apache server for a long time, but open your httpd.conf file and look for a line about “listening”. I assume its sort of the same between windows and linux/unix.
What you are seeing in ipconfig is:
IP address - this is your actual IP address
Subnet Mask - defines your network
Default Gateway - the “gateway” you will go to first when accessing the net.
DNS servers - these will resolv domain names to addresses.
You don’t need any of this unless you are broadcasting your webserver over the internet. Just put “localhost” or 127.0.0.1 as your IP in your httpd.conf file. and php is not a server. It’s a “module” that a webserver uses. Or in windows it’s a dll.