Why can't I access Xampp's phpmyadmin on localhost? Access is forbidden.

前端 未结 3 1633
北荒
北荒 2020-12-15 09:23

I can access localhost fine on Xampp with phpmyadmin on ubuntu. I can see the contents of /htdocs which I completely cleared and wrote my own for. I want to access phpmyad

3条回答
  •  死守一世寂寞
    2020-12-15 09:35

    I solved this by creating a new virtual host for phpmyadmin

    For windows systems:

    Append the following to C:/xampp/apache/conf/httpd.conf:

    NameVirtualHost phpmyadmin.local
    
    
      ServerName phpmyadmin.local
      DocumentRoot "C:/xampp/htdocs/phpmyadmin"
      
        AllowOverride All
        Allow from All
      
    
    

    Change the DocumentRoot/Directory to the path where you have installed your version of phpmyadmin.

    Open the C:\Windows\System32\drivers\etc\hosts file in a text editor and add the following line:

    127.0.0.1     phpmyadmin.local
    

    then save the hosts file and restart xampp.

提交回复
热议问题