Yes, LAMP is more popular and which I use to have.You did make me look up what LEMP was, so I learned something.
It will be a great starting point for someone like me who will in the near future switch to VPSIf anyone is curious...
or want to see me wipe out my VPS and reinstall the OS, install OpenJDK from scratch, install Let's Encrypt, run B4J server / jRDC2 app, assign a sub domain from another hosting provider and optionally install a LEMP server.
If you are interested, please comment.
Yes, it may sounds scary at first. It is actually not difficult, as long as you have the spirit of learning and exploring.It will be a great starting point for someone like me who will in the near future switch to VPS
Yes, LAMP is more popular and which I use to have.
LAMP = Linux + Apache + MySQL + PHP
LEMP which replaces Apache with nginx (pronounced as engine X) as the http web server. The M for MySQL also can be replaced by MariaDB.
B4J server app can run without any of the web servers mentioned above since it is a web server itself.
Because I like the simplicity of adminer which is a one file PHP app, to manage my MySQL database (compare the more complex PhpMyAdmin), I need to install LAMP or LEMP in my VPS. Alternatively, I can also use my jAdmin app.
Recently I was looking for how to host RTMP server, so I come across nginx again and the guide to install LEMP.
Good to hear that you learned something. That is always my intention but not always obvious.
No, I don't use docker. I don't think I need it. For me it is a waste of resources.I also like adminer. It is the swiss army knife for DBs. I believe you must also use docker because it is much easier to install docker containers with full programs in 3 sec in your vps which can be wiped out in a blink of the eye and leave your VPS again brand new as it was just reinstalled with os.
No, I don't use docker. I don't think I need it. For me it is a waste of resources.
I don't understand why people use it.
Regarding disk space, this is important for me. My laptop come with limited space SSD and the cheap plan of VPS also provide very limited disk space.It is true that a 10 mb B4J webapp with another 2 mb html files and pictures can create a docker image of about 330 mb but it has a lot of advantages. Briefly:
1) You can migrate your app in blink of an eye and you will never get "but why? It works perfect in my computer". All needed resources are in the container.
2) It renders the broken resources side effect a thing of the past. Imagine you have used php 7.x.x in a webapp and someone upgrades php to the latest one which has some new declares of certain subs. Your app is ruined in this case. With docker it is containerized with all its resources and you will never get this error.
3) Each container is considered a "dedicated" server so you can have multiple instances of your app container (containers from image) and your app will be listening in the same port number in each container. If you connect all these containers (containers with different names) to a user created docker network and connect also to this network haproxy while the latter is also connected to docker bridge network you will get with just one vps a pretty stable app because hackers and bugs will target one of many and not one of one app.
No. You only can assign only ONE domain to a VPS.having multiple domains on the same VPS with multiple SSL certificate
and you can create a sub domain that redirects to ip with port number?I manage the subdomain in shared hosting and point the sub domain name to the VPS IP address.
i think the mapping is like:and you can create a sub domain that redirects to ip with port number?
like: prod.example.com -> [ip]:5000
i have my own pc (old amc mini) that i am using as a VPS.If you want to have multiple domains in the same VPS, I think you need to use software like CPanel which require an expensive license which I am not going to do.
Some free web panel software provided by VPS hosting are very limited in functions and does not allow advanced features.
How do I add multiple domains in VPS?
Install a web server software on your VPS, such as Apache or Nginx, and configure it to serve multiple websites. Create virtual hosts for each website, and configure them to point to the appropriate directories on your VPS. Each virtual host should have its own unique domain name and server name.
i think the mapping is like:
prod.example.com -> [ip]
Then,
prod.example.com:80 -> [ip]:80 (nginx/apache2)
prod.example.com:5000 -> [ip]:5000 (B4J server 1)
prod.example.com:8000 -> [ip]:8000 (B4J server 2)
etc...
edit:
or
prod.example.com:80 -> [ip]:80 (B4J server 1)
Ok.i have my own pc (old amc mini) that i am using as a VPS.
i have a public static ip address so it wont change.
where i bought the domains (whois.com) i set the DNS to point to my ip address. it work fine. also the paid SSL certification (dont like lets encrypt) works fine.
the thing is that i cannot point another domain to the same ip.
but there are ways how to do that:
this is something that i still need to investigate.
having your own VPS at home using a old pc is handy.
the late 2012 macmini is still very good for such a task.
i have everything installed there (sql, php, ...) and it is working fine with b4j servers.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?