Index: openacs-4/packages/acs-core-docs/www/maintenance-web.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/maintenance-web.html,v diff -u -r1.14.2.1 -r1.14.2.2 --- openacs-4/packages/acs-core-docs/www/maintenance-web.html 14 Nov 2003 09:43:45 -0000 1.14.2.1 +++ openacs-4/packages/acs-core-docs/www/maintenance-web.html 21 Nov 2003 11:14:08 -0000 1.14.2.2 @@ -1,8 +1,7 @@ -Hosting Web Sites

Hosting Web Sites

- by Joel Aufrecht
+Hosting Web Sites

Hosting Web Sites

By Joel Aufrecht

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Maintenance tasks, optional software, and alternate configurations for AOLserver.

Assuming AOLserver started cleanly in the previous step, we'll set it up so that it's always running, and automatically restarts whenever it dies or is stopped. This step is strongly recommended, even for development sites, because it makes install and maintenance much simpler.

The Reference Platform uses Daemontools to control AOLserver. A simpler method, using init, is here.

  1. Daemontools must already be installed. If not, install it.

  2. Each service controlled by daemontools must have a +

Maintenance tasks, optional software, and alternate configurations for AOLserver.

Keep AOLServer Alive

Assuming AOLserver started cleanly in the previous step, we'll set it up so that it's always running, and automatically restarts whenever it dies or is stopped. This step is strongly recommended, even for development sites, because it makes install and maintenance much simpler.

The Reference Platform uses Daemontools to control AOLserver. A simpler method, using init, is here.

  1. Daemontools must already be installed. If not, install it.

  2. Each service controlled by daemontools must have a directory in /service. That directory must have a file called run. Daemontools then @@ -55,7 +54,7 @@ Most of this information comes from Tom Jackson's AOLServer+Daemontools Mini-HOWTO.

AOLserver keepalive with inittab

This is an alternative method for keeping the AOLserver - process running. The recommended method is to run AOLserver + process running. The recommended method is to run AOLserver supervised.

This step should be completed as root. This can break every service on your machine, so proceed with caution. @@ -146,7 +145,7 @@ automated for startup and shutdown.

Running AOLserver on Port 80

If you want your webserver to be http://yourserver.com, it must run on port 80, the default HTTP port. You set this in the config.tcl file. You will need to start the service as root. If you follow the instructions - above for automating + above for automating startup, this will be taken care of, but if you ever start the server from the command line, be sure to su - first. @@ -160,7 +159,7 @@ able to exploit your web server to execute a command on your server, they would not be able to gain root access.

Running multiple services on one machine

Services on different ports.�To run a different service on another port but the same - ip, simply repeat Install OpenACS 5.0.0b1 replacing + ip, simply repeat Install OpenACS 5.0.0b2 replacing service0, and change the

set httpport              8000
 set httpsport             8443 

@@ -172,7 +171,7 @@ different values for

set hostname               [ns_info hostname]
 set address                127.0.0.1 

-If you want to install two services with different host +

If you want to install two services with different host names sharing the same ip, you'll need nsvhr to redirect requests based on the contents of the tcp headers. See AOLserver Virtual Hosting with TCP by markd. @@ -234,4 +233,4 @@ [root@yourserver root]# emacs /etc/cron.daily/analog

Put this into the file:

#!/bin/sh
 
-/usr/share/analog-5.31/analog -G -g/var/lib/aolserver/service0/etc/analog.cfg
[root@yourserver root]# chmod 755 /etc/cron.daily/analog

Test it by running the script.

[root@yourserver root]# sh /etc/cron.daily/analog

Browse to http://yourserver.test/log/traffic.html

External uptime validation

The OpenACS uptime site can monitor your site and send you an email whenever your site fails to respond. If you test the url http://yourserver.test/SYSTEM/dbtest.tcl, you should get back the string success.

($Id$)
View comments on this page at openacs.org
+/usr/share/analog-5.31/analog -G -g/var/lib/aolserver/service0/etc/analog.cfg
[root@yourserver root]# chmod 755 /etc/cron.daily/analog

Test it by running the script.

[root@yourserver root]# sh /etc/cron.daily/analog

Browse to http://yourserver.test/log/traffic.html

External uptime validation

The OpenACS uptime site can monitor your site and send you an email whenever your site fails to respond. If you test the url http://yourserver.test/SYSTEM/dbtest.tcl, you should get back the string success.

($Id$)
View comments on this page at openacs.org