Wednesday, 25 July 2012

New XAMPP security concept Problem in Ubuntu


When you upgrade your XAMPP to 1.8.0 or install XAMPP it you can get this type of error message.
"
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 403localhost
Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
"


I also attach screenshot of it.



Now to remove this error open your "httpd-xampp.conf" as stated above in error by typing following command in terminal [Ctrl + Alt + t].


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


Now make the two changes in that file as given in the following screenshots.


Original File :









After Changes :






Now restart your XAMPP by executing following command in terminal


   sudo /opt/lampp/lampp restart


Now your phpmyadmin is working properly.


74 comments:

  1. It works man,,,thanx a load

    ReplyDelete
  2. Thanks,You saved my day/night :-)

    ReplyDelete
    Replies
    1. Welcome . . .
      It also take 7-8 hours for me to solve this problem.

      Delete
  3. Thank you, thank you. it worked when many other suggestions did not.

    ReplyDelete
  4. i found many info/suggestion how to fix this problem,most of them make me confused.
    I would like to convey my big thanks for your broder :)

    ReplyDelete
  5. Like many others I cannot thank you enough for your clear example to make it possible to access phpmyadmin from my LAN. After countless hours, yours is the only one that actually works. Thanks again.

    ReplyDelete
  6. Thank you very much for your reliability! I spent hours looking for the right solution encountering only wrong tips.

    ReplyDelete
    Replies
    1. yes it is hard to find the solution elsewhere that's why I wrote this post . . .

      Delete
  7. it worked, many thanks ;-)

    ReplyDelete
  8. Thank you sooooooooooooo much!!!!!!!!!!!

    ReplyDelete
  9. Hi,
    this work for phpMyAdmin but i have problem with .php files i get same error when i tried to open .php file of my project can you help me?

    ReplyDelete
    Replies
    1. please check the permission of that particular .php file and make it 777 or 755 so you can access it . . .

      Delete
  10. But still I have problem!
    This way doesn't work for my problem :(
    please help!

    ReplyDelete
    Replies
    1. can you tell me where you stored your project file ???

      directly to htdocs or linking to htdocs ??

      Delete
  11. Finally a solution that works!! Thank you so much.

    Running Mint13 with Xfce desktop.

    ReplyDelete
  12. Why what works for everyone never works for me?

    ReplyDelete
    Replies
    1. are you set all permission of you files to accessible[755 or 777] ???

      Delete
    2. i have the same problem.. i dont know how to change permission. thank you for your help!

      Delete
  13. thanks a lot ,a lot! 国内没找到可行的方案,还是这个解决了问题~~ 非常感谢!

    ReplyDelete
  14. Thank You Dude...

    ReplyDelete
  15. Thank you, works great!

    ReplyDelete
  16. Sir, you have my respect. Thanks a lot!

    ReplyDelete
  17. thankyou very much dude... you rocks..

    ReplyDelete
  18. After changing the code also i am getting same problem what to do? please help me

    ReplyDelete
    Replies
    1. please verify again the above changes and restart the xampp, and also check the permission of the folders in which you place your php files in the htdocs, make it 755 or 777

      Delete
  19. I get the same error message when trying to access apache server-status from the internet..
    I have addedd the following to the httpd.conf

    ExtendedStatus On

    SetHandler server-status
    # Require all denied
    Require host xxx.xxx.xxx.xxx (my ip)

    ReplyDelete
    Replies
    1. thank you for sharing that information, it will be helpful to others :)

      Delete
  20. Thank you, it works like a charm :)

    ReplyDelete
  21. Thank you for this tutorial :)

    Merci

    ReplyDelete
  22. it worked for me..
    thanks a lot :)

    ReplyDelete
  23. awesome bro, you lessen my time on configuring this.

    ReplyDelete
  24. YOU SAVED ME! THANK YOU!

    ReplyDelete
  25. thanks a lot of man :D

    ReplyDelete
  26. REALY THANKS A LOT , BUT I STILL CANT ACCESS /phpmyadmin

    ReplyDelete
    Replies
    1. just check the permission of you htdocs folder and make it 755 or 777.

      Delete
  27. Thanks, useful screenshots, it is working properly

    ReplyDelete