Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Stopping Apache, What is the best way to stop Apache
tsearls
Posted: May 5 2004, 04:02 PM
Quote Post





Group: Members
Posts: 1
Member No.: 391
Joined: 5-May 04



I developed my site in tomcat and have uploaded it. I want to use it as my webserver and have configured it to work on port 80. I have also configured init.d to load tomcat on boot up. Everything works fine when I manually stop apache and start tomcat.

The problem is... Apache will load on boot up and try to use port 80 too. What is the best way to prevent this? Can I just rename httpd to httpdold in init.d? Will this throw errors? I don't want to uninstall apache, I just don't want it to start.

Thanks for any suggestions/help!

Travis
PMEmail Poster
Top
andy
Posted: May 6 2004, 01:15 AM
Quote Post





Group: Advantagecom Staff
Posts: 4,340
Member No.: 9
Joined: 12-July 02



There are a couple of ways you can do this.

From a root shell prompt:
CODE
chkconfig httpd off --level 2345


Or, remove the symlink in /etc/rc.d/rc3.d/ that starts httpd.

Or, the preferred method (unless you're deliberately avoiding the control panel because of your custom config) is to use the "services" section of the control panel and turn off autostart for httpd.


--------------------
Sincerely,
Andrew Kinney
CTO, Advantagecom Networks

Please do not private message me. My regular management duties preclude responding to every customer that sends me a support issue. Instead, post on the forum or contact tech support.
PMUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll