- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Shutdown Apache Server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 12:59 PM
03-04-2002 12:59 PM
Somehow we don't want Apache server to run and I would like to know how to shut it down nicely.
Is it by kill -9?
How to disable it from startup, which is the 2nd puzzle.
Thanks a millions in advance.
Steven
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:03 PM
03-04-2002 01:03 PM
Solution/sbin/init.d/apache stop
and then look in /sbin/rc2.d to see if you have a link back to the script above, and if so remove it.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:05 PM
03-04-2002 01:05 PM
Re: How to Shutdown Apache Server
First off, is this HP's apache? If so, to stop it do:
# /sbin/init.d/apache stop
If it is not HP's do:
# /opt/apache/bin/apachectl stop
To keep from restarting on startup:
If HP's apache, modify /etc/rc.config.d/apacheconf and modify the line that says APACHE_START so that it looks like:
APACHE_START=0
If it is not HP's, then see if you have your own start/stop scripts for controlling the Apache daemon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:07 PM
03-04-2002 01:07 PM
Re: How to Shutdown Apache Server
# /sbin/init.d/apache stop
or ..
# /opt/apache/bin/apachectl stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:08 PM
03-04-2002 01:08 PM
Re: How to Shutdown Apache Server
For shutting it down,
# /sbin/init.d/apache stop
For disabling this permanently, you can either stop is by editing the file /etc/rc.config.d/apacheconf and putting a '0' instead of '1' at the START command OR rename the startup and kill scripts in rc scripts.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 01:09 PM
03-04-2002 01:09 PM
Re: How to Shutdown Apache Server
Normally when apache installs it creates some /sbin/init.d startup scripts.
1) Check to see if you have a file called /etc/rc.config.d/apache. The variable APACHE_START should be set to 1 and APACHE_ROOT should be defined.
2) You should also have a file called /sbin/init.d/apache. To stop apache, simply '/sbin/init.d/apache stop'.
If these files do not exist, please say so and someone can easily supply them. Normally, apache writes a small file with the PID's that need to send a kill.
P.S. Kill -9 is ALMOST ALWAYS A BAD IDEA for Apache or anything else. It does no cleanup so shared memory and temp files are left dangling.
When you kill, kill in this order: kill -15, -1,-2,-3,-11 and finally and only if absolutely necessary kill -9. Kill -11 is almost as sure a kill as kill -9 as it does cleanup.