Hello Everyone,
I have just downloaded the new XAMPP 1.8.0. and got the error at localhost/phpmyadmin
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
So the solution for this is as follows:
2) Find <Directory "/opt/lampp/phpmyadmin">
3) Now just add Require all granted before </Directory>
4) So the code will look like this
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
5) Now finally Restart the xampp with this command /opt/lampp/lampp restart
That's it and you are Done!
Found it helpful ? Comment's please :)
Thanks for reading.
Enjoy & Be Open
Amit Naik
I have just downloaded the new XAMPP 1.8.0. and got the error at localhost/phpmyadmin
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
So the solution for this is as follows:
1) Open httpd-xampp.conf which is at /opt/lampp/etc/extra/
3) Now just add Require all granted before </Directory>
4) So the code will look like this
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
5) Now finally Restart the xampp with this command /opt/lampp/lampp restart
That's it and you are Done!
Found it helpful ? Comment's please :)
Thanks for reading.
Enjoy & Be Open
Amit Naik
At last! I've been battling this error for weeks and tried every solution I could find, but none worked. I knew the solution had to be very simple. Thank you!
ReplyDeleteThanks! I couldnt find this answer on the official forum. You helped me out big time.
ReplyDelete"Access to the requested object is only available from the local network." while im connecting to localhost/phpmyadmin
Well. Solved. Thanks!
Big thanks.. It helped me too
ReplyDeleteBig thanks, so helpfull :D
ReplyDeleteGreat, Work for me
ReplyDeleteEso es todo!! ñ_ñ
ReplyDeleteThanks Very much
ReplyDeleteThank you so much, I've been struggling with this for the past 2 weeks.
ReplyDeleteJust nice man.
ReplyDeleteThanks for the help.
Have a nice XMas
:) thanks mary xmas to you too.
Deletewow! that was really helpful, thank you so much for this
ReplyDeletecant access xampp server site from any other outside network computer...only can c welcome page from localhost....and if i enter my public address in the same laptop where xampp is installed, it works....but when others type my public ip address, its not working n says "could not connect to remote server" ...windows 7...xampp version 1.81 ... firewall is also off and i use internet via my phone's tethering hotspot...please help ...
ReplyDeleteHmm So you want the whole world to see your xampp right ? If so then please follow this ( this is for windows 7 folks)
Delete1) go to C:\xampp\apache\conf\extra\
2) open httpd-xampp.conf file in wordpad or any editor.
3) search for Order deny,allow
Please ignore the first Order deny,allow. Look at the second Order deny,allow
4) Now on next line of Order deny,allow put the # just before Deny from all so the code will look like this\
Order deny,allow
# Deny from all
5) Finally restart the XAMPP & check if it is accessible.
NOTE: This is not a secure way to open your XAMPP port world wide. You must have a password set for phpmyadmin . When not in use stop the APACHE etc.
Thanks everyone!!!!
ReplyDeleteWorked for me ....Thanks a lot buddy...:D
ReplyDeleteThanks a lot for this! Great.
ReplyDeletethen reboot the system ...
ReplyDeleteWorked for me. thanks a lot
ReplyDeleteWorked for me.Very usifullllllll
ReplyDeletehi
ReplyDeletei tried your suggestions but now it is showing
Fatal error: Call to undefined function __() in /opt/lampp/phpmyadmin/libraries/Config.class.php on line 755
please help
I got that error too.. What i did was this.. Opened the Config.class.php file -> commented(//) the 755th line(//die(__('Wrong permissions on configuration file, should not be world writable!'));
Delete)...
I am not a professional.. but it worked for me... and i dont know what are the demerits of it... :)
Great work, thank you !
ReplyDeleteI also tried the suggestions but now it is showing:
ReplyDeleteFatal error: Call to undefined function __() in /opt/lampp/phpmyadmin/libraries/Config.class.php on line 755
I got that error too.. What i did was this.. Opened the Config.class.php file -> commented(//) the 755th line(//die(__('Wrong permissions on configuration file, should not be world writable!'));
Delete)...
I am not a professional.. but it worked for me... and i dont know what are the demerits of it... :)
Thank you Amit Naik , i got it
ReplyDeleteSimple and precise. Thanks.
ReplyDeletehow do I edit httpd-xampp-conf. file! i can't re-edit and all! it says, you have not enough permissions to perform the operations
ReplyDeleteok so do as following..
Delete1) open your terminal
2) cd to that respective directory
3) type this command sudo gedit httpd-xampp.conf
if it is asking for password then use root password
OR
1) open terminal
2) enter this command sudo nautilus
3) now browse to this directory/file and you can write anything to that file.
thx alot!
ReplyDeleteThanx dude
ReplyDeleteThanks
ReplyDeletethanks dude ..
ReplyDeleteIts working
Excellent instruction. Sails filled with knowledge not blown up with psychotical self-manifestation. Thanks a lot
ReplyDeletethanks so much...this really helped
ReplyDeletephpmyadmin-for-all-languages
ReplyDeletethanks for your post,this is amazing.
i am also getting the same problem but in my httpd-xampp-conf file, i do not find order allow,deny and "deny from all" line. instead it is written as require local..i tried changing it to require all granted, also added "order allow,deny and then #Deny from all,......but still it is not working..i have xampp 1.8.3-3
ReplyDeletethe solution did not work for me until i tried the marked correction on this link http://stackoverflow.com/questions/1045845/how-to-call-a-javascript-function-from-php
ReplyDeleteNot worked for me. :(
ReplyDeleteIt worked now, I just made it default and worked, I pasted xampp access last time.
Deletewhat does it mean "you made it default" i am getting the same error and applied the above solution as well but it didn't work for me . i am trying to access a php file from an android app.
DeleteOpen httpd-xampp.conf which is at /opt/lampp/etc/extra/
ReplyDeleteno, it's at \xampp\apache\conf\extra
and there is no such place in the file.
Hello Amit,
ReplyDeletei am getting the same error when i try to access a php file from my android app. i updated the httpd-xampp.conf file as suggest in the blog but it didn't help. even after restarting the xampp i am getting the same error. my xampp version is 1.8.3-5 . is there any other solution of this error in this version ?
huge help! thanks
ReplyDeleteI couldn't solve it.running lamp on digitalocean droplet ubuntu 14.0
ReplyDeleteCan you please confirm what is the solution, if I want to add host name of my 2nd computer as ip address used to change with every connectivity.
ReplyDeleteThanks a lot man..
ReplyDeleteThanks (Y)
ReplyDeleteThanks, This has worked for me perfect!
ReplyDelete