diff --git a/REFDB_FORMAT.txt b/REFDB_FORMAT.txt index 681d4a3..ea4c50f 100644 --- a/REFDB_FORMAT.txt +++ b/REFDB_FORMAT.txt @@ -971,10 +971,13 @@ unknowns_blocking_full_support: - PHP version in vhost config (# iw-php-key: /opt/remi/php73) - works, non-critical plesk: - - Database prefix pattern (assumed no prefix) - - Correct plesk bin commands for user→domains - - System user for PHP processes (affects cron jobs!) - - Cron management method (standard vs plesk bin) + - ✅ RESOLVED: Database has prefix pattern appname_RANDOM (e.g., wp_i75pa) NOT no prefix (TESTED: real server 2025-11-20) + - ✅ RESOLVED: plesk bin subscription --info DOMAIN works (Owner's contact name field) + - ✅ RESOLVED: System user is file owner (e.g., admin_ftp) NOT www-data (TESTED: obsidian.pleskalations.com) + - ✅ RESOLVED: Cron uses standard crontab -u FILEOWNER (TESTED: 2025-11-20) + - ✅ RESOLVED: Log paths /var/www/vhosts/system/DOMAIN/logs/access_log VERIFIED + - ✅ RESOLVED: nginx + Apache setup confirmed + - ✅ TESTED: Plesk Obsidian 18.0.61.5 - ALL assumptions verified ################################################################################ # TESTING & VALIDATION PHASE diff --git a/testing/validate-plesk.sh b/testing/validate-plesk.sh index d65070b..9d88bfe 100755 --- a/testing/validate-plesk.sh +++ b/testing/validate-plesk.sh @@ -244,20 +244,22 @@ if [ -n "$TEST_DOMAIN" ]; then if [ -n "$SUBSCRIPTION_INFO" ]; then test_pass "Successfully retrieved subscription info for $TEST_DOMAIN" - # Look for Owner field - OWNER=$(echo "$SUBSCRIPTION_INFO" | grep -i "^Owner:" | awk '{print $2}') + # Look for Owner field - Plesk uses "Owner's contact name:" format + # Example: "Owner's contact name: LW Support (admin)" -> extract "admin" + OWNER=$(echo "$SUBSCRIPTION_INFO" | grep -i "^Owner's contact name:" | sed "s/^Owner's contact name:[[:space:]]*//" | grep -o '([^)]*)' | tr -d '()') + if [ -n "$OWNER" ]; then - test_pass "Found Owner field: $OWNER" - test_pass "VERIFIED: Domain→User lookup works via: plesk bin subscription --info DOMAIN | grep Owner" + test_pass "Found Owner's contact name field: $OWNER" + test_pass "VERIFIED: Domain→User lookup works via: plesk bin subscription --info DOMAIN | grep \"Owner's contact name\"" TEST_OWNER="$OWNER" else # Try Login field as alternative OWNER=$(echo "$SUBSCRIPTION_INFO" | grep -i "^Login:" | awk '{print $2}') if [ -n "$OWNER" ]; then - test_pass "Found Login field: $OWNER (alternative to Owner)" + test_pass "Found Login field: $OWNER (alternative to Owner's contact name)" TEST_OWNER="$OWNER" else - test_fail "Could not find Owner or Login field in subscription info" + test_fail "Could not find Owner's contact name or Login field in subscription info" fi fi