简体   繁体   English

WAMP无法打开我的项目

[英]WAMP does not open my project

I am completely new to web-dev and wamp, I have to use it for a college project to build a website using php. 我对Web-dev和wamp完全陌生,我必须将其用于大学项目才能使用php建立网站。 I installed the newest version of wamp. 我安装了最新版本的wamp。 I cloned my project repository into the www folder. 我将项目存储库克隆到www文件夹中。

When I run "localhost" in the browser, I get the generic wamp page and I can see my project folder on the bottom of the page under the "Projects" heading 在浏览器中运行“ localhost”时,我得到了通用的wamp页面,并且可以在页面底部“ Projects”标题下看到我的项目文件夹

when I click on the project it does not open and I get a 404 not found error. 当我单击该项目时,它没有打开,并且出现404 not found错误。 This is not the same issue a thousands other people have written about, where when they uses the path "localhost/projectname" they get access to their project but when they just click their project the path is "projectname" and they dont see their project. 这与成千上万其他人所写的问题不同,当他们使用路径“ localhost / projectname”时,他们可以访问其项目,但是当他们单击其项目时,路径为“ projectname”,而他们看不到他们的项目。 。 I have read tons of posts with people that have that problem and I do not think I have the same issue becase when I click on my project link on the wamp hompage, I get the complete path " http://localhost/PaperCloudBackend/ " and this shows a 404 error 我已经与有此问题的人一起阅读了大量的帖子,如果在wamp hompage上单击我的项目链接,我不认为会有相同的问题,我会获得完整的路径“ http:// localhost / PaperCloudBackend / ”这显示404错误

Keep in mind that all I have done with wamp so far is: 1) install it 2) clone repo into www folder 3) opened browser with localhost 4) clicked on my project name 请记住,到目前为止,我对wamp所做的一切是:1)安装它2)将repo克隆到www文件夹中3)使用localhost打开浏览器4)单击我的项目名称

I would really like a concise answer to why this is happening so I can learn the root cause, and also a solution to the problem because i have not contributed to my team codebase at all and I have not been able to solve this issue after 1 week. 我真的想要一个简洁的答案,为什么会这样,所以我可以了解根本原因,也可以解决这个问题,因为我根本没有为我的团队代码库做任何贡献,并且在1以后我一直无法解决这个问题。周。

Thanks 谢谢

I assume that its an .htaccess error which is clashing . 我认为它是.htaccess错误,正在发生冲突。 If you have .htaccess in your project then check it if you have given the correct url in the .htaccess rule or you can delete the file(.htaccess) and run the project in your browser. 如果您的项目中有.htaccess,请检查它是否在.htaccess规则中提供了正确的URL,或者可以删除文件(.htaccess)并在浏览器中运行该项目。 Another problem that you should check is there any index file is present in the root of the folder you are trying to access. 您应该检查的另一个问题是,您尝试访问的文件夹的根目录中是否存在任何索引文件。 I hope this might help you. 希望对您有所帮助。

Currently thats also happed with me on window8.1, To prevent this open the index.php file from root directory wamp/www/index.php. 当前,多数民众赞成在window8.1上也与我相对,要防止这种情况,请从根目录wamp/www/index.php.打开index.php文件wamp/www/index.php.

Change 更改

$suppress_localhost = true;

To

$suppress_localhost = false;

Hope this will help you to fix the problem. 希望这可以帮助您解决问题。

请确保索引文件存在于“ PaperCloudBackend”目录中,因为它是执行的入口点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM