Apr 20, 2013

Mengatasi “Acces Forbidden” XAMPP di Linux



Mengatasi “Acces Forbidden” XAMPP 1.8.1 di Linux


Assalamu’alaikum..
Oke, beberapa waktu yang lalu XAMPP for linux telah merilis versi terbarunya yaitu 1.8.0. Setelah diinstall, ternyata “localhost/phpmyadmin” tidak bisa diakses karena beberapa alasan keamanan. Setelah mengetahui ternyata ada ERROR 403 dan Acces Forbidden , saya googling di linux ku dan ternyata dapat “problem solving”-nya.
Ketika XAMPP di nyalakan kemudian masuk ke localhost/phpmyadmin terdapat pesan seperti di bawah ini :

Access forbidden!





New XAMPP security concept:
Access to the requested object 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
Kalo dapat masalah seperti ini maka solusinya seperti di bawah ini :
  1. Buka terminal kesayangan anda.
  2. Kemudian bukalah file httpd-xampp.conf yang tempatnya berada di/opt/lampp/etc/extra/httpd-xampp.conf
  3. Kemudian carilah kode seperti di bawah ini :
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
4.   Setelah dapat kode seperti diatas maka tambahkan “Require all granted” di bawah “Allow from all
5.   Final, restart xampp “sudo /opt/lampp/lampp restart” di terminal.
Sekian

0 comments:

Post a Comment