dtch60248 2013-11-27 22:59
浏览 39

wamp localhost不工作​​(我知道有很少的帖子,但我很奇怪)

Ok, let me try to shorten things so less to read. wamp works fine for the past few months, then I started to learn laravel4 and optionally requires vhost and rewrite_module which works pretty well that when I type in larave.intro as URL it works.

Now I'm trying to use wamp again just going to localhost AND page says enter image description here

The title of the page does say 404 Not Found.

Read a few threads, some said go apache->service->Test port 80 and see if there are other ports running port 80. It says

Your port 80 is actually used by : Server: Apache/2.4.4 (Win32) PHP/5.4.16

which means my apache is the only one running it isn't it... this already makes me curious and feeling weird, well alright then I go change my port or 8000 in the httpd.conf restart my wamp. and uses localhost:8000 alright now wamp works and I test port 80 again it says Your port 80 is actually not used. So nothing is running on my port 80 why can't wamp use it?

And, at first I thought it's my vhost so I deleted the vhost and in my host I deleted 127.0.0.1 laravel.intro too and runs my wamp back to port 80...still doesn't work. I was thinking then fine I will just use port 8000 BUT then my vhost won't work :(

I was using this as my vhost before

<VirtualHost *:80>
    DocumentRoot "J:\wamp\www\laravel4-basic\public"
    <Directory "J:\wamp\www\laravel4-basic\public">
        Options FollowSymLinks Indexes MultiViews
        AllowOverride All
    </Directory>
   ServerName laravel.intro
</VirtualHost>

and in host it's 127.0.0.1 laravel.intro now since I'm using port 8000 I suppose I should change the vhost too? so I changed to

<VirtualHost *:8000>

and laravel.intro doesn't work. laravel.intro works if I'm using port 80 with virtualhost: *80 and in URL if I type 127.0.0.1:8000 what popped up is laravel.intro instead of the wamp index and if I use localhost:8000 wamp index comes out. I'm pretty much so confused now.

Side note:php Admin works fine if I'm using port 80 and in URL I just go localhost/phpmyadmin

Anyone knows what I'm talking about here? I'm getting confused a bit myself at the end and anyone can get me back to port 80 with everything works? (if I have to change port then oh wells better than one works and the other one doesn't)

Please give me some suggestions thanks ~!

展开全部

  • 写回答

4条回答 默认 最新

  • dongzhoutuo0883 2013-11-27 23:05
    关注

    completely remove the wamp files and just clean the temp files and www folder where you have installed and restart the system and then reinstall WAMP and run

    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 C# 调用Bartender打印机打印
  • ¥100 华为ensp只要2-9实验运行结果能做的来加我QQ
  • ¥15 我这个代码哪里有问题 acm 平台上显示错误 90%,我自己运行好像没什么问题
  • ¥50 C#编程中使用printDocument类实现文字排版打印问题
  • ¥15 找会编程的帅哥美女 可以用MATLAB里面的simulink编程,用Keil5编也可以。
  • ¥15 已知隐函数其中一个变量τ的具体值,求另一个变量
  • ¥15 r语言Hurst指数
  • ¥15 Acrn IVSHMEM doorbell问题
  • ¥15 yolov5中的val测试集训练时数量变小问题
  • ¥15 MPLS/VPN实验中MPLS的配置问题