<% ns_puts [nsv_get mkm_includes mkm_oldContentHeader_inc] %> Next Previous Contents

6. Configuring OpenACS itself

6.1 What is where (OpenACS directories and what is inside each of them)

6.2 Configuring OpenACS

6.3 Configuring Permissions [1]

You need to protect the proper administration directories of the ACS. You decide the policy. Here are the directories to consider protecting:

6.4 Adding Yourself as a User and Making Yourself a Sysadmin [1]

The ArsDigita Community System will define two users: system and anonymous. It will also define a user group of system administrators.

After starting AOLserver, you'll want to:

Now you're bootstrapped!

6.5 CAVEAT for those that want encrypted passwords in the DB

If you want to save encrypted passwords in the database, you'll have to do some things manually to get ACS working because the default users "system" and "anonymous" come with plain text passwords.

This is what you need to do:

  1. create a login for you (as described above). Your password will be saved encrypted in the database. Go into psql and do a "select user_id,first_names,password from users;" to see all the users in your database.
  2. Next, change the system user password for the password of the user you just created. Let's say the encrypted password for your user was something like "0xabcdef" (or whatever), then do a "update users set password='0xabcdef' where user_id=1;"
  3. Now go back to your browser, and logout as your user (from http://yourservername.com/pvt/home.tcl), login as system with the same password you used for your user, add your user to the administration group as described above, and then change the system and anonymous passwords (from http://yoursername.com/admin/users).

6.6 Closing Down Access [1]

The ACS ships with a user named "anonymous" (email "anonymous") to serve as a content owner. If you're operating a restricted-access site, make sure to change the anonymous user's password (the default is "changeme").

6.7 Making sure that it works (and stays working)

Run the acceptance tests in http://photo.net/doc/acceptance-test.html.

Note: The first part of the above page is aimed at the original version of ACS for Oracle. You can replace that first part by going to psql (PostgreSQL interactive SQL tool) and doing some tests:

$ su - youraolserveruser

$ psql yourdb

yourdb# \d

yourdb# select * from users;

The first psql command is going to list all your tables (under PG 6.5) or all your relationships (under PG 7) and the second will show all the records in the users table.

The other sections of the acceptance-test can be used either under the Oracle or the PostgreSQL versions of the ACS.

6.8 Ensure that your service automatically starts on boot (or any other time the service dies).

This section was taken from The Hitchhiker's Guide to the ACS, written by the ArsDigita folks.

This step should be completed as root. This can break every service on your machine, so proceed with caution.

$ su - ; Enter root password.

# cp /tmp/restart-aolserver.txt

/usr/local/bin/restart-aolserver

# chown root.web /usr/local/bin/restart-aolserver

# chmod 4750 /usr/local/bin/restart-aolserver

# ln -s /usr/bin/perl /usr/local/bin/perl

# su - nsadmin

$ killall -9 nsd

nsd: no process killed

$ /home/aolserver/bin/nsd -u nsadmin -g web -t /home/aolserver/service_name.tcl

$ restart-aolserver service_name

Killing 23727 23728 23729 23730

$ killall -9 nsd nsd: no process killed

The numbers indicate the process ids (PIDs) of the processes being killed. It is important that no processes are killed by the second call to killall. If there are processes being killed, it means that the script is not working.

$ su - ; Enter root password

# emacs -nw /etc/inittab


nss:2345:respawn:/home/aolserver/bin/nsd -u nsadmin -g web -t /home/aolserver/service_name.tcl
 

# killall -9 nsd

# /sbin/init q

# restart-aolserver service_name Killing 23750 23753 23754 23756

If the processes were killed, congratulations, your server is now automated for startup and shutdown.


Next Previous Contents <% ns_puts [nsv_get mkm_includes mkm_oldContentFooter_inc] %>