Can I use both Java and PHP in the same application?

Linode Staff

And if so, how might I get the two languages to communicate?

1 Reply

Thanks for reaching out! Though it's typically recommended that an application's backend is built out of as few languages as possible (preferably just one), it's definitely possible to have Java and PHP modules communicate with each other. For more information on this, I'd recommend giving the following links a read-through:

Alternatively, you may simply wish to install a service such as Tomcat (a Java-based webserver) in a PHP-heavy environment such as cPanel. In that case, I'd strongly recommend following cPanel's official Tomcat installation guide.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct