# Bannister: website live zetten procedure ## **0. Informatie vooraf** https://www.hoasted.com/reseller/ checken welke package je nodig hebt (storage dubbel van WHM). Personal 1 package 10gb ## **1. Hoasted** 1. Aanmaken nieuwe omgeving. List accounts > create new. 2. Invullen domain information: 1. Domain: url van de live omgeving (bedrijfsadvocaat.be) 2. Username: automatisch generate 3. Password: automatisch generate + opslaan 4. Email: info@wooms.nl 3. Package: kiezen welke het beste is. 4. Mail routing settings: remote mail exchanger ## **2. WHM** 1. Terminal: ```php #!/bin/bash # Set correct php extensions selectorctl --disable-user-extensions=nd_mysqli --version=8.4 selectorctl --enable-user-extensions=brotli,imagick,intl,mysqli,mysqlnd,opcache,zip --version=8.4 # Set PHP options selectorctl --replace-options=memory_limit:512M,post_max_size:32M,upload_max_filesize:32M --version=8.4 # Set PHP8.4 selectorctl --set-user-current=8.4 ``` 1. Duplicator pro plugin installeren en instellen (oude site): 1. Add new backup (default settings) 2. Download beide files ## **3. Hoasted** 1. File manager > public_html > Upload beide files 2. Alt + spatie > edit hosts file: 1. Shared IP Address van Hoasted 2. Domain twee keer *(bedrijfsadvocaat.be www.bedrijfsadvocaat.be)* 3. Openen in incognito mode > /installer.php (opent duplicator pro) ## **4. Installer (CPanel method)** 1. Select CPanel langs Default: Username en password invullen van nieuwe Hoasted 2. Database aanmaken op Hoasted > Database Wizard 1. …_**wp** 2. …_**wp** + wachtwoord (b) generen (bijhouden) 1. all privileges > make changes 3. CPanel host = server name (s1160.hostingsecure.com) zonder poort > connect 4. Empty database > select de nieuw aangemaakte 5. User selecteren en wachtwoord (b) invullen 6. Validate > accept ## **5. Overgezet domein** 1. Admin login na installeren > alle wit/blauwe buttons 2. Duplicator pro verwijderen 3. Controleren of alles nog werkt + instellingen: 1. Cache inschakelen voor admin + inline CSS 2. Bricks settings > Performance > alles inschakelen 4. Installeren [livegang plugins](https://www.notion.so/Bannister-website-live-zetten-procedure-fa51bd0a1b8a483681b3b4ec83428263?pvs=21) ## **6. Plugin settings** ### Complianz (upload) Tango guide: [`https://app.tango.us/app/workflow/Configure-Complianz-Plugin-in-WordPress-76678c420fc04611ae0238ae964623be`](https://app.tango.us/app/workflow/Configure-Complianz-Plugin-in-WordPress-76678c420fc04611ae0238ae964623be) License key: `372fad6c29a8001016d9d2b3f04daa50` Kleur: `#0B920F` **Cookie message:** `Om de beste ervaringen te bieden, gebruiken wij technologieën zoals cookies om informatie over je apparaat op te slaan en/of te raadplegen. Door in te stemmen met deze technologieën kunnen wij gegevens zoals surfgedrag of unieke ID's op deze site verwerken. Als je geen toestemming geeft of uw toestemming intrekt, kan dit een nadelige invloed hebben op bepaalde functies en mogelijkheden.` **Functioneel:** `De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.` **Statistieken:** `De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.` ### PixelYourSite Pro (upload) License key `6d9a0ab69f619fafc1c7daa9ccfc0b1a` ### GravityForms Google Analytics (upload) Gravity Forms > Add-Ons 1. Google Measurement Protocol 2. Sven 3. Google Analytics Form Settings openen bij elk formulier 1. Add new > Parameter Name = `event_name` 2. Enter a custom value > `gf_*xxx*` (logische naam, b.v. gf_contact) *Volgende functie toevoegen aan child theme:* ```php /** * Filters the Google Analytics event name for form submissions. * * @param string $event_name Default event name * @param string $mode Submission mode * @param array|null $feed The feed configuration * @param array|null $entry The form entry data * @param array|null $form The form data * @return string Sanitized event name */ function wms_filter_gform_googleanalytics_submission_event_name($event_name, $mode, $feed, $entry, $form) { // Early return if feed or meta data is missing if (empty($feed) || empty($feed['meta']) || empty($feed['meta']['submission_parameters'])) { return $event_name; } $submission_parameters = $feed['meta']['submission_parameters']; // Find the custom event name in submission parameters foreach ($submission_parameters as $param) { if (isset($param['custom_key']) && $param['custom_key'] === 'event_name' && !empty($param['custom_value'])) { return sanitize_text_field($param['custom_value']); } } return $event_name; } add_filter('gform_googleanalytics_submission_event_name', 'wms_filter_gform_googleanalytics_submission_event_name', 10, 5); ``` ### GravityForms Zero Spam Default settings, download from Plugin Hub. ### SEO Plugin ### RankMathSeo (upload) Tango guide: [`https://app.tango.us/app/workflow/Configure-Rank-Math-Setup-Wizard-73d88620a09c4bb08f99ecc9f77f7d55`](https://app.tango.us/app/workflow/Configure-Rank-Math-Setup-Wizard-73d88620a09c4bb08f99ecc9f77f7d55) Indexing enablen bij WordPress settings > Search engine visibility ACF, Instant Indexing, Local SEO, Schema (Structured Data), Sitemap, React Settings UI ### SEO Framework ### Gravity SMTP (upload) **WordPress:** 1. Installeren vanuit Plugin Hub en instellen: 1. Share Gravity SMTP Analytics uit 2. Skip 3. Custom SMTP 4. Return Path + Auto TLS aan 5. Default from name: … > Force From Name aan 6. Set as primary, dan send a test 2. Instellen Gravity Forms formulieren: 1. Send To Email: uiteindelijke klant e-mail 2. From Email: website@… (zojuist aangemaakte e-mail) 3. Subject: Nieuwe {form_title} aanvraag van {dynamic_email} **WHM**: 1. Email Accounts 1. Create: smtp@.. + wachtwoord generaten (c) 1. Storage Space: 10gb, send welcome e-mail uit 2. Create: website@x 3. Toevoegen wp-config.php (staat standaard in create script): ```php define( 'GRAVITYSMTP_GENERIC_AUTO_TLS', true ); define( 'GRAVITYSMTP_GENERIC_USE_RETURN_PATH', true ); define( 'GRAVITYSMTP_GENERIC_ENCRYPTION_TYPE', true ); define( 'GRAVITYSMTP_GENERIC_HOST', 's1160.hostingsecure.com' ); define( 'GRAVITYSMTP_GENERIC_USERNAME', 'smtp@assisenadvocaat.be' ); define( 'GRAVITYSMTP_GENERIC_FROM_EMAIL', 'website@x.be'); define( 'GRAVITYSMTP_GENERIC_FROM_NAME', 'Bannister Advocaten | x.be' ); ``` 2. File Manager > wp_config 1. GENERIC_HOST > host adress (s1160…) 2. GENERIC_USERNAME > net aangemaakte e-mail (smtp@x) 3. GENERIC_FROM_EMAIL > net aangemaakte e-mail (website@x) 4. GENERIC_PASSWORD > net aangemaakte e-mail (c) 3. Public SSH key toevoegen **Visual Studio Code:** 1. SSH FS configuratie toevoegen (kopiëren existing) 2. .htaccess file openen en 301 redirects toevoegen **BOVENAAN** Voorbeeld code redirects: