1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>2.3.2 Configuring Apache</title>
<META NAME="description" CONTENT="2.3.2 Configuring Apache">
<META NAME="keywords" CONTENT="modpython">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="modpython.css">
<LINK REL="previous" href="inst-makeinstall.html">
<LINK REL="up" href="inst-installing.html">
<LINK REL="next" href="inst-testing.html">
</head>
<body>
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="inst-makeinstall.html"><img src="icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A href="inst-installing.html"><img src="icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="inst-testing.html"><img src="icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
border="0" height="32"
alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="inst-makeinstall.html">2.3.1 Running make install</A>
<b class="navlabel">Up:</b> <a class="sectref" href="inst-installing.html">2.3 Installing</A>
<b class="navlabel">Next:</b> <a class="sectref" href="inst-testing.html">2.4 Testing</A>
<br><hr>
</DIV>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION004320000000000000000"> </A>
<BR>
2.3.2 Configuring Apache
</H2>
<P>
<UL>
<LI>If you compiled mod_python as a DSO, you will need to tell Apache to
load the module by adding the following line in the Apache
configuration file, usually called <span class="file">httpd.conf</span> or
<span class="file">apache.conf</span>:
<P>
<dl><dd><pre class="verbatim">
LoadModule python_module libexec/mod_python.so
</pre></dl>
<P>
<a name='l2h-12'> </a>The actual path to <b class="program">mod_python.so</b> may vary, but make install
should report at the very end exactly where <b class="program">mod_python.so</b>
was placed and how the <code>LoadModule</code> directive should appear.
<P>
If your Apache configuration uses <code>ClearModuleList</code> directive,
you will need to add mod_python to the module list in the Apache
configuration file:
<P>
<dl><dd><pre class="verbatim">
AddModule mod_python.c
</pre></dl>
<P>
<b>NB:</b>
Some (not all) RedHat Linux users reported that mod_python needs to be
first in the module list, or Apache will crash.
<P>
</LI>
<LI>If you used the static installation, you now need to recompile Apache:
<P>
<dl><dd><pre class="verbatim">
$ cd ../src/apache_1.3.12
$ ./configure --activate-module=src/modules/python/libpython.a
$ make
</pre></dl>
<P>
Or, if you prefer the old "Configure" style, edit
<span class="file">src/Configuration</span> to have
<P>
<dl><dd><pre class="verbatim">
AddModule modules/python/libpython.a
</pre></dl>
then run
<dl><dd><pre class="verbatim">
$ cd src
$ ./Configure
$ Make
</pre></dl>
<P>
</LI>
</UL>
<P>
<DIV CLASS="navigation">
<p><hr>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="inst-makeinstall.html"><img src="icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A href="inst-installing.html"><img src="icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="inst-testing.html"><img src="icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
border="0" height="32"
alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="inst-makeinstall.html">2.3.1 Running make install</A>
<b class="navlabel">Up:</b> <a class="sectref" href="inst-installing.html">2.3 Installing</A>
<b class="navlabel">Next:</b> <a class="sectref" href="inst-testing.html">2.4 Testing</A>
<hr>
<span class="release-info">Release 2.7.8, documentation updated on April 19, 2002.</span>
</DIV>
<!--End of Navigation Panel-->
</BODY>
</HTML>
|