-3

I am trying to connect the PHP with Java with the PHP/Java Bridge library. But I am facing an error as given below.

Please check below screenshot.

enter image description here

3
  • 2
    Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions. Commented Sep 9, 2017 at 12:26
  • What happened when you followed the advice given in the error message? Commented Sep 9, 2017 at 13:20
  • I have try to run the command manually php-cgi -b .. but it's give me error but it working with php-cgi -S command Commented Sep 9, 2017 at 14:59

1 Answer 1

0

By default, the phpjavabridge servlet try to connect to a php-cgi daemon. It can be easily fixed, either by starting one of the bundled php-cgi (found in WEB_INF/cgi, follow the error message) or modify the configuration in the web.xml (see an example here) to provide your system php-cgi path. Repackage and redeploy your war file.

That said, if you want to use Java from PHP (and not PHP from Java), you don't need a php-cgi daemon. My recommendation, have a look to the following project: http://docs.soluble.io/soluble-japha/. This is a reworked version focusing on PHP -> Java integration.

Feel free to open issues on https://github.com/belgattitude/soluble-japha

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.