WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 15, 2015 10:29PM

I've been using WampServer Version 2.5, to work on website1 and everything worked.

Then I had to work on a website2, and it needed PHP 5.3.0. I didn't know what else to do, so I installed another WAMP (WampServer Version 2.0-i) on the same machine (Win 7).
That worked OK.

Now when I go back and try using WAMP 2.5 to see website1 again, I do not see it.

When I go to localhost, all I see is website2 (it also shows Apache Version :2.2.11, PHP Version :5.3.0 and MySQL Version :5.1.36, which all belong to the WAMP 2.0).

When I go phpMyAdmin, I see the database belonging to website2.

How do I get website1 back?
Is there some way that I can switch back and forth between the two WAMP versions (and 2 websites)?

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: March 16, 2015 10:01AM

Hi,

I am sorry but I have no idea. My guess is that the install of 2.0 has damaged the 2.5 that was there originally.

I realise this is a bit late but here is a tutorial on how to upgrade a version of WAMPServer and then move the old versions of Apache/MySQL and PHP to the new install.
Remember WAMPServer's big advantage is that it allows us to switch between multiple versions of Apache/MySQL and PHP easily.

Use this in future to get multiple versions of Apache/MySQL and PHP available under the same version of WAMPServer [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(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: WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 16, 2015 10:41AM

Hi,

Thank you for your answer. I should probably also mention that I installed the second version of WAMP in a completely separate folder:
1st was installed on c:/wamp1, and
2nd was installed on c:/wamp2

Now, as I understand it from your answer, the Apache/MySql/PHP versions were overwritten. Is that correct even though I didn't use the same install directory?

What about the database from website1? Is there any way I can get it back. I don't have an SQL copy stored anywhere. But I'm hoping that, since it resides in a separate folder (c:/wamp1), there should be some way to get it back.

Any help would be appreciated.
Thanks

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: Otomatic (Moderator)
Date: March 16, 2015 10:57AM

Hi,

The names of the services :
- wampapache for Apache
- wampmysqld for MySQL
are the same between wampserver 2.0 and Wampserver 2.5
But as WampServer 2.0 was installed last, services are only valid for WampServer 2.0.

For this to work properly with WampServer 2.5, you must:
- Launch WampServer 2.5 (Even if the icon is not green)
- From Wampmanager icon
- Apache -> Service -> Delete Service
- MySQL -> Service -> Delete Service
- Apache -> Service -> Install Service
- MySQL -> Service -> Install Service
- Start Services

It is possible to add PHP 5.3.28 (Or another version) to Wampserver 2.5: [forum.wampserver.com] In French and English.

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

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 16, 2015 11:09AM

Thanks,

I will go and try this right away. Just one more question: after I re-install the services and add PHP 5.3 to Wampserver 2.5 what do I need to do in order to get the site running on wampserver 2.0 working?

Do I need to import the database, just as I would on a fresh install?
Is there anything else I need to do?

I just don't want to fix my website1, just to loose the website2.

Thanks again

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: March 16, 2015 11:23AM

If you have backups of your databases, then you are in a great situation, you can just import them like you say, to whichever version of MySQL you want them to be used in.

As to the site code, well again if you have backups, you are great, you just need to place them in the

\wamp\www\project1
\wamp\www\project2

folders.

A better solution would be to create a Virtual Host for each project, see this post [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(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: WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 16, 2015 11:33AM

OK, I'll go and try this now. Hope it works.

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 16, 2015 11:41AM

To Otomatic,

One of the links on page you are referring to [forum.wampserver.com] is broken

PHP 5.3.28 is now available in archives. Here's the working link:
[windows.php.net]

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: qwert (---.dynamic.t-2.net)
Date: March 16, 2015 04:11PM

IT WORKED!!!

So, if anybody's having the same problems, here's what I did:

1.
I made the backup of the database for website2.

2.
based on Otomatic's suggestion:

- Launch WampServer 2.5 (Even if the icon is not green)
- From Wampmanager icon
- Apache -> Service -> Delete Service
- MySQL -> Service -> Delete Service
- Apache -> Service -> Install Service
- MySQL -> Service -> Install Service
- Start Services

This fixed the website1

3.
again, following Otomatic

I installed PHP 5.3 on Wampserver 2.5 using instructions from [forum.wampserver.com] and PHP from [windows.php.net]

4.
copy the files from
c:/wamp2/www/website2
to
c:/wamp1/www/website2

5.
import the database for website2

Done.
It works.

Thanks to everybody for their help.

Options: ReplyQuote
Re: WampServer Version 2.0 + WampServer Version 2.5
Posted by: Otomatic (Moderator)
Date: March 16, 2015 05:57PM

Hi,

I'm happy!

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.