Just Upgraded to Apache 1.3.24 and It Won't Start!
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.
Just Upgraded to Apache 1.3.24 and It Won't Start!
I just upgraded my server running Red Hat 7.2 from Apache 1.3.20 to Apache 1.3.24 and for some reason it won't start. Here's what happens when I try to restart httpd:
[root@domain /]# /etc/rc.d/init.d/httpd start
Starting httpd: [Sat Jun 8 14:22:13 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[ OK ]
[root@domain /]
Does anybody know what I need to do to fix this? I compiled it into /usr/local/apache.
Before I upgrade Apache it was working fine so I'm hoping its just something simple.
Thanks,
John
Last edited by John_Saunders; 06-08-2002 at 01:26 PM.
Hi Mara......unfortunately, for me it doesn't seem to be working. My web pages aren't coming up and it keeps showing up in Webmin to 'Start Apache' instead of Restart.
I also tried changing the DocumentRoot to /var/www/html instead of /usr/local/apache in the httpd.conf file but that didn't help. Which setting is correct?
Look it it's running using ps. If it is, but does not allow to connect, it's configuration problem (directory for apache). But if there's no httpd running, there's something more than it's writing. Look into /var/log/httpd for logs. Maybe there's something more.
BTW in my httpd.conf there's
NameVirtualHost 192.168.1
(This machine has local ip 192.168.1.1)
Here's a copy of the last few lines in my error log:
[Sat Jun 8 13:58:46 2002] [error] (88)Socket operation on non-socket: accept: (client socket)
[Sat Jun 8 13:58:46 2002] [error] (88)Socket operation on non-socket: accept: (client socket)
[Sat Jun 8 13:58:46 2002] [error] (88)Socket operation on non-socket: accept: (client socket)
[Sat Jun 8 13:58:46 2002] [notice] caught SIGTERM, shutting down
[Sat Jun 8 14:01:04 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[Sat Jun 8 14:01:05 2002] [crit] (98)Address already in use: make_sock: could not bind to port 209
[Sat Jun 8 14:02:55 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[Sat Jun 8 14:02:55 2002] [crit] (98)Address already in use: make_sock: could not bind to port 209
[Sat Jun 8 14:14:29 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[Sat Jun 8 14:14:29 2002] [crit] (98)Address already in use: make_sock: could not bind to port 209
[Sat Jun 8 14:22:26 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[Sat Jun 8 14:22:26 2002] [crit] (98)Address already in use: make_sock: could not bind to port 209
[Sat Jun 8 14:38:43 2002] [warn] NameVirtualHost MYIPADDRESS:80 has no VirtualHosts
[Sat Jun 8 14:38:43 2002] [crit] (98)Address already in use: make_sock: could not bind to port 209
There's also at least a hundred lines of those (88)Socket operation errors as well.
Does this tell you anything as to why it isn't working?
I just figured out the problem. In one of my DNS configurations I had tried to point a domain name to an IP address that was assigned to another server. Apparantly, that was what was keeping it from starting. After I removed it, it started right up!
I just checked to see which version of Apache is running and it is saying 1.3.20 when I had just 1.3.24. I even tried restarting and it still didn't change.
Any ideas why it didn't update to the one I just compiled?
/etc/rc.d/init.d/httpd
It's a script. Usually quite long. So make a backup copy before editing. What you need is to replace /usr/sbin/httpd with the right path.
I changed the path from /usr/sbin/httpd to /usr/local/apache/bin/httpd and after I restarted I went to the script I'm using, perldiver.pl, to show what the server is running. It came up with a 404 error and said 'Not Found
The requested URL /cgi-bin/perldiver.pl was not found on this server.
So it's picking up the correct version, but when I tried to start Apache in Webmin it came up with this:
Failed to start apache :
Starting httpd: [60G[ [1;32mOK[0;39m ]
I changed this section in the /etc/rc.d/init.d/httpd file and it appears to be why it won't start:
# Path to the httpd binary.
httpd=/usr/local/apache/bin/httpd
prog=httpd
RETVAL=0
When I changed it back to /usr/sbin/httpd, it started.
Just in case one of my settings in the Module Config section of Apache in Webmin may be causing the problem, I thought I'd list them:
Apache server root directory: /etc/httpd
Path to httpd executable /usr/local/apache/bin/httpd
Path to the apachectl command None
Command to start apache /etc/rc.d/init.d/httpd start
Command to stop apache /etc/rc.d/init.d/httpd stop
Display virtual servers as Icons
Order virtual servers by Server name
Maximum number of servers to display 100
Path to httpd.conf Automatic
Path to srm.conf Automatic
Path to access.conf Automatic
Path to mime.types /etc/mime.types
File to add virtual servers to httpd.conf
Test config file before applying changes? Yes
Do you have any other ideas?
Last edited by John_Saunders; 06-10-2002 at 09:27 AM.
Can you browse static pages?
If yes, there's one thing left - in /etc/httpd there is a directory "modules". It's a symlink. Mine is to /usr/lib/apache. You need to change this symlink to /usr/local/apache/lib (I'm not sure where is it in your case, but it'll be something similar).
[error] (88)Socket operation on non-socket: accept: (client socket) SOLUTION
for the issue of error logs generating: [error] (88)Socket operation on non-socket: accept: (client socket)
I have deleted any httpd.conf directives using LISTEN on <IP address> and the server started gracefully !!!
Please try that as you will probably see that the problem is Webmin is putting in that line for you under some circumstances that I don't know why ... maybe just in the .990 release !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.