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.
Daemontools must already be installed. If not, install it.
Each service controlled by daemontools must have a
+
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.
Daemontools must already be installed. If not, install it.
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.
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