Mailing List Archive

Red Hat 7.2 and Apache
Good morning!!

I loaded Red Hat 7.2 and have Apache 1.3.20 running. I wanted the
latest and greatest version of Apache, so I downloaded and installed 1.3.22
and now have a BIG problem. I don't know how to reconfigure the boot process
so the original httpd does not load and run, while the new one does. Also,
on the old server configuration, I can get the web server to respond to my
IP address 10.0.0.200 but not the URL www.black-mesa.com. Do I have to
configure DNS to make this work or should I be using a virtual host?

Thanks in advance.

Robin E. Kopetzky - 'Sparky'
ACS/GSG - Software Development Specialist - SAS
Air Force Safety Center
Kirtland Air Force Center
9700 Avenue G SE #279A
Albuquerque, NM 87117-5670
(505) 853-7417
DSN 263-7417

"Human beings can always be counted on to assert with vigor their God-given
right to be stupid." - Dean Koontz in 'False Memory'

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Red Hat 7.2 and Apache [ In reply to ]
----- Original Message -----
From: Kopetzky Robin CIV AFSC/SEP <Robin.Kopetzky@kafb.saia.af.mil>
Date: Monday, December 17, 2001 3:53 pm
Subject: Red Hat 7.2 and Apache

> Good morning!!
>
> I loaded Red Hat 7.2 and have Apache 1.3.20 running. I wanted the
> latest and greatest version of Apache, so I downloaded and
> installed 1.3.22
> and now have a BIG problem. I don't know how to reconfigure the
> boot process
> so the original httpd does not load and run, while the new one
> does. Also,
> on the old server configuration, I can get the web server to
> respond to my
> IP address 10.0.0.200 but not the URL www.black-mesa.com. Do I
> have to
> configure DNS to make this work or should I be using a virtual host?
>
if .22 is successfully running copy the httpd.conf to /etc/httpd/conf/ and rename the old one, copy the httpd binary to /sbin/httpd
and after a reboot this files will be used

i.t


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Red Hat 7.2 and Apache [ In reply to ]
That's not what I want. All of the books I have on configuring/administering
Apache, show the httpd executable installed at /usr/local/apache. That's
where I want to keep the new files to make it easier for me to figure out
but want to configure Linux to load the new httpd executable but not the old
one at boot-time. There has to be an init???.conf file someplace in the RH
install that is run a boot-time that can be modified to do this. It took me
about an hour to find the originally installed Apache executable and have no
clue as to why Red Hat would not follow industry standards as to install
locations. Linux is confusing enough for Windows users to learn but to put
an executable somewhere else other than where 90% of the documentation on
that file says it should be is just plain stupid.

Sorry about rant but I'm just learning Linux and am getting more frustrated
every time I try to get this ISP running right.

Robin E. Kopetzky - 'Sparky'
ACS/GSG - Software Development Specialist - SAS
Air Force Safety Center
Kirtland Air Force Center
9700 Avenue G SE #279A
Albuquerque, NM 87117-5670
(505) 853-7417
DSN 263-7417

"Human beings can always be counted on to assert with vigor their God-given
right to be stupid." - Dean Koontz in 'False Memory'


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Red Hat 7.2 and Apache [ In reply to ]
Then do this if you don't want to move it.

delete the old httpd (the one being called by the init scripts)
then create a symlink in the directory that the old httpd was installed and create a link called httpd linking it to the /usr/local/apache/bin/httpd

it would look like the following command

ln -s /usr/local/apache/bin/httpd /"the directory that the old httpd was in"

this will create a sym link from the httpd that is in the "the directory that the old httpd was in" to the httpd in /usr/local/apache/bin/httpd

hope that helps

Paul

-----Original Message-----
From: Kopetzky Robin CIV AFSC/SEP [mailto:Robin.Kopetzky@kafb.saia.af.mil]
Sent: Monday, December 17, 2001 9:42 AM
To: 'users@httpd.apache.org'
Subject: RE: Red Hat 7.2 and Apache

That's not what I want. All of the books I have on configuring/administering
Apache, show the httpd executable installed at /usr/local/apache. That's
where I want to keep the new files to make it easier for me to figure out
but want to configure Linux to load the new httpd executable but not the old
one at boot-time. There has to be an init???.conf file someplace in the RH
install that is run a boot-time that can be modified to do this. It took me
about an hour to find the originally installed Apache executable and have no
clue as to why Red Hat would not follow industry standards as to install
locations. Linux is confusing enough for Windows users to learn but to put
an executable somewhere else other than where 90% of the documentation on
that file says it should be is just plain stupid.

Sorry about rant but I'm just learning Linux and am getting more frustrated
every time I try to get this ISP running right.

Robin E. Kopetzky - 'Sparky'
ACS/GSG - Software Development Specialist - SAS
Air Force Safety Center
Kirtland Air Force Center
9700 Avenue G SE #279A
Albuquerque, NM 87117-5670
(505) 853-7417
DSN 263-7417

"Human beings can always be counted on to assert with vigor their God-given
right to be stupid." - Dean Koontz in 'False Memory'


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Red Hat 7.2 and Apache [ In reply to ]
Kopetzky Robin CIV AFSC/SEP wrote:
>
> That's not what I want. All of the books I have on configuring/administering
> Apache, show the httpd executable installed at /usr/local/apache. That's
> where I want to keep the new files to make it easier for me to figure out
> but want to configure Linux to load the new httpd executable but not the old
> one at boot-time. There has to be an init???.conf file someplace in the RH
> install that is run a boot-time that can be modified to do this. It took me
> about an hour to find the originally installed Apache executable and have no
> clue as to why Red Hat would not follow industry standards as to install
> locations. Linux is confusing enough for Windows users to learn but to put
> an executable somewhere else other than where 90% of the documentation on
> that file says it should be is just plain stupid.

I don't know why all Linux distributors decide to put apache wherever
they like... Anyway, at least you understand the problem.

I found the cleanest thing to do is to:

- remove the default install completely (i.e. /etc/http etc.)
- compile apache and "make install" so httpd -> /usr/local/apache/bin
and httpd.conf -> /usr/local/apache/conf (you probably already did
this).
- copy the "/usr/local/apache/bin/apachectl" script onto the default
"/etc/init.d/apache" script. This is the script which gets executed at
boot and which contains the paths to the httpd binary and httpd.conf
(which you have deduced by now is the key to apache).

To be precise, there is a directory called "/etc/rc3.d" which contains a
script like "S50apache". This is really a symbolic link to
"/etc/init.d/apache". At boot, when the system gets to run level 3, it
goes into the /etc/rc3.d directory and executes every script beginning
with "S" with the argument "start" - so therefore it executes
"/etc/init.d/apache start" which is what you want.

DISCLAIMER: All linux distros are a bit different about this - the
directory might be /etc/rc.local under RH - go to /etc/ and do 'find .
-name "apache" ' to check..

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org