Steptoe Second Lieutenant

Joined: 30 Apr 2005 Posts: 120 Location: New Zealand
|
Posted: Sun Sep 04, 2005 6:19 am Post subject: |
|
|
|
u are going to need a domain name, a good place to start instead of no-ip google search that and read, sign up for free service for now.
For apachie etc the Appserv web site Google search for it.
Read, read again and follow instructions carefully. Errors are user errors NOT errors in code....
When starting make a new partition on your hard drive call it 'server', in there have a folder called webserver, then install appserv, smtp server, into their own folders in there.
EVERY change u make, backup the whole webserver folder...If u screw up, just go to task manager, turn off apachie and other realeted web services, delete the webserver folder, then copy the backup back, turn those services back on and start again...u R going to screwup.
keep at least the last 5 or 10 backups.
u will also need a smtp server, run a forum search here for postcast a how to post by me
Dont be tempted to mess with themes...leave making/adding these untill u have the site stable and running well....another big mistake newbies make.
THEN u need to know this stuff to be able to serve your site from your local host and across your local network.
If behind a router to serve on the net:
fix the local ip of the server machine in network tcp properties to the one the router has allocated.
Depending on your router, if all the machines on your local network, and or the router is rebooted, and combos of the above, the router could reallocate a new ip to the server and incomeing requests to your web site will not go to the correct server ip. this happens when the router drops its cache or updates them. (a rather simplified explanation only to get u to understand the principles of what u are trying to do
Open port 80 and port 25 (web port and smtp respectivly) and direct these to the web server/smtp server
Open port 80 on your server firewall. If running a smtp server also there is no need to open port 25 on firewall to recieve as all mail is outgoing only. If running a full mail server also open port 110.
This now provides access externally to your server from the internet.
With mail servers be awhere if Spamers using it to relay, a very fast way to get your domain blacklisted if it is used in this manner..make sure it is protected and configed correctly.
Now u edit /apache/confhttpd.conf at the bottom
| Code: | <VirtualHost localipofserver >
ServerName www.domainname
DocumentRoot path to root directory
</VirtualHost> |
So it looks like this
| Code: | <VirtualHost 192.168.0.12>
ServerName www.domain.net
DocumentRoot d:/webserver/www/nuke/
</VirtualHost> |
This tells the apache server where to send in coming web site requests
U are now serving on the internet
To access from machines on local network:
On the local machines (not the server) find the windows host file
C:\WINDOWS\system32\drivers\etc\hosts
open and add
| Code: | | 192.168.0.13 www.domain.net |
details Same as what u put in the httpd.conf above
This creates a path to use the domain name to go directly to the server, and not out thru the router on your external ip, then back in thru the extetrnal ip to the router...as mentioned above u cant do that.U can now connect from the browser addy and links on the net, to your web site on the local network using www.domain.net
On 98 machines this requires a reboot, XP it dosent, thu ppl say it does. thu once in a while it doest work without a reboot of the workstation.
All sounds complex...its not as complex as it seems..I still dont know code, php or html never even opened frontpage in my life, early last Oct I didnt know what nuke or apache was, by mid oct I was serving, by Feb we had the top and most active kakariki parrot site on the net.
How...read, read more, use the search buttons on forums heaps, (saves waiting for answers lol )and google search heaps...errors..always assume u screwed up, 99% of the time, u will be right lol
If you are not prepared to put a lot of learning/time in...play tennis it is far better for your health lol |
|