<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="mailman-install.css" type='text/css' />
<link rel="first" href="mailman-install.html" title='GNU Mailman - Installation Manual' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="node8.html" />
<link rel="prev" href="node6.html" />
<link rel="parent" href="node6.html" />
<link rel="next" href="node8.html" />
<meta name='aesop' content='information' />
<title>3.1 Run configure</title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="3 Build and install"
href="node6.html"><img src='previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="3 Build and install"
href="node6.html"><img src='up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="3.2 Make and install"
href="node8.html"><img src='next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">GNU Mailman - Installation Manual</td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node6.html">3 Build and install</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="node6.html">3 Build and install</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node8.html">3.2 Make and install</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION001310000000000000000">
3.1 Run <b class="program">configure</b></A>
</H2>
<P>
Before you can install Mailman, you must run <b class="program">configure</b> to set
various installation options your system might need.
<P>
<div class="note"><b class="label">Note:</b>
Take special note of the <b class="programopt">--with-mail-gid</b> and
<b class="programopt">--with-cgi-gid</b> options below. You will probably need to use
these.
</div>
<P>
You should <strong>not</strong> be root while performing the steps in this section.
Do them under your own login, or whatever account you typically use to install
software. You do not need to do these steps as user <code>mailman</code>, but you
could. However, make sure that the login used is a member of the
<code>mailman</code> group as that that group has write permissions to the
<var>$prefix</var> directory made in the previous step. You must also have
permission to create a setgid file in the file system where it resides (NFS
and other mounts can be configured to inhibit setgid settings).
<P>
If you've installed other GNU software, you should be familiar with the
<b class="program">configure</b> script. Usually you can just <b class="program">cd</b> to the
directory you unpacked the Mailman source tarball into, and run
<b class="program">configure</b> with no arguments:
<P>
<div class="verbatim"><pre>
% cd mailman-<version>
% ./configure
% make install
</pre></div>
<P>
The following options allow you to customize your Mailman
installation.
<P>
<DL>
<DT><STRONG><b class="programopt">--prefix</b>=<var>dir</var></STRONG></DT>
<DD>Standard GNU configure option which changes the base directory that
Mailman is installed into. By default <var>$prefix</var> is
<span class="file">/usr/local/mailman</span>. This directory must already exist, and be set
up as described in <A href="create-install-dir.html#create-install-dir">2.2</A>.
<P>
</DD>
<DT><STRONG><b class="programopt">--exec-prefix</b>=<var>dir</var></STRONG></DT>
<DD>Standard GNU configure option which lets you specify a different
installation directory for architecture dependent binaries.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-var-prefix</b>=<var>dir</var></STRONG></DT>
<DD>Store mutable data under <var>dir</var> instead of under the <var>$prefix</var> or
<var>$exec_prefix</var>. Examples of such data include the list archives and
list settings database.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-python</b>=<span class="file">/path/to/python</span></STRONG></DT>
<DD>Specify an alternative Python interpreter to use for the wrapper programs.
The default is to use the interpreter found first on your shell's
<var>$PATH</var>.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-username</b>=<var>username-or-uid</var></STRONG></DT>
<DD>Specify a different username than <code>mailman</code>. The value of this
option can be an integer user id or a user name. Be sure your
<var>$prefix</var> directory is owned by this user.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-groupname</b>=<var>groupname-or-gid</var></STRONG></DT>
<DD>Specify a different groupname than <code>mailman</code>. The value of this
option can be an integer group id or a group name. Be sure your
<var>$prefix</var> directory is group-owned by this group.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-mail-gid</b>=<var>group-or-groups</var></STRONG></DT>
<DD>Specify an alternative group for running scripts via the mail wrapper.
<var>group-or-groups</var> can be a list of one or more integer group ids or
symbolic group names. The first value in the list that resolves to an
existing group is used. By default, the value is the list <code>mailman</code>,
<code>other</code>, <code>mail</code>, and <code>daemon</code>.
<P>
<div class="note"><b class="label">Note:</b>
This is highly system dependent and you must get this right, because the
group id is compiled into the mail wrapper program for added security. On
systems using <b class="program">sendmail</b>, the <span class="file">sendmail.cf</span> configuration
file designates the group id of <b class="program">sendmail</b> processes using the
<var>DefaultUser</var> option. (If commented out, it still may be indicating
the default...)
</div>
<P>
Check your mail server's documentation and configuration files to find the
right value for this switch.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-cgi-gid</b>=<var>group-or-groups</var></STRONG></DT>
<DD>Specify an alternative group for running scripts via the CGI wrapper.
<var>group-or-groups</var> can be a list of one or more integer group ids or
symbolic group names. The first value in the list that resolves to an
existing group is used. By default, the value is the the list
<code>www</code>, <code>www-data</code>, and <code>nobody</code>.
<P>
<div class="note"><b class="label">Note:</b>
The proper value for this is dependent on your web server configuration.
You must get this right, because the group id is compiled into the CGI
wrapper program for added security, and no Mailman CGI scripts will run if
this is incorrect.
</div>
<P>
If you're using Apache, check the values for the <var>Group</var> option in
your <span class="file">httpd.conf</span> file.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-cgi-ext</b>=<var>extension</var></STRONG></DT>
<DD>Specify an extension for cgi-bin programs. The CGI wrappers placed in
<span class="file"><var>$prefix</var>/cgi-bin</span> will have this extension (some web servers
require an extension). <var>extension</var> must include the leading dot.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-mailhost</b>=<var>hostname</var></STRONG></DT>
<DD>Specify the fully qualified host name part for outgoing email. After the
installation is complete, this value can be overriden in
<span class="file"><var>$prefix</var>/Mailman/mm_cfg.py</span>.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-urlhost</b>=<var>hostname</var></STRONG></DT>
<DD>Specify the fully qualified host name part of urls. After the
installation is complete, this value can be overriden in
<span class="file"><var>$prefix</var>/Mailman/mm_cfg.py</span>.
<P>
</DD>
<DT><STRONG><b class="programopt">--with-gcc</b>=no</STRONG></DT>
<DD>Don't use gcc, even if it is found. In this case, <b class="program">cc</b> must be
found on your <var>$PATH</var>.
<P>
</DD>
</DL>
<P>
<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="3 Build and install"
href="node6.html"><img src='previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="3 Build and install"
href="node6.html"><img src='up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="3.2 Make and install"
href="node8.html"><img src='next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">GNU Mailman - Installation Manual</td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
<td class='online-navigation'><img src='blank.png'
border='0' height='32' alt='' width='32' /></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node6.html">3 Build and install</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="node6.html">3 Build and install</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node8.html">3.2 Make and install</A>
</div>
</div>
<hr />
<span class="release-info">Release 2.1, documentation updated on May 30, 2005.</span>
</DIV>
<!--End of Navigation Panel-->
</BODY>
</HTML>