dongmeng1402 2012-01-16 06:10
浏览 278

php eclipse我似乎无法从eclipse打开我的网站

I'm writing a website in eclipse and I'm trying to run it from inside eclipse and I keep getting object not found errors.

I'm using ubuntu and xampp I keep moving the eclipse workspace around and i can't find where it should be. I've read that it should be in htdocs folder so thats where i put it but I still can't open and pages.

So my method would be to right click on the page in the explorer run as configure set the file to /practice/page.html set the url to /htdocs/practice/page.html run

and I get this error

object not found

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404
localhost
Mon 16 Jan 2012 05:09:10 PM EST
Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1 

Anybody have any ideas what I've done wrong?

  • 写回答

1条回答 默认 最新

  • dongying9756 2012-01-16 06:22
    关注

    If the DocumentRoot is /htdocs, shouldn't you set the URL to /practice/page.html instead of /htdocs/practice/page.html? According to this,

    The main directory for all WWW documents is \xampp\htdocs. If you put a file "test.html" in this directory, you can access it with the URI "http://localhost/test.html".

    评论

报告相同问题?

悬赏问题

  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统