PROTEC WEBSITE — CPANEL UPLOAD AND LAUNCH
Prepared: 11 October 2026

RECOMMENDED LAUNCH METHOD

1. In cPanel, create a staging subdomain such as new.protec-corp.com.
2. Confirm AutoSSL is active for the staging subdomain.
3. Open File Manager and upload this ZIP into that subdomain's document root.
4. Extract it directly in the document root. index.html, .htaccess, assets and api
   must sit at the top level—not inside a second nested folder.
5. In api, copy config.php.example to config.php.
6. Edit config.php and choose one transport:

   Preferred — Resend
   - transport: resend
   - Add the authorised Resend API key.
   - The from_email domain/address must be verified with Resend.

   cPanel mail alternative
   - Create website@protec-corp.com in cPanel Email Accounts.
   - Confirm SPF and DKIM are valid in Email Deliverability.
   - Set transport to php_mail.
   - Keep from_email as website@protec-corp.com.

7. Keep to_email as info@protec-corp.com, unless ProTec provides another inbox.
8. Set PHP to version 8.1 or later. PHP cURL is required for Resend.
9. Visit https://STAGING-DOMAIN/api/enquiries.php. It must show:
   {"available":true}
10. Test the complete website on desktop and mobile:
    - All ten pages and navigation
    - Four-second hero carousel and controls
    - English / Español selector
    - Catalogue search and part-type filters
    - Add several products, including quantities
    - English enquiry hand-off with all selected products retained
    - Submit one authorised test and verify receipt in the ProTec inbox
    - Reply on the received email and confirm it addresses the buyer
    - Open all 12 downloadable catalogues
11. Only after testing: back up the current public_html files and database, then
    copy the staging files to public_html or change the domain document root.
12. Retest the live URL and confirm SSL, redirects and enquiry delivery.

IMPORTANT

- Never place an API key in HTML or JavaScript.
- Do not upload config.php.example with a real key. Put credentials only in
  api/config.php on the server.
- The form never opens the visitor's email application.
- The package contains 1,947 searchable part references and 12 current PDFs.
- Wire sets remain a business page/direct enquiry route because no new wire-set
  catalogue was supplied in the October 2026 catalogue set.
- If /api/enquiries.php reports available:false, do not launch until the sending
  configuration is corrected.
- A successful PHP response is not enough: confirm the message reaches the actual
  ProTec inbox before the domain is switched.

ROLLBACK

If a serious live issue appears, restore the backed-up public_html folder and
reconfirm the original website loads. Retain the staging site for corrections.
