Mengatasi Error 403 pada phpmyadmin di XAMPP

Setelah melakukan instalasi XAMPP seperti pada tulisan sebelumnya, akhirnya bisa mengakses localhost melalui peramban web. Ternyata masalah muncul waktu mencoba mengakses phpmyadmin. Muncul pesan berikut ini:

Access forbidden!

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file “httpd-xampp.conf”.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7

Akhirnya dengan bantuan Google, mendapatkan pencerahan di sini.

Langkahnya adalah (sesuai dengan perintah pada halaman error tersebut), kita harus melakukan perubahan pada file http-xampp.conf yang berada pada folder /opt/lampp/etc/extra.

Buka terminal, lalu ketikkanlah:

sudo geany /opt/lampp/etc/extra/httpd-xampp.conf

Catatan: gantilah geany dengan aplikasi text editor yang ada pada distro linux Anda.

Setelah aplikasi geany terbuka, carilah tulisan:

<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>

Pada aplikasi geany milik penulis, tulisan tersebut berada pada baris 15 sampai 19.

Tambahkan tulisan Require all granted> hingga menjadi seperti berikut ini:

<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>

Simpanlah file httpd-xampp.conf yang telah dirubah tadi, lalu jalankan lagi xampp.

Sekian tulisan singkat ini, semoga bermanfaat.

Tags:

4 Comments

  1. andijoe 5 Desember 2013
    • ipulborneo 5 Desember 2013
  2. oprekmotor 23 Maret 2016
    • ipulborneo 23 Maret 2016

Leave a Reply