Commit Graph

313 Commits

Author SHA1 Message Date
cschantz b441f3880a Fix install command with correct lowercase directory name 2025-11-03 19:26:24 -05:00
cschantz 6a64951d9a Improve 500 error detection with time-based filtering
- Increased line scanning from 5k/10k to 50k lines (covers more data)
- Added actual time-based filtering using log timestamps
- Now respects the user's time range selection (1h, 6h, 24h, 7d, 30d)
- Filters access logs by Apache timestamp format
- Filters error logs by PHP/Apache error timestamp format
- Shows timestamp with each 500 error for correlation
- Better catches intermittent 500 errors for real users

Example: If you select "Last 24 hours", it now actually filters
logs to only show errors from the last 24 hours, not just the
last N lines which could be 5 minutes on a busy server.
2025-11-03 19:24:54 -05:00
cschantz 5717d73d3a Update README with all-in-one installation command
- Added single-line command to download and run
- Downloads from Gitea, extracts, and launches in one go
- Keeps original method as alternative for already installed
2025-11-03 19:19:02 -05:00
cschantz 7145910cc2 Add intelligent root cause correlation to error analyzer
- Automatically detects error root causes:
  • .htaccess configuration issues
  • ModSecurity WAF blocks (with rule IDs)
  • PHP memory exhaustion (shows current limit)
  • PHP timeout/upload limits
  • File permission issues
  • Missing PHP extensions (GD, cURL, mysqli, etc.)
  • Database issues (max connections, auth failures, timeouts)
  • Apache configuration errors (502/503/504)
  • PHP syntax/parse errors
  • Missing files

- Enhanced error display with:
  • Root cause identification for each error
  • Color-coded severity indicators
  • Actionable fix instructions per error type
  • Root cause breakdown summary with counts

- Intelligent recommendations based on detected causes:
  • Specific commands to run for diagnosis
  • Configuration file locations to check
  • Recommended PHP module installations
  • Memory/timeout limit suggestions

Makes troubleshooting much faster by immediately identifying
whether issues are from .htaccess, ModSecurity, PHP config,
permissions, or missing dependencies.
2025-11-03 19:18:06 -05:00
cschantz 2c8ab0cd90 Improve error display with grouping and counting
- Group identical errors and show occurrence count
- Color-code by frequency (HIGH/MEDIUM/LOW)
- Show top 20 most frequent errors instead of all
- Clean up ModSecurity noise (unique_id, pid, tid tags)
- Skip empty error messages
- Exclude FTP logs and bytes_log files from analysis
- Much cleaner output focused on actionable errors
- Answer: Access logs show 5xx errors (500-599), not 404s
2025-11-03 19:11:31 -05:00
cschantz 5e517b9858 Add user/domain filtering and ModSecurity support to error analyzer
- Added per-user analysis (select cPanel user from list)
- Added per-domain analysis (enter specific domain)
- ModSecurity audit log integration
- Detects SQL injection, XSS, command injection blocks by ModSec
- Filters logs by user or domain when specified
- Shows ModSecurity blocks in error report
- Provides specific recommendations for ModSec false positives
- Matches bot analyzer's filtering capabilities
2025-11-03 19:08:53 -05:00
cschantz e396df5b1a Filter out legitimate browsers from bot analyzer
- Added intelligent browser detection filter
- Excludes Chrome, Firefox, Safari, Edge, Opera, Vivaldi, Samsung Browser
- Detects Mozilla/5.0 with AppleWebKit/Gecko as legitimate browsers
- Filters mobile browsers (Android, iPhone, iPad)
- Only flags actual bots, not regular user traffic
- Prevents false positives from browser user agents
2025-11-03 19:05:39 -05:00
cschantz e3525a3a96 Add intelligent website error analyzer
- Filters out bots, plugin warnings, deprecation notices
- Focuses on real user-facing issues (500s, fatal errors, database failures)
- Discovers ALL log locations (Apache, PHP error_log per domain)
- Analyzes both Apache error logs and per-domain PHP logs
- Added 30-day analysis option
- Intelligent noise filtering and critical error detection
- Provides specific actionable recommendations
- Added to Website Management menu as option 1
2025-11-03 19:02:41 -05:00
cschantz 53fb950765 Remove session data and improve .gitignore
- Remove .sysref.timestamp from repository
- Update .gitignore to explicitly exclude .sysref.timestamp
- Ensure no learned/session data is ever committed
- Repository now completely clean of runtime data
2025-11-03 18:46:23 -05:00
cschantz 2ee6d7d698 Add trace eraser tool for privacy
- New tool: erase-toolkit-traces.sh removes all toolkit traces
- Cleans bash history for all users
- Removes toolkit mentions from system logs
- Deletes download artifacts and temp files
- Optional: complete toolkit directory removal
- Added to main menu as option 10
2025-11-03 18:41:30 -05:00
cschantz da22b79983 Merge remote README with local comprehensive version 2025-11-03 18:28:38 -05:00
cschantz a51d968185 Initial commit: Server Management Toolkit v2.0
- Complete security menu restructure (3-mode: Analysis/Actions/Live)
- Intelligent cPHulk enablement with CSF whitelist import
- Live network security monitoring dashboard
- Multi-source threat detection and classification
- 50+ organized security tools across 4-level menu hierarchy
- System health diagnostics with cPanel/WHM integration
- Reference database for cross-module intelligence sharing
2025-11-03 18:21:40 -05:00
cschantz 1a13e11978 Initial commit 2025-11-03 18:14:51 -05:00