ds3422222222 2013-09-08 13:47
浏览 122
已采纳

wamp服务器的图标不会变为绿色

after i installed the wamp server it work fine but when i tried to create a virtual host it stop working and the icon just turn from red to orange and stop

these are the steps that i did to create a virtual host if anything is wrong please tel me in which step

step 1

in the httpd.conf

<Directory "C:\wamp\www/">
    options Indexes followSymLinks--
    AllowOveride all--
    Order Deny.Allow--
    Deny from all--
    Allow from 127.0.0.1--
</Directory>

and uncomment the line that include v-host word

step 2.

add these lines to the httpd-vhosts.conf file

<VirtualHost *:80>
    ServerAdmin admintestappdev.loc--
    DocumentRoot "C:/wamp/www/testappdev.loc"--
    ServerName testappdev.loc--
    ServerAlias www.testappdev.loc--
    ErrorLog "logs/testappdev.loc.error.log"--
    CustomLog "logs/testappdev.loc-access.log" Common--
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot "C:/wamp/www/"--
</VirtualHost>

step 3.

go to this path C:\Windows\System32\drivers\etc

and add three line 127.0.0.1 localhost 127.0.0.1 "name of the file" 127.0.0.1 "www. + nameof the file "

if anyone can help i will appreciate this

  • 写回答

1条回答 默认 最新

  • douxuanyi2813 2013-09-08 14:31
    关注

    This can be caused by a lot of different things, here are a few checks.

    1. Make sure apache2 configuration is valid (ie apache can read it properly)

    2. (Obvious) Make sure port 80 is open and not being used by another program such as skype, apache provides a small command line program to check this. Click on the menu and navigate to the apache folder and there should be a menu item saying something along the lines of Test Port 80.

    3. Correct me if I'm wrong but I don't know why you have loads of dashes on nearly every line? This will surely cause an error.

    Wish I could be of more help but I'm running linux at the moment and don't use wamp server anymore. If you get really stuck reinstall wamp (backup databases etc first) and follow a tutorial online that works to get a working configuration.

    See this answer WAMP server not running after enabling httpd-vhosts.conf as it is very similar and could help you out.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?