Get old wamp installation data to work on new computer - wampserver

I'm having a big problem with my wamp server for some months now.
I've developed 6 sites locally using wamp server. I had a problem with my computer and copied all my site directories to a hard Disk.
I got a new computer with W8.1 on it and copied back the wamp-folder. I tried to lunch it, but its not working. So i've installed a new wamp server. But i've no idea how to import my site from the old server to the new.
My first problem is that I can't get my old site running on the new wamp installation. I did not save my databases before my computer went down.
But I thing I can find it on the mysql folder from the old system backup. Where and how, I've no idea. So I would like to take my sites from the old wamp and installed it on the new one or get it to work on the new wamp. I've already googled for one month now but I could not find any solution!

Option 1. ReCreate the old WAMPServer on the new PC
If you have the complete directory structure backed up from your old PC then you can just copy the complete folder structure from your backup to the new PC.
Make sure you put it on the same disk and folder that it was originally installed on, so if it was originally installed in C:\wamp make sure you copy it back to that folder.
Launch the wampmanage.exe from that folder ( C:\wamp\wampmanager.exe )
Using the wampmanager menus do
left click wampmanager -> Apache -> Install Service
left click wampmanager -> MYSQL -> Install Service
WAMPServer should now be as it was before your problem
Windows 8.1 has a blank C:\windows\system32\drivers\etc\hosts file, so you will also need to add all the domains for any Virtual Hosts you had created, but at a minimum it should have these entries.
127.0.0.1 localhost
::1 localhost
Option 2. Add your old Apache/PHP/MYSQL to the new installation of WAMPServer
Remember, one of the big advantages of WAMPServer over other Windows AMP stacks is its ability to have more than one version of each of Apache/PHP/MYSQL in the same WAMPServer instance ready for easy switching between verions of all of these.
So you could keep the new installation and selectively copy over the Apache/PHP/MYSQL versions and then copy over your 6 sites.
So STOP WAMPServer
copy the OLD \wamp\bin\apache\{apacheversion} folder to NEW `\wamp\bin\apache\
copy the OLD \wamp\bin\php\{phpversion} folder to NEW `\wamp\bin\php\
copy the OLD \wamp\bin\mysql\{mysqversion} folder to NEW `\wamp\bin\mysql\
Restart WAMPServer
You should now see that the old and new version of Apache/MYSQL/PHP are available.
Now copy your OLD \wamp\www\??? site folders into NEW \wamp\www\??? and your 6 sites should also be available.
Now you can switch back to the old versions of Apache/PHP/MYSQL and run your sites like that, or backup you databases properly using the old MYSQL version and then restore them to your new MYSQL version
You switch versions using the wampmanager menus like so:-
wampmanager -> Apache -> Version -> (click the required version number )
wampmanager -> MYSQL -> Version -> (click the required version number )
wampmanager -> PHP -> Version -> (click the required version number )

Six years later, I just resolved this exact same problem. I tried #RiggsFolly's solutions to no avail. Reading logs to try debugging this whole mess became tedious real fast, especially if the paths between the old and the new installations don't match anymore.
Considering a new clean wampserver installation and an old wamp(64) directory from somewhere else:
First, export your mysql's databases.
To do that, use the command line to reach C:\path\to\old\wamp\bin\mysql\mysql{version_number}\bin and start the mysql server with the mysqld command (when you are done exporting, use mysqladmin -u {user name} shutdown). Now, export your databases with mysqldump or any other method you will find around and re-import them inside your new installation.
Transfer the folders of your projects inside www from the old to the new installation.
Recreate your virtual hosts by pointing the paths out to the related pasted folders inside www.
There you go. This way, everything was cleanly imported and you don't have to worry about a dirty setup which will bug at some point.
I hope it helps someone else.

Related

Move Neo4j databases in Neo4j Desktop from one computer to another

I am upgrading my local machine from Ubuntu 16.04 to 20.04. I run Neo4j Desktop (version 1.2.7) on my 16.04 and have installed it on the 20.04 machine and want to move the databases over.
I'm sure that in the past I just copied and pasted the database folders in /home/dougi/.config/Neo4j Desktop/Application/neo4jDatabases from one computer to the other and started Neo4j Desktop. However, when I do that no database show in the project.
I tried doing a dump and load, but couldn't see how I would load the database into Neo4j Desktop on the 20.04 machine as you have to "create" a database for it to show in the project and the database version when creating is limited to 4.0.3 and all of my databases are earlier versions than that (I don't want upgrade them right now).
I tried creating a database, deleting the files in the folder created in /home/dougi/.config/Neo4j Desktop/Application/neo4jDatabases and pasting the database folder from the 16.04 machine into it (i.e. replacing the files it created). I just get a message saying that the database files have been moved or corrupted when I load Neo4j Desktop.
I tried running a load from a dump I had made and had an error saying WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.. I did find some google articles on that, but this felt like a really messy way of doing the restore so I didn't go any further with that.
What is the easiest way to move Neo4j Desktop databases from one computer to another please?
Thank you!
OK, so the answer to this is that there is a file /home/dougi/.config/Neo4j Desktop/Application/persist/databases.json which contains the list of databases that display in Neo4j Desktop.
Create a new database to add an entry to the file and then copy and paste that entry, replacing the database ID and version with those of the new databases you are adding files for to create an entry for each of the databases.
Restart your computer and delete the temporary database you created.
Or you could just copy the file from your previous version of Neo4j Desktop, assuming there are no formatting changes between versions of Neo4j Desktop.

Wampserver not changing the PHP version for WEB (not CLI)

I have WampServer Version 3.1.4 64bit installed on Windows 7 and it comes with PHP versions php5.6.38, php7.0.32, php7.1.22, and php7.2.10. I would like to use php5.6.x rather than php7.x.
So, when I switch from php7.2.10 to php5.6.38 from the server tray icon; it does not update the actual php version which is shown by phpinfo().
On localhost, it still says:
PHP Version: 7.2.10
However, it is updated on CLI side. This is tested with running this in the cmd:
php -v
The result is :
c:\wamp64\bin\apache\apache2.4.35\bin>php -v
PHP 5.6.38 (cli) (built: Sep 13 2018 12:45:08)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
After restarting WAMP services, and re opening the terminal, and restarting computer, it still not updated through phpinfo. It probably related the php version used by Apache service. How can I change this to 5.6.x
Any suggestions ?
Many thanks
Note : The issue is not related with changing php cli version as it was pointed here. I do not understand why some of them insist that this is potential duplication without reading the post carefully.
I have faced kind of similar issue, I have installed wampserver upgrades from https://wampserver.aviatechno.net/?lang=en. I needed php 7.3 and 7.4, after installing the php upgrades, those new versions were not being reflected in wampserver traymenu (left click on wamp icon->php-versions). After spending quite some time looking into this, finally could fix this by following steps :
Clearing logs (right click on wampserver icon -> tools -> empty logs)
[my php log file was 300+ MB].
Restarted wampserver and it was good to go.
I found solution from this thread http://forum.wampserver.com/read.php?2,159184
(TL:DR) Use left click -(instead of right click)- menu to change PHP versions.
(Long explanation)
Hi, this happened to me today. I was trying to change the php version from 7.2 to 5.6 to test something. However, Wampserver was not changing the web version of php. After much searching in the web and noticing in certain videos that some people were getting a different menu than me in the wamp server icon, I realised that there is a whole left click menu in wampserver in which you can change the php version and it does change the web version of php.
I understand that this can be a bit confusing for people who are used to using wampserver, but for someone who is using it for the first time, we are not used to having a left click menu in the bottom right icons. I hope this saves some time for others who have a similar issue than mine.
The wampmanager->Tools->Change PHP CLI Version menu only changes the version of PHP that will be used by wampmanager.exe to run all the PHP scripts that provide all the functionality of WAMPServer.
It has no effect on the version of PHP that will will be run from the command line in Windows.
If when you open a command windows and run the PHP interpreter >php.exe you actually get to the PHP interpreter, then you must have added one of the possible paths to one of WAMPServers PHP folders to the Window's PATH. You should never do this with WAMPServer, so if this is what you did, UNDO IT! This is for obvious reasons as you could have multiple versions of PHP available and want to run any one of them at any time as the CLI Version to test some code against multiple versions of PHP.
Instead create yourself a little batch/cmd file that accepts a php version as a parameter like in this answer I posted a while ago
With that you can set the PATH temporarily for the life of a command window ONLY. You can also make it include a PATH to the PEAR and/or COMPOSER folders at the same time, if you use either of these.
To check All VC Runtimes
There is a tool for checking if you have all the possible required VC Runtimes installed. Go to this page, the backup repo for WAMPServer, and download the little utility called Checks VC++ packages installed you will find it down near the bottom of the page. Download and run it, then throw it away, as it changes over time as new VC Runtimes become required.

RubyMine on Windows with rails code on OS X server

This is a weird question, so bear with me while I try to explain it properly.
I have a Ruby on Rails app running on Heroku, with source code on Git. In my home, I have a Mac small laptop, and a Windows 7 Desktop PC.
What I want is to be able to work the code on RubyMine on my Windows machine. Because of many many shenanigans, working on Windows and then uploading to heroku just doesn't work.
Instead, I would like to download my code on my Mac, open it somehow from Windows (on LAN), and be able to run it on the Mac (from RubyMine on Windows), and open it in a browser from Windows.
I've been trying for several weeks now. Have anyone done this before? I know it sounds bizarre, but I really wish to work on my 3 monitors Windows setup.
You can let RubyMine use an SDK over SSH.
go to: File => Settings
select: Languages & Frameworks => Ruby SDK and gems
click the add icon (plus symbol)
choose: New remote...
select: SSH Credentials
fill in the host, username, password and path
After adding the remote SDK make sure it is selected as your project SDK.
edit
As #GujMil pointed out in the comments below, when running the application the Windows path is send as parameter to the Ruby SDK. After some fiddling I found that you can map the local path to the remote path in the SDK Configuration or Run/Debug Configurations.
go back to the SDK configuration (step 1 & 2 previous list)
click the Edit Path Mappings icon for your remote Ruby SDK (img)
add your path maps
For me the following was enough (using Linux instead of OS X):
+----------------+-------------+
| Local path | Remote path |
+----------------+-------------+
| //192.168.0.96 | /home |
+----------------+-------------+
For further info see: https://www.jetbrains.com/help/ruby/configuring-remote-interpreters-via-ssh.html
If your question sounds bizarre, so does my answer. I have experimented a similar setup with Linux servers.
Set up a shared folder to host the code on the Mac: Apple
instructions here
Access the folder over your LAN and edit the code in RubyMine.
Open an SSH terminal to your Mac so that you can remotely run the
Rails server, run necessary commands and view the logs (easy with
your multi-monitor setup)
Note: RubyMine will likely complain about missing gems.

Reinstalling Windows without re-registering Delphi

I'll be reinstalling Windows and I wondered if there's a way to backup/restore Delphi license info so I don't "lose" one of my installations for that.
In other words - is there a way to uninstall Delphi, reinstall Windows, reinstall Delphi without that being treated as a "new" installation?
[I want to completely wipe out my computer and start out from scratch. I'll be reinstalling XE5, XE7, and 10 Seattle.]
The .slip files used for registration info are in C:\ProgramData, in either the CodeGear or Embarcadero folders depending on which version of the IDE you're using.
I've successfully copied the files from these folders to a thumb drive and moved them to a new computer. Note that part of the registration information is the local computer name, so in order to work on a different machine (or a clean Windows install on the same machine) the computer name needs to stay the same. Just name the computer the same, copy the .slip files to the same location on the new machine, and then install Delphi/RAD Studio.
To be on the safe side, I always copy the entire folder (including all subfolders and their contents) to make sure I've gotten everything the IDE needs.
I had a similar problem when renaming my Windows 10 computer. Apparently the license is bound to the computer name. I had to re-register Delphi after renaming my computer but failed because of the limit of my license key.
Solution was renaming back my computer and renaming C:\ProgramData\Embarcadero\.cgb_license.corrupted and C:\ProgramData\Embarcadero\.licenses\.cg_license.corrupted to files without the .corrupted as suffix. My licence slip file was C:\ProgramData\Embarcadero\.2016_2.#############.slip.

wampserver tray icon is missing [duplicate]

This question already has answers here:
Re installing Wamp Server without replacing the existing mysql database
(2 answers)
Closed 4 years ago.
I have had wamp server 2.2 installed in c: drive, (Windows 7), running Apache 2.2.9, Mysql 5.5.24 and PHP 5.3.1.
Then I re-installed it in another drive (d:) and transferred the data and www directory code there.
It worked ok for a while, with the localhost sites running perfectly, etc., but after a few days, the tray icon stopped displaying in the taskbar, when I run 'start Wampserver' in Start menu. Also, 'start Wampserver' shortcut icon is missing as well.
When I run it from the Start menu, I can see wampapache service running in the Services list, but wampmysqld is stopped. I can start it manually though, so eventually, wamp server runs ok, but with the tray icon in the taskbar missing and evidently, without having access to it's menu.
Also, when this issue first appeared, I noticed that 'wampmanager.exe' file was missing from wamp root directory and I needed to re-copy it there.
Is there any way I could retrieve the tray icon back without having to re-install wamp server again?
Ok quite a bit of confusion here!
First it is not good to try to install WAMPServer more than once on the same PC. The second install will work and become the installation that is used but a few things go wrong.
The start menu and desktop shortcuts to start WAMPServer will probably still be pointing to the folder from the first install. So these probably disappeared when you eventually deleted the old C:\wamp folder.
You can re-create these very easily by going to D:\wamp\ and making a shortcut of wampmanager.exe and putting that back onto your desktop and into the start menu.
Once you have these back, all should work again as you expect.
Please check if "barimage.bmp" image is missing.
If missing please download it from >>>https://www.uploady.com/#!/download/8cG1gif5Y1E/gXfCRpWrU0qfo0g8
and save it to wamp folder.
And try again. Hope this will help you.

Resources