Difference between revisions of "Server Setup"

From mn/geo/geoit
Jump to: navigation, search
(Mercurial)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<rst>
+
===Notes for software installations===
=================================
 
Notes for software installations
 
=================================
 
  
Apache2 Info
+
----
===============
+
==Apache2 Info==
  
 
key directories::
 
key directories::
Line 21: Line 18:
 
     a2dismod modname
 
     a2dismod modname
  
.. note:: added mod_wsgi (sudo apt-get install libapache2-mod-wsgi) this is the module that loads python files now.
+
.. note:: Added mod_wsgi (sudo apt-get install libapache2-mod-wsgi) this is the module that loads python files now.
 
 
  
Upgrading to Plone 4
+
Created a site called <code>ee</code> 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::
 
all files installed to::
  
Line 43: Line 43:
 
.. warning:: changes to site_properties
 
.. warning:: changes to site_properties
  
MediaWiki
+
----
==============
+
==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
 
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
  
Postgresql
+
#download source distribution to /opt
==============
+
#extracted into /opt, linked /etc/mediawiki to source folder
 +
#intalled postresql with apt
 +
#used postgresql for mediawiki
 +
#Created /etc/apache2/conf.d/mediawiki.conf file 
 +
 
 +
===PostGres===
 +
Enabled the phpgadmin module:
 +
<pre>
 +
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/.
 +
</pre>
 +
 
 +
===Extensions===
 +
Added several extensions, see LocalSettings and extensions directory
 +
<pre>
 +
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/
 +
</pre>
 +
 
 +
See the /opt/mediawiki-1.17.0/LocalSettings.php file for details on enabling the extensions
 +
 
 +
==Postgresql==
 
No major changes, simply used::
 
No major changes, simply used::
  
apt-get install postgresql
+
    apt-get install postgresql
 +
 
 +
Also for Apache:
 +
<pre>
 +
ln -f /etc/phppgadmin/apache.conf .
 +
ln -f /etc/phppgadmin/apache.conf phppgadmin.conf
 +
a2enmod phppgadmin
 +
ln -s ../mods-available/phppgadmin.conf
 +
 
 +
</pre>
 +
 
 +
----
 +
 
 +
==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 <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:
 +
#requires mod_wsgi (done already for plone, etc)
 +
#added information to /etc/apache2/sites-enabled/ee:
 +
<pre>
  
postfix & dovecot
+
followed instructions: http://mercurial.selenic.com/wiki/modwsgi
=====================
+
ee right now is a 'dev' site, so I'm adding 'test' things here.
Postfix and Dovecot were installed via the instructions from the `ubuntu postfix reference <https://help.ubuntu.com/8.04/serverguide/C/postfix.html>`_
 
  
</rst>
+
See also:
 +
http://mercurial.selenic.com/wiki/HgWebDirStepByStep?highlight=%28%5CbCategoryWeb%5Cb%29
 +
</pre>
 +
#created [[/var/www/hg]] directory
 +
#added repo
 +
#changed user www-data
 +
#see /var/www/hg/hgweb.config file

Latest revision as of 13:05, 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
  1. created /var/www/hg directory
  2. added repo
  3. changed user www-data
  4. see /var/www/hg/hgweb.config file