[NBLUG/talk] Is this the correct approach
Mark Street
jet at sonic.net
Sun Jul 27 11:42:01 PDT 2003
On Sunday 27 July 2003 11:30, Todd Cary wrote:
Just change the PATH to the httpd binary apachectl in the script.
Since you compiled with source I think it will be something like
/usr/local/apache2/bin or some such..
> Do you have a recommendation for a book where I can learn the scripting
> language used in Linux?
The script is a bash shell script so I would say the bash shell scripting book
by O'Reilly.. fish book.. (perch I think).... There are others...
>
> <<<
> # Path to the apachectl script, server binary, and short-form for messages.
> apachectl=/usr/sbin/apachectl
> httpd=${HTTPD-/usr/sbin/httpd}
> prog=httpd
> RETVAL=0
>
> This is in the httpd file in /etc/rc.d/init.d/ . Is this stating that
> apachectl (I assume that is the executable) is in /usr/sbin/ ?
> Therefore, I should create the "new" executable in that directory after
> uninstalling the current Apache?
> Mark Street wrote:
> >You need a brush up on System V initialization scripts, rc (run control)
> >scripts are found int /etc/rc.d/init.d on RH boxen.
> >
> >There is one for apache named httpd, that is installed with the rpm. My
> > guess is you could hack that script to point it to your apache binary and
> > all would be well.
> >
> >or....
> >
> >You could make an entry in /etc/rc.d/rc.local to start your apache binary
> >without the rc functionality enabled.
> >
> >First get some foundation with RH system initialization, run levels and
> > run control scripts found in /etc/rc.d/
> >
> >On Sunday 27 July 2003 10:26, Todd Cary wrote:
> >>Some days ago, many of you helped me compile Apache with PHP configured
> >>with some extensions that are not included with the "out of the box" RH
> >>9. What happened is the part of Linux that starts Apache was not
> >>configured to the new Apache that I created - most likely I did not
> >>create the new Apache in the correct directory - even though I ran the
> >>RMP uninstall. The end result was that Apache would not start - could
> >>not be found.
> >>
> >>What I would like to do is two fold:
> >>
> >>1) Learn more about the startup sequence of Linux and Apache
> >>2) Learn where Apache is located in RH 9
> >>
> >>If I can find out where Apache is currently installed, can I create the
> >>new Apache in the same location so that it will be started the same as
> >>the current one?
> >>
> >>Trying to learn....
> >>
> >>Todd
--
Mark Street, D.C.
Red Hat Certified Engineer
Cert# 807302251406074
--
Key fingerprint = 3949 39E4 6317 7C3C 023E 2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc
More information about the talk
mailing list