Which version of Apache is actually running

Hi Guys & Gals....

First of all thanks for the help with your previous postings a lot of questions answered without having to post one myself

However, here is my first post.

I've just done a fresh install of Solaris 10 and upgraded the version of Apache via the impatient version of upgrading Apache to 2.2.21

I have the existing version....

# cd /usr/apache2/bin/
# ./httpd -v
Server version: Apache/2.0.63
Server built: Jan 18 2009 15:51:05

And the version upgraded too

# cd /usr/local/apache2/bin/
# ./httpd -v
Server version: Apache/2.2.21 (Unix)
Server built: Nov 12 2011 22:44:36

Anyway after a number of issues with configuration files last night and a reboot my Apache is online and serving the default internet pages.

online 9:00:40 svc:/network/http:apache2

However, which version is actually doing the job?

So I thought I know I will just rename one the httpd.conf files and restart the Apache Service...... anyway I am now stuck in Maintainance

svc:/network/http:apache2 (Apache 2 HTTP server)
State: maintenance since 13 November 2011 10:06:24 GMT
Reason: Method failed.
See: <wont allow me to post URL until I have 5 posts>
See: httpd(8)
See: /var/svc/log/network-http:apache2.log

So from the log......

[ Nov 12 23:34:22 Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down

The Above is from the httpd.conf file in the etc/apache2 path (original installation)

[ Nov 13 10:21:51 Leaving maintenance because disable requested. ]
[ Nov 13 10:21:51 Disabled. ]
[ Nov 13 10:22:35 Enabled. ]
[ Nov 13 10:22:35 Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[ Nov 13 10:22:35 Method "start" exited with status 1 ]
[ Nov 13 10:22:35 Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[ Nov 13 10:22:35 Method "start" exited with status 1 ]
[ Nov 13 10:22:35 Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[ Nov 13 10:22:36 Method "start" exited with status 1 ]

The Above is from the httpd.conf file in the /usr/local/apache2 path (new installation)

Anyway another reboot (drastic I know) it's working again......

So instead I just stick my own index.html doc in htdocs and it appears that original installation is working not the upgraded version

So by the look of it we have a clash between the two versions of Apache - how /why?

How can I stop this?

How do I go about getting the upgraded version working....

How did you restart Apache? What command did you use? Post output of the following commands:

uname -a
cat /lib/svc/method/http-apache2
1 Like

As soon I seen the output off cat /lib/svc/method/http-apache2 i spotted the problem, Nail on Head..... I think it must be because it's a Sunday Morning.

Changed from

APACHE_HOME=/usr/apache2
CONF_FILE=/etc/apache2/httpd.conf

to

APACHE_HOME=/usr/local/apache2
CONF_FILE=/usr/local/apache2/httpd.conf

And now working as it should

Thanks