Moved WAMP from D:\ to C:\ (now broken)
Posted by: SRD (---.dyn.iinet.net.au)
Date: May 18, 2016 11:51AM

Hi,

I had to rebuild Windows, and this process wiped my D drive, which was not corrected.

After reinstalling Windows on C:\, I decided to install WAMP on C:\, as C is an SSD.

I then copied the contents of D:\Wamp to C:\Wamp.

When I start WampServer, I receive an error:

PHP Startup: Unable to load dynamic library.
'd:/wamp/bin/php/php5.5.12/ext/php_bz2.dll' - The parameter is incorrect.

I have searched the registry, and there is no occurrance of d:/wamp in there.

I have searched c:/wamp using Dreamweaver and Notepad++, and found no configuration files with D:/wamp, except for wampmanager.conf, where I replaced installDir = "d:/wamp" with installDir = "c:/wamp", and http.conf where I replaced ServerRoot "d:/wamp/bin/apache/apache2.4.9" with ServerRoot "c:/wamp/bin/apache/apache2.4.9".

Windows error reports:

The Apache service named reported the following error:
>>> <Directory "d:/wamp/apps/phpmyadmin4.1.14/"> path is invalid.

Where is this setting being pulled from?

Thanks.

Options: ReplyQuote
Re: Moved WAMP from D:\ to C:\ (now broken)
Posted by: RiggsFolly (Moderator)
Date: May 18, 2016 12:14PM

You cannot copy a \wamp\ folder from one drive to another, EASILY.

The install edits lots of files to contain the Drive that WAMPServer was installed on.

I suggest you leave your install on the D: drive

If you want to install a newer version of WAMPServer and then copy versions of Apache/MySQL/PHP from the old install to the new install, that is quite possible and easy. But if you move drive it gets a LOT MORE COMPLICATED and not something we have the time to provide support for.

---------------------------------------------------------------------------------------------
(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: Moved WAMP from D:\ to C:\ (now broken)
Posted by: SRD (---.dyn.iinet.net.au)
Date: May 19, 2016 10:06AM

OK.

So, I tried something different.

I removed WAMP completely from C.

I have a copy of D:\wamp\www, and D:\wamp\bin\mysql\mysql5.6.17\data.

I installed WAMP fresh on C:\

I copied D:\wamp\www to C:\wamp\www, and D:\wamp\bin\mysql\mysql5.6.17\data to C:\wamp\bin\mysql\mysql5.6.17\data

I then recreated the MySQL users manually.

Will that work?

Options: ReplyQuote
Re: Moved WAMP from D:\ to C:\ (now broken)
Posted by: SRD (---.dyn.iinet.net.au)
Date: May 19, 2016 10:16AM

What I found is after doing that, when I load a vhost domain, it loads the c:\wamp\www\index.php, rather than c:\wamp\www\vhostfolder\index.php

Options: ReplyQuote
Re: Moved WAMP from D:\ to C:\ (now broken)
Posted by: RiggsFolly (Moderator)
Date: May 19, 2016 10:30AM

No

But if you have a complete WAMPServer on D: you can do this

Uninstall the version of WAMPServer on C:

remove C:\wamp

remove the wampserver desktop icon if you have one


Create a new Wampserver icon on the desktop from the D:\wamp\wampmanager.exe

Run the new desktop icon

Using the Wampmanager icon in the system tray do

left click wampmanager -> Apache -> Service -> Install Service
left click wampmanager -> MYSQL -> Service -> Install Service

You now have WAMPServer again running as it was before from the D: drive

---------------------------------------------------------------------------------------------
(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: Moved WAMP from D:\ to C:\ (now broken)
Posted by: SRD (---.dyn.iinet.net.au)
Date: May 20, 2016 05:41AM

I don't have Wampserver on D though, D lost its MBR, and is inaccessible, until I reformat it.

Options: ReplyQuote
Re: Moved WAMP from D:\ to C:\ (now broken)
Posted by: SRD (---.dyn.iinet.net.au)
Date: May 20, 2016 08:32AM

Hi,

I found I had not uncommented:

# Include conf/extra/httpd-vhosts.conf

Now fixed.

Thank you.

Options: ReplyQuote


Sorry, only registered users may post in this forum.