Reputation: 11221
I have created a simple hello world php app in eclipse with the name od FirstPHP
when i try to run it as "run as php web page"
it tries opening the page
http://localhost/FirstPhp/first.php
in eclipse web browser
and got the message web page not found
when i open http://localhost:8080/ it works fine , so tomcat is ok
Any Suggestion
Upvotes: 1
Views: 1707
Reputation: 2577
Gr.
Upvotes: 0
Reputation: 385405
AFAIK, Eclipse doesn't automagically configure your webserver so that its document root is suddenly wherever sits the project that you just so happen to currently be working on.
Configure your webserver to use the proper path as DocumentRoot
.
I also notice that you used the wrong port number in the first instance.
Upvotes: 1