Automatic Site Launch

Launch Instructions

  1. Setup the live account and database through cPanel following the normal procedure.
  2. SSH into the account using the command ssh -p 2200 USERNAME@q4-host.com or ssh -p 2200 USERNAME@vrhost.q4-vr.com depending on whether it is launching on the B&B/hotel or VR server and enter the password at the prompt that follows. The user name and password are the same as the ones for the cPanel account.
  3. From the directory you enter in (should be the user directory or ~/) run the command q4sl.
  4. You will be asked for the dev server root password. This can be found in Keeper inside the Dev Master Accounts folder or by searching for DEVHOST.Q4-DEV.COM.
  5. Allow the script to run. It will generate a confirmation message and ring the system bell on completion.
  6. At this point you should be able to edit your host file, point the live domain to 158.106.188.111 or 158.106.187.143, and be able to see the site. Double check that the site/internal pages are working correctly.
  7. If everything is working correctly proceed with updating DNS records/name servers as needed to take the site live.
  8. When DNS is finished propagating (can be checked here: https://viewdns.info/propagation/?domain=DOMAIN.com), log back into the site and complete the post launch steps.

Post Launch Steps

File Configuration

php.ini
allow_url_fopen = On
allow_url_include = Off
display_errors = Off
enable_dl = On
file_uploads = On
max_execution_time = 300
max_input_time = 300
max_input_vars = 3000
memory_limit = 256M
post_max_size = 64M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php74"
upload_max_filesize = 32M
zlib.output_compression = On
default_socket_timeout = 300
wp-config.php
define("WP_MEMORY_LIMIT", "256M");
.htaccess
# BEGIN SECURITY HEADERS
Header always set Strict-Transport-Security: "max-age=31536000" env=HTTPS
Header always set Content-Security-Policy "upgrade-insecure-requests"
Header always set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode=block"
Header always set Expect-CT "max-age=7776000, enforce"
Header always set Referrer-Policy: "no-referrer-when-downgrade"
Header always set X-Frame-Options: "SAMEORIGIN"
Header always set Permissions-Policy: ""
# END SECURITY HEADERS

Wordfence Setup

  1. In the admin sidebar go to WordfenceTools and select the Import/Export Options tab.
  2. Paste 9ea36e9e92bb61173ca7af43b9313468608040c647e6629b0fbc80fe21c4baadb1015b3466e22fd59dceaa70d6508e2166c08abacd85dee7a6a3eb83104761d542750a03560d477a95a01fc7bb617757 into the text box and click the Import Wordfence Options button.

Leave a Reply