Intellij PHP remote debugging: Failed to execute validation script-ThrowExceptions

Exception or error:

I am trying to configure the PHP remote debugging feature of the PHP plugin in IntelliJ. When I try to validate my configuration I get the following error:

Failed to execute validation script:
'Could not read from "host:port/path/to/_intellij_phpdebug_validator.php"
because it is not a file.'

I don’t really know where the problem is. I assume this php file is something that IntelliJ copies to the remote server and then tries to execute. But for some reason that fails. Can anyone provide some insight what this error means and how to fix it?

How to solve:

This problem appears if the ‘Web Path’ field under Tools | Deployment | Configuration | Mapping is not correctly pointing to the url at which the uploaded validator script is accessible.


Just download file

to your deployment directory or directly to target server document root directory


In my case the issue is the Apache Rewrite rules that when _intellij_phpdebug_validator.php get the redirect file in my case to a 404 page of Symfony framework installed for this project.

Leave a Reply

Your email address will not be published. Required fields are marked *