Apache 2 bugged! (does not work on Centos)
Apache 2 bugged! (does not work on Centos)
ok so I'm learning Linux & now trying to setup an Apache server (not for practical purposes, just see how it works)
I installed Apache 2 from source - with 'config', 'make' & 'make install'
(by the way why don't they put the "make" & "make install" command into a single command, since the two always seem to go together. go figure. guess they just like to make things complicated)
so anyway I followed instructions to a T
then I started the server (with apachectl command). ps showed a bunch of httpd processes running so I figure this means everything's ok
so I tried to test this from another machine on the SAME lan (192.168.0.2)
from this machine, I can PING the centos/apache server by its IP (192.168.0.254) which means it's reachable, so no network problem
but when I open a browser from same machine & enter http ://192.168.0.254, browser can't reach no page (yet there should be a default page or something, to show that apache works, that's what instructions say to test it)
=> current Apache is bugged. just wanted to warn everyone
I installed Apache 2 from source - with 'config', 'make' & 'make install'
(by the way why don't they put the "make" & "make install" command into a single command, since the two always seem to go together. go figure. guess they just like to make things complicated)
so anyway I followed instructions to a T
then I started the server (with apachectl command). ps showed a bunch of httpd processes running so I figure this means everything's ok
so I tried to test this from another machine on the SAME lan (192.168.0.2)
from this machine, I can PING the centos/apache server by its IP (192.168.0.254) which means it's reachable, so no network problem
but when I open a browser from same machine & enter http ://192.168.0.254, browser can't reach no page (yet there should be a default page or something, to show that apache works, that's what instructions say to test it)
=> current Apache is bugged. just wanted to warn everyone
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Apache 2 bugged! (does not work on Centos)
Welcome to CentOS
New users need to read
http://www.centos.org/modules/newbb/viewforum.php?forum=47
You are going to have more problems than that.
Do NOT compile your own programs.
Remove everything you have done and then do:
yum install httpd
New users need to read
http://www.centos.org/modules/newbb/viewforum.php?forum=47
You are going to have more problems than that.
Do NOT compile your own programs.
Remove everything you have done and then do:
yum install httpd
Re: Apache 2 bugged! (does not work on Centos)
damn that sucks :(
but they're not "my own" programs, just the source (in tarball) which I downloaded from apache site itself
if their source stuff is bugged then why do they make it available for download?
but they're not "my own" programs, just the source (in tarball) which I downloaded from apache site itself
if their source stuff is bugged then why do they make it available for download?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Apache 2 bugged! (does not work on Centos)
[b]Please[/b] cease and desist with the alarmist Subjects.
The recommended reading will educate you about [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url], the evils of [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url], and the available [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url]. Note the warnings and advice about installing and configuring the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url] if using 3rd party repos. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.
The recommended reading will educate you about [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url], the evils of [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url], and the available [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url]. Note the warnings and advice about installing and configuring the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url] if using 3rd party repos. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.
Re: Apache 2 bugged! (does not work on Centos)
ok I read this but I didnt understand much :(
like, in the "contra" section they talk about 'security updates' & 'latest versions', but what's that got to do with my problem? I dont care about having latest version, I just wanna have an apache that works. Bill Oreilly's books says how to install from source & they're *supposed* to be good books......
anyway...if I want apache with openssl & mysql & php support, what options do I add to yum?
do I yum-install each separately, but then, how do I tell centos that I want all these things to work together? (LAMP, they call it)
also, where's the Linux registry (or whatever it's called, to keep track of installed apps)?
like, in the "contra" section they talk about 'security updates' & 'latest versions', but what's that got to do with my problem? I dont care about having latest version, I just wanna have an apache that works. Bill Oreilly's books says how to install from source & they're *supposed* to be good books......
anyway...if I want apache with openssl & mysql & php support, what options do I add to yum?
do I yum-install each separately, but then, how do I tell centos that I want all these things to work together? (LAMP, they call it)
also, where's the Linux registry (or whatever it's called, to keep track of installed apps)?
Re: Apache 2 bugged! (does not work on Centos)
^ anyway
I restored a previous snapshot of the centos machine (without apache) & ran 'yum install httpd'
then I run apachectl
=> exactly same prob, no page shows when I try browsing from another machine (but I can still ping the server)
I restored a previous snapshot of the centos machine (without apache) & ran 'yum install httpd'
then I run apachectl
=> exactly same prob, no page shows when I try browsing from another machine (but I can still ping the server)
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Apache 2 bugged! (does not work on Centos)
Read the deployment guide:
http://www.centos.org/docs/5/
You need to start the service.
service httpd start
To make it start at boot:
chkconfig httpd on
http://www.centos.org/docs/5/
You need to start the service.
service httpd start
To make it start at boot:
chkconfig httpd on
Re: Apache 2 bugged! (does not work on Centos)
done
starting the service with 'service httpd start' seems to have same effect as 'apachectl start'
anyway still no effect, httpd is up & running, but browser access from distant machine STILL fails! (I tried both Firefox & IE. FF says "unable to connect can't establish a connection" and IE says "cannot display webpage". it's like I'm trying to reach a non-existent IP)
pschaff> I may have been right about the bug after all!
starting the service with 'service httpd start' seems to have same effect as 'apachectl start'
anyway still no effect, httpd is up & running, but browser access from distant machine STILL fails! (I tried both Firefox & IE. FF says "unable to connect can't establish a connection" and IE says "cannot display webpage". it's like I'm trying to reach a non-existent IP)
pschaff> I may have been right about the bug after all!
Re: Apache 2 bugged! (does not work on Centos)
Did you open the firewall to allow inbound http requests?
If something like this does not work when thousands of others are using it then your first suspicion should be that the problem lies between the keyboard and the chair :lol:
If something like this does not work when thousands of others are using it then your first suspicion should be that the problem lies between the keyboard and the chair :lol:
Re: Apache 2 bugged! (does not work on Centos)
firewall??? what firewall?
in windows I just click the icon & shut it off, but here it's command line...I don't even know if there's a firewall running, or what firewall it is (ipcop? iptables? netfilter? there's so many out there)
btw. this is centos minimal install CD
[quote]If something like this does not work when thousands of others are using it then your first suspicion should be that the problem lies [b]between the keyboard and the chair[/b] :lol:[/quote]I use a gel armrest but last time I checked there's nothing wrong with it ^_^
in windows I just click the icon & shut it off, but here it's command line...I don't even know if there's a firewall running, or what firewall it is (ipcop? iptables? netfilter? there's so many out there)
btw. this is centos minimal install CD
[quote]If something like this does not work when thousands of others are using it then your first suspicion should be that the problem lies [b]between the keyboard and the chair[/b] :lol:[/quote]I use a gel armrest but last time I checked there's nothing wrong with it ^_^