On Sat, 2003-02-08 at 21:41, Victor wrote:
> "In GNU/Linux, chkconfig --level 35 httpd off"
> 
> Wow man, that just SCREAMS "apache off"! How intuitive Linux is...
> -
> Vic
> 
> Thanks, I'll try it. 
> 
> But, what will that turn off? I have apache 1.X and apache 2.X on red
> hat? I want to use either or, whichever works with the php 4.3 on red
> hat. So ... what do I choose? How do I make the system use only one of
> them, how do I erase the other one?
In Windows and Linux the service is named httpd, it's not my fault.

Well, now you have two Apache in your and you want just one of them to
come up when you boot your machine.

Apache 1.3.x is usually installed in /usr/share/httpd and is started
with a script in /etc/rc.d/init.d called httpd.

Apache 2.0.x is installed by default in /usr/local/apache2 and the
script to start/stop the service is called apachectl and is located in
/usr/local/apache2/bin.

If you want to leave the first one that you installed, just do nothing.

On the other hand, if you want to start the second one, then rename
/etc/rc.d/init.d/httpd to something you want and create a symlink
pointing to the one you want to start. Example:

ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

Now:

chkconfig --level 35 httpd on

In this case you don't need to turn off the other. It will never get
started because there is no script in /etc/rc.d/init.d to start it.

Hope this help.
-- 
    __                               
   / \\   @       __     __    @   Adolfo Bello <[EMAIL PROTECTED]>
  /  //  // /\   / \\   // \  //   Bello Ingenieria S.A, ICQ: 65910258
 /  \\  // / \\ /  //  //  / //    cel: +58 416 609-6213
/___// // / <_/ \__\\ //__/ //     fax: +58 212 952-6797
    www.bisapi.com   //            pager: www.tun-tun.com (# 609-6213)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to