Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not having success getting the PDT (PHP Development Tools, SDK 2.0.2 and 2.1.2) plugin to work in Eclipse in Ubuntu 11.04. I encounter the following page when attempting to run a php file:

Not Found

The requested URL /TestPHP/tester.php was not found on this server. Apache/2.2.17 (Ubuntu) Server at localhost Port 80"

When I navigate to 127.0.0.1:8000/TestPHP/tester.php, I see the code in the tester.php file rendered as text, where it's not actually interpreting the code but directly printing it.

Here is the procedure I followed from installation to attempted execution: Install Eclipse -> Install PDT 2.1.2/2.0.2 -> Install Lamp using Tasksel install -> Add ServerName localhost in confd file -> Start Eclipse -> Open PHP Perspective -> Create new PHP project -> Create new PHP file -> run file with "Run as PHP Web Page" on the sub-menu for the Run button.

share|improve this question

1 Answer 1

You need to install the php packages:

$ sudo apt-get install php5-common php5-cgi
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.