tk dev:
> 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?
The easiest is to edit /etc/rc.d/apache such that it calls
/usr/local/apache/bin/httpd instead of /usr/sbin/httpd. You also need to
change the location of the httpd.conf in that script. For example,
startproc /usr/sbin/httpd -f /etc/httpd/httpd.conf
should become
startproc /usr/local/apache/bin/httpd -f \
/usr/local/apache/conf/httpd.conf -D SSL
the "-D SSL" switch is necessary. It does the same thing as the
'startssl' parameter of apachectl. apachectl is just a script which
calls httpd. You ought to have a look at both apachectl and
/etc/rc.d/apache - both are just simple shell scripts.
> -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)
/etc/rc.d/apache (same as /etc/rc.d/init.d/apache) is the start/stop/etc
script of the default SuSE apache installation. Because the default
apache installation of SuSE puts httpd in /usr/sbin, /etc/rc.d/apache
will call that httpd. Your new installation of apache does not contain
a /etc/rc.d/apache - it is provided to you by SuSE. So if you want to
use the mechanisms that /etc/rc.d/apache provides you with, you'll have
to change it to point to your new, selfmade httpd.
apachectl is the default start/stop/etc script of the apache
distribution. AFAIK SuSE does not use apachectl.
> 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?
You will have to recompile, but your existing httpd.conf will not be
overwritten when you install - we're not in Micro$oft land here... :-)
Greetings,
Hans
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]