I upgraded apache but new version doesn't appear in Wamp tray
Posted by: rober100 (---.digimobil.es)
Date: July 23, 2025 11:07PM

1 - Windows server 16 64 bit
2 - WampServer 3.3.8 64 bit
3 - Apache 2.2.46 -> trying to update to 2.2.64
4 - PHP 8.3
5 - MySQL 5.7.31
5a - MariaDB 10.4.13
6 - WampServer icon green
7 - In the file c:\Windows\System32\drivers\etc\hosts -> not related to the problem
8 - Do you have access to localhost -> yes
8a - If so, is there an error message at the bottom of the page -> no
9 - Do you have access to phpMyAdmin? -> yes
10 - mo error message
11 - If you use an Antivirus and / or Firewall -> windows defender
12 - What is the full path to the installation of WampServer -> C:\Wamp\
13 - If you have one or more Virtual Hosts defined, please show their definition(s) -> not related

Summary
windows server 16 - Wampserver 3.3.8 - Tray Menu Manager 3.2.7.1 - php 8.3

Problem
I installed apache 2.4.64 with the wamp installer wampserver3_x64_addon_apache2.4.64.exe but the new version doesn't appear in Wamp tray, only the previous one, 2.2.46.

Files are present here C:\Wamp\bin\apache\apache2.4.64 after installation

I tried to reinstall apache2.4.64 and Tray Menu Manager, rebooted and the problem persists.

I tinkered with wampmanager.conf and wampmanager.ini guided by an AI but no dice.

Before I tried online, I tested with my offline installation and everything went fine.

Options: ReplyQuote
Re: I upgraded apache but new version doesn't appear in Wamp tray
Posted by: rober100 (---.digimobil.es)
Date: July 24, 2025 12:44AM

Subject: Apache 2.4.64 not detected by WAMP tray menu — Installed and registered, but ignored

AI report;

System Details:
- OS: Windows Server 2016
- Wampserver: 3.3.8 (64-bit)
- Tray Menu Manager: 3.2.7.1
- Apache version installed: 2.4.64 (via official WAMP addon)
- PHP version: 8.3.23
- Visual C++ Redistributables: All required versions up to date (per WAMP documentation)

Summary of Issue:
Apache 2.4.64 was installed correctly using the official WAMP addon. It appears in the correct folder:
C:\Wamp\bin\apache\apache2.4.64
with all required files:
• wampserver.conf
• wampdefineapache.conf

The service "wampapache64" is successfully registered and verified running. Manual execution of httpd.exe from the Apache 2.4.64 bin folder confirms that the new version works. Despite all this, WAMP's tray menu refuses to list Apache 2.4.64 as an available version.

Attempts to troubleshoot tray menu detection:

1. Reinstalled Apache 2.4.64 addon (twice)
2. Reinstalled Tray Menu Manager 3.2.7.1
3. Rebooted system and restarted all services
4. Verified that other installed versions (e.g., 2.4.46) continue to work normally
5. Checked folder structure, permissions, and validity of wampserver.conf
6. Renamed apache folder temporarily to force reindexing (e.g., apache2.4.64-bak → apache2.4.64) — no change
7. Tried manually registering a separate service with a new name (e.g., wampapache64_dev) — works manually, not reflected in tray menu
8. Verified that apache_error.log shows only expected traffic and warnings — no critical failures or startup errors

Advanced Debugging — AI-led Research:

User attempted to run WAMP’s internal refresh script manually:
C:\Wamp\bin\php\php8.3.23\php.exe C:\Wamp\scripts\refresh.php

This led to multiple fatal errors:

- `$wampserverIniFile` is undefined before being used in `file_get_contents()`, causing:
→ Warning: Failed to open stream: No such file or directory

- `file_get_contents_dos()` function is called, but not defined anywhere — results in:
→ Fatal error: Call to undefined function file_get_contents_dos()

- `listDir()` function is called inside refreshVerifyFiles.php, but is also undefined:
→ Fatal error: Call to undefined function listDir()

Attempts to patch those functions manually (adding includes or stubs) triggered cascading errors. At this point, editing WAMP core scripts became impractical — it risks breaking other subsystems and goes far beyond normal end-user responsibility.

Conclusion:
Apache 2.4.64 is installed and working correctly, but WAMP tray menu fails to register it due to broken indexing logic. The refresh mechanism relies on undocumented or undefined helper functions that cause execution failure. Manual repairs lead to instability and are not a safe or viable solution for typical users.

Recommendation:
This bug should be reviewed by WAMP developers. The addon installation process or refresh/indexing logic needs to be corrected so that Apache versions are registered cleanly and reliably without requiring manual script modification. Tray menu functionality should reflect all installed versions as intended.

Thank you.

Options: ReplyQuote
Re: I upgraded apache but new version doesn't appear in Wamp tray
Posted by: Otomatic (Moderator)
Date: July 24, 2025 09:00AM

Hi,

$wampserverIniFile is defined in config.inc.php line 18:
$wampserverIniFile = $c_installDir.'/wampmanager.ini';

file_get_contents_dos() is defined in wampserver.lib.php line 1038
function file_get_contents_dos($file, $retour = true) {


listDir() is defined in wampserver.lib.php line 88
function listDir($dir,$toCheck = '',$racine='',$withoutracine = false) {


Reinstall wampserver update 3.3.8 "as an administrator"

Right-Click -> Restart from zero

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 07/24/2025 04:29PM by Otomatic.

Options: ReplyQuote
Re: I upgraded apache but new version doesn't appear in Wamp tray
Posted by: rober100 (---.digimobil.es)
Date: July 24, 2025 11:53PM

Ok, thanks, I reinstalled the update and now wamp is displaying the new apache version fine.

Thank you!

Options: ReplyQuote


Sorry, only registered users may post in this forum.