gpt4 book ai didi

php - Netbeans PHP 项目 Apache 设置 -

转载 作者:行者123 更新时间:2023-12-04 18:42:15 24 4
gpt4 key购买 nike

我在 Netbeans PHP 中建立了一个名为 testphp 的项目。它有一个名为 Index.php 的文件。我已添加到 html 并尝试了运行和调试。

我从 Firefox 收到以下消息:

(URL: http://localhost/TestPHP/index.php?XDEBUG_SESSION_START=netbeans-xdebug) Not Found: The requested URL /TestPHP/index.php was not found on this server. http://localhost returns "It Works!"

The virtual directory "TestPHP" does not appear to exist either. Can someone suggest some pointers for tracking down the problem?

Ubuntu : 10.10 Apache : 2.2.16 (Ubuntu) PHP : PHP 5.3.3-1ubuntu9.3 with Suhosin-Patch Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

最佳答案

您的项目实际上并没有由您的本地服务器提供服务。 “它有效!” output 是您的服务器正在输出的默认页面,因为它没有实际的文件可供服务。

NetBeans“本地网站”项目配置假定您的 PHP 源代码将存储在本地服务器的 Web 文档目录中。

如果您查看 NetBeans docs ,您会看到当您“运行”您的项目时,有一个选项可以让 NetBeans 自动将您的项目文件复制到相应的 Web 服务器目录。

关于php - Netbeans PHP 项目 Apache 设置 -,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5207593/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com