Problem upgrading to php8
Posted by: mferg (---.dhcp.bhn.net)
Date: September 21, 2023 09:10PM

1 - Windows 10 Pro - 64 bit
2 - WampServer 3.3.1 - 64 bit
3 - Apache 2.4.33
4 - PHP 7.2.4
5 - MySQL 5.7.21
5a - MariaDB 10.2.14
6 - WampServer icon is GREEN
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?
127.0.0.1 localhost
::1 localhost

127.0.0.1 httpdocs
::1 httpdocs

127.0.0.1 httpdocs
::1 httpdocs

127.0.0.1 httpdocs
::1 httpdocs

127.0.0.1 newsite
::1 newsite

If the WampServer icon is green:
8 - Do you have access to localhost (Homepage WampServer)?
YES
8a - If so, is there an error message at the bottom of the page?
YES
The path c:/wamp64/www/httpdocs for DocumentRoot does not exist (File c:/wamp64/bin/apache/apache2.4.33/conf/extra/httpd-vhosts.conf)
The path c:/wamp64/www/httpdocs/ for <Directory ... does not exist (File c:/wamp64/bin/apache/apache2.4.33/conf/extra/httpd-vhosts.conf)

9 - Do you have access to phpMyAdmin?
YES
10 - If you refer to an error message, please include the EXACT wording of the error in your post
11 - If you use an Antivirus and / or Firewall, please include the names of these
NONE
12 - What is the full path to the installation of WampServer (eg D:\wamp\)
c:\wamp64\
13 - If you have one or more Virtual Hosts defined, please show their definition(s)
_______________________________________________________________________________________________________

I just upgraded Wampserver from 3.1.9 to 3.3.1.

When I go to update some Addons, I'm getting this error, for example, on the Setup:

=====================================================
| Preparing to Iinstall
| Setup is preparing to install Addon PHP 8.0.30 for Wampserver 3 on your computer.
|
|
| X The current version of installed Wampserver is 3.1.9
| This addon can only be done on version 3.3.1 or more
| Install Wampserver 3.3.1 (or more) update after cancel this install
|
=====================================================

When I open the Aestan Tray Menu, the header says, "Wampserver - 3.3.1 - 64bit".
I can't upgrade to any of the PHP versions or MySQL versions.
I noticed that the upgrade procedure didn't ask for where Wamp was installed, like it did when upgrading wampserver 3.3.1 and Apache. I guess the default is c:\wamp\ and mine is c:\wamp64\, but that hasn't been a problem before.

How do I fix this?

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: Otomatic (Moderator)
Date: September 22, 2023 09:13AM

- 1 - Exit Wampserver

- 2 - - Verify that all VC ++ packages are installed and with the latest versions.
To do this, use the tool:
Checks VC++ packages installed
Do not use a previously loaded tool. Make a new download to make sure you are using the correct version.
To download missing packages, do not rely on Microsoft links, they are not reliable, download packages on http://wampserver.aviatechno.net in section Visual C++ Redistribuable Packages
Do not forget that if you have a 64 bit Windows, you must install both 32 and 64 bit versions of each package.
You must install each package "as an administrator", so right-click the exe file and then run as Administrator.

See Best way to install Visual C++ Redistributable Packages at the bottom of http://wampserver.aviatechno.net

> Apache 2.4.33
It is very old and does not support recent version of PHP

- 3 - reapply Update 3.3.1 to your version of Wampserver
Wampserver update 3.3.1

And... it's never a good idea to wait for twelve updates before applying one!

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

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: mferg (---.dhcp.bhn.net)
Date: September 22, 2023 04:24PM

Thank you for your help!

I did the above, but am getting the same error message.

1 - I exited Wampserver.

2 - I verified all VC++ packages were installed with tool, but ran the "Best way..." to make sure.

3 - I reapplied Update 3.3.1

4 - I started Wampserver, then exited, then restarted Wampserver, then exited again.

5 - I tried to install Apache 2.4.57.4 Update... got same error as in first post.

6 - I tried to install PHP 8.0.30 Update... got same error.

All the above, I ran as Administrator.

The updates seem to think I'm still running Wampserver 3.1.9.

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: Otomatic (Moderator)
Date: September 22, 2023 04:35PM

Hi,

What are the lines beetween [main] and [options] of wampmanager.conf file ?

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

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: mferg (---.dhcp.bhn.net)
Date: September 22, 2023 04:44PM

The problem seems to be that the installer is not letting me choose where wamp is installed.

I have 2 wamp directories:
c:\wamp - which is 7 or 8 years old and not used.
c:\wamp64 - which is my current operating dir.

I just renamed the c:\wamp to c:\old_wamp. Then tried to install the Apache update and got a new error:

=====================================================
| Preparing to Iinstall
| Setup is preparing to install Addon Apache 2.4.57.4 for Wampserver 3 on your computer.
|
| X The installation folder chosen is not that of Wampserver.
| Select the installation folder of Wampserver.
=====================================================

But nowhere does it allow me to choose the installation folder.

mferg

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: mferg (---.dhcp.bhn.net)
Date: September 22, 2023 04:45PM

[main]
language = "english"
wampserverVersion ="3.3.1"
installDir ="c:/wamp64"
;Path of the Browser used by Wampserver
;May be modfied with the absolute path of the browser exe file
;(Use / instead of \)
;For Edge, just put navigator="Edge" (with capital E)
navigator ="C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
;Path of the Text Editor used by Wampserver
;May be modfied with the absolute path of the Text Editor exe file
;(Use / instead of \)
editor ="C:/Program Files (x86)/UltraEdit/UEDIT32.EXE"
defaultLanguage = english
wampserverMode = "64bit"
installVersion= "unknown"
logviewer= "C:/Program Files (x86)/UltraEdit/UEDIT32.EXE"
wampStartDate = "2023-09-22 14:25:30"
update3.2.9= "2022-08-23"
update3.3.1= "2023-09-22"
[options]

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: Otomatic (Moderator)
Date: September 23, 2023 08:56AM

Hi,

> But nowhere does it allow me to choose the installation folder.

Yes, you can have two versions of Wampserver on the same PC, but it can only be one 32bit version and one 64bit version, not two 32bit versions or two 64bit versions.

In this case, you have kept an old version and installed or copied a new one without first uninstalling the old one, which means that information remains in the registry, and the installers will search the registry for information about the installation folder.

The installation path for a 32bit Wampserver is in the key :
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{wampserver32}_is1
'InstallLocation'

The installation path for a 64bit Wampserver is in the key :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{wampserver64}_is1
'InstallLocation'

And the path doesn't point to the "right version"!

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

Options: ReplyQuote
Re: Problem upgrading to php8
Posted by: mferg (---.dhcp.bhn.net)
Date: September 23, 2023 06:56PM

That did the trick!

Thank you so much!

Options: ReplyQuote


Sorry, only registered users may post in this forum.