Installed php PDT thru Eclipse install Software what Next




I am new to this technology, so excuse me if I am missing the basic understanding of php. I have installed eclipse neon and MySql in my windows 10 system. I wanted to install php so I build my web site. I did this thru Eclipse>Help>Install New Software and installed PDT 4.1 package (PDT_4_1_0

1. I created my first .php file


2. I want to Run (Run as CLI/Web Application)

It gives an error 'No PHP Executable defined'. I tried to define the Executable (Add > Serach and it could not find any php executables at all).

This is my question?

- Did I install php correctly? Is there more than just eclipse install such as downloading some other executable and install it directly on the PC and then the path gets updated (we update it) and then the executable will show?

Please provide me the necessary steps to execute my php.

Thank you,
Not sure what the eclipse tools install for you, but you can install something like WAMPSERVER which will give you PHP and MySQL together.

To help other people get started, I wrote a few instructions here, with a link to WAMPSERVER:

Hope that helps,
Thank you for your reply. It is Eclipse neon release and using the "Install New Software" feature I have installed it. I get PHP perspective and the usual things to edit. But when it comes to executing it, something still not installed. Also I have already setup everything using Python,PyDev, Apache and MySQL. I don't know whether this new tool will screw up anything else, since all are in the same laptop.

Any idea?

to troubleshoot the issue you can try these steps:

  1. Verify that the MySQL service is running.
  2. Double-check the credentials (username, password, and database name) used in your PHP code to connect to MySQL.
  3. Ensure that the necessary PHP extensions (mysqli for MySQLi or pdo_mysql for PDO) are enabled in the php.ini configuration file.
  4. Confirm that the MySQL socket file path specified in php.ini is correct (default: /var/run/mysqld/mysqld.sock).
  5. Check if the MySQL user used in your PHP code has appropriate permissions to access the MySQL database.
  6. Enable error logging in PHP (error_reporting = E_ALL and display_errors = On) to get more information about connection errors.
  7. Test the database connection using a simple PHP script, verifying the credentials and checking for any error messages.