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 127.0.0.1.

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.

<?php
    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!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥15 DruidDataSource一直closing
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据