tk dev wrote:
>
> Hi all,
>
> previously i installed suse6.4(kernel2.2.14) with
> apache etc.
> since the bundled openssl & modssl didn't really
> work..i reinstalled it again myself..in the prefix
> directory /usr/local/apache.
>
> my ques:
> 1.everytime i restart my server, it'll default to the
> original apache, so each time i need to command
> #/etc/rc.d/init.d/apache stop
> then i restart my new server with
> #/usr/local/apache/bin/apachectl startssl
> -how do i make sure that apachectl will restart
> automatically each time my server is restarted instead
> of the 'old' httpd?
One thing you must be clear about is that apachectl is shell-script
which controls the starting and stopping of apache. httpd is an
executable binary which *is* the apache server. You seem to confuse them
in your mail so let's get this straight first! (Have a look at apachectl
with vi or more and see what it does....)
You imply you have two versions of httpd kicking around. Why do you want
this? Remove the whole installation of the "old" version so you have
only one version of apache under /usr/local/apache.
Now you have to decide how you want to control apache.
The reason for putting apachectl in /etc/rc.d/init.d/ is so that apache
can be started automatically after a reboot. Are you aware of this? (By
the way, are you sure about that path? It looks a bit funny, even for
Linux).
You can also control apache using /usr/local/bin/apachectl. Since this
script and the one in /etc/rc.d/init.d/ are the same, and since you use
the default location for apache (/usr/local/apache), they can both stop
and start apache (i.e. you can start with one and stop with the other).
If I were you, I would use only one apachectl script (lets say,
/etc/rc.d/init.d/apachectl) and remove the other one. Then your commands
are just;
/etc/rc.d/init.d/apachectl test | startssl | stop | restart |
whatever...
> -why is it that after i run startssl(as above), when i
> checked
> #/etc/rc.d/init.d/apache status
> it'll report ..ok & how long httpd has started. if i
> put "/etc....apache stop" my apachectl is also
> stopped.
> can anyone tell me what's the connection between this
> apache & apachectl(ps.i did cp apachectl into
> /etc/rc.d/init.d)
Answered above...
>
> 2.the default apache comes with many modules e.g.
> php3,perl etc & i found out that i need to recompile
> apache to include them into my 'new' apachectl. does
> it mean that in the future if i were to add new
> modules, i've to recompile apache & also reconfigure
> httpd.conf?
Note you make a new *httpd*, not an new *apachectl*.... get clear about
this.
Yes you have to recompile. This should be fairly easy if you use the
configure script. E.g. to include the rewrite module:
# ./configure --enable-module=rewrite
# make
>
> thanks in advance for all your help. really appreciate
> it.
> rgds
> tk
>
> =====
> 0Oo~~:o)
> Smile! You'r Alive!!!
>
> Q:What's peacefulness?
> A:What's confusion? Peacefulness is the end of confusion.
>
> o.0.Oo.o May there be peace in every step we take :o):tk
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl) www.modssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
--
SWX Swiss Exchange, 10 Cours de Rive, 1211 Geneve 3
--------------------------+-------------------------
Phone: +41 (0)22 849 5648 | Fax: +41 (0)22 849 5643
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]