PHP.ini : Cari & CeK lokasi File Apache PHP

Panduan cari file setingan PHP.ini pada server Linux, masuk SSH :

Ubah hapus file index.html :

rm -rf /var/www/html/index.html

Buat baru file cek PHP.ini

nano /var/www/html/index.php

Isi kode:

<?php phpinfo(); ?>

Buka URL : Ip_adresss // namadomain.

Ok, secara umum letak php.ini server linux adalah: /etc/php/8.3/apache2/php.ini

Tinggal ubah versi php yang digunakan.

Note:

Kalau sudah jangan lupa hapus / edit file index.php

rm -rf /var/www/html/index.php
READ :  Cara Seting Posisi Anchor ads Adsense dibagian Bawah