Bug 64439 - Apache Service Monitor does not update status bar text after restart
Summary: Apache Service Monitor does not update status bar text after restart
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: support (show other bugs)
Version: 2.4.43
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2020-05-14 11:33 UTC by SilverWoodchuck47
Modified: 2020-05-16 20:43 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description SilverWoodchuck47 2020-05-14 11:33:08 UTC
Steps to reproduce:
1. Open the Apache Service Monitor.  Ensure that Apache is running.
2. Note the status bar text.  In my case: Apache/2.4.43 (Win32) PHP/7.4.5
3. Update PHP from 7.4.5 to 7.4.6 while Apache is running.
4. In the Apache Service Monitor, click the Restart button.  
5. Note that the status bar text is unchanged (which is incorrect).
6. In the Apache Service Monitor, click OK.
7. In the System Tray, right-click Apache Service Monitor icon, then select Open Apache Monitor.
8. Note that the status bar text now reads Apache/2.4.43 (Win32) PHP/7.4.6

Expected result
* After a successful restart, the status bar text updates itself.

Actual result
* After a successful restart, the status bar text does not update itself.

This behavior is present at least since Apache 2.4.20, and it doesn't matter which PHP version you change from.
Comment 1 Giovanni Bechis 2020-05-16 17:46:11 UTC
I think this wrong behaviour is related to the software you are using that bundles Apache and Php.
There is no gui in official Apache httpd Windows builds.
Comment 2 SilverWoodchuck47 2020-05-16 18:00:24 UTC
I installed Apache with an Apache download (httpd-2.4.43-win32-VS16.zip), then install php (php-7.4.6-Win32-vc15-x86.zip) separately because I like the pain of installing them myself and getting them to work.

The GUI I refer to is "..\Apache24\bin\ApacheMonitor.exe" which is part of the Apache zip file.

Is it your recommendation that I report bug this to those who build the Windows version of Apache?
Comment 3 Giovanni Bechis 2020-05-16 18:22:39 UTC
The bug report is correct I think ApacheMonitor did not detect properly the process restart.
Do you have always this misbehaviour or just when changing php version ?
Comment 4 SilverWoodchuck47 2020-05-16 20:10:10 UTC
The behavior definitely occurs when I upgrade PHP. 

The key to observing the behavior is to neither close nor minimize the monitor during the PHP upgrade.
Comment 5 SilverWoodchuck47 2020-05-16 20:43:19 UTC
I observe the behavior after an Apache upgrade. I observe the behavior after a PHP upgrade. I did the upgrades to Apache and to PHP separately. This has been going on since PHP 5 and every time I've upgraded Apache server since 2.4.20.

It's clear that the upgrades work, it's just that the status bar text does not change after a start.  

Details: I stopped Apache (2.4.41) server, then just copied the files for 2.4.43 from the zip to where Apache is stored on my hard drive.  

Of course, ApacheMonitor.exe can't be replaced while it's running. So I didn't replace that file. 

So I started (not restarted) Apache with the unreplaced ApacheMonitor and noticed that the status bar text remained the same (Apache/2.4.41 (Win32) PHP/7.4.6).  I know it's incorrect because I then refreshed my admin web page that shows the result of "echo $_SERVER['SERVER_SOFTWARE'];" , which showed me the correct Apache and PHP version "Apache/2.4.43 (Win32) PHP/7.4.6". 

Then when I minimized and opened ApacheMonitor, the status bar updated itself correctly.