Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74B33A68 for ; Tue, 26 Apr 2011 07:10:46 +0000 (UTC) Received: (qmail 80911 invoked by uid 500); 26 Apr 2011 07:10:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 80205 invoked by uid 500); 26 Apr 2011 07:10:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 80196 invoked by uid 99); 26 Apr 2011 07:10:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 07:10:33 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of darryl.lewis@unsw.edu.au designates 149.171.97.16 as permitted sender) Received: from [149.171.97.16] (HELO smtp-dist.unsw.edu.au) (149.171.97.16) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 07:10:25 +0000 Received: from INFPACM003.services.comms.unsw.edu.au (INFPACM003.services.comms.unsw.edu.au [149.171.193.26]) by smtp-dist.unsw.edu.au (8.13.6/8.13.6) with ESMTP id p3Q79jMr012447 for ; Tue, 26 Apr 2011 17:09:45 +1000 (EST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjcFAChvtk2VqzhKgWdsb2JhbACCYZtFAYcaFAEBFiYlvFWIb4MfglcEjj+Hd4Y7 X-IronPort-AV: E=Sophos;i="4.64,267,1301839200"; d="scan'208,217";a="107827775" Received: from infpwex025.ad.unsw.edu.au ([149.171.56.74]) by INFPACM003.services.comms.unsw.edu.au with ESMTP; 26 Apr 2011 16:48:02 +1000 Received: from INFPWEC004.ad.unsw.edu.au ([149.171.135.35]) by infpwex025.ad.unsw.edu.au ([149.171.56.74]) with mapi; Tue, 26 Apr 2011 17:09:45 +1000 From: Darryl Lewis To: Tomcat Users List Date: Tue, 26 Apr 2011 17:09:43 +1000 Subject: Re: Configuring apache start up at boot and apache Manager GUI Thread-Topic: Configuring apache start up at boot and apache Manager GUI Thread-Index: AcwD1mMzAmetKiHRRhqv05lMvdyVYgACodhB Message-ID: In-Reply-To: <31475745.post@talk.nabble.com> Accept-Language: en-US, en-AU Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU Content-Type: multipart/alternative; boundary="_000_C9DCACD7FD5Bdarryllewisunsweduau_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_C9DCACD7FD5Bdarryllewisunsweduau_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Copy and paste the following script into your text editor: # This is the init script for starting up the # Jakarta Tomcat server # # chkconfig: 345 91 10 # description: Starts and stops the Tomcat daemon. # # Source function library. . /etc/rc.d/init.d/functions # Get config. . /etc/sysconfig/network # Check that networking is up. [ "${NETWORKING}" =3D "no" ] && exit 0 tomcat=3D/usr/local/jakarta-tomcat startup=3D$tomcat/bin/startup.sh shutdown=3D$tomcat/bin/shutdown.sh export JAVA_HOME=3D/usr/local/jdk start(){ echo -n $"Starting Tomcat service: " #daemon -c $startup RETVAL=3D$? echo } stop(){ action $"Stopping Tomcat service: " $shutdown RETVAL=3D$? echo } restart(){ stop start } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) # This doesn't work ;) status tomcat ;; restart) restart ;; *) echo $"Usage: $0 {start|stop|status|restart}" exit 1 esac exit 0 Edit the lines that start with tomcat and export to match where you install= ed tomcat and your jdk. 2. Save to /etc/init.d and chmod Save the edited file above to /etc/init.d directory as "tomcat" (at least on most newer releases since /etc/init.d is a standard now). Th= en you have to allow execute access to the script, so run: chmod a+x tomcat On 26/04/11 3:53 PM, "TSGX" wrote: Hi guys, I am currently using redhat enterprise linux version 4 update 6. I installe= d apache tomcat in my test server and it is working (it says that it is installed when i put localhost:8080 in my browser). Now I have 2 questions that I would like to ask. The first is, how do I configure my tomcat such that it starts once the server is booted up? Is there a website that has step-by-step method? Can anyone recommend? And I am a newbie in linux, so I would appreciate very much if the steps are rather simplified (if a website is not provided) The second issue is when I tried to click on the function buttons like server status, manager app and host manager, the browser prompts me to authenticate my username and password. When I can't, it goes to a page whic= h displays the Error 401. And by following the steps, it instructs me to change the contents in tomcat-users.xml. I did so and checked and make sure my code was correct and there were no <--- and ---> to comment off the codes. But still, the authentication don't work. What should I do? Does anyone know? Thanks in advance -- View this message in context: http://old.nabble.com/Configuring-apache-star= t-up-at-boot-and-apache-Manager-GUI-tp31475745p31475745.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --_000_C9DCACD7FD5Bdarryllewisunsweduau_--