mailman web UI on localhost with apache2
Posted
by
Thufir
on Server Fault
See other posts from Server Fault
or by Thufir
Published on 2012-08-27T20:23:41Z
Indexed on
2012/08/27
21:41 UTC
Read the original article
Hit count: 625
I'm interested only in running mailman on localhost and would like access to the web interface, but am getting 404:
root@dur:~#
root@dur:~# ln -s /etc/mailman/apache.conf /etc/apache2/sites-enabled/mailman -v
`/etc/apache2/sites-enabled/mailman' -> `/etc/mailman/apache.conf'
root@dur:~#
root@dur:~# service apache2 restart
* Restarting web server apache2 ... waiting . [ OK ]
root@dur:~#
root@dur:~# curl http://localhost/mailman/admin/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /mailman/admin/ was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 80</address>
</body></html>
root@dur:~#
root@dur:~# tail /var/log/apache2/error.log
[Mon Aug 27 13:08:02 2012] [error] [client 127.0.0.1] File does not exist: /var/www/mailman
[Mon Aug 27 13:10:16 2012] [error] [client 127.0.0.1] File does not exist: /var/www/mailman
[Mon Aug 27 13:29:27 2012] [notice] caught SIGTERM, shutting down
[Mon Aug 27 13:29:27 2012] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
[Mon Aug 27 13:29:27 2012] [error] python_init: Python executable found '/usr/bin/python'.
[Mon Aug 27 13:29:27 2012] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Mon Aug 27 13:29:27 2012] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Mon Aug 27 13:29:27 2012] [notice] mod_python: using mutex_directory /tmp
[Mon Aug 27 13:29:28 2012] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 mod_ruby/1.2.6 Ruby/1.8.7(2011-06-30) configured -- resuming normal operations
[Mon Aug 27 13:29:58 2012] [error] [client 127.0.0.1] File does not exist: /var/www/mailman
root@dur:~#
Although I did have to tinker a bit with mailmain to get that recognized.
While I don't need to setup web access using MM list passwords, I would like to setup web admin to add/remove mailing lists.
How do I configure apache or mailman so that I can navigate to http://localhost/mailman/admin/
?
As per installing mailman, I setup aliases as so:
root@dur:~#
root@dur:~# cat /etc/aliases
usenet: root
## mailman mailing list
mailman: "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
root@dur:~#
Perhaps these can be used somehow?
© Server Fault or respective owner