Instalasi php.info di RHEL 9.4

 

LANGKAH 1: INSTALASI REPOSITORY EPEL

Screenshot 1:

Instalasi EPEL repository berhasil dengan paket
epel-release-9-10.el9.noarch. Sistem merekomendasikan untuk mengaktifkan CodeReady Builder (CRB) repository.

LANGKAH 2: INSTALASI REMI REPOSITORY

Screenshot 2:

Instalasi remi-release dan konfigurasi module PHP:
  • dnf module reset php -y - Mereset module PHP
  • dnf module enable php:remi-8.2 -y - Mengaktifkan PHP 8.2 dari Remi
  • Output menunjukkan "Enabling module streams: php remi-8.2"
  • Transaction Summary dan Complete!

LANGKAH 3: INSTALASI PHP DAN EXTENSIONS

Screenshot 3:

Perintah instalasi PHP:
bash
Terminal menunjukkan "Updating Subscription Management repositories" dengan cursor hijau menunggu proses.

LANGKAH 4: PROSES INSTALASI 17 PACKAGES

Screenshot 4:

Proses instalasi lengkap dengan 17 packages:
  • Running transaction check succeeded
  • Installing packages (1/17 sampai 17/17):
    • php-common-8.0.30
    • php-pdo-8.0.30
    • libwebp-1.2.0-8
    • php-cli-8.0.30
    • php-mbstring-8.0.30
    • php-opcache-8.0.30
    • nginx-filesystem-2:1.20.1-24
    • php-fpm-8.0.30
    • libxslt-1.1.34-14
    • php-xml-8.0.30
    • libXpm-3.5.13-10
    • jbigkit-libs-2.1-23
    • libtiff-4.4.0-15
    • gd-2.3.2-3
    • php-gd-8.0.30
    • php-8.0.30
    • php-mysqlnd-8.0.30
  • Verifying semua packages (1/17 sampai 17/17)
  • Installed products updated
  • Complete!

LANGKAH 5: HASIL INSTALASI DAN VERIFIKASI

Screenshot 5:

Daftar packages yang terinstal dan verifikasi:
  • Installed packages:
    • gd-2.3.2-3.el9.x86_64
    • jbigkit-libs-2.1-23.el9.x86_64
    • libXpm-3.5.13-10.el9.x86_64
    • libtiff-4.4.0-15.el9_7.2.x86_64
    • libwebp-1.2.0-8.el9_3.x86_64
    • libxslt-1.1.34-14.el9_7.1.x86_64
    • nginx-filesystem-2:1.20.1-24.el9_7.2.noarch
    • php-8.0.30-5.el9_7.x86_64
    • php-cli-8.0.30-5.el9_7.x86_64
    • php-common-8.0.30-5.el9_7.x86_64
    • php-fpm-8.0.30-5.el9_7.x86_64
    • php-gd-8.0.30-5.el9_7.x86_64
    • php-mbstring-8.0.30-5.el9_7.x86_64
    • php-mysqlnd-8.0.30-5.el9_7.x86_64
    • php-opcache-8.0.30-5.el9_7.x86_64
    • php-pdo-8.0.30-5.el9_7.x86_64
    • php-xml-8.0.30-5.el9_7.x86_64
  • Error restart (typo):
  • Perintah yang benar:
    bash
  • Output PHP version:

LANGKAH 6: VERIFIKASI ULANG INSTALASI

Screenshot 6:

Menjalankan ulang perintah instalasi untuk verifikasi:
bash
Output:
Semua paket PHP sudah terinstal dengan sukses.

LANGKAH 7: AKSES PHPINFO() MELALUI BROWSER

Screenshot 7:

Halaman phpinfo() berhasil diakses di browser dengan URL
192.168.30.3/info.php
Informasi yang ditampilkan:
Header:
  • PHP Version: 8.0.30
  • Logo PHP
System Information:
  • System: Linux Banitama-03-TKJA 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 10 10:29:16 EDT 2024 x86_64
  • Build Date: Jan 16 2026 07:03:58
  • Build System: Red Hat Enterprise Linux release 9.7 (Plow)
  • Build Provider: Red Hat, Inc.
  • Compiler: gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11)
  • Architecture: x86_64
  • Server API: FPM/FastCGI
  • Virtual Directory Support: disabled
  • Configuration File (php.ini) Path: /etc
  • Loaded Configuration File: /etc/php.ini
  • Scan this dir for additional .ini files: /etc/php.d
Additional .ini files parsed (29 files):
  • /etc/php.d/10-opcache.ini
  • /etc/php.d/20-bz2.ini
  • /etc/php.d/20-calendar.ini
  • /etc/php.d/20-ctype.ini
  • /etc/php.d/20-curl.ini
  • /etc/php.d/20-dom.ini
  • /etc/php.d/20-exif.ini
  • /etc/php.d/20-fileinfo.ini
  • /etc/php.d/20-ftp.ini
  • /etc/php.d/20-gd.ini
  • /etc/php.d/20-gettext.ini
  • /etc/php.d/20-iconv.ini
  • /etc/php.d/20-mbstring.ini
  • /etc/php.d/20-mysqlnd.ini
  • /etc/php.d/20-pdo.ini
  • /etc/php.d/20-phar.ini
  • /etc/php.d/20-posix.ini
  • /etc/php.d/20-shmop.ini
  • /etc/php.d/20-simplexml.ini
  • /etc/php.d/20-sockets.ini
  • /etc/php.d/20-sqlite3.ini
  • /etc/php.d/20-sysvmsg.ini
  • /etc/php.d/20-sysvsem.ini
  • /etc/php.d/20-sysvshm.ini
  • /etc/php.d/20-tokenizer.ini
  • /etc/php.d/20-xml.ini
  • /etc/php.d/20-xmlreader.ini
  • /etc/php.d/20-xmlwriter.ini
  • /etc/php.d/20-xsl.ini
  • /etc/php.d/30-mysqli.ini
  • /etc/php.d/30-pdo_mysql.ini
  • /etc/php.d/30-pdo_sqlite.ini
  • /etc/php.d/30-xmlreader.ini
PHP API & Extensions:
  • PHP API: 20200930
  • PHP Extension: 20200930
  • Zend Extension: 420200930
  • Zend Extension Build: API420200930,NTS
  • PHP Extension Build: API20200930,NTS
  • Debug Build: no
  • Thread Safety: disabled
  • Zend Signal Handling: enabled
  • Zend Memory Manager: enabled
  • Zend Multibyte Support: provided by mbstring
  • IPv6 Support: enabled
  • DTrace Support: available, disabled
Registered PHP Streams: https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar
Registered Stream Socket Transports: tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filters: zlib., string.rot13, string.toupper, string.tolower, convert., consumed, dechunk, bzip2., convert.iconv.

KESIMPULAN

Instalasi PHP 8.0.30 di RHEL 9.4 berhasil dengan 7 screenshot dokumentasi lengkap:
Screenshot 1: EPEL repository installation
Screenshot 2: Remi repository & module enable
Screenshot 3: PHP installation command
Screenshot 4: Installation process (17 packages)
Screenshot 5: Installed packages list & php -v verification
Screenshot 6: Re-verification (all packages already installed)
Screenshot 7: phpinfo() page in browser
Status Instalasi:
  • ✅ PHP 8.0.30 terinstal dari Remi Repository
  • ✅ 17 packages termasuk extensions (MySQL, GD, XML, Mbstring, PDO, dll)
  • ✅ PHP-FPM berjalan dengan Apache (FPM/FastCGI)
  • ✅ 29 extension .ini files di /etc/php.d/
  • ✅ phpinfo() dapat diakses via browser
  • ✅ Zend OPcache v8.0.30 aktif
Keamanan: ⚠️ Hapus file info.php setelah testing:
bash

Dokumentasi ini disusun pada: 20 April 2026
Sistem Operasi: Red Hat Enterprise Linux 9.7 (Plow)
Hostname: Banitama-03-TKJA
Kernel: 5.14.0-427.13.1.el9_4.x86_64
PHP Version: 8.0.30 (FPM/FastCGI)
Repository: Remi Repository (remi-8.2)
Total Packages Installed: 17
Extension Configs: 29 files di /etc/php.d/

Komentar

Postingan populer dari blog ini

Logging in ke Mikrotik RB (952-5AC2ND) Menggunakan Win Box

Instalasi Redhat Di Virtual Box 7.2.2

instalasi debian 11 di virtualbox