Switching production

Switch Production and Preview

Few things I've done to prepare for the production switch:

  • Enabled SSH (https://help.krystal.uk/cpanel-advanced-topics/how-do-i-get-ssh-secure-shell-access)
  • added a public key
  • Cleaned the root folder (/home/ccabdasi), by moving a few files into an archive folder:
[ccabdasi@thar ~]$ ll archive/
total 6301252
drwx------ 2 ccabdasi ccabdasi         26 Oct  4  2020 application_backups
-rw-r--r-- 1 ccabdasi ccabdasi   12873322 Mar 21 16:37 bup_core_03_21_2021.zip
-rw-r--r-- 1 ccabdasi ccabdasi   51080781 Mar 21 16:35 bup_wpcontent_03_21_2021.zip
drwxr-xr-x 4 ccabdasi ccabdasi         44 Mar 29 10:00 business.booking.com
-rw-r--r-- 1 ccabdasi ccabdasi          0 Feb  3  2020 cpbackup-exclude.conf
-rw-r--r-- 1 ccabdasi ccabdasi 6387928699 Apr  1 18:08 global_backup-2021_04_01.zip
-rw-r--r-- 1 ccabdasi ccabdasi     597654 Jul 20  2018 Screen Shot 2018-07-20 at 09.57.10.png
lrwxrwxrwx 1 ccabdasi ccabdasi         11 Jun  6  2018 www -> public_html

Note: This includes the www symlink, which doesn't seem to be used at all.

  • Renamed the folder public_html into business.booking.com and created a symlink from public_html to the just moved business.booking.com folder

This will allow us to quickly change the public_html symlink to another folder and thereby change the target folder of the main domain