XAMPP v1.7.4安装问题,本地主机不工作 [英] XAMPP v1.7.4 installation issues,local host not working

查看:154
本文介绍了XAMPP v1.7.4安装问题,本地主机不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对XAMPP的旧版本,它是工作的罚款。我卸载它安装新version.Since然后本地主机已停止工作。 XAMPP控制面板说,Apache和MySQL running.Can有人帮助吗?我在的httpd-vhosts.conf得到这个,难道我在这里做任何改变?

I had an older version on XAMPP and it was working fine. I uninstalled it to install the new version.Since then local host has stopped working. XAMPP control panel says Apache and MySQL running.Can some one help please? I have got this in the httpd-vhosts.conf,do i make any changes here?

##<VirtualHost *:80>
    ##ServerAdmin postmaster@dummy-host.localhost
    ##DocumentRoot "C:/xampp/htdocs/dummy-host.localhost"
    ##ServerName dummy-host.localhost
    ##ServerAlias www.dummy-host.localhost
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
##</VirtualHost>

##<VirtualHost *:80>
    ##ServerAdmin postmaster@dummy-host2.localhost
    ##DocumentRoot "C:/xampp/htdocs/dummy-host2.localhost"
    ##ServerName dummy-host2.localhost
    ##ServerAlias www.dummy-host2.localhost
    ##ErrorLog "logs/dummy-host2.localhost-error.log"
    ##CustomLog "logs/dummy-host2.localhost-access.log" combined
##</VirtualHost>

感谢您

推荐答案

您还可以通过编辑通常位于%SystemRoot您的主机文件修复%\\ SYSTEM32 \\ DRIVERS \\ ETC \\主机

you can also fix it by editing your host file usually located in %systemroot%\system32\drivers\etc\hosts

首先备份您的主机文件

通过在该行的开头添加#注释此行(如果他们已经)

comment this line by adding # at the beginning of the line(if its already their)

#::1 localhost 

在文件的最后添加此行

127.0.0.1       localhost

保存并重新启动电脑

save it and restart your pc

如果您遇到任何问题,只是恢复hosts文件

if you face any problem just restore your hosts file

这篇关于XAMPP v1.7.4安装问题,本地主机不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆