Catatan

Guide to Configuring PHP-FPM Slow Logs - Ubuntu Server or AlmaLinux

  Guide to Configuring PHP-FPM Slow Logs To ensure   php-fpm-slowlog.sh script has data to analyze, we need to properly configure PHP-FPM to generate slow request logs. These logs capture details about PHP scripts that take longer than a specified duration to execute. https://gist.github.com/linuxmalaysia/f6d9ad909318eafd91804f78eacd112f Here's how to set it up: Step 1: Locate Your PHP-FPM Pool Configuration File PHP-FPM pool configuration is typically found in a directory like /etc/php/8.3/fpm/pool.d/ . From   ls output, your main pool configuration file is www.conf . File Path: /etc/php/8.3/fpm/pool.d/www.conf Step 2: Edit the www.conf File Open this file using a text editor (like nano or vi ): sudo nano /etc/php/8.3/fpm/pool.d/www.conf Step 3: Configure request_slowlog_timeout and slowlog Inside the www.conf file, we need to find or add the following two directives within the [www] pool section. request_slowlog_timeout : This directive...

Pemasangan Elastic Stack Air-Gap: Panduan untuk Pentadbir Sistem

 πŸš€ Pemasangan Elastic Stack Air-Gap: Panduan untuk Pentadbir Sistem πŸ›‘️ https://docs.google.com/document/d/e/2PACX-1vSO8zWYqCHe7VeBrxqFmnlYlvF7zw263dDDYo1hHGAZeRKnc2resOuF3Z3O7UFQ8yYoDGFQr7Ps3SRq/pub Baca selanjutnya, γ„γŸγ γ‘γΎγ™ . Sekiranya anda berurusan dengan persekitaran 'air-gap' (tiada capaian internet langsung) dan memerlukan Elastic Stack, ini adalah panduan komprehensif. Tiada lagi kerumitan dengan konfigurasi proksi atau pemindahan fail secara manual untuk setiap fail-fail binari. Isi kandungan Capaian Internet Sekali Sahaja: Buat sambungan sementara sebuah server 'staging' ke Internet untuk memuat turun semua komponen – Elasticsearch, Kibana, pelbagai jenis Elastic Agent, Beats, Endpoint Security, Prodfiler, serta fail tandatangan digitalnya. Bangunkan Repositori Tempatan:Sediakan Nginx. Ini akan menjadi salinan artifak untuk rangkaian dalaman. Pemasangan dan konfigurasi Nginx turut dilakukan oleh skrip ini. Fleet rangkaian dalaman: Setelah repositori tempatan a...

HOWTO: Install WSL2 and Move AlmaLinux 9 to Another Drive

  HOWTO: Install WSL2 and Move AlmaLinux 9 to Another Drive TL;DR A guide for myself. A product of my professional experience as a Linux system administrator, enhanced and articulated with the aid of AI tools to ensure comprehensive coverage and clarity for technical audiences.  This guide details the process of installing the Windows Subsystem for Linux version 2 (WSL2) on Windows 11 Pro and subsequently installing AlmaLinux 9 onto a non-default drive (D:), ensuring a secure and efficient setup. Copies around the web https://gist.github.com/linuxmalaysia/491098eea7160aa184e85c19d6b68acc https://medium.com/@linuxmalaysia/phase-2-install-wsl2-and-move-almalinux-9-to-another-drive-bb9f9649fc59 Phase 1: Installing WSL2 on Windows 11 Pro Enable the Virtual Machine Platform and WSL Features Open PowerShell as Administrator. This elevated privilege is necessary to modify system features. Execute the following command to enable the core WSL functionality: PowerShell dism.exe /online...