NOTE: Better versions of these directions can also be found at The Swiki Swiki.
Only if you're using a version of Squeak previous to 1.31!...If you don't already have it, download and fileIn Georg Gollman's miscChanges fileIn, available at http://ftp.tuwien.ac.at/~go/Squeak/webServer.html. The Oct. 1 version of this is available here at miscChanges10-1.st. PWS relies on his exception handling and ServerSocket implementations. Next download PluggableWebServer.st File in PluggableWebServer.st. All the classes will go under the "PluggableWebServer" category.
For Squeak versions after 1.31... All of the PWS is already included in the image.
For all versions of Squeak... You must also download either the Server.tar or Server.sea.hqx HTML files. Store the files in your Web directory.
In ServerAction, change three class methods:
You should execute
PWS initializeAll which will call all the class initialization methods and also store the default and example server actions in the PWS action table.
You can now start the PWS, as you would Georg's server, with something like:
[PWS serveOnPort: 80 loggingTo: 'log.txt'] fork
(On UNIX boxes, you often can't serve from low port numbers. Try serving from 8080 or 8000.)
To stop the server:
"More About Squeak..."
Home Page for How To Squeak