You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zen Kato <ze...@zm.commufa.jp> on 2007/09/22 02:58:59 UTC

[users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

I installed F7 and then upgraded to

[zenkato@m5n ~]$ uname -ipr
2.6.22.5-76.fc7 i686 i386
[zenkato@m5n ~]$ httpd -v
Server version: Apache/2.2.6 (Unix)
Server built:   Sep 18 2007 09:40:44

When I did:

apache-version.php
==================
<?php
echo apache_get_version();
echo "<br />";
echo $_SERVER['SERVER_SOFTWARE'];
?>

http://localhost/apache-version.php
-----------------------
Apache/2.2.0 (Fedora)
Apache/2.2.0 (Fedora)
------------------------

$_SERVER['SERVER_SOFTWARE'] always shows:

Apache/2.2.0 (Fedora)

/var/log/httpd/error_log shows as follows:

[Fri Sep 21 22:54:16 2007] [notice] Apache/2.2.6 (Unix) 
DAV/2 mod_auth_kerb/5.3 mod_ssl/2.2.6 OpenSSL/0.9.8b 
Apache/2.2.0 (Fedora) PHP/5.2.4 mod_python/3.3.1 
Python/2.5 mod_apreq2-20051231/2.6.1 mod_perl/2.0.3 Perl/v5.8.8 
configured -- resuming normal operations

There are two Apache versions such as Apache/2.2.6 (Unix) and
Apache/2.2.0 (Fedora) which comes from 'httpd start'.

I would like to correct this phenomenon, but how should
I do?

Regards,

Zen

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

Posted by Rikard Bosnjakovic <ri...@gmail.com>.
On 22/09/2007, Vincent Bray <no...@gmail.com> wrote:

> That's perfectly normal behaviour for apache.

I'm very well aware of that, but regarding OP's problem this is to be
the most likely error source. The old apache running while upgrading
the server and then starting a new one from the same path.


-- 
- Rikard - http://bos.hack.org/cv/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

Posted by Vincent Bray <no...@gmail.com>.
On 22/09/2007, Rikard Bosnjakovic <ri...@gmail.com> wrote:
> On 22/09/2007, Zen Kato <ze...@zm.commufa.jp> wrote:
>
> > [zenkato@m5n ~]$ ps auxww|grep httpd
> > root      2090  0.0  4.3 103260 21852 ?        Ss   13:59   0:00 /usr/sbin/httpd
> > apache    2200  0.0  0.7  24868  3908 ?        S    14:00   0:00 /usr/sbin/httpd
>
> These are different. I bet that either of these is the old
> 2.2.0-version which simply still resides in your system.

No, they're not different. One is the parent process which continues
to run as root and the others are the workers which run as the User
user. That's perfectly normal behaviour for apache.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

Posted by Rikard Bosnjakovic <ri...@gmail.com>.
On 22/09/2007, Zen Kato <ze...@zm.commufa.jp> wrote:

> [zenkato@m5n ~]$ ps auxww|grep httpd
> root      2090  0.0  4.3 103260 21852 ?        Ss   13:59   0:00 /usr/sbin/httpd
> apache    2200  0.0  0.7  24868  3908 ?        S    14:00   0:00 /usr/sbin/httpd

These are different. I bet that either of these is the old
2.2.0-version which simply still resides in your system.

Do a "killall -9 httpd" and then "httpd -k start", then it should work.

-- 
- Rikard - http://bos.hack.org/cv/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

Posted by Zen Kato <ze...@zm.commufa.jp>.
> > I installed F7 and then upgraded to
> 
> .. to what?

After fresh install F7 from CD, I did # yum update.

Before the fresh installation of F7, I had upgraded this PC 
from FC5 to F7. This system showed Apache/2.2.0 in spite of 
httpd-2.2.2-1.3 on FC5. I expected to be corrected it by upgrading 
from FC5 to F7. Fresh install F7 and upgrding from FC5 to F7 are 
the same results. 

> 
> Are you sure you don't have two versions of apache installed, one in
> your path and the other in root's?

On F7 I have never installed Apache/2.2.0.

> 
> I'd suggest running `which httpd` to see there the 2.2.6 binary is,
> and `px auxww` to see where the running one is. If they're the same,

[zenkato@m5n ~]$ which httpd
/usr/sbin/httpd

[zenkato@m5n ~]$ ps auxww|grep httpd
root      2090  0.0  4.3 103260 21852 ?        Ss   13:59   0:00 /usr/sbin/httpd
apache    2200  0.0  0.7  24868  3908 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2440  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2441  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2442  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2443  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2444  0.0  1.6 103264  8540 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2445  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2446  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
apache    2447  0.0  1.6 103264  8536 ?        S    14:00   0:00 /usr/sbin/httpd
zenkato   3245  0.0  0.1   5096   800 pts/2    S+   15:53   0:00 grep httpd

Regards,

Zen

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] wrong apache version shown from $_SERVER['SERVER_SOFTWARE'] on Fedora 7

Posted by Vincent Bray <no...@gmail.com>.
On 22/09/2007, Zen Kato <ze...@zm.commufa.jp> wrote:
> I installed F7 and then upgraded to

.. to what?

Are you sure you don't have two versions of apache installed, one in
your path and the other in root's?

I'd suggest running `which httpd` to see there the 2.2.6 binary is,
and `px auxww` to see where the running one is. If they're the same,
I'd tend to blame fedora/red hat's policy of backporting security and
bug fixes without changing major versions, though I'd be surprised if
they screwed things up this badly.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org