Content
Use VPS for more than just OpenProject
Added by N I over 4 years ago
Hi,
I installed OpenProject successfully on a VPS and I've been using it for a couple of months and im happy with it.
Because of the way OpenProject is installed i could not use it in my current cPanel hosted website which is why i used the VPS.
Now what i want to do is i want to move my website on the VPS as well so i can have everything in one place along with OpenProject and to reduce the cost as well.
This is my setup right now:
VPS:
Ubuntu server
OpenProject with Apache2
cPanel hosting:
My main "small business" website
Opensource web based invoicing system
Opensource web based document management system
I want to move my small site, invoice system and document management system to the same VPS where OpenProject is.
Now, i know my way around linux a tiny bit to SSH to a server, run a few commands here and there, install little stuff and follow guides.
After installing OP on the VPS, i think right now Apache is only serving OP and nothing else, for example, i have OP configured to use www.domain.com/projects .. when i visit www.domain.com it gives me a forbidden error.
My question:
How can I take advantage of Apache2 and run other websites on the same VPS as OpenProject?
Replies (4)
You can use the attached example config to configure an Apache integration yourself, skipping the default configuration by OpenProject. This way you can use it in any server panel such as cPanel / froxlor / imscp etc.
You need to reconfigure the package to select
skip
for the Apache2 auto-install feature, and instead configure the host name manually later (the wizard should ask you for that).Then OpenProject will run only locally at port
6000
by default and the attached configuration will configure a proxy / reverse proxy for that internal server. If you wish to use nginx instead, this works the same way (except I don't have an exemplary configuration at hand).Best
Oliver
@Oliver Günther
Thanks for the reply, 2 questions:
1, I thought OpenProject requires ruby etc.. does it not? Can it run on just Apache, PHP and SQL?
2, when you say it "will run only locally", it sill still work on my domain where it's hosted?
Like normal website will run on www.domain.com and OpenProject for example on www.domain.com:6000/projects ?
OpenProject packages come with an internal (unicorn or puma) server that runs the application code in Ruby. You could also run the code directly from apache with e.g.,
mod_passenger
. Our application servers only listen tolocalhost:6000
, which is why you need an external proxy such as an Apache or Nginx that accepts public connections on www.domain.com, and forwards them to the local application server. The attached configuration does just this with theProxy
/ Reverse-Proxy pattern of Apache.Best
Oliver
I had the same issue, and thanks to you folks, I've finally managed and sorted out it. I have never thought that you could use VPS for so many purposes. By the way, recently, while surfing the internet, I bumped into tapleto-host.net. They are hosting VPS, and the prices seem quite affordable. I recalled those times playing San Andreas Multiplayer, and I instantly gained a strong desire to create a Role-Play server in SAMP. I would highly appreciate any reviews you could provide about this provider. Cheers!