HTTP Status 500 - Could not run PHP

type Exception report

message Could not run PHP

description The server encountered an internal error that prevented it from fulfilling this request.

exception

php.java.fastcgi.FCGIProcessException: Could not run PHP
	php.java.fastcgi.SocketFactory.test(SocketFactory.java:71)
	php.java.fastcgi.FCGIFactory.startFCGIServer(FCGIFactory.java:99)
	php.java.fastcgi.FCGIConnectionPool.createConnectionPool(FCGIConnectionPool.java:147)
	php.java.servlet.ContextLoaderListener.getConnectionPool(ContextLoaderListener.java:220)
	php.java.servlet.ContextLoaderListener.getConnectionPool(ContextLoaderListener.java:209)
	php.java.servlet.fastcgi.FastCGIServlet.doExecute(FastCGIServlet.java:395)
	php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:516)
	php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:527)
	php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:555)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause

java.io.IOException: PHP not found. Please install php-cgi. PHP test command was: [/usr/local/apache-tomcat-8.5.9/php-cgi, -v] 
	php.java.fastcgi.FCGIProcess.start(FCGIProcess.java:399)
	php.java.fastcgi.SocketFactory.doBind(SocketFactory.java:140)
	php.java.fastcgi.FCGIFactory.runFcgi(FCGIFactory.java:146)
	php.java.fastcgi.FCGIFactory$1.run(FCGIFactory.java:169)

note The full stack trace of the root cause is available in the Apache Tomcat/8.5.9 logs.


Apache Tomcat/8.5.9