
[1m================================================[0m
[1m CMPTV — Complete VPS Setup[0m
[1m Log: /var/log/cmptv-setup-20260407-034122.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 45esy8) 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 1649260 (systemd+/proc check method).\n\nStartup Log\n\tApr 07 03:41:25 srv1313793.hstgr.cloud systemd[1]: Starting MariaDB 10.11.16 database server...\n\tApr 07 03:41:26 srv1313793.hstgr.cloud mariadbd[1649260]: 2026-04-07  3:41:26 0 [Warning] Could not increase number of max_open_files to more than 42000 (request: 64185)\n\tApr 07 03:41:27 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  Created: /root/manage.cmptv.ca
Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.

If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

If you'd like to continue as root, please run this again, adding this flag:  --allow-root

If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

    sudo -u USER -i -- wp <command>


Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.

If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

If you'd like to continue as root, please run this again, adding this flag:  --allow-root

If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

    sudo -u USER -i -- wp <command>


