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 一道python难题2
  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备