Solved

how do i restart apache?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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). #…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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