Here is a workflow of how to move a Phpld link directory to another hosting.
- Add the domain in your new hosting.
- 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.
- Move SQL database file (created in step 2. ) to the new hosting. The filename is something like databasename.sql.
- Create a database user with the right permissions to the target database. Check correct setting from the source database.
- Copy whole website directory using tar command: tar czf mysitepackage.tar pathmysitedirectory
- transfer the step4 package to the new hosting
- Go to the directory (cd command) where you want to have the website in the now hosting.
- extract the step4 package in the website directory: tar xf mysitepackage.tar
- 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.