Solved

how do i restart apache?

Posted on 2004-03-22
5
456 Views
Last Modified: 2010-03-04
hey, I am relatively new to tomcat/apache and need to deploy a serlvet, here are my questions

1) Is this correct?  to deploy a servlet.  I understand the steps are:
  a) create web.xml in WEB-INF (i told tech support i cant find web.xml in WEB-INF, and he told me to just create it)
  b) restart apache (or do i have to restart tomcat too?).

2) Now the problem is the admins are been a pain in the #*&#@ and wont let me restart the server myself.  I do have ssh access to the server. So what dir do i goto to find the restart script for apache (and tomcat too if i need it).  Like for weblogic, it's always wlsxx/bin/stop-wl.sh and start-wl.sh

here's the versions i have:
Redhat Linux 7.3
Apache 1.3.27
Tomcat 4.03
J2SDK 1.4.0

thanks!
0
Comment
Question by:gagaliya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 8

Expert Comment

by:HaydnH
ID: 10647819

    1) Somebody else will have to answer this - I haven't deployed a servlet in years as I've done all my stuff in php recently.

    2) If I remember correctly, as tomcat is a module of apache you only need to restart apache, somebody else can confirm
        this.

        You'll probably find the apache bin's in:

            /usr/local/apache/bin

        ...and the command to restart apache is:

            ./apachectl restart

Haydn.
0
 
LVL 15

Accepted Solution

by:
samri earned 250 total points
ID: 10649499
in order for you to be able to restart the apache, you would need to have sufficient privelege.  In most cases, by default apache would be run as root (then the subsequest child process would suid to whatever User directive is set to (chances are either apache or nobody, and maybe httpd).  So in this case, you may need to be root or root-equivalent.


If you are not modifying the httpd.conf (aka. apache configuration file), you would not require to restart the service.

since you already have the "power" to restart tomcat, I would think (IMHO), that would be sufficient.

The best option to go at this moment, is that try to restart only tomcat, and test if the newly added application registers.  

cheers.
0
 
LVL 15

Expert Comment

by:samri
ID: 10649520
try to download the file to the machine you had the apache running.  and try to install with apxs.

I would check the docs on that... (gee... the last time I did stuff like this is like almost a few years back! :)
0
 
LVL 1

Author Comment

by:gagaliya
ID: 10651432
hey thanks for the responses,

"The best option to go at this moment, is that try to restart only tomcat, and test if the newly added application registers."

but how do i restart tomcat?

"If you are not modifying the httpd.conf (aka. apache configuration file), you would not require to restart the service."

so are you using all i need to do to deploy a servlet is jsut create the web.xml with the servlet in it, and that's it?

thanks
0
 
LVL 15

Expert Comment

by:samri
ID: 10656279
i could not give you a 110% confirmation;  you could take a look at the following Tomcat-docs which should give you some instruction on what needs to be done once you had a new apps deployed.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

For a more general Tomcat stuff : http://jakarta.apache.org/tomcat/

hope this would give you some idea.

Cheers.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question