Jump to content


Photo

duplicate an instance of Uniform Server


  • Please log in to reply
1 reply to this topic

#1 LtB

LtB

    Newbie

  • Member
  • Pip
  • 1 posts
  • Gender:Male
  • Main OS: Windows 10

Posted 23 June 2019 - 03:59 PM

I have Uniform Server Zero XIII 13.3.2  running on my Desktop (C:), long enough to have completely forgotten if and what  and how I set it up at start. It is the working environment for a TNG genealogy site. I regularly copy the database to my online webbased site. Works fine.

I have bought a laptop (and a NAS too) now, in order to be able to work in the much cooler living room during the ever warmer summers..

Now I have copied the whole folder with the server and all of the webite to the root of a network drive, with Z: as the assigned drive letter.

 

Since Uniform Server is portable, I expected it to run automagically. But it doesn't. Killed the first instance, rebooted, started the new one: no success.
I have responded to messages to an extent, that I don't know the current status anymore. Will do the copy operation again, but what must I do to have it succeed?


Leo


#2 sudeepjd

sudeepjd

    Newbie

  • Developer
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Bangalore, India
  • Interests:I love Code, Cook and Collect.
  • SourceForge IDsudeepjd
  • Main OS: Windows 10

Posted 08 October 2019 - 10:06 PM

I know this is an older thread, but ideally since Uniform Server Zero is portable, you should not have a problem in migrating either the database or the site using a copy paste.

 

However, that being said, the better way to do it would be to use a fresh install and move only the items you need, i.e., the web application itself and the database.

 

Web Application

 

The PHP code is generally stored in either the www or the ssl folders, so these folders would need to get moved to the new installation. You can overwrite them without a problem.

 

Database

 

From Uniform Server, use the MySQL->Database Backup function to backup your database, this will create a .sql file in the db_backup_restore folder. Copy this file into the db_backup_restore folder in your new installation and use MySQL->Database Restore to move your backed up database file back into the database.

 

One caveat here. If you have any functions or routines that were created, they may have to be created again, I have seen some instances where they dont get transferred over.

 

Start the servers and the application should now work.

 

Also do you have any absolute paths in your PHP code for file uploads etc? Those will need to be changed as well.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users