简体   繁体   English

我无法在本地主机上运行任何PHP文件(使用IIS的HTTP 404.3错误)

[英]I can't run any PHP file on localhost (HTTP 404.3 error using IIS)

I am attempting to set up a localhost testing server through IIS, but for the life of me I have been unable to get it working. 我试图通过IIS设置本地主机测试服务器,但是我一生中一直无法使其正常运行。 I have my project folder in the localhost directory: 我的项目文件夹位于localhost目录中:

C:\inetpub\wwwroot

The IIS splash screen works when I just try to go to "localhost", but when I run any PHP file I just get the error: 当我尝试转到“ localhost”时,IIS初始屏幕可以工作,但是当我运行任何PHP文件时,我都会收到错误消息:

 "HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension     configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.".

I was first trying with my project, but then I tried a simple echo script which still gives me the same error, so something must be wrong with how my PHP is configured. 我最初是在尝试我的项目,但是后来我尝试了一个简单的回显脚本,该脚本仍然给我同样的错误,因此,PHP的配置一定存在问题。 The most recent solution I have tried is this one IIS 8 Wont run PHP? 我尝试过的最新解决方案是此IIS 8无法运行PHP吗? , but this did not work. ,但这没有用。

Is there a surefire way to fix this? 有确保解决此问题的方法吗? I have been looking at it for HOURS. 我一直在看HOURS。

I am running Windows 8.1 64-bit. 我正在运行Windows 8.1 64位。 Has anyone else ran into this problem and managed to fix it? 还有其他人遇到过这个问题并设法解决吗?

Let me know if you need any more information, I really need to get this testing server up :/ 让我知道是否需要更多信息,我真的需要启动此测试服务器:/

did you setup iis correctly? 您是否正确设置了iis? because you have to care with somethings, so, give a look in the follow link HOW TO INSTALL AND CONFIGURE IIS 8 ON WINDOWS 8 因为您必须关心某些事情,因此,请在以下链接中进行操作如何在WINDOWS 8上安装和配置IIS 8

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

相关问题 IIS 10上的.php扩展404.3错误 - 404.3 Error for .php extensions on IIS 10 IIS和PHP:HTTP错误404.3-找不到:由于扩展程序配置,无法提供您请求的页面 - IIS and PHP: HTTP Error 404.3 - Not Found: The page you are requesting cannot be served because of the extension configuration 当我在终端中运行“php artisan migrate”代码时,我无法在 http://localhost/phpmyadmin/ 上创建表 - When I run "php artisan migrate" code in terminal I can't create table on http: // localhost / phpmyadmin / PHP已在Windows Server 2008 IIS 7上完成安装,安装了处理程序FASTCGI时出现404.3错误? - PHP install complete on Windows Server 2008 IIS 7, 404.3 error by handler FASTCGI installed? 使用Nginx和php7无法加载任何PHP文件或在日志中看到任何错误 - Can't load any PHP file or see any error in the logs using nginx and php7 我无法访问 http://localhost/phpmyadmin/ - I can't access http://localhost/phpmyadmin/ 无法使用 PHP 将图像文件上传到具有 IIS 的网络服务器 - Can't upload image file to webserver with IIS using PHP 我无法使用php连接到本地主机 - I can't connect to my localhost using php PHP + IIS:使用本地主机URL“挂起” file_get_contents - PHP + IIS : file_get_contents “hangs” using a localhost URL 我无法从 localhost 运行项目 - I can't run project from localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM