Which version of Apache is actually running


 
Thread Tools Search this Thread
Operating Systems Solaris Which version of Apache is actually running
# 1  
Old 11-13-2011
Upgrade of Apache - old version still working

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....

Last edited by fjt1973; 11-13-2011 at 07:03 AM..
# 2  
Old 11-13-2011
How did you restart Apache? What command did you use? Post output of the following commands:
Code:
uname -a
cat /lib/svc/method/http-apache2

This User Gave Thanks to bartus11 For This Post:
# 3  
Old 11-13-2011
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

2. Solaris

Upgrade Apache to new version? Solaris 10, goal:PHP

Hello, I have been searching on unix.com and google in general. I can't find what I am looking for. Maybe too dumb of a question. I've downloaded and installed the sunfreeware package for PHP 5.3.6 and made sure all dependencies are satisfied. Apache 2.2.8 is currently installed and... (2 Replies)
Discussion started by: CSLibrary
2 Replies

3. HP-UX

Questions Regarding Upgrading To New Version Of Apache Web Server

In September 2010, HP released the following bulletin: Subject: End of Support Life for “Apache version 2.0 along with WSS version 2.x” on 11iv2 and 11iv3. Reference: http://www.hp.com/softwarereleases/releases-media2​/notices/082010Apache.pdf I have some questions about this... (4 Replies)
Discussion started by: Rob Sandifer
4 Replies

4. Web Development

How to keep process running after apache restart.

Hi, I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them in a way that they are not killed when I restart/stop apache ? $cmdstr = "nohup ".$config."/".$config."... (6 Replies)
Discussion started by: valiadi
6 Replies

5. Web Development

Apache - ModSSL (SSL Version?)

Does anyone know where Apache's use of SSL_VERSION_LIBRARY is defined and pulled from, in regard to headers? So far, I've tracked it down to mod_ssl. Which is fine, however, when I recompile mod_ssl with a new version of OpenSSL, and install the module, the request headers still report the old... (0 Replies)
Discussion started by: sun2ecliptic
0 Replies

6. UNIX for Advanced & Expert Users

how to know which version of PHP and apache is in my server?

Hi, How to get the version of php, apache and WebSphere instealled in my server. The OS is AIX. Thanks in advance. R R VARMA (1 Reply)
Discussion started by: RRVARMA
1 Replies

7. Solaris

Apache Version 2.2.9 to 2.2.8

. In early September, this year, I had an error message on my site that indicated the host had Apache HTTP Server Version 2.2.9. I assume that's what this means, yes? Then, about 2 or 3 days ago we received another error message that seemed to indicate the Apache Version is now... (2 Replies)
Discussion started by: MildMe
2 Replies

8. UNIX for Dummies Questions & Answers

How can you tell what version Apache your running?

I'm trying to figure out what version of Apache I have. Any suggestions??? Thanks in advance. (1 Reply)
Discussion started by: shorty
1 Replies

9. UNIX for Dummies Questions & Answers

running apache on unix

Hi, I am running an application on apache/tomcat under unix. It was working fine until I stopped both tomcat and apache and restarted both. Now I am getting 404 not found error. Is there something here that I am missing. Any help will be appreciatd. Thx Karthik (1 Reply)
Discussion started by: kkarthik
1 Replies

10. UNIX for Dummies Questions & Answers

what version # I am running

I was wondering if there was a command to tell what version# I am running? I know it tells you on start up I am running 5.1. But I thought there was a command to execute this also? Thanks (4 Replies)
Discussion started by: rocker40
4 Replies
Login or Register to Ask a Question