Report this

What is the reason for this report?

Run a java Project on my current machine (ubuntu 16.04 along with LAMP)

Posted on March 15, 2018

Hi Guys, Since i am from Coding background and have less knowledge on Server Part, I have my 3-4 websites which are running on current Machine (built in Advance PHP). on LAMP. Now i have a java web application which has mysql database. Can you Please help me out in running that java web application on My LAP Stack. This should not affect my current PHP web applications. Please reply fast !!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

There are multiple ways you can do this and/or setup server configuration(s) to accomplish this.

In a single droplet situation you can use a proxy server like NGINX or HAProxy to answer on ports 80/443 and route the traffic to the appropriate backend server/project - In your case this would be your LAMP and Java projects - Each of these project would need to be configured to answer on a different port then 80/443 like 8080, 81, this is up to you.

Here is a great start on how to do so with NGINX:

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.