サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
perl.apache.org
Curing The "Internal Server Error" You have just installed this new CGI script and when you try it out you see the grey screen of death saying "Internal Server Error"... Or even worse you have a script running on a production server for a long time without problems, when the same grey screen starts to show up occasionally for no apparent reason. How can we find out what the problem is? First probl
Building a Large-Scale E-commerce site with Apache and mod_perl
What are Handlers? Apache distinguishes between numerous phases for which it provides hooks (because the C functions are called ap_hook_<phase_name>) where modules can plug various callbacks to extend and alter the default behavior of the webserver. mod_perl provides a Perl interface for most of the available hooks, so mod_perl modules writers can change the Apache behavior in Perl. These callback
The following diagram depicts the Apache 2.0 server life cycle and highlights which handlers are available to mod_perl 2.0: Apache 2.0 starts by parsing the configuration file. After the configuration file is parsed, the PerlOpenLogsHandler handlers are executed if any. After that it's a turn of PerlPostConfigHandler handlers to be run. When the post_config phase is finished the server immediately
Description On CPAN you will be able to find a number of Perl modules created to run under mod_perl. We will give a presentation of them here and ways to get at these modules. Apache/Perl modules are somewhat different from the many others found on CPAN (http://www.cpan.org/). Most Perl modules are "building blocks"; developers use them to build applications or even more building blocks. It just s
Introducing Filters You certainly already know how filters work, because you encounter filters so often in real life. If you are unfortunate to live in smog-filled cities like Saigon or Bangkok you are probably used to wear a dust filter mask: If you are smoker, chances are that you smoke cigarettes with filters: If you are a coffee gourmand, you have certainly tried a filter coffee: The shower th
Description An in-depth explanation of the mod_perl installation process, from the basic installation (in 10 steps), to a more complex one (with all the possible options you might want to use, including DSO build). It includes troubleshooting tips too. First of all: Apache 2.0 doesn't work with mod_perl 1.0. Apache 1.0 doesn't work with mod_perl 2.0. A Summary of a Basic mod_perl Installation The
Debug notes META: needs more organization (if you grok any of the following, patches are welcome) META: there is a new compile-time option in perl-5.8.8+: -DDEBUG_LEAKING_SCALARS, which prints out the addresses of leaked SVs and new_SV() can be used to discover where those SVs were allocated. (see perlhack.pod for more info) META: httpd has quite a lot of useful debug info: http://httpd.apache.org
Description The title is self-explanatory :) The Apache::Test framework was designed for creating test suites for products running on the Apache httpd webserver (not necessarily mod_perl). Originally designed for the mod_perl Apache module, it was extended to be used for any Apache module. This chapter discusses the Apache-Test framework, and in particular explains how to: run existing tests setup
HTTP Request Handler Skeleton All HTTP Request handlers have the following structure: package MyApache2::MyHandlerName; # load modules that are going to be used use ...; # compile (or import) constants use Apache2::Const -compile => qw(OK); sub handler { my $r = shift; # handler code comes here return Apache2::Const::OK; # or another status constant } 1; First, the package is declared. Next, the m
Server Configuration The next step after building and installing your new mod_perl enabled Apache server is to configure the server. There are two separate parts to configure: Apache and mod_perl. Each has its own set of directives. To configure your mod_perl enabled Apache server, the only file that you should need to edit is httpd.conf. By default, httpd.conf is put into the conf directory under
The mod_perl Developer's Cookbook By Geoffrey Young, Paul Lindner, Randy Kobes Part I: Apache2:: Core API Apache2::Access - A Perl API for Apache request object: Access, Authentication and Authorization. The API provided by this module deals with access, authentication and authorization phases. Apache2::CmdParms - Perl API for Apache command parameters object Apache2::CmdParms provides the Perl AP
Writing Apache Modules with Perl and C By Lincoln Stein, Doug MacEachern
Prerequisites Before building mod_perl 2.0 you need to have its prerequisites installed. If you don't have them, download and install them first, using the information in the following sections. Otherwise proceed directly to the mod_perl building instructions. The mod_perl 2.0 prerequisites are: Apache Apache 2.0 is required. mod_perl 2.0 does not work with Apache 1.3. Dynamic (DSO) mod_perl build
Part I: Introduction Getting Your Feet Wet with mod_perl This chapter gives you the bare minimum information to get you started with mod_perl 2.0. For most people it's sufficient to get going. Overview of mod_perl 2.0 This chapter should give you a general idea about what mod_perl 2.0 is and how it differs from mod_perl 1.0. This chapter presents the new features of Apache 2.0, Perl 5.6.0 -- 5.8.0
Configuration Add this line to C:/Apache2/conf/httpd.conf: LoadModule perl_module modules/mod_perl.so Be sure that the path to your Perl binary (eg, C:/Perl/bin) is in your PATH environment variable. This can be done either by editing C:\AutoExec.bat, if present, or through the Environment Variables option of the Advanced tab of the System area of the Control Panel. Especially when running Apache
Description This document was born because some users are reluctant to learn Perl, prior to jumping into mod_perl. I will try to cover some of the most frequent pure Perl questions being asked at the list. Before you decide to skip this chapter make sure you know all the information provided here. The rest of the Guide assumes that you have read this chapter and understood it. perldoc's Rarely Kno
Conventions used in the mod_perl Documentation We use a number of conventions in this documentation, that are mostly easy to understand; if you're in doubt, look here for the explanation. mod_perl 1.0 Documentation A collection of the documents specific to the mod_perl 1.0 generation. mod_perl 2.0 Documentation A collection of the documents specific to the mod_perl 2.0 generation. General Document
Synopsis As described in the discussion of issues in multithreaded win32, a mod_perl 1.0 enabled server based on Apache 1.3 on Win32 is limited to a single thread serving a request at a time. This effectively prevents concurrent processing, which can have serious implications for busy sites. This problem is addressed in the multi-thread/multi-process approach of mod_perl 2.0/Apache 2.x, which cons
The Big Picture To make the user's Web browsing experience as painless as possible, every effort must be made to wring the last drop of performance from the server. There are many factors which affect Web site usability, but speed is one of the most important. This applies to any webserver, not just Apache, so it is very important that you understand it. How do we measure the speed of a server? Si
Installation If you are a Win32 user, please refer to the Win32 installation document. First, download the mod_perl 2.0 source. Before installing mod_perl, you need to check that you have the mod_perl 2.0 prerequisites installed. Apache and the right Perl version have to be built and installed before you can proceed with building mod_perl. In this chapter we assume that httpd and all helper files
mod_perl is more than CGI scripting on steroids. It is a whole new way to create dynamic content by utilizing the full power of the Apache web server to create stateful sessions, customized user authentication systems, smart proxies and much more. Yet, magically, your old CGI scripts will continue to work and work very fast indeed. With mod_perl you give up nothing and gain so much! mod_perl give
Description This chapter is relevant both to writing a new CGI script or perl handler from scratch and to migrating an application from plain CGI to mod_perl. It also addresses the situation where the CGI script being ported does the job, but is too dirty to be altered easily to run as a mod_perl program. (Apache::PerlRun mode) If you are at the porting stage, you can use this chapter as a referen
このページを最初にブックマークしてみませんか?
『mod_perl: Welcome to the mod_perl world』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く