use MacPerl Logo
Home  |  Ported Modules Page  |  Web Server Page
 

  Welcome. On this page you will find some useful informations regarding Mac web servers (setup and links) as well as some notes on CGI scripting. Enjoy.
 

TABLE OF CONTENTS
 

SETUP TCP/IP ON MAC OS CLASSIC TO RUN A WEB SERVER (OFFLINE)
 

The configuration is quite easy:

1. Open the TCP/IP control panel.

2. Choose 'Configurations...' (Command-K) from the File menu.

3. Duplicate a configuration and give it the name 'TCP-offline' for example.

4. Choose this newly created configuration to make it the current one.

5. Either choose AppleTalk (MacIP) or Ethernet in the 'Connect via' pop-up menu.

5a. AppleTalk (must be activated):

  • Choose 'Using MacIP Manually' in the 'Configure' pop-up menu.
  • Assign the IP-Address: 192.168.0.1 will work.

5b. Ethernet

  • Choose 'Manually' in the 'Configure' pop-up menu.
  • Assign the IP-Address: 192.168.0.1 will work.

A sub-mask will automatically be added, so there is no need to assign one.

6. In the 'Options...' Dialog, make sure TCP/IP is active and uncheck the 'Load only when needed' check-box.

7. Quit the TCP/IP control panel and save the configuration.

You may want to use a Hosts File. Instead of typing the IP-Address 192.168.0.1 every time you want to access something through your browser, you'll be able to use a human friendly domain name, for example http://www.myMacatHome.com/. Use a text editor and copy the following line to it (exactly as shown):

www.myMacatHome.com  A  192.168.0.1

Save this file as 'Mac.hostfile' for example. In the TCP/IP control panel, assign this file as your Hosts File.

If you want to learn more about Open Transport TCP/IP and Hosts files, you may want to download the OT 1.1 Manual (340 KB -- no newer one available). It can also be found on the System 8.5 CD (:CD Extras:Network Extras:OT Extras), but on the System 9.0 CD it was removed.

 
Goto TOP


WEB SERVERS FOR MAC OS CLASSIC
 

Web and FTP Servers:

MacHTTP 2.3 or higher (HTTP only server)
Comments: WebSTAR's predecessor, recently resurrected by its author Chuck Shotton, fine documentation, now freeware, may be open source in the future (see TidBITS#566 (05-Feb-2001)
Download: http://www.machttp.org/
NetPresenz 4.1 (HTTP, FTP and Gopher-server)
Comments: shareware, one of the few non-commercial (is shareware non-commercial ? :) FTP-servers around, available for a hefty $69.95, may only be worth this price if you need a FTP server
Info: http://www.stairways.com/netpresenz/index.html   (~ 1 MB as .hqx)
Pictorius Net Server 1.1 (HTTP, SMTP and POP3 server)
Comments: freeware, supports virtual hosts
Download: 68K: http://www.esm.psu.edu/HTMLs/Graduate/SOFTWARE/Internet/Pictorius-Net-Servers-68K.sit   (2 MB)
PPC: http://www.esm.psu.edu/HTMLs/Graduate/SOFTWARE/Internet/Pictorius-Net-Servers-PPC.sit   (2 MB)

Mail-Servers:

Stalker Internet Mail Server (POP3 and SMTP server)
Comments: a flexible freeware server with anti-spam features, configuration is a bit awkward, this server is probably the way to go if you really want to serve the Internet

Note: The anti-spam feature is NOT a luxury if you are on the Internet, but virtually a necessity. With AIMS for example, there is no way to prevent your server from being an "open relay". That means that spammers will use your server to send their spam, both putting a load on your server and making you a partner in their crime. [Credits to David Steffen for this note.]
Info: http://www.stalker.com/SIMS/Intro.html
Download: ftp://ftp.stalker.com/pub/SIMS.sit.hqx   (174 KB)
Apple Internet Mail Server 1.1.1 (POP3 and SMTP server)
Comments: free, old stuff, but it works fine for testing and development on your local Mac, should better not be used to serve the Internet
Download: http://www.esm.psu.edu/HTMLs/Graduate/SOFTWARE/Internet/AIMS-1.1.1.sit   (174 KB)
Eudora Internet Mail Server 1.3.1 (POP3 and SMTPserver)
Comments: freeware, Qualcomm bought AIMS from Apple and called it EIMS, same warning as for Apple's AIMS
Download: ftp://ftp.qualcomm.com/eudora/eims1/131/eims131.sea.hqx   (258 KB)

Mail-List-Server:

Macjordomo (List-Server)
Comments: freeware, if you ever want to set up your own mailing list ...
Info: http://leuca.med.cornell.edu/Macjordomo/

News-Server:

RumorMill 1.2.2 (NNTP-Server)
Comments: shareware
Info: http://www.stairways.com/

Recommended Reading:

Some of these servers are covered in the book "Providing Internet Services via the Mac OS" by Carl Steadman and Jason Snell, available online at http://www.pism.com/. The book is (very) outdated (published 1996), but free and may be still useful. A nice usage story on serving the Internet via the Mac OS can be read in TidBITS#536 (26-Jun-00): "Serving the Internet from a PowerBook 5300" by Ron Risley.

If you want to do CGI scripting with MacPerl, take a look at the book "MacPerl Power and Ease" by Vicki Brown and Chris Nandor, as a starting point. You are able to read the book online at http://macperl.com/macperl/ptf_book/HTML. You may want to jump directly into chapter 16 "CGI Scripting". Also take a look at chapter 24 "Books, Etc." and you get a lot of references to recommended Perl and Perl/CGI books.

You may also want to read the article "Using MacPerl for CGI Programming" by David Steffen, which was published in the (now defunct) PerlMonth online magazine -- highly recommended. Since the PerlMonth website is out of business, you are now able to download this article from my website as stuffed .sit archive.

 
Goto TOP


Home  |  Ported Modules Page  |  Web Server Page
 

Last updated 21-December-2002 © Thomas Wegner 2000 - 2002

The URL of this page is http://usemacperl.esmartweb.com/server.html
Send comments to Thomas Wegner.