Is it possible to install a MERN web application on a VPS

SYSTEM INFORMATION
OS type and version CentOS Linux 7.9.2009
Webmin version 2.013
Virtualmin version 7.5

Sorry for my english, I want to install a web application on a new virtual privet server. Knowing that there are already 7 virtual server working on CMS 's ( Joomla and Wordpresse).

If I install a MERN stack application will it disturbe the hole system already fonctionning

Sure, it’s no different than on any other system. You proxy to it, just like you would any other Node.js (or Django, or RoR, or whatever).

Is there a manual that I can follow, beacause i tried on my own but I need to install first Nginx. Knowing Apache is already present what should I do please

You should not install nginx on a system that also has Apache.

Either learn to do it with Apache, or start over with a fresh Virtualmin installation, using the --bundle LEMP option. (See: Automated Virtualmin Installation – Virtualmin)

first understand what a MERN stack actually is.

  • MongoDB — document database
  • Express(.js) — Node.js web framework
  • React(.js) — a client-side JavaScript framework
  • Node(.js) — the premier JavaScript web server

Virtualmin comes with none of these. But they are all easy to install on a VS once you have it set up on your box. It requires a webserver (Virtual min can be configured on installation with either Apache or Nginx. Personally I think Nginx is easier to use. Once you have installed NodeJS and MongoDB (sometimes managed on a different box/server) - React(.js) and Express(.js) will be managed inside the Nodejs code of your App (in the node pakage.json) if the App is built to a static directory (one advantage of a MEAN stack) it could be a simple matter of copying the static files to the public_html. It is a whole lot of learning but not all beyond the wit of mankind.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.