I am trying to install mailman
on my local machine. I am using debian 8. I installed mailman simply using apt-get install mailman
. Then i copied mailman.conf
file to /etc/apache2/sites-available/mailman.conf
.
Now when i am trying to open this link in my browser localhost/mailman/listinfo
then instead of opening the page it is downloading that script which should not be happening.
This is mailman.conf file.
ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
# And the public archives:
Alias /pipermail/ /var/lib/mailman/archives/public/
# Logos:
Alias /images/mailman/ /usr/share/images/mailman/
# Use this if you don't want the "cgi-bin" component in your URL:
# In case you want to access mailman through a shorter URL you should enable
# this:
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
# In this case you need to set the DEFAULT_URL_PATTERN in
# /etc/mailman/mm_cfg.py to http://%s/mailman/ for the cookie
# authentication code to work. Note that you need to change the base
# URL for all the already-created lists as well.
<Directory /usr/lib/cgi-bin/mailman/>
AllowOverride None
Options ExecCGI
AddHandler cgi-script .cgi
# Order allow,deny
# Allow from all
Require all granted
</Directory>
<Directory /var/lib/mailman/archives/public/>
Options FollowSymlinks
AllowOverride None
# Order allow,deny
# Allow from all
Require all granted
</Directory>
<Directory /usr/share/images/mailman/>
AllowOverride None
# Order allow,deny
# Allow from all
Require all granted
</Directory>
This is what i am getting now on doing tail -f *.log
in /var/log/apache2
.
In my browser i put this localhost/cgi-bin/mailman/confirm
::1 - - [01/Jun/2015:14:43:36 +0530] "GET /cgi-bin/mailman/confirm HTTP/1.1" 200 10463 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0"
I am confused as what to do.