xampp使用教程 安装xampp后, 修改httpd:conf文件里面的, DocumentRoot “D:/wwwroot”<Directory “D:/wwwroot”>
修改为你自己的存在网页的文件夹里。
然后修改, conf/extra/httpd-vhosts.conf文件,
添加如下代码,使你解析的域名对应到相应文件夹:<VirtualHost *:80> DocumentRoot “D:/wwwroot/weblinks.cc” ServerName weblinks.cc ServerAlias www.weblinks.cc </VirtualHost>然后修改phpmyadmin远程登陆及设置密码。
打开apache / conf / extra / httpd-xampp.conf
找到:Alias/phpmyadmin”E:/Program Files/phpMyAdmin/”;
将<Directory “E:/Program Files/phpMyAdmin”> 里面的内容,修改为:AllowOverride AuthConfig #Require local Order allow,deny Allow from all Require all granted
由于xampp访问phpmyadmin默认是不需要密码的,所以我们访问的时候会直接进入到phpmyadmin操作界面;
点击phpmyadmin的管理页面,找到 账户,
找到root,隶属localhost的账户,点击修改权限,然后点击修改密码,创建你的密码。
然后我们需要进入XAMPP安装目录下的phpmyadmin目录,找到config.inc.php文件,
找到authentication type and info,
将auth_type改为cookie,