Hello everyone.
I am about to deploy a Django app of mine and it will be hosted on my (KVM(dedicated core)) virtual server.
Let's get right to the point:
1. Why FreeBSD?
a) So far I have used Linux a lot more than FreeBSD, but for my server I want maximum stability/security
b) For me FreeBSD also seems a bit easier. The location of config files seems to be more logical and I don't have to go to 100 different folders as I (quite often) have to do on my private Linux machine (that machine is focused on desktop use to be fair though)
c) I have a strong (personal) preference for having my systems as minimal as possible. Even more so, for a server where stability is key.
d) The FreeBSD Handbook seems to be very compatible with the way my brain works when learning a new system.
2. Requirements?
a) Most important: MINIMALISM! Install and maintain as few packages/services as possible
b) nginx + gunicorn (running Django on Python3 in virtualenv) - Installation and setup should not be a problem. Have done this a few times before on Linux
c) PostgreSQL server - Installation and setup should not be a problem. Have done this a few times before on Linux
d) I only want to use pkg(!) and not ports for installation as I don't see any advantages and I dont want to wait for hours until an update has been applied.
3. So what do you want?
There are a few (silly) questions I have that are rather FreeBSD specific:
A) I understand that FreeBSD does have no out of the box way of restarting crashed services/daemons. Is that really correct? I'm used to running gunicorn via supervisord on Linux. Will I have to do the same for FreeBSD or is there a FreeBSD way of solving this? (Which I would prefer)
B) I wanted to try Python3 and there are several ways for installing it. Install pkg "python3" which seems to just install "python34" or install pkg "python35" directly. However what's the better FreeBSD way? Will the python3 (meta)package be updated to python35 at some point or will this remain python34? Same thing with Apache2. In Linux I just install Apache2 and I get the most recent version of A2. So let's say in a year from now A2.6 comes out, the A2 Linux Package will get me A2.6. In FreeBSD however there is a Apache24 package. So if I hypothetically wanted to upgrade to A2.6 in the future I would need to uninstall apache24 and install apache26 manually? Or is there a FreeBSD way to upgrade from one package to another? (Which would surprise me)
C) Jails. I wanna keep things as simple as possible. Would jails add sufficient value in terms of added security for the additional amount of work? As far as I can tell jails is certainly helpful, but not quite the super-security measures it is sometimes hyped up to. However if I am wrong, please correct me!
That's it for now. Thanks so much for your help in advance. If there's any additional information you need, please let me know!
I am about to deploy a Django app of mine and it will be hosted on my (KVM(dedicated core)) virtual server.
Let's get right to the point:
1. Why FreeBSD?
a) So far I have used Linux a lot more than FreeBSD, but for my server I want maximum stability/security
b) For me FreeBSD also seems a bit easier. The location of config files seems to be more logical and I don't have to go to 100 different folders as I (quite often) have to do on my private Linux machine (that machine is focused on desktop use to be fair though)
c) I have a strong (personal) preference for having my systems as minimal as possible. Even more so, for a server where stability is key.
d) The FreeBSD Handbook seems to be very compatible with the way my brain works when learning a new system.
2. Requirements?
a) Most important: MINIMALISM! Install and maintain as few packages/services as possible
b) nginx + gunicorn (running Django on Python3 in virtualenv) - Installation and setup should not be a problem. Have done this a few times before on Linux
c) PostgreSQL server - Installation and setup should not be a problem. Have done this a few times before on Linux
d) I only want to use pkg(!) and not ports for installation as I don't see any advantages and I dont want to wait for hours until an update has been applied.
3. So what do you want?
There are a few (silly) questions I have that are rather FreeBSD specific:
A) I understand that FreeBSD does have no out of the box way of restarting crashed services/daemons. Is that really correct? I'm used to running gunicorn via supervisord on Linux. Will I have to do the same for FreeBSD or is there a FreeBSD way of solving this? (Which I would prefer)
B) I wanted to try Python3 and there are several ways for installing it. Install pkg "python3" which seems to just install "python34" or install pkg "python35" directly. However what's the better FreeBSD way? Will the python3 (meta)package be updated to python35 at some point or will this remain python34? Same thing with Apache2. In Linux I just install Apache2 and I get the most recent version of A2. So let's say in a year from now A2.6 comes out, the A2 Linux Package will get me A2.6. In FreeBSD however there is a Apache24 package. So if I hypothetically wanted to upgrade to A2.6 in the future I would need to uninstall apache24 and install apache26 manually? Or is there a FreeBSD way to upgrade from one package to another? (Which would surprise me)
C) Jails. I wanna keep things as simple as possible. Would jails add sufficient value in terms of added security for the additional amount of work? As far as I can tell jails is certainly helpful, but not quite the super-security measures it is sometimes hyped up to. However if I am wrong, please correct me!
That's it for now. Thanks so much for your help in advance. If there's any additional information you need, please let me know!