We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

how do i restart apache?

gagaliya
gagaliya asked
on
Medium Priority
489 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!
Comment
Watch Question

Commented:

    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.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
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! :)

Author

Commented:
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

Commented:
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.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.