我在我的Windows 7上有一个问题,我想在php上工作,所以我尝试了一切,但无法完成它。它始终给Unable连接Firefox无法在nazar-studio:8080建立与服务器的连接。
这些是我尝试过的东西:
还有很多我做过的事,但都是徒劳的。
当我使用netstat -an检查端口时,它显示端口监听,我尝试了许多不同的端口,但没有任何作用。
任何人都可以帮助我,由于它,我真的很震惊和沮丧。
您是否尝试过连接到localhost而不是'nazar-studio'?
你确定它在端口8080上运行吗?
是否有可能在端口8080上运行另一个进程?
你检查过错误日志了吗? (在#apache install dir#/ logs /中)
为了让Apache在Windows 7上运行,我做了以下工作。
切换到管理员:
net user Administrator /active:yes
然后注销。在登录屏幕上,您将看到两个选项,以管理员身份登录。AddType application/x-httpd-php .php .phtml .php3
)。
创建虚拟主机。我猜你的看起来像
<VirtualHost *:8080> ServerName nazar-studio.localhost DocumentRoot“C:/ Develop / nazar / htdocs”ServerAdmin webmaster @ localhost DirectoryIndex index.php index.html index.htm ErrorLog logs / error.nazar.log CustomLog logs / access。 nazar.log合并了</ VirtualHost>