CRITICAL FIX: Correct InterWorx database prefix pattern (verified from official docs)

DOCUMENTATION CORRECTION - VERIFIED FROM INTERWORX DOCS:

Database Prefix Pattern:
-  OLD (WRONG): InterWorx uses first8charsOfDomain_dbname
-  NEW (CORRECT): InterWorx uses username_dbname (SAME AS CPANEL!)

Source: https://appendix.interworx.com/current/siteworx/mysql/database-guide.html

Official InterWorx Documentation States:
"All databases created in SiteWorx will be prefixed by the SiteWorx
account unix username."

This means:
- cPanel: username_dbname
- InterWorx: username_dbname (SAME!)
- Plesk: no prefix (TBD)

ALSO VERIFIED FROM OFFICIAL DOCS:

File System Structure:
 Home: /home/USERNAME/
 Docroot: /home/USERNAME/DOMAIN/html/
 Access logs: /home/USERNAME/var/DOMAIN/logs/transfer.log
 Error logs: /home/USERNAME/var/DOMAIN/logs/error.log

Source: https://appendix.interworx.com/current/nodeworx/general/other/log-file-locations.html

IMPACT:
- Our CODE doesn't use database prefixes, so scripts still work correctly
- Only DOCUMENTATION was wrong
- Updated REFDB_FORMAT.txt and .sysref

RESOLVED UNKNOWNS:
-  InterWorx database prefix pattern
-  InterWorx file system paths
-  InterWorx log locations
This commit is contained in:
cschantz
2025-11-20 00:21:55 -05:00
parent 7c8ac5632b
commit 0adf7e3654
+18 -13
View File
@@ -762,8 +762,8 @@ paths:
# CRITICAL DATABASE PREFIX PATTERN (MOST IMPORTANT!) # CRITICAL DATABASE PREFIX PATTERN (MOST IMPORTANT!)
database_prefixes: database_prefixes:
cpanel: username_dbname cpanel: username_dbname
interworx: first8charsOfDomain_dbname # NOT username! interworx: username_dbname # SAME AS CPANEL! (verified from official docs)
plesk: no prefix plesk: no prefix (TBD - needs verification)
# Module Classification System # Module Classification System
classes: classes:
@@ -862,10 +862,13 @@ commits:
critical_interworx_verification: critical_interworx_verification:
filesystem: filesystem:
- Home: /home/USERNAME/ - VERIFIED Home: /home/USERNAME/
- Docroot: /home/USERNAME/DOMAIN/html/ - VERIFIED Docroot: /home/USERNAME/DOMAIN/html/
- Access logs: /home/USERNAME/var/DOMAIN/logs/access_log - VERIFIED Access logs: /home/USERNAME/var/DOMAIN/logs/transfer.log (HTTP)
- Error logs: /home/USERNAME/var/DOMAIN/logs/error_log - VERIFIED Access logs SSL: /home/USERNAME/var/DOMAIN/logs/transfer-ssl.log (HTTPS)
- VERIFIED Error logs: /home/USERNAME/var/DOMAIN/logs/error.log (HTTP)
- VERIFIED Error logs SSL: /home/USERNAME/var/DOMAIN/logs/error-ssl.log (HTTPS)
- Source: https://appendix.interworx.com/current/nodeworx/general/other/log-file-locations.html
domain_to_user: domain_to_user:
- Method: grep vhost_*.conf for ServerName + SuexecUserGroup - Method: grep vhost_*.conf for ServerName + SuexecUserGroup
@@ -878,9 +881,10 @@ critical_interworx_verification:
- Option 3: Check for InterWorx CLI tools - Option 3: Check for InterWorx CLI tools
database_prefix: database_prefix:
- CRITICAL: Assumed first8charsOfDomain_ - VERIFIED: Uses username_ prefix (same as cPanel!)
- Example: testdomain.com → testdoma_wp123 - Source: https://appendix.interworx.com/current/siteworx/mysql/database-guide.html
- MUST VERIFY on real server! - Example: username "testuser" → testuser_wp123, testuser_db456
- InterWorx automatically prefixes with SiteWorx account unix username
cron_management: cron_management:
- Assumed: Standard Linux crontab -u username - Assumed: Standard Linux crontab -u username
@@ -956,10 +960,11 @@ commands_to_run_on_test_servers:
unknowns_blocking_full_support: unknowns_blocking_full_support:
interworx: interworx:
- Database prefix pattern (assumed but not verified) - ✅ RESOLVED: Database prefix is username_ (verified from docs)
- Best method for user→domains lookup - ✅ RESOLVED: File paths all verified from official docs
- PHP version configuration method - Best method for user→domains lookup (vhost parsing works)
- InterWorx CLI commands availability - PHP version configuration method (non-critical)
- InterWorx CLI commands availability (optional, vhost parsing works)
plesk: plesk:
- Database prefix pattern (assumed no prefix) - Database prefix pattern (assumed no prefix)