Solved

how do i restart apache?

Posted on 2004-03-22
5
451 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
  • 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

947 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now