[m-dev.] for review: move web server to venus
David Overton
dmo at cs.mu.OZ.AU
Mon Feb 12 23:35:16 AEDT 2001
On Fri, Feb 09, 2001 at 04:32:48PM +1100, Levi Cameron wrote:
> + - hydra is somewhat unreliable; David Overton was "volunteered"
> + to move the webserver to venus
Okay, well I guess that's what you get when you have your wisdom teeth
pulled out and have to miss a meeting. Anyway, it gave me a chance to
learn a bit about how web servers work....
Here are the steps I followed. Everything seems to be working, but
since this is my first time playing with apache, php, htdig, etc, I
would appreciate someone (probably Pete Ross if you have time)
checking that I haven't left anything out or done something stupid.
Also, if anyone wants to test these pages, point your browser to
`http://venus.cs.mu.oz.au/'.
The last step, which I haven't done yet, will be to change the DNS
entry for www.mercury.cs.mu.oz.au to point to venus instead of hydra.
David
Steps for moving Mercury WWW site to a new machine:
- make sure the following packages are installed (Debian
package names used here): apache, hypermail, php3, php3-cgi,
htdig.
- make sure /etc/apache/srm.conf contains the following two
lines:
DocumentRoot /var/www
Alias /doc/ /usr/share/doc/
- ln -s /home/mercury5/installed_w3 /var/www
- ln -s /home/mercury5/installed_w3/htdig/htdig-mercury.conf /etc/htdig/
- copy contents of /var/spool/htdig/ to the new machine
- edit w3/bin/install_webpages (from CVS repository) and
change the machine-name check to the new machine
- edit w3/include/search.inc and make sure the search action
is pointing to the new machine
- edit and install new crontabs for new and old machines for
user `mercury'
Here are the relevant changes to the CVS repository:
Estimated hours taken: 4 (mostly trying to work out what needed to be done)
Move the web server functionality from hydra to venus.
w3/bin/install_webpages:
w3/include/search.inc:
Change references from hydra to venus.
Index: bin/install_webpages
===================================================================
RCS file: /home/mercury1/repository/w3/bin/install_webpages,v
retrieving revision 1.19
diff -u -r1.19 install_webpages
--- bin/install_webpages 2000/08/09 11:54:40 1.19
+++ bin/install_webpages 2001/02/12 12:22:49
@@ -6,18 +6,20 @@
# search database and installing the web pages.
#
# Note this script must be run on a machine with php3, hypermail and htdig
-# installed, ie hydra, have the INSTALL_WEBDIR environment variable set
+# installed, ie venus, have the INSTALL_WEBDIR environment variable set
# and be run from the top level directory of the w3 module.
#
+www_host=venus
+
export PATH=/usr/local/bin:$PATH
echo Install started at `date`
whathost=`hostname | sed -e 's/\..*//'`
-if [ $whathost != "hydra" ]
+if [ $whathost != "$www_host" ]
then
- echo "install_webpages: must be run on hydra."
+ echo "install_webpages: must be run on $www_host."
exit 1
fi
Index: include/search.inc
===================================================================
RCS file: /home/mercury1/repository/w3/include/search.inc,v
retrieving revision 1.3
diff -u -r1.3 search.inc
--- include/search.inc 2000/09/01 09:37:21 1.3
+++ include/search.inc 2001/02/12 07:02:56
@@ -7,7 +7,7 @@
the mailing list archive.
<br>
<p>
-<form method="post" action="http://hydra.cs.mu.oz.au/cgi-bin/htsearch">
+<form method="post" action="http://venus.cs.mu.oz.au/cgi-bin/htsearch">
<font size=-1>
Match: <select name=method>
<option value=and>All
--
David Overton Department of Computer Science & Software Engineering
PhD Student The University of Melbourne, Victoria 3010, Australia
+61 3 8344 9159 http://www.cs.mu.oz.au/~dmo
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list