|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello:
Perhaps someone can shed some light on what this problem is, or at least a 'correct' way to get around the problem. System configuration: Clean install of RH9, with ALL the options, Apache 2.0.53. Pretty much running system 'as installed'. Modified the /usr/local/apache2/conf/httpd.conf to reflect server root ("/usr/local/apache2"), Listen on my ip.address:80, and document root (<Directory "/usr/local/apache2/htdocs">). Placed my web files in htdocs, and it was working fine for a couple of months. Shut system down (complete power down), rebooted, restarted httpd...now, it starts displaying the Apache "Test Page"...which tell me: 'If you have upgraded from Red Hat Linux 6.2 and earlier, then you are seeing this page because the default DocumentRoot set in /etc/httpd/conf/httpd.conf has changed.' Well, I didn't upgrade from RH 6.2...it was a clean install of RH9. So, I go to /etc/httpd/conf/ and look at httpd.conf and sure enough, it has a different path for htdocs (/etc/httpd/htdocs), and I verify that it is loading the index "test page" from this directory. It was not before the power down, so what happened? how to fix? The /etc/httpd/conf/httpd.conf file is read only, but it could be changed to point to the intended htdocs (/usr/local/apache2/htdocs) where I have my webpages...but, it seems that I should not have to. It also seems that this is NOT the right place to change the pointer...None of the Apache 2.0 docs that I have read say anything about this. I tried to start the server with: apachectl -f /usr/local/apache2/conf/httpd.conf, but it responds with an error saying "line 350, word is mis-typed or used out of order"...( I haven't changed this file from the first time I used it. Also, I dont know if this file is accessed if I just typed in: apachectl start. I thought about replacing my current http.config file with the one from /etc/httpd/conf, and modifying that (as I did the original) and see what happens. I did a visual comparison of the two and except for the changes, are seemingly identicle. So, I thought I'd post the question here since I am an Apache newbi. Any suggestions as to what might have changed, or, a way to get around this problem would be appreciated. Thanks in advance... John |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 4 May 2005 09:41:30 -0700,
john.j.hudak@comcast.net posted: > Perhaps someone can shed some light on what this problem is, or at > least a 'correct' way to get around the problem. > System configuration: Clean install of RH9, with ALL the options, > Apache 2.0.53. Pretty much running system 'as installed'. Modified the > /usr/local/apache2/conf/httpd.conf to reflect server root > ("/usr/local/apache2"), > Listen on my ip.address:80, and document root (<Directory > "/usr/local/apache2/htdocs">). That's not where my installation of Apache is on Red Hat 9. My Apache configuration files are in subdirectories in /etc/httpd/ and the htdocs are in /var/www/html/. Though I'm using the Apache that installs with my distributions, I haven't installed it from source. > Shut system down (complete power down), rebooted, restarted > httpd...now, it starts displaying the Apache "Test Page"...which tell > me: 'If you have upgraded from Red Hat Linux 6.2 and earlier, then you > are seeing this page because the default DocumentRoot set in > /etc/httpd/conf/httpd.conf has changed.' Well, I didn't upgrade from > RH 6.2...it was a clean install of RH9. So, I go to /etc/httpd/conf/ > and look at httpd.conf and sure enough, it has a different path for > htdocs (/etc/httpd/htdocs), and I verify that it is loading the index > "test page" from this directory. It was not before the power down, so > what happened? how to fix? Have you let Red Hat 9 update Apache itself? (Yum, up2date, etc.) > The /etc/httpd/conf/httpd.conf file is read only, but it could be > changed to point to the intended htdocs (/usr/local/apache2/htdocs) > where I have my webpages...but, it seems that I should not have to. That's where mine is (the /etc one), on Red Hat 9.0 Linux and Fedora Core 3. One solution might be to make a link from one location to the other. So you only have one file, and installation updates might continue to work in a coherent manner. -- If you insist on e-mailing me, use the reply-to address (it's real but temporary). But please reply to the group, like you're supposed to. This message was sent without a virus, please delete some files yourself. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Tim wrote: > On 4 May 2005 09:41:30 -0700, > john.j.hudak@comcast.net posted: > > > Perhaps someone can shed some light on what this problem is, or at > > least a 'correct' way to get around the problem. > > System configuration: Clean install of RH9, with ALL the options, > > Apache 2.0.53. Pretty much running system 'as installed'. Modified the > > /usr/local/apache2/conf/httpd.conf to reflect server root > > ("/usr/local/apache2"), > > Listen on my ip.address:80, and document root (<Directory > > "/usr/local/apache2/htdocs">). > > That's not where my installation of Apache is on Red Hat 9. My Apache > configuration files are in subdirectories in /etc/httpd/ and the htdocs are > in /var/www/html/. Though I'm using the Apache that installs with my > distributions, I haven't installed it from source. > > > Shut system down (complete power down), rebooted, restarted > > httpd...now, it starts displaying the Apache "Test Page"...which tell > > me: 'If you have upgraded from Red Hat Linux 6.2 and earlier, then you > > are seeing this page because the default DocumentRoot set in > > /etc/httpd/conf/httpd.conf has changed.' Well, I didn't upgrade from > > RH 6.2...it was a clean install of RH9. So, I go to /etc/httpd/conf/ > > and look at httpd.conf and sure enough, it has a different path for > > htdocs (/etc/httpd/htdocs), and I verify that it is loading the index > > "test page" from this directory. It was not before the power down, so > > what happened? how to fix? > > Have you let Red Hat 9 update Apache itself? (Yum, up2date, etc.) The only updates I have done were to RH9, after it was installed. I then installed Apache, and did no updates to it... > > > The /etc/httpd/conf/httpd.conf file is read only, but it could be > > changed to point to the intended htdocs (/usr/local/apache2/htdocs) > > where I have my webpages...but, it seems that I should not have to. > > That's where mine is (the /etc one), on Red Hat 9.0 Linux and Fedora Core > 3. One solution might be to make a link from one location to the other. > So you only have one file, and installation updates might continue to work > in a coherent manner. > Thanks for the suggestion. I am sure that will work as long as RH9 and/or Apache are not updated....but a question I have is: What is the correct (real) directory structure (e.g. the /usr/local/apache2/ or /etc/httpd....)? IIRC, when I built and installed Apache, I used the default directory suggestions.... > -- > If you insist on e-mailing me, use the reply-to address (it's real but > temporary). But please reply to the group, like you're supposed to. > > This message was sent without a virus, please delete some files yourself. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Tim wrote:
>> Have you let Red Hat 9 update Apache itself? (Yum, up2date, etc.) john.j.hudak@comcast.net posted: > The only updates I have done were to RH9, after it was installed. I > then installed Apache, and did no updates to it... And how did you install Apache? From the Red Hat 9 installation files, or from the Apache website, or both? I'd imagine that the Red Hat 9 supplied files would install to where I mentioned, and Apache supplied ones could be anything. john.j.hudak@comcast.net also previously posted: >>> The /etc/httpd/conf/httpd.conf file is read only, but it could be >>> changed to point to the intended htdocs (/usr/local/apache2/htdocs) >>> where I have my webpages...but, it seems that I should not have to. >> That's where mine is (the /etc one), on Red Hat 9.0 Linux and Fedora >> Core 3. One solution might be to make a link from one location to the >> other. > Thanks for the suggestion. I am sure that will work as long as RH9 > and/or Apache are not updated....but a question I have is: What is the > correct (real) directory structure (e.g. the /usr/local/apache2/ or > /etc/httpd....)? I don't think there is a *one* correct answer. But since Red Hat 9 Linux is discontinued, my guess would be to use what the Apache website offers, and hope that they're consistent in what they do for each subsequent update. I've already outlined mine, and that's the same for Red Hat 8 and 9 Linux, and Fedora Core 1, 2, & 3, so far... > IIRC, when I built and installed Apache, I used the default directory > suggestions.... Might be worth uninstalling the lot, and just install once from one location. Then hopefully you're not getting confused by two different things messing with each other. By the way, that message was really hard to read! If you're going to post through a poor new agent (like Google groups, apparently), PLEASE snip out extraneous stuff and leave blank lines between quotes and responses! -- If you insist on e-mailing me, use the reply-to address (it's real but temporary). But please reply to the group, like you're supposed to. This message was sent without a virus, please delete some files yourself. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Hi Tim:
Yes, it was through google...I just found the ng on my news server, so now I dont have to go through google.... Tim wrote: > Tim wrote: > > >>>Have you let Red Hat 9 update Apache itself? (Yum, up2date, etc.) > > > john.j.hudak@comcast.net posted: > > >>The only updates I have done were to RH9, after it was installed. I >>then installed Apache, and did no updates to it... > > > And how did you install Apache? From the Red Hat 9 installation files, or > from the Apache website, or both? I'd imagine that the Red Hat 9 supplied > files would install to where I mentioned, and Apache supplied ones could be > anything. I downloaded the latest/greatest from apache. According to in Apache install guide, unless I specified a specific directory, Apache installs in /usr/local/apache2 (the default, or PREFIX) as it is referred to in the install docs. I did look in the RH directories after I did the install and did not find any appache files...then again, I was not sure where to look...I basically tried to browse them all.... There should be an install log on RH9 but I don't know where it is... > > john.j.hudak@comcast.net also previously posted: > > >>>>The /etc/httpd/conf/httpd.conf file is read only, but it could be >>>>changed to point to the intended htdocs (/usr/local/apache2/htdocs) >>>>where I have my webpages...but, it seems that I should not have to. > > >>>That's where mine is (the /etc one), on Red Hat 9.0 Linux and Fedora >>>Core 3. One solution might be to make a link from one location to the >>>other. > > >>Thanks for the suggestion. I am sure that will work as long as RH9 >>and/or Apache are not updated....but a question I have is: What is the >>correct (real) directory structure (e.g. the /usr/local/apache2/ or >>/etc/httpd....)? > > > I don't think there is a *one* correct answer. But since Red Hat 9 Linux I suspect that as well...I just wanted to know what one(s) would be OK > is discontinued, my guess would be to use what the Apache website offers, > and hope that they're consistent in what they do for each subsequent > update. > > I've already outlined mine, and that's the same for Red Hat 8 and 9 Linux, > and Fedora Core 1, 2, & 3, so far... I know that RH9 is EOLed...Just out of curiosity, how is it 'upgraded'?... by installing FC x? Doing kernel compiles ala the older Slackware and Infomagic distributions? > > >>IIRC, when I built and installed Apache, I used the default directory >>suggestions.... > > > Might be worth uninstalling the lot, and just install once from one > location. Then hopefully you're not getting confused by two different > things messing with each other. > > By the way, that message was really hard to read! If you're going to post > through a poor new agent (like Google groups, apparently), PLEASE snip out > extraneous stuff and leave blank lines between quotes and responses! > I hope I fixed the message posting...thanks for your . BTW, I relocated my webpages to /var/www/html and things work just fine...but I still dont understand what happened to /usr/local/apache2....oh well... John |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Tim wrote:
>> And how did you install Apache? From the Red Hat 9 installation files, or >> from the Apache website, or both? I'd imagine that the Red Hat 9 supplied >> files would install to where I mentioned, and Apache supplied ones could be >> anything. John Hudak <jhudak@sei.cmu.edu> posted: > I downloaded the latest/greatest from apache. According to in Apache > install guide, unless I specified a specific directory, Apache installs > in /usr/local/apache2 (the default, or PREFIX) as it is referred to in > the install docs. > > I did look in the RH directories after I did the install and did not > find any appache files...then again, I was not sure where to look...I > basically tried to browse them all.... It's quite usual for Red Hat to install Apache, unless you pick a preconfigured option without it. For some damn annoying reason they've given the package a very generic RPM name (httpd) rather than what the program really is (as if there were only one HTTP daemon in the world). They've done the same with calling BIND, "NAMED". If you type "rpm -q httpd" (sans quotes) into a command line, you may find Apache pre-installed by Red Hat. I don't know how you've installed Apache from Apache themselves, but if it wasn't an RPM there's a very good chance that you've got it installed twice over. Typing "rpm -ql httpd" (sans quotes) into a command line should list all files installed by that package, and where they're located. Typing in "rpm -e httpd" (sans quotes, again), ought to remove Apache as installed by Red Hat. And if you'd installed Apache from source or a tarball, it ought to be left unmolested by this process. > There should be an install log on RH9 but I don't know where it is... You can see what's installed/updated via the up2date program in "/var/log/up2date", but installations by another method won't be logged there. There's an "rpmpkgs" file in the same directory listing RPM packages, but I don't know what writes it there (nor why). > I know that RH9 is EOLed...Just out of curiosity, how is it > 'upgraded'?... by installing FC x? Doing kernel compiles ala the older > Slackware and Infomagic distributions? You can continue to update Red Hat 9 Linux by using third party services (of which I can't recall the name). You can update from it by moving over to the Fedora Core project, or any other distribution. Though, I think if you're going to start compiling kernel packages, etc., you're probably best to go the whole hog and get kernels from the real source, likewise for other things (Xorg, Gnome, KDE, etc.) and roll your own system from scratch. > BTW, I relocated my webpages to /var/www/html and things work just > fine...but I still dont understand what happened to > /usr/local/apache2....oh well... I've only read a bit about installing Apache from scratch, I've taken the lazy route and used pre-compiled packages. -- If you insist on e-mailing me, use the reply-to address (it's real but temporary). But please reply to the group, like you're supposed to. This message was sent without a virus, please delete some files yourself. |
|
![]() |
| Outils de la discussion | |
|
|