
|
View Full Version : apache is serving empty pages
striderfive 12-17-2002, 08:33 AM They have the opening and closeing html tags, but are effectivly blank.
It's running on a Redhat 7.2 platform, I've re-installed apache many times trying to solve this, RPM and compiled versions. So I guess the question is, where would you start? I'm a linux newbie, so it may be something stupid. I've scoured the net for days trying to solve this, please send some tips.
thanks,
Will
Is that html pages? cgi? php?
what does the error_log say?
striderfive 12-17-2002, 09:16 AM There are no errors in the error log.
The only error I have seen is Webmin can't start it, it has in error in a file called magic, an apache mod script or something.
And yes it is an html page that Apache is serving(default docs, default server, default ports), but instead of serving the document I'm pointing it to, it just serves a blank page.
I've not configured php into it yet, so I don't think that's the problem, I sure could be wrong though.
I'm looking for any clues as to where to look. I just have no direction at the moment. Aside from I think it's apache that is the problem.
Will
PS. Just point your browser here to see what it's doing: xx.xx.xx.xx Nothing but a blank page, you can read some source though.
I might be able to help you. but I need to check your server. contact me offline if you're interested.
bitel.biz 12-19-2002, 05:22 AM I think your problem is in mod_gzip. You are probably loading this module and if it's not configured properly, it will serve blank pages.
Try to disable this module in your httpd.conf and see if that helps.
striderfive 12-19-2002, 06:01 AM hmm
thanks for the tip, I will keep it in mind. I have disabled all mods useing Webmin. Apache starts from the cammand prompt now with no errors, but isn't serving at all. It won't start from Webmin, spits out all of the config files, magic in particular. (errors out when it hits anything not remmed)
bitel.biz 12-19-2002, 08:17 AM hmmm.. strange. You said that you have reinstalled apache many times, but have you removed your old config files from /etc/httpd too? I'm not quite sure but I think when you uninstall apache, it won't delete the config files from /etc and when you reinstall it will probably use your old (probably broken) config files.
I would recommend:
1. uninstall apache (rpm -e apache*)
2. rm -rf /etc/httpd
3. uninstall webmin (rpm -e webmin*)
4. rm -rf /etc/webmin
5. install apache
6. install webmin
7. update webmin through the "webmin update option"
The default apache config should work. I could do this for you if it sounds too complicated.
striderfive 12-19-2002, 08:29 AM I'm haveing a little luck at the moment, I located an old apache 1.3 rpm, it installs and sort of works. I would rather use apache 2, but neither the built or the rpm for it will work.
A side note to this, the rpm of apache 2 wants libc.so.6 from glibc_2.3. I could not locate a glib for redhat 7.2 that is so new. I did install some older glibs though, and still apache2 rpm asks for that dep. And the server won't work if you --nodep past that modul.
Apparently the compiled version of apache 2 also requires this module (libc.so.6) or an equivilint, and that might be why it doesn't work.
I hate settleing for an old 1.3 version of apache, but it might have to work untill i can get a handle on this glib stuff. (glib has about 10 million dependencies on it, so i have no idea how to rip it all out and update it. (i'm a linux newbie)
At anyrate, thanks for the tips guys. Anyone have words of wisdom on how to update a system with stacks of rpms like glib and god knows what that are outdated?
bitel.biz 12-19-2002, 08:52 AM libc.so.6 is provided by glibc-debug-2.2.5-34.i386.rpm
here is the download link for RH 7.3
ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/glibc-debug-2.2.5-34.i386.rpm
ooups, your RH was 7.2, sorry for the wrong link. I checked rpmfind.net and I found this one to be the latest updated rpm for RH7.2 to provide libc.so.6
ftp://rpmfind.net/linux/redhat/updates/7.2/en/os/i386/glibc-2.2.4-31.i386.rpm
I don't know if it will work since it is 2.2.4 not 2.3. You'll have to try.
striderfive 12-19-2002, 09:14 AM thanks for the link, I downloaded it, but when i tried to rpm it i got:
error: failed dependencies
glibc =2.2.5-42 is needed by glibc-debug-2.2.5-42
glibc-devel = 2.2.5-42 is needed by glibc-debug-2.2.5-42
and when i do a
rpm -ivh glibc-2.3.1-13.i386.rpm (to update glibc) i get errors and conflicts out the wazoo from the older glibc.
I'm trying different glib stuff now, but I may have to wait untill I have a solid understanding of linux to deal with this.
bitel.biz 12-19-2002, 09:25 AM This will update your glibc:
wget ftp://rpmfind.net/linux/redhat/updates/7.2/en/os/i386/glibc*
rpm -Fvh glibc*
Please check your PM and reply
striderfive 12-19-2002, 09:37 AM I probebly need that for future projects :-)
I just did get apache 2 up and running though! I just kept screwing with those glibs, especialy that one with lib.so.6 in it. (thanks for sending me that, I've downloaded a dozen glibcs which claimed to have that file, but non did till this one.) And finely it all went into place enough that apache 2 RPM will install.
You guys rock, thanks for the help. :-)
I'm on to setting up users and virtual servers now, but that is for
another day.
William
striderfive.mail.ru
bitel.biz 12-19-2002, 09:56 AM I'm glad you fixed it.
And whenever you need to find which libraries or objects are in which rpm, just use the serach option on http://rpmfind.net
|