diner - THE HTTP-server for the BeOS | ||
Contents
[ diner ] |
The minimum you have to do, is to copy the diner directory whereever you want and launch diner. In that case it will load the example settings from the diner directory. This is set up to make diner serve pages from /boot/home/www from port 80, including CGI and PHP scripts. To really use php, please read on. If you want to do a bit more, run the preferences application and generate a simple settings file. This gives you an easy start, but not yet the full features of diner.
For efficient use of diner, you should not skip the next two steps:
For using php, copy the php binary to /boot/home/config/bin. Make sure that all your php files are set to the type "text/x-php". Additional to that, add the following lines to the config: AddOn CGI MIMEType application/x-vnd.Stegemann-CGI Template /boot/home/www/templates/PHP MIMEType text/x-php What happens here is the following: When the client accesses the php file, the server recognizes that instead of that file the template "/boot/home/www/templates/PHP" is used. Make sure you copy it from the distribution to your own www directory. This template is a CGI script which will be executed by the server. Then it will run php with the originally requested file. Done! |
|
Copyright © 1997-2000 Stegemann & Co., Inc.,
all rights reserved. Created: November 29, 1997. Last modified: April 26, 2000. |