... php-cgi ... The system cannot find the specified file
I assume that manager.getEngineByName ("php-invocable") should return a shell around the system call to run PHP - but this shell does not know where to find the PHP executable.
A quick look at the website for the PHP / Java bridge, and I conclude that the path is hard-coded in Java - "For more information, see the INSTALL.J2EE file from the documentation download"
Javadoc is clearly vague on this topic.
You need to specifically create a version of -cgi PHP at compile time, assuming you did it, and it is called php-cgi, and then, as a quick hack, you can transfer your file system to links called "php-cgi" (probably , it is expected that it will be in / bin, / usr / bin /, / usr / local / bin or Java may be smart enough to check $ PATH)
FROM.
symcbean
source share