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

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

问题描述

我在 XAMPP 上有一个旧版本,它运行良好.我卸载它来安装新版本.从那时起本地主机就停止工作了.XAMPP 控制面板说 Apache 和 MySQL 正在运行.请有人帮忙吗?我在 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\hosts 中的主机文件来修复它

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

保存并重启你的电脑

如果您遇到任何问题,只需恢复您的主机文件

if you face any problem just restore your hosts file

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

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