Switching Problem
Posted by: KalobT (---.ed.shawcable.net)
Date: March 09, 2014 12:31AM

Hey guys,

Here's the problem:
I can't get PHP to work properly. It says PHP is not compatible with my actual Apache Version. Apache says the same thing about PHP.

Was using:
WampServer 2.2. No additional addons.

I'm trying to use:
WAMPSERVER (32 BITS & PHP 5.4) 2.4 and everything seemed great.

The old WampServer still works, and still shows in my tray as WampServer 2.2. I have the options to upgrade PHP from 5.3.1 to 5.4.16, and to upgrade Apache from 2.2.21 to 2.4.4 but then the CMD box with the error appears. MySQL upgraded from 5.5.20 to 5.6.12 without any problems though! smiling smiley

Can I force the switch?

Here's basic info:
Windows 8.
GreenLight in the tray.
currently have WampServer 2.2 (but trying to get 2.4 installed.
Apache 2.2.21
PHP 5.3.1
MySQL 5.6.12
Yes I have a HOSTS file.

Suggestions?

Options: ReplyQuote
Re: Switching Problem
Posted by: RiggsFolly (---.as13285.net)
Date: March 09, 2014 03:20PM

It sounds like you think you have wampserver2.2 and wampserver2.4 installed but you dont as the Apache and MySQL services will be registered as running from the last version you installed. Which will be 2.4 I assume?


Try this out for size:
!!! Make copies of everything you dont want to loose just in case !!!!

Uninstall Wampserver.
Rename \wamp folder, which will still exist as the uninstall does not remove files it did not create or files that have changed since the install, so you keep any site code and databases you may want later.

Install WampServer 2.4

Check it works as installed.
Read this post and make the changes it suggests
Wampserver 2.4 What to do after Installing [forum.wampserver.com]


Now copy any versions of Apache and MySQL you want to keep from the old wamp folder to the new one.
So thats copy \oldwamp\bin\apache\apachex.y.z\* to \wamp\bin\apache\apachex.y.z\*
and copy \oldwamp\bin\mysql\mysqlx.y.z\* to \wamp\bin\mysql\mysqlx.y.z\*

Restart WAMPServer so it recognises all the changes and you should be able to switch between versions of Apache at will.

Now there is a GOTCHA I am afraid. Recently The Apache and PHP communities have been changing the versions of the MSVC++ compiler they use to build Apache and PHP. So the switching process has become a little more difficult. You have to run an Apache and PHP together that are compiled with the same version of the compiler. If you get a mismatch you will get the sort of errors you say you are getting.

This may mean you need to install a version of Apache and or PHP that you dont actually want to use so that you can step back via versions that work together.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Switching Problem
Posted by: KalobT (---.ed.shawcable.net)
Date: March 09, 2014 04:01PM

Perfect. I did what you said but I may have done it wrong (not sure how, it's pretty straight forward).

I ended up making copies of all my content, backed up all my databases and put all the files into a separate area, uninstalled WampServer 2.2 completely, and installed 2.4 - IT WORKED!

Don't forget to reactivate any Apache modules you may have installed though. I forgot mod_rewrite - easy fix - enable -> restart WampSever.

What you said about the compilers makes sense.

Thanks for the help!

Cheers

Options: ReplyQuote


Sorry, only registered users may post in this forum.