ENCORE server administration

ENCORE Server Administration

How to add a user to Subversion

Subversion is configured to use Apache2.

cd /etc/apache2
htpasswd2 -m dav_svn.passwd username

You will be prompted for a password. You can confirm that the svn user has been created by looking in the file /etc/apache2/dav_svn.passwd

How to add a user account

The easiest way to create a Linux user account is:

  1. Log in to the ENCORE server via ssh. For example:
    ssh root@www.encorewiki.org
  2. Add the user account:
    adduser <new_username>
  3. The adduser utility will prompt you for the new user's password, etc.

In order to access Subversion repositories, the user should also belong to an appropriate dev group. For ENCORE development, the group is encore-dev. For SAIL, it's sail-dev.

You can add an existing account to the encore-dev group like this:

usermod -G encore-dev <username>

Be careful though, as the -G switch will override any existing non-primary groups for the user. For a newly-created user this isn't an issue, but for existing users that might already belong to additional groups, be sure to include existing groups along with the new group (comma separated). For example:

usermod -G admin,encore-dev,sail-dev matt

How to reboot the Tomcat server

  1. You'll need an SSH client. PuTTY is a good (free) one for windows: http://www.chiark.greenend.org.uk/~sgtatham/putty/
  2. Log in to the ENCORE server via ssh as root:
    ssh root@www.encorewiki.org
  3. Type the following command in the console:
    /etc/init.d/tomcat5 restart

You should see something like tha following:

Stopping Tomcat 5 servlet engine: .............................. tomcat5.
Starting Tomcat 5 servlet engine using Java from /usr/lib/j2sdk1.5-sun: tomcat5.

Give it a few minutes, and you should be able to access http://www.encorewiki.org again.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.