Hi,
> The default path may be hard-coded somewhere.
No.
The installation path is only known by the uninstall registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{wampserver32}_is1]
or
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{wampserver64}_is1]
It is through these keys that installers of updates or addons know the installation path.
And he knew from Wampmanager by the item
installDir ="E:/wamp64"
from the wampmanager.conf file
Regarder les erreurs éventuelles dans le fichier php_error.log
With Wampserver 3.2.0, there is a possibility to trace what happens during an operation such as switching versions of PHP, it's pretty basic, but we can see which files have been re-recorded.
For the explanations, I'm going to start from one of my E:/wamp64" installations, you'll have to modify the paths according to your own installation.
- Launch Wampserver
- Green icon and everything works fine, e.g. with PHP (web) 7.1.33
- Do not quit Wampserver
- Edit the file E:\wamp64\scripts\config.trace.php
- Replace : define('WAMPTRACE_PROCESS',FALSE);
by define('WAMPTRACE_PROCESS',TRUE);
- Save the modified file
- Switch PHP version
Left-Click -> PHP -> Version -> 7.2.25
- When the process of changing the PHP version is finished, without doing anything else, we will stop the trace
- Edit the file E:\wamp64\scripts\config.trace.php
- Replace : define('WAMPTRACE_PROCESS',TRUE);
by define('WAMPTRACE_PROCESS',FALSE);
- Save the modified file
Then we'll go see what the trace says:
Open the file E:\wamp64\logs\wamptrace.log and copy its contents here.
------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - MysqlDumper 1.24.5 on W10 and W7 Pro 64 bit
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »