Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OS: red hat 5.5.
I downloaded and installed httpd-2.2.17 in /usr/local/apache2
Now, when I try to do service httpd start or stop or restart, it says:
Code:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
I searched internet. Found a possible solution: Changed some entries inside /etc/rc.d/init.d/httpd.conf file
When I type http://localhost, it says "It works"-- that means the new (2.2.17) is alive and kicking. Isn't it so?
I know that my red had has httpd package installed and that one is doing something sinister.
I prefer to leave it alone because I don't have sufficient skill to remove it (dependency issues).
What I want to do is configure Apache in such a way that only the apache in /usr/local/apache2 is started when the server is started and that is the one and the only one when it comes to http(d).
I have added export PATH=/usr/local/apache2/bin:$PATH to .bashrc.
What I want to do is configure Apache in such a way that only the apache in /usr/local/apache2 is started when the server is started and that is the one and the only one when it comes to http(d).
In that case, the modification that you made to init.d/httpd will be sufficient to make the new apache start up when called.
So, what is the problem here? I guess i'm not understanding.
I know that my red had has httpd package installed and that one is doing something sinister.
sinister???? like what ? writing logs to /var/log
why not use the httpd that rhel5.5 has already installed ?
AND configured and is stable
you ARE paying red hat for there VERY stable platform
you ARE paying for the updates
szboardstretcher:
Thank you for the comments.
The problem is when I try to do service httpd start or stop or restart, it says:
Quote:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
My guess is the red hat's http is (also running? or ) using the port 80, which I want my downloaded version to use. My understanding is that When I start server for the first time, it IS running the downloaded version. But when I type service httpd restart or stop, I get the error.
I mean the red hat's apache is occupying port 80, which I want to use for the http that I downloaded.
Quote:
why not use the httpd that rhel5.5 has already installed ?
AND configured and is stable
you ARE paying red hat for there VERY stable platform
you ARE paying for the updates
so why not use what you are paying for ?
I only have the license, customer support is not included. (I do have redhat account and a reminder always reminds me that updates are available.. but they always fail because some kind of dependency issue. I think my linux is not configured properly... for update but this is for another topic.)
I wanted to customize the apache. For example, at configure time, I did
Now, I don't know if I could do what I wanted to do (enable reverse-proxy related modules at build time) with the one that came bundled. My superiors told me to download and compile on my own and I did-- not blaming them but this is how I arrived here.
Some posts suggested that I change listening port to 81 instead of 80 in httpd file, and I did that, but I didn't see any change.
IF you are going to compile from source grab the RH source rpm (src) and extract out the spec file. This will tell you all the tricks and patches RH had to use in order to get the application to run properly.
IF you are going to compile from source grab the RH source rpm (src) and extract out the spec file. This will tell you all the tricks and patches RH had to use in order to get the application to run properly.
Lazlow: If I had that kind of skill, I would probably not have had this problem to begin with.
I will try to use groupremove and see if it works.
I would agree JohnVV. I think you have RHET apache installed and possible running. Try running
service httpd status
If you configure apache from source then you need to read the documentaion with your apache source code.
Anyways besure to check your ports here
$less /etc/services
That files holds the port numbers. Look for port 80 and see what you figure out. if you still have your source code and already configure you might want to cd to the directory and run "# make uninstall"
jmc1987: Thanks for the comments. I will come back to you later.
I want to ask John VV:
Quote:
if you put apache someplace else USE THAT httpd.conf
httpd.conf, ok, I understand that I need to edit the one that I installed at /usr/local/apache2.
But isn't httpd is a different file than httpd.conf?
I mean, I need something (a 2service2 file) inside /init.d, so that http daemon is automatically started?
without using the redhat rpm YOU need to manually configure EVERYTHING
read the apache docs
well STUDY them
step 1
as if this is a class and the only grade is the final exam
the web site IS the final exam
so read ,reread , jot down some notes , reread ,rewrite the notes
write a outline ( think of installing as a term paper ) for the install instructions
write your own instructions .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.