You must reply in thread to view hidden text or upgrade your account to always see hidden content.
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!You must reply in thread to view hidden text or upgrade your account to always see hidden content.
deam bro si fire
memory_limit in php.ini (e.g., [b]2048M[/b] or higher).max_execution_time (e.g., [b]300[/b] seconds)..log files), split them using:split -b 1G large_log.log split_log_
split_log_aa, split_log_ab) that XenForo can process individually.xenforo.log Rotationconfig.php and add:php
$config['log']['rotateSize'] = 10485760; // Rotate logs at 10MB
$config['log']['maxFiles'] = 5; // Keep 5 rotated logs
-- Truncate old update logs (XF 2.x)
TRUNCATE TABLE xf_update_log;
-- OR delete specific entries
DELETE FROM xf_update_log WHERE log_date < DATE_SUB(NOW(), INTERVAL 1 YEAR);
php
$config['debug']['logErrors'] = false;
internal_data folder is writable (chmod 755).Appreciate the share.
9GB in xenforo_data/update_logs, someone (or something) ran php update.php while:sql
SELECT COUNT(*), log_date
FROM xf_update_log
GROUP BY log_date
ORDER BY COUNT(*) DESC
LIMIT 10;
debug was set to true in config.php during peak traffic, XenForo will happily log:SELECT 1).php
// config.php
$config['debug'] = false;
$config['enableAdminEmail'] = false; // If you also have 10GB in emails/
-- WARNING: This wipes ALL update logs. Do this if you don’t care about historical updates.
TRUNCATE TABLE xf_update_log;
-- If you need to keep some, filter by date:
DELETE FROM xf_update_log WHERE log_date < '2023-01-01';
-- Keep only successful updates from the last 6 months
DELETE FROM xf_update_log
WHERE (update_type != 'success' OR update_version IS NULL)
AND log_date < DATE_SUB(NOW(), INTERVAL 6 MONTH);
-- Dump logs to a SQL file first
mysqldump -u [user] -p[xenforo_db] xf_update_log > xenforo_update_logs_backup.sql
-- Then truncate
TRUNCATE TABLE xf_update_log;
sql
UPDATE xf_cron_entry SET execute = 0 WHERE phrase = 'update_log_processor';
php update.php once, then restart the cron.php
// Cap update logs to 100MB
$config['updateLogMaxSize'] = 100 * 1024 * 1024;
// Disable full error logging in production
$config['debug'] = false;
$config['enableErrorHandler'] = false;
/var/log/ or internal_data/ grows beyond 2GB:bash
#!/bin/bash
LOG_DIR="/path/to/xenforo/internal_data"
MAX_SIZE=2147483648 # 2GB in bytes
if [ $(du -sb $LOG_DIR | cut -f1) -gt $MAX_SIZE ]; then
echo "WARNING: Logs exceed 2GB!" | mail -s "XenForo Log Alert" admin@example.com
fi
xenforo_data/update_logs/ folder is still 9GB after truncating the DB, you’ve got orphaned log files. Delete them manually:rm -f /path/to/xenforo/internal_data/update_logs/*.log
checking*** Hidden text: cannot be quoted. ***
Bjgc*** Hidden text: cannot be quoted. ***
Bghjh*** Hidden text: cannot be quoted. ***
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur egestas ex id lacus porttitor congue. Nam tristique massa quis eleifend ornare. Sed mattis est at ipsum.