Mengatasi “Acces Forbidden” XAMPP 1.8.1 di Linux
Di sini Nisan akan share pengalaman nisan yang kedua tentang erorr pada xampp/lampp. Dan ini masalah sebelumnya http://nisan.devilzc0de.org/2012/12/menjalankan-xampp-di-windows-7.html . Ketika Selesai prosess instalasi, dan Lampp nya pun sudah Nisan aktifkan. Muncul Pesan seperti berikut pada " http://localhost/phpmyadmin " :
Menurut Sumber yang Nisan dapatkan, 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. dan berikut cara mengatasinya :
=> Buka terminal ( Ctrl + Alt + Del ),
=> Lalu buka file httpd-xampp.conf yang terletak di :
/opt/lampp/etc/extra/httpd-xampp.conf=> Cari kata-kata seperti di bawah ini :
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>=> Setelah itu tambahkan “Require all granted” di bawah "Allow from all" . Sehingga menjadi seperti di bawah ini :
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
=> Simpan dan restart
#sudo /opt/lampp/lampp restart
Sekian dari Nisan, semoga bermanfaat dan wassalamualaikum wr. wb.
-------------------------------------------------------------------------------------------------------------
Access forbidden! New XAMPP security concept:
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
Any idea what the problem is ?
I can't find httpd-xampp.conf
- rshap
- Posts: 1
- Joined: 21. September 2009 22:00
Re: Access forbidden! New XAMPP security concept:
look at
/opt/lampp/etc/extra/http-xampp.conf
Comment out the lines:
"New XAMPP security concept"
and delete the .htaccess Files in the htdocs directories
/opt/lampp/etc/extra/http-xampp.conf
Comment out the lines:
"New XAMPP security concept"
and delete the .htaccess Files in the htdocs directories
- Psybenzon
- Posts: 2
- Joined: 25. September 2009 18:48
Re: Access forbidden! New XAMPP security concept:
don't forget to stop and restart the XAMPP Control Panel between changes...
- marklanham
- Posts: 1
- Joined: 17. March 2011 12:36
Re: Access forbidden! New XAMPP security concept:
Hi,The Solution for this issue is :
You need to edit the file httpd-xampp.conf and location for it is cd /opt/lampp/etc/extra/
1. Run the following command:
[root@demo ~]# vi /opt/lampp/etc/extra/httpd-xampp.conf
the file will open , go to the end of file which will look like below
- Code: Select all
#
# New XAMPP security concept
#<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
You need to change it like below:
- Code: Select all
# New XAMPP security concept
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
Means you need comment out the line <LocationMatch and make Deny for all to Allow for all
2. The restart the xampp for this command is below
/opt/lampp/lampp restart
This is all !
sbr:https://community.apachefriends.org/f/viewtopic.php?p=149485
Tidak ada komentar:
Posting Komentar