1. Verify prerequisites in terminal command has zip unzip apt yarn
  2. SSH as root user ec2-user/ubuntu depending on AWS 2023 selected OS.
  3. Enable PHP.ini extensions by installing extensions via sudo apt install
  4. Restart php service
  5. Update node to v20
  6. To copy project and database from old server. Use terminal, navigate to the folder
  7. Download the zipped files using VSCode,

{90DDA139-E03E-4180-9FDC-0CAEAD56A602}.png

  1. To upload to new server, navigate to the user folder /home/ubuntu and drag the downloaded folder into the VSCode file explorer.
  2. Then move to target folder /var/lib by sudo mv /home/ubuntu/mysql.zip /var/lib
  3. cd /var/lib
  4. sudo unzip mysql.zip
  5. Verify using MYSQL Workbench or HeidiSQL that the database is appearing in the Schema/Database Explorer.
  6. Clean up the mysql.zip sudo rm /var/lib/mysql.zip on both servers.

For project

  1. Repeat same from step 7-12 for copying project folder with target folder of the following:
    1. Note: Rename the unzipped folder to replace existing folder if required.
    2. var/www/html for Apache setup.
    3. /home/runcloud/webapps for Nginx setup.