
[1m================================================[0m
[1m CMPTV — Complete VPS Setup[0m
[1m Log: /var/log/cmptv-setup-20260407-034141.log[0m
[1m================================================[0m

[1m[0;34m--- PHASE 1: Environment Detection ---[0m
  [0;32m✓[0m  Running as: root  Home: /root
  [0;32m✓[0m  OS: AlmaLinux 9.7 (Moss Jungle Cat) | Kernel: 5.14.0-611.26.1.el9_7.x86_64 | IP: 76.13.114.192
  [0;32m✓[0m  cPanel: 134.0 (build 15)
  [0;32m✓[0m  Web server: httpd Apache/2.4.66
  [0;32m✓[0m  PHP: 8.3.30 | Binary: /opt/cpanel/ea-php83/root/usr/bin/php
  [0;32m✓[0m  PHP INI: /opt/cpanel/ea-php83/root/etc/php.ini
  [0;32m✓[0m  MySQL/MariaDB: 10.11.16-MariaDB | Config: /etc/my.cnf
  [0;32m✓[0m  Total RAM: 15730MB
  [0;32m✓[0m  WP-CLI: 

[1m[0;34m--- PHASE 2: PHP Optimisation ---[0m
  [0;32m✓[0m  PHP ini written: /root/php.ini
  [0;32m✓[0m    memory_limit=512M | max_execution_time=300 | max_input_vars=5000
---
metadata:
  command: php_ini_set_directives
  reason: "API failure: (XID 8s2ha7) Provide the “version” parameter for the “Whostmgr::API::1::Lang::PHP::php_ini_set_directives” function."
  result: 0
  version: 1
  [0;32m✓[0m  WHM API PHP settings applied
  [0;32m✓[0m  PHP memory_limit active: 128M

[1m[0;34m--- PHASE 3: MySQL/MariaDB Tuning ---[0m
  [0;32m✓[0m  MySQL tuning config written: /etc/my.cnf.d/cmptv-tuning.cnf
  [0;32m✓[0m    innodb_buffer_pool_size=2048M | max_connections=150
---
data:
  service: mysql
metadata:
  command: restartservice
  output:
    raw: "Waiting for “mysql” to restart ……waiting for “mysql” to initialize ………finished.\n\nService Status\n\tmariadb (/usr/sbin/mariadbd) is running as mysql with PID 1649612 (systemd+/proc check method).\n\nStartup Log\n\tApr 07 03:41:43 srv1313793.hstgr.cloud systemd[1]: Starting MariaDB 10.11.16 database server...\n\tApr 07 03:41:43 srv1313793.hstgr.cloud mariadbd[1649612]: 2026-04-07  3:41:43 0 [Warning] Could not increase number of max_open_files to more than 42000 (request: 64185)\n\tApr 07 03:41:43 srv1313793.hstgr.cloud systemd[1]: Started MariaDB 10.11.16 database server.\n\nmysql restarted successfully.\n"
  reason: OK
  result: 1
  version: 1
  [0;32m✓[0m  MySQL restarted via WHM API

[1m[0;34m--- PHASE 4: Real Server Cron (replacing WordPress fake cron) ---[0m
  [0;32m✓[0m  Cron already exists: */5 * * * * /opt/cpanel/ea-php83/root/usr/bin/php /root/publ...
  [0;32m✓[0m  Cron already exists: */5 * * * * /opt/cpanel/ea-php83/root/usr/bin/php /root/news...
  [0;32m✓[0m  Cron already exists: */15 * * * * /opt/cpanel/ea-php83/root/usr/bin/php /root/man...
  [0;32m✓[0m  Cron already exists: 2,7,12,17,22,27,32,37,42,47,52,57 * * * * /opt/cpanel/ea-php...
  [0;32m✓[0m  Cron already exists: 0 3 * * * df -h /root >> /var/log/cmptv-disk.log 2>&1...
  [0;32m✓[0m  Crontab updated — 0 new entries added
  [0;32m✓[0m  Cron daemon: active

[1m[0;34m--- PHASE 5: manage.cmptv.ca — WordPress + MainWP Dashboard ---[0m
  [0;32m✓[0m  WordPress downloaded
Error: Database connection error (1045) Access denied for user 'cmptv_manage_user'@'localhost' (using password: YES)
