Exploring Flex

Q. You don’t have permission to access /phpmyadmin/ on this server

Posted by hneelu on February 20, 2009

I have installed wamp on machine A. When I am on the local server that I installed it on I can access PHPMyAdmin from http://127.0.0.1/phpmyadmin or http://localhost/phpmyadmin
But I want to be able to access it from my computer and when I type in IP address of the Server I can see the pages I have put in but when I type http://192.168.0.3/phpmyadmin, PHPMyAdmin comes up saying
Forbidden
You don’t have permission to access /mysql/ on this server.

Solution:
Go to C:\wamp\alias. Open the file phpmyadmin.conf and add

Options Indexes FollowSymLinks MultiViews
Allow Override all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from MACHINE_IP

About these ads

72 Responses to “Q. You don’t have permission to access /phpmyadmin/ on this server”

  1. Kate said

    I’ve been having this problem for hours! Unfortunately this, like the half dozen other fixes I’ve found online and on forums, does not solve the issue!

    When copy/pasting this particular code my localhost suddenly is unable to load and my WAMP icon is more than half-way yellow. :/

    “The connection to the server was reset while the page was loading.

    The network link was interrupted while negotiating a connection. Please try again.”

    I don’t know if it’s better or worse that I’m getting a different error than 403

    • hneelu said

      Revert back the changes made.
      Now stop the wamp server, make the changes, and then start it again.

      Also check if the directory is correct. In the phpmyadmin.conf file check the directory path in line 1
      Alias /phpmyadmin "c:/wamp/apps/phpadmin3.1.1/"
      and
      Directory "c:/wamp/apps/phpadmin3.1.1/"

  2. Travis said

    Check the alias file to ensure the phpmyadmin alias link is directed to the proper directory. It seems the latest version of WAMP has included phpmyadmin3.1.3 but still has the old alias to 3.1.1 listed.

    • Fred said

      Excellent! Helped me out, copied the fixes found on the net willy nilly without checking phpmyadmin.conf was pointing to the right directory.

      Saved my day!

  3. Mamba said

    Thank you for the tip.

    I’ve wasted several hours trying to figure that out WampServer2.0h, and without your tip probably several more.

    They’ve included phpMyAdmin 3.1.3.1, but in the

    phpmyadmin.conf

    it was:

    /wamp/apps/phpmyadmin3.1.3

  4. Pali Madra said

    The error in the phpmyadmin.conf has been fixed. But still I cannot access phpmyadmin ;-(

  5. Melangeaddict said

    My solution became rather apparent after reading about a hundred of these.

    I was trying to set up a phpmyadmin WAMP server for my work, and found that I could access all the information over the localhost address, but not when I put in the ip address. However, I finally found my solution was in the wamp/alias/phpmyadmin.conf file.

    Open the file with notepad or wordpad if it is unreadable in notepad, and follow the instructions. Make these changes in the text:

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Allow,Deny
    Allow from all
    Allow from 127.0.0.1

    and then the KEY TO IT ALL!!!!! IS TO RESTART WAMP!!! I had done this about 5 times but never restarted. I tried it again but restarted WAMP after saving the change, and everything worked. Good luck!!

  6. Sebastien said

    IT WORKS!!!! THANK YOU VERY MUCH MELANGEADDICT!

    • Murthy said

      Hi,

      I am new to phpmyadmin… I want to access the phpmyadmin from some other client with server address. Please help me to solve my prob…

      tq in advance

  7. santanu said

    IT WORKS!!!! THANK YOU VERY

  8. Ravi said

    It works fine ..
    I don’t know about the windows but in linux yes..
    1) vim /etc/httpd/conf.d/phpMyAdmin.conf
    Add /modify
    Alias /phpMyAdmin /usr/share/phpMyAdmin
    Alias /phpmyadmin /usr/share/phpMyAdmin

    order deny,allow
    deny from all
    allow from all
    allow from ::1

    3) restart the httpd service
    /etc/init.d/httpd restart

    Now it should be working fine

    Cheers
    Ravi

    • gruvii said

      Ravi you are correct i that you should add

      ::1

      but everyone allowing allow from all is removing all the security so anyone from outside can potentially access the server. Now if you are behind a firewall of some sort you might still be ok, but I wouldn’t risk it. You can very quickly look at the apache access logs and see what you are accessing the server as ::1 and so you need to add that into the allow. Under certain circumstances you might also have to had the name of your computer as well.

    • jayanthan said

      thanks, work like charm…

    • bmithun said

      THaaaanks a lot man …u are absolutely right :) worked like a magic

  9. Craig said

    Ravi – what the hell is that?! You obviously know absolutely nothing about Apache.

  10. Joel said

    The problem is probably in apache, add this to httpd.conf and exit and restart. Check the directory for your situation.

    AllowOverride All
    Order allow,deny
    Allow from all

    good luck

  11. Joel said


    AllowOverride All
    Order allow,deny
    Allow from all

  12. Joel said

    AllowOverride All
    Order allow,deny
    Allow from all

    remove the asterix..

  13. Joel said

    bugger..

    Directory “c:/wamp/apps/phpmyadmin3.1.3″>
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory

    add to front and end..hope this will get through, as code works a bit strange here.

  14. Joel said

    Well I give up ;-) add > and < to end and front, good luck

  15. Mikoko said

    This works as long as you restart WAMP for the changes to take effect.

  16. Dumi said

    Hi!
    when i logon to my project called “aaa” the wamp server says “You don’t have permission to access /aaa/< on this server" as a 403 forbidden error.

    and i have created the database too.

    Can anyone help me to solve this problem.
    any replies send to duminda.dkp@gmail.com

    Thanks & regards,
    Dumi.

  17. sk wazid hussain said

    Hii.. nice … i have the same access problem and using this code i solve my problem. thanks….

  18. Imran said

    I had the same problem, what I did was I went to the WAMP tool icon, right clicked on it and clicked “Put Online” and that worked for me.

  19. Orangetree said

    This worked great for me!

    Thanks.

  20. vijith said

    on the system tray icon
    we have to put the server online by pressing the “Put Online”.

    or

    left click the wamp server icon and put online and the restart all services

  21. vijith said

    on the system tray icon
    we have to put the server online by pressing the “Put Online”.

    or

    left click the wamp server icon and put online and then restart all services

  22. euna lessca said

    Thank you for this forum also to Melangeaddict! It works in my wamp! Thanks a lot!

  23. Murthy said

    Hi,

    How can i access any phpmyadmin from hosted server…what are needed changes i need to change in hosted server to other clients can able to connect to my phpmyadmin server.

  24. Yeast Free Foods…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  25. Free games said

    Free games…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  26. SanDisk Sansa Clip Mp3 Player review…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  27. singapore public speaking courses…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  28. best detox diets…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  29. nam said

    thanks everyone

  30. Directory “c:/wamp/apps/phpmyadmin3.1.3″>
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory

    It works for me on Win Seven! Thanks a lot

  31. I tried Melangeaddict’s advice in post #5 and it worked for me. Thank you very much!

  32. Thank you for puting the time in to publish this info. I found it very useful. If you are ever interested in link building directory list then please contact me….

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  33. moz said

    Won’t ‘allow from all’ mean anyone on the internet can access my phpmyadmin folder

    I see these things from my logs:

    221.143.48.34 – - [xx/Aug/2011:xx:xx:xx] “GET /phpMyAdmin/scripts/setup.php HTTP/1.1″ 404 226 “-”
    I did not have phpmyadmin installed then, but doesnt that show hackers are automatically scanning for phpmyadmin installations that have ‘allow all’ ?

  34. vellerefondis said

    Melangeaddict I just want to say THANK YOU INDEED, i was wandering why i had this error for months, because when i first launched wamp it was working… Thank you again

  35. Serhiy said

    Works

  36. khmweb said

    I could correct the problem by setting

    cgi.force_redirect to 1 in the php.ini.

  37. notinportant said

    Thanks a lot for your help, It also worked here!

  38. mainota said

    Melangeaddict, thanx man you saved my day

  39. 123 said

    Nice………

  40. Sachin said

    Thank you for help. sachin. sachin.m.jagtap@gmail.com

  41. mouaz said

    cool, merci beaucoup!

  42. scannerscan plustek Scan Plustek Opticbook 4800scan Plustek Opticbook 3800Scan Plustek D428Scan Plustek S410Scan Plustek S420Scan Plustek PS406UScan Plustek PS286 PlusScan Plustek PS288Scan Plustek PS406U…

    [...]Q. You don’t have permission to access /phpmyadmin/ on this server « Exploring Flex[...]…

  43. suraj said

    Melangeaddict thanx it worked
    whats yur email id i would like to add yu

  44. Polelo said

    Not working for me :(

  45. ansh143 said

    Not working pls….help

  46. Roy said

    Hi there to every body, it’s my first visit of this website; this blog consists of amazing and genuinely fine data for readers.

  47. Dylan said

    Thanks , I’ve recently been searching for info about this topic for a while and yours is the best I have discovered till now. However, what in regards to the bottom line? Are you sure about the supply?

  48. Nick said

    I had the same problem showing this error:
    #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
    I believe my problem was coming from the fact that my mysql server was password protected.

    I found a documentation.html file in the phpMyadmin subdirectory in the wamp>apps directory.
    This file shows you a step by step of how to set this up but basically all I had to do is open the config.inc.php file int he phpmyadmin directory and there are lines that look like this:

    $cfg['Servers'][$i]['user'] = ‘root’;
    $cfg['Servers'][$i]['password'] = ‘ ‘; <—- ADD PASSWORD HERE!!!

    I just added my password and I was able to go to phpMyadmin after restarting.

  49. Until my daughter mentioned the brown paper right on top of the telefonsex camera.

  50. Paulina said

    Hi there would you mind letting me know which web host you’re using? I’ve loaded your blog
    in 3 completely different browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good internet hosting provider at a reasonable price?
    Thank you, I appreciate it!

  51. Hello Dear, are you really visiting this web site regularly, if so afterward you will absolutely
    take nice experience.

  52. I need to to thank you for this good read!! I definitely loved every little bit of it.
    I have you saved as a favorite to check out new things you
    post…

  53. Thanks for every other excellent article. Where else may just anybody
    get that kind of info in such an ideal approach of writing?
    I have a presentation next week, and I am at the look
    for such info.

  54. Thanks for revealing your ideas listed here. The other matter is that any time
    a problem appears with a laptop or computer motherboard, people today should not go ahead and take risk involving repairing the item themselves because if it is not done
    correctly it can lead to permanent damage to the whole laptop.
    Most commonly it is safe just to approach a dealer
    of your laptop for that repair of that motherboard. They’ve already technicians that have an know-how in dealing with laptop motherboard issues and can have the right diagnosis and execute repairs.

  55. bed bugs said

    Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn’t show
    up. Grrrr… well I’m not writing all that over again.
    Regardless, just wanted to say great blog!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: