~ubuntu-branches/ubuntu/hardy/libapache2-mod-python/hardy

« back to all changes in this revision

Viewing changes to Doc/modpython2.tex

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski, Piotr Ozarowski
  • Date: 2006-10-12 17:14:47 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061012171447-ji7e0w38nl37kknp
Tags: 3.2.10-2
[ Piotr Ozarowski ]
* Dependencies updated:
  + replaced apache2-common with apache2.2-common (closes: #391790)
  + bumped apache2-threaded-dev version (see above),
  + bumped python-central version (dh_python removed from debian/rules),
  + bumped debhelper version (see above),
  + added po-debconf to Build-Depends (lintian error).
* Removed deprecated dh_installmanpages from debian/rules
  (there are no manpages to install).
* Updated Dutch debconf translation from Vincent Zweije. (closes: #388834)
* Updated Czech debconf translation from Miroslav Kure. (closes: #384752)
* Updated Japanese debconf translation from Hideki Yamane. (closes: #391811)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
\item
17
17
  Python 2.2.1 or later. Earlier versions of Python will not work.
18
18
\item
19
 
  Apache 2.0.40 or later (For Apache 1.3.x, use mod_python version 2.7.x).
 
19
  Apache 2.0.47 or later (For Apache 1.3.x, use mod_python version 2.7.x).
20
20
\end{itemize}
21
21
 
22
22
In order to compile mod_python you will need to have the include files
101
101
  %$ keep emacs happy
102
102
 
103
103
\item
 
104
  \index{./configure!\longprogramopt{with-mutex-dir}}
 
105
  %\indexii{./configure}{\longprogramopt{with-mutex-dir}}
 
106
  Sets the directory for the apache mutex locks. The default is
 
107
  \filenq{/tmp}. The directory must exist and be writable by the
 
108
  owner of the apache process.
 
109
 
 
110
  Use \longprogramopt{with-mutex-dir} option, e.g:
 
111
 
 
112
  \begin{verbatim}
 
113
    $ ./configure --with-mutex-dir=/var/run/mod_python
 
114
  \end{verbatim}                      
 
115
 
 
116
  The mutex directory can also be specified in using a 
 
117
  \citetitle[dir-other-po.html]{PythonOption} directive. 
 
118
  See \citetitle[inst-apacheconfig.html]{Configuring Apache}.
 
119
 
 
120
  \emph{Back ported from version 3.3.0}
 
121
 
 
122
\item
104
123
  \index{./configure!\longprogramopt{with-max-locks}}
105
 
  %\indexii{./configure}{\longprogramopt{with-max-locks}}
106
124
  Sets the maximum number of locks reserved by mod_python.
107
125
 
108
126
  The mutexes used for locking are a limited resource on some
115
133
    $ ./configure --with-max-locks=32
116
134
  \end{verbatim}                      
117
135
 
 
136
  The number of locks can also be specified in using a 
 
137
  \citetitle[dir-other-po.html]{PythonOption} directive. 
 
138
  See \citetitle[inst-apacheconfig.html]{Configuring Apache}.
 
139
 
118
140
  New in version 3.2.0
119
141
 
120
142
\item
224
246
 
225
247
\subsection{Configuring Apache\label{inst-apacheconfig}}
226
248
 
227
 
\begin{itemize}
228
 
 
229
 
\item
 
249
\begin{description}
 
250
 
 
251
\item \strong{LoadModule} \indexii{LoadModule}{apache configuration}
 
252
 
230
253
  If you compiled mod_python as a DSO, you will need to tell Apache to
231
254
  load the module by adding the following line in the Apache
232
255
  configuration file, usually called \filenq{httpd.conf} or
241
264
  should report at the very end exactly where \program{mod_python.so}
242
265
  was placed and how the \code{LoadModule} directive should appear.
243
266
 
244
 
\end{itemize}
 
267
\item \strong{Mutex Directory} \indexii{mutex directory}{apache configuration}
 
268
 
 
269
  The default directory for mutex lock files is \filenq{/tmp}. The
 
270
  default value can be be specified at compile time using
 
271
  \citetitle[inst-configure.html]{./configure ----with-mutex-dir}.
 
272
 
 
273
  Alternatively this value can be overriden at apache startup using 
 
274
  a \citetitle[dir-other-po.html]{PythonOption}.
 
275
 
 
276
  \begin{verbatim}
 
277
    PythonOption mod_python.mutex_directory "/tmp"
 
278
  \end{verbatim}
 
279
 
 
280
  This may only be used in the server configuration context.
 
281
  It will be ignored if used in a directory, virtual host,
 
282
  htaccess or location context. The most logical place for this 
 
283
  directive in your apache configuration file is immediately
 
284
  following the \strong{LoadModule} directive.
 
285
 
 
286
 \emph{Back ported from version 3.3.0}
 
287
 
 
288
\item \strong{Mutex Locks} \indexii{apache configuration}{mutex locks}
 
289
  
 
290
  Mutexes are used in mod_python for session locking. The default
 
291
  value is 8.
 
292
 
 
293
  On some systems the locking mechanism chosen uses valuable
 
294
  system resources. Notably on RH 8 sysv ipc is used, which 
 
295
  by default provides only 128 semaphores system-wide.
 
296
  On many other systems flock is used which may result in a relatively
 
297
  large number of open files.
 
298
 
 
299
  The optimal number of necessary locks is not clear. 
 
300
  Increasing the maximum number of locks may increase performance
 
301
  when using session locking.  A reasonable number for 
 
302
  higher performance might be 32.
 
303
 
 
304
  The maximum number of locks can be specified at compile time
 
305
  using \citetitle[inst-configure.html]{./configure ----with-max-locks}.
 
306
 
 
307
  Alternatively this value can be overriden at apache startup using 
 
308
  a \citetitle[dir-other-po.html]{PythonOption}.
 
309
 
 
310
  \begin{verbatim}
 
311
    PythonOption mod_python.mutex_locks 8 
 
312
  \end{verbatim}
 
313
 
 
314
  This may only be used in the server configuration context.
 
315
  It will be ignored if used in a directory, virtual host,
 
316
  htaccess or location context. The most logical place for this 
 
317
  directive in your apache configuration file is immediately
 
318
  following the \strong{LoadModule} directive.
 
319
 
 
320
  \emph{Back ported from version 3.3.0}
 
321
 
 
322
\end{description}
245
323
 
246
324
\section{Testing\label{inst-testing}}
247
325