PHP dan Mariadb Acces Denied Ga Mau Konek di Almalinux

Pesan **SELinux AVC denial** ini menunjukkan bahwa **PHP-FPM** (dengan konteks `httpd_t`) diblokir oleh SELinux saat mencoba terhubung ke socket MySQL (`/var/lib/mysql/mysql.sock`). Ini terjadi karena konteks keamanan SELinux tidak mengizinkan proses PHP-FPM untuk mengakses socket MySQL. Berikut adalah langkah-langkah untuk memperbaiki masalah ini: --- ### 1. **Periksa Konteks SELinux**Periksa konteks SELinux untuk socket MySQL:```bashls -Z /var/lib/mysql/mysql.sock```Contoh output:```srwxrwxrwx ...

View More
  Dibaca 252 kali

Semanage In rocky 9.3 For Permission Folder Root Web Server

The semanage command in Linux is used to manage SELinux (Security-Enhanced Linux) policies, configurations, and contexts. If you are using Rocky Linux 9.3, here's a brief guide on how to use semanage for common tasks: Installing semanage First, you need to ensure that the policycoreutils-python-utils package, which includes semanage, is installed: sudo dnf install policycoreutils-python-utils Common semanage Usage Here are some common semanage commands and their usage: 1. Adding and Modifying ...

View More
  Dibaca 563 kali

Fix Error you may need to install the HTMLEntities module

  For Centos/Fedora etc: yum install perl-HTML-Parser perl-libwww-perl For Debian based: apt install libhtml-parser-perl libwww-perl ...

View More
  Dibaca 397 kali

Solved Install Fail2Ban In Ubuntu 24.04

If Ubuntu 24.04 has not fixed the packaged content, this may install the incompatible version. To install the deb-package manually following steps are necessary for Ubuntu 24.04 (following the steps from How to install or upgrade fail2ban manually · fail2ban/fail2ban Wiki · GitHub. You may want to refer to the linked article for more details). The following is an example for 1.1.0: cd /tmp/ # 1) download deb package and signature: wget -O fail2ban.deb https://github.com/f ...

View More
  Dibaca 429 kali

Solusi Permission Denied When Upload File To Folder in Rocky Linux 9.3

Untuk mengatur konteks SELinux pada folder upload di Rocky Linux 9.3, Anda bisa menggunakan semanage untuk menambahkan atau memodifikasi konteks file. Misalnya, jika Anda memiliki folder upload di /var/www/html/upload, Anda bisa mengikuti langkah-langkah berikut untuk menyesuaikan konteks SELinux. Langkah-langkah Mengatur Konteks SELinux pada Folder Upload 1. Menambahkan Konteks Folder Pertama, tambahkan konteks SELinux yang sesuai untuk folder upload Anda. Misalnya, jika Anda ingin menggunakan ...

View More
  Dibaca 569 kali

Nginx permission denied while connecting to upstream in rocky 9.3 and fedora etc

Conclusion, maybe my problem was bind a standard port. To add your desired port use this command: sudo semanage port -a -t http_port_t -p tcp [yourport] Now run nginx with sudo: sudo systemctl stop nginx sudo systemctl start nginx This should solve the problem: setsebool -P httpd_can_network_connect 1 Option #2 (probably more secure) setsebool -P httpd_can_network_relay 1       ...

View More
  Dibaca 493 kali

I have got the following error when installed the module NGINX in WEBMIN

Webmin in rocky 9 error Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: /usr/libexec/webmin/vendor_perl /usr/libexec/webmin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /usr/libexec/webmin/ .) at /usr/libexec/webmin/nginx/index.cgi line 5. BEGIN failed--compilation aborted at /usr/libexec/webmin/nginx/index.cgi line 5.   This MY Sol ...

View More
  Dibaca 482 kali

How to Copy or Paste Text in Terminus

On Windows & Linux, use Ctrl-Shift-C to copy and Ctrl-Shift-V to paste.   ...

View More
  Dibaca 1641 kali