-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
This guide will walk you through the essential configuration steps for the Advanced Log Manager plugin, ensuring you can effectively monitor and manage your WordPress site. We'll cover enabling debug mode, understanding the basic debug settings, and managing PHP configuration presets.
Advanced Log Manager menyediakan cara termudah untuk mengaktifkan debug mode tanpa perlu edit file manual!
-
Akses Dashboard Plugin:
- Login ke WordPress Admin Dashboard
- Klik Tools β Advance Log Manager
-
Aktifkan Debug Mode:
- Di dashboard utama, cari tombol besar "Enable Debug Mode"
- Klik tombol tersebut
- Plugin akan otomatis mengkonfigurasi
wp-config.php
-
Verifikasi Setup:
- Status Debug Mode akan berubah menjadi "Active"
- Anda akan melihat indikator hijau di "Error Logging" dan "Error Display"
Keuntungan metode ini:
- β Tidak perlu FTP access
- β
Auto-backup
wp-config.php - β Konfigurasi otomatis semua constants
- β Safe rollback jika ada masalah
Jika Anda lebih suka kontrol manual atau memiliki server khusus, ikuti langkah-langkah berikut.
-
Connect to your server:
- Use an FTP client (e.g., FileZilla, Cyberduck) or your hosting provider's file manager (e.g., cPanel File Manager) to access your WordPress installation's root directory. This is where you'll find
wp-config.php.
- Use an FTP client (e.g., FileZilla, Cyberduck) or your hosting provider's file manager (e.g., cPanel File Manager) to access your WordPress installation's root directory. This is where you'll find
-
Edit the
wp-config.phpfile:- Locate and open the
wp-config.phpfile using a text editor.
- Locate and open the
-
Add the debug constants:
- Find the line
/* That's all, stop editing! Happy publishing. */. - Insert the following lines of code just before this comment:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
-
define( 'WP_DEBUG', true );: Activates debug mode across your WordPress site, reporting all PHP errors, notices, and warnings. -
define( 'WP_DEBUG_LOG', true );: Ensures all debug messages are saved todebug.login thewp-contentdirectory. Recommended for production to keep errors private. -
define( 'WP_DEBUG_DISPLAY', false );: Prevents debug messages from being shown directly on your website, enhancing security and user experience while still logging them.
- Find the line
-
Save the file:
- Save changes and re-upload
wp-config.phpif using an FTP client.
- Save changes and re-upload
Setelah install dan aktivasi, settings Advanced Log Manager dapat diakses dari dashboard WordPress admin.
-
Log in to your WordPress Admin Dashboard:
- Navigate to
yourwebsite.com/wp-adminand enter your credentials.
- Navigate to
-
Locate the Plugin Menu Item:
- In the left-hand sidebar, find "Advanced Log Manager" under Tools menu.
-
Explore the Interface:
- Dashboard utama menampilkan overview sistem dengan cards:
- Debug Mode Status - Active/Inactive indicator
- Performance Monitor - Monitoring status
- Debug Log - File size dan status logging
- Query Log - Database query monitoring
- SMTP Logs - Email logging status
- Dashboard utama menampilkan overview sistem dengan cards:
The plugin's settings panel provides granular control over various aspects of logging and site management.
This is your central hub for a quick glance at the plugin's status.
-
Top Information Cards:
- DEBUG MODE: Active/Inactive: Shows if WordPress debug mode is currently active.
- PERFORMANCE MONITOR: Monitoring/Inactive: Indicates if performance monitoring is running.
- DEBUG LOG: Active - [Size]: Status of debug logging and current log file size.
- QUERY LOG: Active - [Size]: Status of database query logging and current log file size.
- SMTP LOGS: Active - [Status]: Status of SMTP email logging.
-
"Enable Debug Mode" Section:
- Description: "Enable or disable all debug features. This controls WordPress debug constants and logging functionality."
- "Debug Mode Enabled" Toggle: A master switch to activate or deactivate all debug functionalities.
- Status Indicators (Error Logging, Error Display, Script Debug, Query Logging): Visual cues (e.g., green for active, red for inactive) for specific debug aspects.
-
Feature Cards (Bottom Section):
- Debug Management: Controls WordPress debug settings and log management. Click "Configure" for detailed options.
- Performance Monitor: Monitors site performance and query analysis. Click "Configure" for settings.
-
.htaccess Editor: Tool for safely editing your
.htaccessfile. Click "Open Editor" to access. - PHP Config: Manages PHP configuration presets and optimization. Click "Configure" for options.
This panel offers essential debug configurations.
- "Enable Debug Mode" Toggle: Master switch for all debug functionality.
-
WordPress Debug Constants (Expandable): Configure
WP_DEBUG,WP_DEBUG_LOG,WP_DEBUG_DISPLAYdirectly from the UI. - Email & SMTP Debug (Expandable): Settings for debugging email sending and SMTP issues.
- Log Status & Quick Actions (Expandable): View log file statuses and perform quick actions like clearing logs.
- Danger Zone (Expandable): Contains sensitive actions such as resetting settings or clearing all logs. Use with extreme caution.
This tool allows you to manage your server's .htaccess file.
-
Backup Status: "Backups: 0/3 available" indicates how many backups of your
.htaccessfile are available. Always make backups before making changes! -
Code Editor Area: Where you can view and modify the
.htaccessfile content. - "Backup & Save" Button: Saves your changes and creates a backup.
- "Cancel" Button: Discards unsaved changes.
- "Common Snippets": Pre-defined code snippets for common tasks like WordPress Rewrite Rules, Browser Caching, GZIP Compression, and Security Headers.
This panel helps optimize your site's PHP environment.
-
"Configuration Method: Wp_config": Shows that configurations are managed via
wp-config.php. -
"Select Preset": Choose from pre-defined PHP settings:
- Basic: For small sites with light traffic (e.g., Memory Limit: 256M, Upload Max Filesize: 8M).
- Medium: Good for most WordPress sites (e.g., Memory Limit: 512M, Upload Max Filesize: 16M).
- High Performance: For high-traffic sites and complex applications (e.g., Memory Limit: 2048M, Upload Max Filesize: 64M).
- "Current Configuration": Displays your site's currently active PHP settings.
- "Apply Configuration" Button: Applies the selected preset or custom settings to your site.
By understanding and utilizing these configuration options, you can tailor the Advanced Log Manager to your specific needs, ensuring optimal monitoring and troubleshooting capabilities for your WordPress site.
- Home Ringkasan dan fitur utama Advanced Log Manager.
- Quick Start Panduan 5 menit setup untuk pemula.
- Features Penjelasan mendalam tentang semua fitur yang ditawarkan plugin.
- Installation Panduan langkah demi langkah untuk menginstal plugin.
- Configuration Detail tentang pengaturan dan konfigurasi plugin.
- Troubleshooting Solusi untuk masalah umum yang mungkin Anda temui.
- Developer Guide Panduan teknis untuk pengembang, termasuk hooks dan filter.