From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076333621658.tru64-unix-managers.marc@archive.invalid> From: Ulrike Hanslik-Landry Date: Fri, 28 Jun 1996 19:07:28 +0000 To: tru64-unix-managers Subject: http server configured as "inetd" X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076333621658 Good Friday to you all! Thank you very much to those managers who offered suggestions to my question which is below. I really appreciate your timely help. We took your suggestions of making the server "standalone" and it works great! Thank you very much!! Ulrike uhanslik@eagle.auc.on.ca > We have just started a new community freenet using a DEC alpha-OSF/2 > platform. ... and are now working on installing our http server Apache. > We compiled and made a call to Apache (no errors) but when we try to > access our home web page we get error messages: > Netscape - socket is not connected > Lynx - transmission aborted > We've tried changing the inetd.conf file and the /etc/services > file to show the new http daemon at port 80 and rebooted, but this still > didn't solve our problem. ---------------------------Summary of replies---------------------------- From: Gyula Szemenyei I suggest to run httpd standalone. It will be much faster! (Tha consumes more memory but it doesn't matter - you can configure the number of httpd children.) From: "Andrew C. Saylor" Why are you launching Apache from INETD? I use Apache here and have found it to be a very stable program. I would suggest you run Apache and just place it in the background so that it will listen on port 80 all the time. That will reduce load on INETD and speed the WWW docs. Using INETD for apache means that Apache will be constantly loaded and unloaded from memory as WWW requests come in. Since apache takes a second or so to launch, that will be a delay in getting the web page. From: "Steven E. Newton" Apache doesn't run under inetd -- it's a standalone daemon. From: bremner@cs.mcgill.ca you probably don't want to run httpd from inetd anyway. My understanding is that there is a substantial performance hit. Here is /sbin/init.d/http, a script to start and stop httpd. You then need to place a link in /sbin/rc3.d to ../init.d/http mine is S76http, which starts it almost last. #!/bin/sh # ver author date text # .01 smy 5/14/93 created # PATH=/sbin:/usr/sbin:/usr/bin export PATH case "$1" in 'start') if [ -f /labs/cgm/local/pkg/WWW/bin/httpd ] then echo "Starting CERN httpd" /labs/cgm/local/pkg/WWW/bin/httpd -r /labs/cgm/local/pkg/WWW/config/httpd.conf fi ;; 'stop') pid="`cat /var/adm/httpd-pid`" /bin/kill $pid ;; *) echo "usage: http {start|stop}" ;; esac From: Anthony D'Atri Run httpd out of rc.whatever, not inetd.conf.