Operating System - HP-UX
1748030 Members
5021 Online
108757 Solutions
New Discussion юеВ

Web Pages for System Documentation

 
Henry Weldon
Advisor

Web Pages for System Documentation

I'm looking for a easy tool that will allow me to host our system documentation on Web pages for internal use by our System Administrators. I'm tired of our NT hosted document server going down.
Be Prepared
4 REPLIES 4
Sachin Patel
Honored Contributor

Re: Web Pages for System Documentation

Use apache.

Download the apache from HP's web site as depot and install it using
#swinstall

Installation will create a file called apache in /sbin/init.d directory. If it is not there you can create it.
Don't forget to check paths for the variable APACHE_HOME, CONF_FILE and PIDFILE in this file.

#!/sbin/sh
#
# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)apache.sh 1.3 99/11/10 SMI"

APACHE_HOME=/opt/apache
CONF_FILE=/opt/apache/etc/httpd.conf
PIDFILE=/opt/apache/adm/httpd.pid

if [ ! -f ${CONF_FILE} ]; then
exit 0
fi

case "$1" in
start)
/bin/rm -f ${PIDFILE}
cmdtext="starting"
;;
restart)
cmdtext="restarting"
;;
stop)
cmdtext="stopping"
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

echo "httpd $cmdtext."

status=`${APACHE_HOME}/bin/apachectl $1 2>&1`

if [ $? != 0 ]; then
echo "$status"
exit 1
fi
exit 0

Create a link in /sbin/rc3.d to ensure that httpd starts at boot time
# ln -s /sbin/init.d/apache /sbin/rc3.d/S150apache
#ls -la /sbin/rc3.d |grep apache
lrwxrwxrwx 1 root sys 19 Mar 8 11:54 S150apache -> /sbin/init.d/apache

Edit the /opt/apache/etc/httpd.conf file and change that directive.

User www
Group www
ServerName xyz.com
DocumentRoot "/WWW"

Apache looks for port 80 by default so in /etc/services file uncomment following
http 80/tcp www # World Wide Web HTTP
http 80/udp www # World Wide Web HTTP


Start the httpd server
#/etc/rc3.d/S150apache start

Put all your http files in /WWW including idex.html.

As soon as you types xyz.com on your IE or Netscape's address bar it will shows you index.html.

Sachin
Is photography a hobby or another way to spend $
S.K. Chan
Honored Contributor

Re: Web Pages for System Documentation

Yes, Apache is a good choice and it is as easy as it gets, plus it's free.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9415AAPA1319
Michael Tully
Honored Contributor

Re: Web Pages for System Documentation

Hi,

If you have 11i version it can be found on the application CD's, so it can be installed using 'swinstall' or from the porting centre.

http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/apache-1.3.23/

Michael
Anyone for a Mutiny ?
Tom Geudens
Honored Contributor

Re: Web Pages for System Documentation

Hi,
And once you've got the Apache ... use this free tool to generate all the information you ever wanted :
http://members.tripod.com/rose_swe/cfg/cfg.html

Regards,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?