Jag's World Header

 

 

 

Mad With Macintosh

 

 

Make Any Mac A Web Server

Mac Plus or Up

courtesy of Tricky

What You Need
Configuring Your Mac
Running the Server
Maintaining the Connection
A real live Mac Plus webserver that's been online for 5 years


What You Need

 

 

Setting up a Mac as a server is easy. You can use any Mac form a Plus on up. I'm using Netprezence, Eudora, Fetch, MacTCP, and Internet Config, all of which are available to download off the net.

This document is meant to show you how to turn your Mac into a World Wide Web server, while spending a minimal amount of money (most likely you already have everything you will need). You can use anything from a Mac Plus up to the newest Power Mac.

For hardware, if you are expecting some heavy traffic on your site, you will want a high speed connection and a faster Mac with alot of RAM; if you're just Joe User looking to setup a small site to be accessed by a few friends over the weekend, a modem along with that old Mac Plus in the closet will work just fine.

All of the software you need can be found on the internet or on any number of online services - as shareware or freeware. The instructions that follow are geared toward Joe User who doesn't want to shell out any more green that absolutely necessary, although for the most part setting up a larger Web server is essentially just as simple (with a Mac, anyway).

 

Connection Hardware

 

Internet Access

 

System Software

 

Web Server Software

 

FTP Software

 

Web Browser Software

 

E-Mail Software

Maximum $$$ Spent: $23


Configuring Your Mac

 For more on settin gup your MacTCP software, see 'Get Your Compact Mac on the Web'.

OK. You have a Mac. You have a telephone. You have a modem. Now you need to get Internet access for this Mac. Perhaps you are a student and can get an internet account through your school. If not, there are several service providers out there. I recommend you get an account which allows you unlimited connection time for a set fee (or free if you have an account through a school). Commercial internet service providers (ISPs) will often even provide you with a few megabytes of space for your own Web site on their system, which is very usefull for providing a consistent gateway to the Mac Web server you will be setting up. You should be able to find an ISP who will set you up with an internet account and web space from as little as $20 a month, such as Netcom or AT&T. Apple's Internet Connection Kit provides you with all of the software you need to get an internet account through any one of a number of ISPs, as well as web browser, e-mail, FTP, telnet and newsgroup software, if you don't feel like downloading this software yourself.

Once you have an ISP, you will need to configure your Mac to connect to your ISP over the phone line via your modem. If you are using a PPP acount, the two most popular software packages for connecting are MacPPPand FreePPP. Mac PPP is not compatible with Open Transport, however FreePPP is. Which one you use is up to you.

Set up your SLIP / PPP software by entering the appropriate phone number for connecting to your ISP, as well as the desired connection speed (will depend on what speed your modem runs at). This is generally all the information you will need to dial into your ISP.

The MacTCP Control Panel

The numbers are your IP address. These change every time you log in, unless you have a constant connection (24/7).

You will also need to do some minimal configuring of your TCP/IP software. Users of MacTCP will do this via the MacTCP control panel, shown here. If you are using Open Transport, you will use the TCP/IP control panel, which is similar to the older MacTCP control panel.

 

The Config PPP Control Panel

There are two pieces of information you need to provide:

1. Access method for IP communication (this will be the PPP or SLIP server, as shown here

2. Domain Name Server information - usually this information will fill itself in the first time you connect with your ISP, or they will provide it for you.

 

You are now ready to connect to the internet through your ISP. Once you are connected, you will be able to get your Mac's IP address via the MacTCP or TCP/IP control panel. This is your Mac's internet address, which tells other computers where to look in order to hook up to your computer over the internet. For the Mac shown here, the URL to access it via the internet would be http://204.32.191.73/ Others will need this URL to connect to you, and it will be different everytime you connect to your ISP. I will cover an easy method to make accessing your Mac at different times easy in spite of this changing URL for your Mac.

The ConfigPPP Control Panel


Running the Server

Now that you are connected to the internet, you are ready to run your Web server. Simply start up your Web server application, configured with whatever HTML scheme you have set up, and you are in business! Your Mac is now running a fully functional World Wide Web server.

Provide a Common Access Point (if at all possible!)

As mentioned before, it will be unlikely that anybody will know your Mac's IP address each time you connect to your ISP, unless you somehow communicate that information to others everytime you connect; otherwise, your Web server will see no traffic. The easiest way to do this is to maintain an off-site web page, and on that page keep a link to your Mac's Web server (IP address) which you will update everytime you start up your server (dial into your ISP). It is very common for ISPs to allow you to maintain a web site on their system, which will have a constant URL. This would be the URL that you would want to advertise to people that you want to connect to your Mac's server. Each time you connect to your ISP, you would then modify your off-site web page(s) with your newly obtained IP address, so that anyone who hits those links will be able to conect to your most recent (and correct) IP address, thus accessing your Mac's web server! This will ensure that others will have quick and easy access to your Mac's server whenever it is up and running. When it is not running, they will find that out when they are unable to connect to your site.

The NetPresenz Setup makes it easy to see if all your settings are correct.

The log window

 


Maintaining the Connection

The tricky part is making sure that your internet connection stays [Image] up even during long periods of inactivity. Most SLIP / PPP accounts will 'time-out' or disconnect you if your connection is idle for an extended period of time. If your server is not constantly getting visitors, or you are not constantly using your internet connection for other activities, this will happen. Your ISP's system will figure "Hey, this person isn't using their account for anything, so I will disconnect them so that some other paying customers can access us!". Does this mean that you have to sit at your computer and aimlessly surf the internet just to make sure your connection stays up? No! There is a simple little trick you can use to automate your Mac such that it will keep the connection up and running indefinitely (in most cases), allowing you to leave your Mac Web server up and running, unattended, for as long as you like!

The trick is to keep an e-mail application running in the background, and set it up to automatically check for new e-mail messages every few minutes - both Claris Em@iler and Qualcom's Eudora allow this. This little step will be enough comminication between your Mac and the ISP to keep your connection from being timed out! Your ISP's system will now be thinking "Well, this person is still using their account, so I better leave them connected for a while longer.". It works well enough that I have kept my Mac Classic's server up and running on a PPP connection for days at a time.

 

Eudora keeps your connection open

 

That, in a nutshell, is all you need to do to set up your Mac as a fully operational World Wide Web Server! Use it to display information, graphics, host CGI applications, Java, provide access to downloadable files on your Mac - it's up to you! Even if you are starting completely from scratch, you can have your own World Wide Web server for around $200, as long as you do it the Mac way :-)

Enjoy!

 

Macs Rule!

 


©1996-04 JagWerks Media