move phpld

Here is a workflow of how to move a Phpld link directory to another hosting.

  1. Add the domain in your new hosting.
  2. Copy the SQL database to the file. This can be done using in an example of the phpMyAdmin. From there you export the whole database to file in the SQL format.
  3. Move SQL database file (created in step 2. ) to the new hosting. The filename is something like databasename.sql.
  4. Create a database user with the right permissions to the target database. Check correct setting from the source database.
  5. Copy whole website directory using tar command: tar czf  mysitepackage.tar pathmysitedirectory
  6. transfer the step4 package to the new hosting
  7. Go to the directory (cd command) where you want to have the website in the now hosting.
  8. extract the step4 package in the website directory: tar xf mysitepackage.tar
  9. make necessary nameserver changes to transfer traffic to the new hosting

Remember to fix all other dependencies in the site. Some paths and scripts may be in a different place in the new hosting.