开发者社区> 问答> 正文

怎么使用wamp运行php项目?报错

我的电脑装的是wamp集成环境,自己做了个简单的项目,名称为bbs,我把项目放到www目录下,环境打开了,怎么运行不了,不知哪里错了?

http://localhost:8886/www/bbs/index.php,   不该这样写吗

报错信息:The requested URL /www/bbs/index.php was not found on this server.

http://localhost:8886/bbs/index.php

报错信息:

The server encountered an internal error or misconfiguration and was unable to complete your request.

<p style="color:#000000;font-family:Simsun;font-size:medium;font-style:normal;font-weight:normal;text-align:start;text-indent:0px;">
	Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
</p>
<p style="color:#000000;font-family:Simsun;font-size:medium;font-style:normal;font-weight:normal;text-align:start;text-indent:0px;">
	More information about this error may be available in the server error log.
</p>

展开
收起
爱吃鱼的程序员 2020-06-12 15:48:45 683 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    端口8886确认吗?默认是80端口

    然后www目录表示网站目录,在url中不需要出现

    @韩钊怎么开启啊回复 @三十回头:是不是rewrite没有开启?确认我改了端口号了访问www根目录的index.php就可以访问到,访问它下面的项目就不可以不知道为什么
    2020-06-12 15:49:03
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PHP安全开发:从白帽角度做安全 立即下载
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载
复杂PHP系统性能瓶颈排查及优化 立即下载