Service/mirrors: Difference between revisions

Dfarning (talk | contribs)
wikify initial install notes
Dfarning (talk | contribs)
m fix command
Line 27: Line 27:
</code>
</code>


====Install python dependancies====
====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 cmdin module is not prepackaged for Ubutnu so it must be installed manually.
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>
??? not sure if it is necessary to install '''geoip-bin'''


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>