Service/mirrors: Difference between revisions
wikify initial install notes |
m fix command |
||
| Line 27: | Line 27: | ||
</code> | </code> | ||
====Install python | ====Install python dependencies==== | ||
<code> | <code> | ||
sudo apt-get install python-sqlobject python-psycopg2 | sudo apt-get install python-sqlobject python-psycopg2 | ||
</code> | </code> | ||
The python | The python cmdln module is not prepackaged for Ubutnu so it must be installed manually. | ||
<code> | <code> | ||
| Line 61: | Line 61: | ||
sudo apt-get install libapache2-mod-geoip | sudo apt-get install libapache2-mod-geoip | ||
</code> | </code> | ||
Mod_geoip must be configured to find the the GeoIP data set. | Mod_geoip must be configured to find the the GeoIP data set. | ||
<code> | <code> | ||
sudo cat > /etc/apache2/mods-available/geoip.conf << EOF | sudo sh -c "cat > /etc/apache2/mods-available/geoip.conf << EOF | ||
<IfModule mod_geoip.c> | <IfModule mod_geoip.c> | ||
GeoIPEnable On | GeoIPEnable On | ||
| Line 73: | Line 71: | ||
GeoIPDBFile /var/lib/GeoIP/GeoIP.dat MMapCache | GeoIPDBFile /var/lib/GeoIP/GeoIP.dat MMapCache | ||
</IfModule> | </IfModule> | ||
EOF | EOF | ||
" | |||
</code> | </code> | ||