Online Perl Programming Books
Practical mod_perl


Linuxtopia Contents


Symbols & Numbers | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: S

sanity checks: 23. Getting Help and Online Resources
scalability, resources: 23.3.9. Performance and Scalability
scalar variables
redirecting to STDOUT: 6.4.5. Redirecting STDOUT into a Scalar Variable
sharing: 10.1.2.1. Variable unsharing caused by regular expressions
screen media type: E.6. Putting Everything Together
ScriptAlias directive: 1.1.3. Apache CGI Handling with mod_cgi
4.2.1. Alias Configurations
SCRIPT_FILENAME variable: 1.1.3. Apache CGI Handling with mod_cgi
SCRIPT_NAME variable: 1.1.3. Apache CGI Handling with mod_cgi
scripts
Apache configuration: 3.1. Configuring the Source
apachectl: 5.4. Using apachectl to Control the Server
Apache::PerlRun compared to Apache::Registry: 1.3.1. Running CGI Scripts with mod_perl
Apache::Registry
BEGIN block execution: 6.4.9. BEGIN blocks
debugging: 21.5.9. Interactive mod_perl Debugging
running: 2.6. A Sample Apache::Registry Script
benchmarking: 1.3.1. Running CGI Scripts with mod_perl
CGI
forking model: 1.2.2. CGI Scripts Under the Forking Model
mod_perl example: 2.6. A Sample Apache::Registry Script
porting to mod_perl: 2.6.1. Porting Existing CGI Scripts to mod_perl
testing mod_perl: 3.10.4. Testing via a CGI Script
command-line switches: 6.5.2. Command-Line Switches
DBI module: 20.1.5.2. Transactions
debugging code, Apache::FakeRequest: 21.5.2. Using Apache::FakeRequest to Debug Apache Perl Modules
directory, configuring: 2.5. Preparing the Scripts Directory
hello user: 1.1.2. The Common Gateway Interface Specification
hello world: 1.1.2. The Common Gateway Interface Specification
hooks, checking for: 3.1.6. Discovering Whether a Feature Was Enabled
input arguments, processing: 13.2. Apache::args Versus Apache::Request::param Versus CGI::param
migrating to mod_perl: 4.2.1.1. Running scripts located in the same directory under different handlers
mod_cgi, converting to Perl content handler: 6.7.2. Converting into a Perl Content Handler
server rebooting: 5.7. Preparing for Machine Reboot
setuid: 5.6. Setuid root Startup Scripts
executable: 5.6.1. Introduction to setuid Executables
security issues: 5.6.2. Apache Startup Script's setuid Security
setuid, ample startup script: 5.6.3. Sample setuid Apache Startup Script
TEST: 3.3.1. Manual Testing
testing, importance of: 2.8. Is This All We Need to Know About mod_perl?
troubleshooting: 2.6.1. Porting Existing CGI Scripts to mod_perl
upgrading on live servers: 5.8.2.2.6. Moving files and restarting the server
SDBM_File: 19. DBM and mod_perl
search engines: 1.1. A Brief History of CGI
request-rate speed, limiting: 5.11.6. Limiting the Request-Rate Speed (Robot Blocking)
sections (Apache configuration file)
creating subgroups: 4.1.5. Subgrouping of <Directory>, <Location>, and <Files> Sections
merging: 4.1.4. Merging <Directory>, <Location>, and <Files> Sections
security
cross-site scripting and: 1.1.2. The Common Gateway Interface Specification
encryption, Stronghold: 3.6.4. Installing mod_perl with Stronghold
installation issues: 3.11.1. How Do I Make the Installation More Secure?
making inaccessible: 4.10.4. Making the mod_perl Server Inaccessible from the Outside
mod_proxy and: 12.7.1.3. Security issues
modules and: 4.10.1. Using Only Absolutely Necessary Components
server information, hiding: 4.10.3. Hiding Server Information
server monitors: 4.10.5. Protecting Private Status Locations
setuid scripts: 5.6.2. Apache Startup Script's setuid Security
SSL, mod_perl server and: 12.14. SSL Functionality and a mod_perl Server
symbolic links: 11.7. Symbolic Links Lookup
taint checking: 4.10.2. Taint Checking
taint mode: 6.5.2.2. Taint mode
web security resources: 23.3.10. Web Security
Segfaults When Using XML::Parser, message: 22.3.2. Segfaults When Using XML::Parser
Segmentation fault error, debugging: 21.6. Analyzing Dumped core Files
semicolons, importance of: 21.5.1. Locating and Correcting Syntax Errors
send_http_header( ): 6.11. Generating Correct HTTP Headers
separators, key-value pairs: 1.1.2. The Common Gateway Interface Specification
server: 12.4. One Light Non-Apache and One mod_perl-Enabled Apache Server
(see also two server approach)
build options: 3.5. Installation Scenarios for Standalone mod_perl
building: 3.2. Building mod_perl (make)
building manually: 3.4.1. Manually Building a mod_perl-Enabled Apache
closing connections: 12.7.4. Closing Lingering Connections with lingerd
configuration
Perl: 4.4. Apache Configuration in Perl
validating syntax: 4.5. Validating the Configuration Syntax
creating, three-ties scheme for: 5.9. Three-Tier Server Scheme: Development, Staging, and Production
deployment
overview: 12.1. mod_perl Deployment Overview
standalone: 12.2. Standalone mod_perl-Enabled Apache Server
development, starting for each developer: 5.9.1. Starting a Personal Server for Each Developer
disabling code
Apache::Registry: 5.8.3.1. Disabling code running under Apache::Registry
handlers and: 5.8.3.2. Disabling code running under other handlers
overview: 5.8.3. Disabling Scripts and Handlers on a Live Server
disabling services: 5.8.3.3. Disabling services with help from the frontend server
exiting: 6.4.1. exit( )
extensibility of: 3.1. Configuring the Source
features and hooks used, determining: 3.1.6. Discovering Whether a Feature Was Enabled
httpd: 1.1. A Brief History of CGI
information, hiding: 4.10.3. Hiding Server Information
killing: 5.2. Starting the Server in Single-Process Mode
load handling directives: 11.3. Setting MinSpareServers, MaxSpareServers, and StartServers
maintenance, log files: 5.11.1. Handling Log Files
make install command: 3.4. Installation (make install)
mod_perl enabled, commands for building: 3. Installing mod_perl
monitoring
Apache::VMonitor: 5.10.2. Apache::VMonitor—The Visual System and Apache Server Monitor
automated: 5.10.3. Automated Monitoring
interactive: 5.10.1. Interactive Monitoring
multiple, hosting options: 12.1. mod_perl Deployment Overview
multiple instances, configuration options for: 3.1. Configuring the Source
proxy
adding in httpd accelerator mode: 12.5. Adding a Proxy Server in httpd Accelerator Mode
virtual hosts: 12.10.1. Virtual Host Flavors
remote, getting IP address: 12.9. Getting the Remote Server IP in the Backend Server in the Proxy Setup
requirements, three-tier archetecture: 12.12.1. Server Requirements
12.12.2. The Problem
restarting
mod_perl 2.0 process: 25.1.2.6. PerlFreshRestart
PerlFresRestart directive: 4.2.9. PerlFreshRestart
running multiple on one machine: 12.13. Running More than One mod_perl Server on the Same Machine
security, making inaccessible: 4.10.4. Making the mod_perl Server Inaccessible from the Outside
single-process mode
debugging and: 6.2.2. The Second Mystery—Inconsistent Growth over Reloads
error_log file and: 21.1.2. Curing "Internal Server Error" Problems
Squid
advantages: 12.6.1. Pros and Cons
implementation: 12.6.2. Light Apache, mod_perl, and Squid Setup Implementation Details
overview: 12.6. The Squid Server and mod_perl
two server approach and: 12.6.3. mod_perl and Squid Setup Implementation Details
start procedure: 4.7. Apache Restarts Twice
starting/stopping, apachectl utility: 2.3. Configuring and Starting the mod_perl Server
startup/shutdown cycle logging: 25.2. New Apache Phases and Corresponding Perl*Handlers
testing
make test command: 3.3. Testing the Server (make test)
make test command troubleshooting: 3.3.2. make test Troubleshooting
TEST script: 3.3.1. Manual Testing
timeout, coding considerations: 6.10. Handling Server Timeout Cases and Working with $SIG{ALRM}
upgrading
CVS and: 5.8.2.2.7. Using CVS for code upgrades
Internet cluster servers: 5.8.2.1. The server cluster
Internet single servers: 5.8.2.2. The single server
Intranet servers: 5.8.1. Upgrading Intranet Servers
overview: 5.8. Upgrading a Live Server
Perl code: 5.8.2.2.5. Upgrading Perl code
port forwarding: 5.8.2.2.2. Upgrading a live server with port forwarding
prepackaged components: 5.8.2.2.3. Upgrading a live server with prepackaged components
reusing configuration parameters: 3.1.5. Reusing Configuration Parameters
scripts and handlers: 5.8.2.2.6. Moving files and restarting the server
swapping live and backup servers: 5.8.2.2.1. Upgrading live server components by swapping machines
symbolic links: 5.8.2.2.4. Upgrading a live server using symbolic links
virtual, running single script on multiple servers: 4.9.2. Running the Same Script from Different Virtual Hosts
server and configuration modules: B. Apache Perl Modules
server configuration modules: B.4.1. Apache::ModuleConfig—Interface to Configuration API
server dependencies, isolating: 5.9. Three-Tier Server Scheme: Development, Staging, and Production
server startup: 4.3. The Startup File
@INC, modifying: 6.8.1. The @INC Array Under mod_perl
module initialization: 10.1.5. Module Initialization at Server Startup
modules
preloading: 10.1.3. Preloading Perl Modules at Server Startup
which to add: 4.3.3. What Modules Should Be Added to the Startup File
preloading registry scripts: 10.1.4. Preloading Registry Scripts at Server Startup
sample: 4.3.1. A Sample Startup File
syntax validation: 4.3.2. Syntax Validation
use( ) function: 4.3.4. The Confusion with use( ) in the Server Startup File
SERVER_ADDR variable: 1.1.3. Apache CGI Handling with mod_cgi
SERVER_PROTOCOL variable: 1.1.3. Apache CGI Handling with mod_cgi
SERVER_SOFTWARE variable: 1.1.3. Apache CGI Handling with mod_cgi
services, disabling on live servers: 5.8.3.3. Disabling services with help from the frontend server
set_content_length( ): 16.2.2. Content-Length Header
SetHandler directive: 4.2.1. Alias Configurations
SetHandler (<Location> section): 4.2.2. <Location /perl> Sections
SetHandler/perl-script directive: 4.2.1. Alias Configurations
set_last_modified( ): 16.1.2. Last-Modified Header
setrlimit( ): 5.11.3. Limiting Resources Used by Apache Child Processes
sets, comparing, memory leaks and: 14.2.6. Memory Leakage
setuid scripts: 5.6. Setuid root Startup Scripts
5.6.3. Sample setuid Apache Startup Script
executable: 5.6.1. Introduction to setuid Executables
security issues: 5.6.2. Apache Startup Script's setuid Security
SetupEnv option, PerlOptions directive: 24.5.6.9. SetupEnv
shared locks: 19.2. Resource Locking
shared memory
maximum size: 14.1.2. Defining the Maximum Memory Size Threshold
minimum size: 14.1.1. Defining the Minimum Shared Memory Size Threshold
shared variables, regular expressions and: 10.1.2.1. Variable unsharing caused by regular expressions
shell aliases, error_log file and: 21.1.3. Making Use of the error_log
shortmess macro: 21.7.5. mod_perl gdb Debug Macros
shutdown, troubleshooting: 22.4. Shutdown and Restart
signal handlers, trapping errors: 21.1.4. Displaying Errors to Users
signal.h file: 5.3.1. kill Signals for Stopping and Restarting Apache
signals
kill command: 5.3. Using kill to Control Processes
numerical equivalents: 5.3.1. kill Signals for Stopping and Restarting Apache
stopping/restarting Apache: 5.3.1. kill Signals for Stopping and Restarting Apache
SIGPIPE, emulating behavior of: 6.9. Handling the "User Pressed Stop Button" Case
single-process mode
error_log file and: 21.1.2. Curing "Internal Server Error" Problems
multiple developers and: 5.9.1. Starting a Personal Server for Each Developer
running server as, debugging and: 6.2.2. The Second Mystery—Inconsistent Growth over Reloads
starting server: 5.2. Starting the Server in Single-Process Mode
single-server mode, debugging: 21.2. Debugging Code in Single-Server Mode
single-stepping (perldb): 21.5.6. Introduction to the Perl Debugger
singleton database handles: A.12. Singleton Database Handles
site_perl directory: 3.8. Installing mod_perl on Multiple Machines
skipping test (make test error report): 3.3.2.3. make test......skipping test on this platform
sleep( ), alarm( ) function and: 6.10. Handling Server Timeout Cases and Working with $SIG{ALRM}
smart-memory page caching: 10.1.1. Calculating Real Memory Usage
socket connections
broken, cleanup code: 6.9.2. The Importance of Cleanup Code
detecting broken
overview: 6.9. Handling the "User Pressed Stop Button" Case
tracing techniques: 6.9.1. Detecting Aborted Connections
Solaris, buffer sizes, changing: 12.7.3. Buffering Feature
source code
Apache, configuration: 3.1. Configuring the Source
mod_perl installation: 24.4.1. Installing from Source
preparing for manual build: 3.4.1. Manually Building a mod_perl-Enabled Apache
two server approach, configuring: 12.3.2. Configuration and Compilation of the Sources
unpacking: 2.2.1. Obtaining and Unpacking the Source Code
Spambot Trap: 5.11.6. Limiting the Request-Rate Speed (Robot Blocking)
speed
packets and: 7.1. Looking at the Big Picture
performance and: 7.1. Looking at the Big Picture
spiders, limiting request-rate speed: 5.11.6. Limiting the Request-Rate Speed (Robot Blocking)
spinning processes, mod_perl mailing list reports: 23.1.2. Spinning Processes
splitlog web site: 12.16. References
spoofing, HTTP_USER_AGENT variable: 1.1.3. Apache CGI Handling with mod_cgi
Spread web site: 5.12. References
SQL, information resources: 23.3.6. DBI and SQL
Squid server
advantages: 12.6.1. Pros and Cons
implementation: 12.6.2. Light Apache, mod_perl, and Squid Setup Implementation Details
information resources: 23.3.7. Squid
overview: 12.6. The Squid Server and mod_perl
two server approach and: 12.6.3. mod_perl and Squid Setup Implementation Details
squid.conf file: 12.6.2. Light Apache, mod_perl, and Squid Setup Implementation Details
SSL, mod-perl server and: 12.14. SSL Functionality and a mod_perl Server
SSL_BASE configuration parameter: 3.1.1. Controlling the Build Process
stability of operating system: 8.1.2. Stability and Robustness
stacked handlers
enabling: 3.1.4. Enabling Extra Features
executing directives: 4.2.7. Stacked Handlers
staging tier (server implementation)
configuration package: 5.9. Three-Tier Server Scheme: Development, Staging, and Production
overview: 5.9. Three-Tier Server Scheme: Development, Staging, and Production
standalone server, advantages/disadvantages: 12.2. Standalone mod_perl-Enabled Apache Server
start_detached_monitor( ): 5.11.4. Tracking and Terminating Hanging Processes
start_monitor( ): 5.11.4. Tracking and Terminating Hanging Processes
StartServers directive: 4.1.7. MinSpareServers, MaxSpareServers, StartServers, MaxClients, and MaxRequestsPerChild
11.3. Setting MinSpareServers, MaxSpareServers, and StartServers
startup file: 4.3. The Startup File
modules, which to add: 4.3.3. What Modules Should Be Added to the Startup File
sample: 4.3.1. A Sample Startup File
syntax validation: 4.3.2. Syntax Validation
use( ) function: 4.3.4. The Confusion with use( ) in the Server Startup File
startup files, mod_perl configuration: 24.5.3. Startup File
startup processing, event tracing: 21.4. Tracing mod_perl-Specific Perl Calls
startup.pl file: 4.1.1. Configuration Files
@INC, modifying: 6.8.1. The @INC Array Under mod_perl
key-value pair processing modules, preloading: 13.2. Apache::args Versus Apache::Request::param Versus CGI::param
modules, which to add: 4.3.3. What Modules Should Be Added to the Startup File
sample: 4.3.1. A Sample Startup File
use( ) function: 4.3.4. The Confusion with use( ) in the Server Startup File
starvation of exclusive locks: 19.2.2. Exclusive Locking Starvation
stat( )
alternatives to repeat calls: 13.7. Using the Perl stat( ) Call's Cached Results
reducing calls to: 11.6. Reducing the Number of stat( ) Calls Made by Apache
stateless protocol: 1.1.1. The HTTP Protocol
static build (Apache server): 3.5.1. The All-in-One Way
static documents: 1.1. A Brief History of CGI
static object request rate, performance considerations: 12.2. Standalone mod_perl-Enabled Apache Server
static objects
non-Apache servers and: 12.4. One Light Non-Apache and One mod_perl-Enabled Apache Server
server performance considerations: 12.3. One Plain and One mod_perl-Enabled Apache Server
status codes (see HTTP, status codes)
status, informatoin gathering modules: 21.9.1. Apache::Status—Embedded Interpreter Status Information
StatusDeparse variable: 21.9.1.2. Extended configuration
StatusDumper variable: 21.9.1.2. Extended configuration
StatusGraphvariable: 21.9.1.2. Extended configuration
StatusLexInfo variable: 21.9.1.2. Extended configuration
StatusOptionsAll variable: 21.9.1.2. Extended configuration
StatusPeek variable: 21.9.1.2. Extended configuration
StatusTerse variable: 21.9.1.2. Extended configuration
StatusTerseSize variable: 21.9.1.2. Extended configuration
StatusTerseSizeMainSummary variable: 21.9.1.2. Extended configuration
STDERR: 6.4.4. STDIN, STDOUT, and STDERR Streams
error messages and: 21.1.2. Curing "Internal Server Error" Problems
freeing parent processes: 10.2.2. Freeing the Parent Process
STDIN: 6.4.4. STDIN, STDOUT, and STDERR Streams
freeing parent process: 10.2.2. Freeing the Parent Process
STDOUT: 6.4.4. STDIN, STDOUT, and STDERR Streams
freeing parent processes: 10.2.2. Freeing the Parent Process
redirecting to scalar variable: 6.4.5. Redirecting STDOUT into a Scalar Variable
step command: 21.5.6. Introduction to the Perl Debugger
stepping into subroutines (debugging): 21.5.6. Introduction to the Perl Debugger
stop_monitor( ): 5.11.4. Tracking and Terminating Hanging Processes
strace utility: 21.3. Tracing System Calls
stream-based HTTP request input filter: 25.3.3.3. Stream-based HTTP request input filter
stream-based HTTP request output filter: 25.3.4.1. Stream-based HTTP request output filter
streaming filter interface, I/O filtering: 25.3.1.1. Two methods for manipulating data
strict pragma, importance of: 6.1.2. The strict Pragma
string access to variables: 10.1.2.2. Numerical versus string access to variables
strings, concatenation, performance and: 13.4. Interpolation, Concatenation, or List
Stronghold, mod+perl installation with: 3.6.4. Installing mod_perl with Stronghold
stylesheets
AxKit and: E.2.2. How it Works?
screen media type and: E.6. Putting Everything Together
XSLT: E.5.1. Anatomy of an XSLT Stylesheet
subroutines: 13.6. Object Methods Calls Versus Function Calls
13.6. Object Methods Calls Versus Function Calls
(see also functions)
breakpoints: 21.5.6. Introduction to the Perl Debugger
callbacks, activating: 3.1.2. Activating Callback Hooks
code profiling: 9.5. Code Profiling Techniques
Devel::DProf: 9.5.1. Profiling with Devel::DProf
Devel::SmallProf: 9.5.2. Profiling with Devel::SmallProf
coding errors and: 6.2.1. The First Mystery: Why Does the Script Go Beyond 5?
debugging, stepping into: 21.5.6. Introduction to the Perl Debugger
exporting, configuration files and: 6.8.2.4.1. Writing configuration files
handler( ): 4.2.5. The handler( ) Subroutine
memory usage, determining: 9.4. Apache::Status and Measuring Code Memory Usage
performance: 13.6.1. The Overhead with Light Subroutines
saving as libraries: 6.2.1. The First Mystery: Why Does the Script Go Beyond 5?
variables, passing to: 14.2.5. Passing Variables
suExec, running mod_perl Apache as: 3.11.2. Can I Run mod_perl-Enabled Apache as suExec?
sv_dump( ): 14.2.6. Memory Leakage
swap files, memory swapping, disadvantages: 5.11.2. Swapping Prevention
swap memory: 5.11.2. Swapping Prevention
swap partition: 5.11.2. Swapping Prevention
swapping (memory pages): 5.11.2. Swapping Prevention
8.2.5. How Much Memory Is Enough?
disadvantages: 5.11.2. Swapping Prevention
effects of: 11.1. Setting the MaxClients Directive
SWIG web site: 13.13. References
switches, command-line, mod_perl configuration: 24.5.4. Perl's Command-Line Switches
symbol table, accessing: 21.8.4. Devel::Symdump and Apache::Symdump
symbolic links
coding considerations: 6.6.2. Symbolic Links
creating: 5.7. Preparing for Machine Reboot
libgdbm errors: 3.1.8.2. Missing or misconfigured libgdbm.so
symbols, imported, memory considerations: 13.5.2. Importing Symbols
SymLinksIfOwnerMatch: 11.7. Symbolic Links Lookup
syntax
errors, debugging: 21.5.1. Locating and Correcting Syntax Errors
functions, documentation: 6.1.1. Accessing Documentation
starting Apache server: 4.1.1. Configuration Files
stopping server: 5.7. Preparing for Machine Reboot
subroutine references: 3.1.2. Activating Callback Hooks
validating
server configuration: 4.5. Validating the Configuration Syntax
startup file: 4.3.2. Syntax Validation
verification, <Perl> sections: 4.4.5. Verifying <Perl> Sections
syntax error at /dev/null line 1, near "line arguments:" message: 22.3.11. syntax error at /dev/null line 1, near "line arguments:"
syslog: 5.11.1.3. Centralized logging
system( )
executing correctly: 10.2.8. Executing system( ) or exec( ) in the Right Way
system( ) function: 6.4.8. Output from System Calls
system calls
sending output to browser: 6.4.8. Output from System Calls
tracing: 21.3. Tracing System Calls
system calls trace, diagnosing hanging processes: 21.7.4.2. Using the system calls trace
system requirements
dumping core files: 21.6.3. Dumping the core File
memory, mod_perl: 1.3. The Development of mod_perl 1.0
mod_perl installation: 2.1. Installing mod_perl 1.0 in Three Steps
SysV
init system, server rebooting and: 5.7. Preparing for Machine Reboot


Symbols & Numbers | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Copyright © 2003 O'Reilly & Associates, Inc. All Rights Reserved.



[an error occurred while processing this directive]