Next:
1. How the Pieces
Up:
Server Side Scripting
Previous:
Contents
Contents
I
. Overview
Subsections
1
. How the Pieces Fit
1
.
1
An Example
1
.
1
.
1
HTTP Request Sent
1
.
1
.
2
HTTP Request Received
1
.
1
.
3
CGI Script Executes
1
.
1
.
4
HTTP Server Relays
1
.
1
.
5
HTTP Client Displays
1
.
2
The Components
1
.
2
.
1
HTTP Client
1
.
2
.
2
HTTP Server
1
.
2
.
3
Script Interpreter
1
.
2
.
4
Database Server
1
.
3
Summary
1
.
4
Questions
2
. Getting Your Own HTTP Server
2
.
1
Hardware
2
.
2
Operating System
2
.
3
Components
2
.
3
.
1
Apache
2
.
3
.
2
Perl
2
.
3
.
3
libapache-mod-perl
2
.
3
.
4
mysql
2
.
3
.
5
libdbi-perl
2
.
3
.
6
libdbd-mysql
2
.
3
.
7
libcgi-perl
2
.
4
Configuration
2
.
4
.
1
Choose a Root Directory
2
.
4
.
2
httpd.conf
3
. Knoppix
3
.
1
What you need
3
.
2
Persistent Home Directory
3
.
3
Modify and Save Apache Configuration
3
.
4
Create the Web Directory and Access Control File
3
.
5
Some sample files
3
.
6
Starting up Apache
3
.
7
Testing the set up
3
.
8
Feeling lazy?
3
.
9
Usual start up sequence
4
. Testing a scripting environment
4
.
1
File transfer
4
.
2
Shell access
4
.
3
Editing
4
.
4
Where to put scripts and CGI configuration
4
.
5
A test script
4
.
6
How to trigger the scripts
Copyright © 2008-05-09 by Tak Auyeung