dongzhouji4021 2017-01-16 16:28
浏览 58

尝试在Eclipse中运行PHP Hello World时出错

I installed the PDT PhP Development Tool in eclipse in order to run PhP files, but when I click in "Run as > PhP Web Aplication" it shows me a white page with the message:

Not Found

The requested URL /teste/teste.php was not found on this server.

Apache/2.4.23 (Debian) Server at localhost Port 80

Apache is running normally in

I have an info.php file at /var/www/info.php, I tryend to tun http://localhost/info.php but it gives the same Not Found error.

Yes, I'm newbie in PhP, I'm trying to run a simple Hello World Program.

    echo "Hello!";

My info.php is:

<?php phpinfo(); ?> 
  • 写回答

2条回答 默认 最新

  • duanhong4274 2017-01-20 18:22

    Solved, I created a symlink for my project at /var/www/html, now it works!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 三电平逆变器中点电位平衡问题
  • ¥20 这怎么写啊 java课设
  • ¥15 双向孟德尔随机化反向是为什么显示参数长度为零
  • ¥15 用C语言完成一个复杂的游戏
  • ¥15 如何批量更改很多个文件夹里的文件名中包含文件夹名?
  • ¥50 MTK手机模拟HID鼠标出现卡顿
  • ¥20 求下下面这个数据结构代码
  • ¥20 前端 二进制文件流图片转化异常
  • ¥15 github上的这个C语言项目如何跑起来
  • ¥15 java 判断某个数 区间是否存在