php - 从我的 Linux VM 运行 PHP 应用程序时出错

标签 php ubuntu virtual-machine netbeans-8.2

我是 PHP 新手,遇到了这个真正的基本问题,我不确定如何解决。

我有一台带有 Ubuntu VM 的 64 位 Windows 笔记本电脑。我已经从 https://netbeans.org/downloads/index.html 为 linux 64 位安装了 netbeansIDE 8.2 .

我现在可以使用所有默认设置创建一个新的 PHP 项目。但是当我尝试运行它时,我在 netbeans 的输出控制台中收到此消息:

"/usr/bin/php" "-S" "localhost:8000"

Notice: File could not be loaded: localhost:8000



我怀疑这与我的项目的运行配置有关,如下所示
enter image description here

此外,当我尝试运行 php 应用程序时,这是 Firefox 上的输出。
enter image description here

但是互联网正在我的Firefox上运行。

这是我拥有的 Netbeans - 选项 - PHP 配置的一些屏幕截图:
enter image description here
enter image description here
有谁知道我怎样才能让它运行?

最佳答案

请更改您的项目网址 :

从 :

https://localhost/8000

至:
https://localhost:8000

关于php - 从我的 Linux VM 运行 PHP 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42748521/

相关文章:

node.js - grunt serve 没有在 ubuntu 中运行?

python - 在 Python 脚本中激活 virtualenv

php - 将变量从 PHP 传递到 javascript 并传递到 html 表单

php - 替代 GET 和 POST 方法从表单发送/接收数据

node.js - 我应该将我的 Node JS 应用程序放在哪里,以便可以通过主网站访问它?

android - Ubuntu 13.04 上的 Genymotion 无法连接到虚拟设备

java - 我们如何在cloudsim中创建具有不同MIPS数量的Vm?

linux - 无法在我的 Mac 上安装 WALinuxAgent

php - 通过php添加记录mysql时尝试从列中提取5个字符

创建新数据库和表时,PhpMyAdmin SQL 代码未显示