Difference between revisions of "Server Setup"

From mn/geo/geoit
Jump to: navigation, search
(MediaWiki)
(Postfix)
Line 99: Line 99:
 
Postfix was installed via the instructions from the `ubuntu postfix reference <https://help.ubuntu.com/8.04/serverguide/C/postfix.html>`_
 
Postfix was installed via the instructions from the `ubuntu postfix reference <https://help.ubuntu.com/8.04/serverguide/C/postfix.html>`_
 
Roy modified the main.cf settings
 
Roy modified the main.cf settings
 +
 +
 +
==Mercurial==
 +
Mercurial was installed with <code>apt</code> then in order to get a server running:
 +
 +
see [[/var/www/cgi-bin/hgweb.wsgi]] and [[/var/www/hg/hgweb.config]]
 +
 +
Apache2 config:
 +
1) requires mod_wsgi (done already for plone, etc)
 +
2) added information to [[/etc/apache2/sites-enabled/ee]]
 +
 +
followed instructions: http://mercurial.selenic.com/wiki/modwsgi
 +
ee right now is a 'dev' site, so I'm adding 'test' things here.
 +
 +
See also:
 +
http://mercurial.selenic.com/wiki/HgWebDirStepByStep?highlight=%28%5CbCategoryWeb%5Cb%29
 +
 +
3) created [[/var/www/hg]] directory
 +
4) added repo
 +
5) changed user www-data
 +
6) see [[/var/www/hg/hgweb.config]] file

Revision as of 13:04, 5 October 2011

Notes for software installations


Apache2 Info

key directories::

   /etc/apache2 [sites-available]

Note that for mods and sites, use::

   a2ensite sitename (to enable)
   a2dissite sitename (to disable)

OR::

   a2enmod modname
   a2dismod modname

.. note:: Added mod_wsgi (sudo apt-get install libapache2-mod-wsgi) this is the module that loads python files now.


Created a site called ee that is being used in general for 'dev' right now. Once things work there, will move to proper site.


Upgrading to Plone 4

all files installed to::

   /usr/local/Plone


Some points...

  • inside zinstance there is a mercurial repo (hg log -r : )
  • see in particular the buildout.cfg files

packages that have been added so far:

  • raptus.article.default (no success so far!)
  • collective.quickupload

`collective.uploadify <http://pypi.python.org/pypi/collective.uploadify/1.0>`_

.. warning:: changes to site_properties


MediaWiki

MediaWiki was installed from a download of version 1.17. It is installed into the /opt directory. A postgresql database was set up. apt was *not* used, as it wanted to install MySQL

  1. download source distribution to /opt
  2. extracted into /opt, linked /etc/mediawiki to source folder
  3. intalled postresql with apt
  4. used postgresql for mediawiki
  5. Created /etc/apache2/conf.d/mediawiki.conf file

PostGres

Enabled the phpgadmin module:

createuser -S -D -R -P -E mediawiki
ln -f /etc/phppgadmin/apache.conf /etc/apache2/mods-available/phppgadmin.conf
a2enmod phppgadmin
ln -s /etc/apache2/mods-available/phppgadmin.conf /etc/apache2/mods-enabled/. 

Extensions

Added several extensions, see LocalSettings and extensions directory

cd extensions/
scp -r burkhart@niflheim.nilu.no:/var/www/html/mediawiki/extensions/* .
easy_install docutils
wget http://upload.wikimedia.org/ext-dist/ConfirmAccount-MW1.17-r90727.tar.gz
tar -xvf ConfirmAccount-MW1.17-r90727.tar.gz 
wget http://upload.wikimedia.org/ext-dist/SubPageList3-MW1.17-r75030.tar.gz
tar -xvf SubPageList3-MW1.17-r75030.tar.gz 
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SubPageList/
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Validator Validator
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ReplaceText/

See the /opt/mediawiki-1.17.0/LocalSettings.php file for details on enabling the extensions

Postgresql

No major changes, simply used::

   apt-get install postgresql

Also for Apache:

ln -f /etc/phppgadmin/apache.conf .
ln -f /etc/phppgadmin/apache.conf phppgadmin.conf
a2enmod phppgadmin
ln -s ../mods-available/phppgadmin.conf


Postfix

Postfix was installed via the instructions from the `ubuntu postfix reference <https://help.ubuntu.com/8.04/serverguide/C/postfix.html>`_ Roy modified the main.cf settings


Mercurial

Mercurial was installed with apt then in order to get a server running:

see /var/www/cgi-bin/hgweb.wsgi and /var/www/hg/hgweb.config

Apache2 config: 1) requires mod_wsgi (done already for plone, etc) 2) added information to /etc/apache2/sites-enabled/ee

followed instructions: http://mercurial.selenic.com/wiki/modwsgi ee right now is a 'dev' site, so I'm adding 'test' things here.

See also: http://mercurial.selenic.com/wiki/HgWebDirStepByStep?highlight=%28%5CbCategoryWeb%5Cb%29

3) created /var/www/hg directory 4) added repo 5) changed user www-data 6) see /var/www/hg/hgweb.config file