Looking for HOW TO setup FreeBSD as a web server.

Hey guys, im looking for HOW TO to set up FreeBSD for web server and ssh connection and good tips, tricks and settings. ( maybe jails as well )
Im working with web development (django ) and my server will be at home as i have access to my PC trough Asus router so i want to make it secure.
My PC: Asus Z10PE-D16 WS with dual Xeon`s main os will be running in nvme and also i have raid card with bifurcated bios with x4 x4 x4 x4 settings for 4nvmes in raid card and SQL will be running on Samsung server ssd.
Ill be running it mostly headless and doing all the work trough ssh from laptops or my gaming rig.
I know its silly question, but ...
Thank You.
 
I think this information is distributed not central.
There is the handbook & absolute freebsd.
& google like "how to setup an ssh server in freebsd" ... etc ...
 
I think this information is distributed not central.
There is the handbook & absolute freebsd.
& google like "how to setup an ssh server in freebsd" ... etc ...
Im looking in google, but i wanted to ask local guys ... some people knows more then google can show you if you know what i mean :) Maybe someone is running their FreeBSD as servers for web etc and can share their experience ..etc. :)
 
Your question is very broad and impossible to answer in one thread. Most of the answers will be unrelated to FreeBSD--such as anything about Django.
So you get FreeBSD, the operating system, running first. Then the rest is not about FreeBSD.
 
Your question is very broad and impossible to answer in one thread. Most of the answers will be unrelated to FreeBSD--such as anything about Django.
So you get FreeBSD, the operating system, running first. Then the rest is not about FreeBSD.
I dont need about Django .. i need FreeBSD related tips, tricks etc for web server,ssh :)
 
I dont need about Django .. i need FreeBSD related tips, tricks etc for web server,ssh :)
As already written: There is nothing related to FreeBSD: Webserver like Apache are the same as well as languages like PHP and their configuration, the configure options for SSH etc.; You will have to ask more specific questions when you're running into problems. Whoever is able to set up a webserver on Linux should be able to set it up on FreeBSD (and adapt those documentations). And (IMO!) whoever needs a step by step manual shouldn't administrate a public server…
 
https://linuxhint.com/install-apache-php-mysql-on-freebsd/

As a starting point. Really up to you on settings. Probably don't need jails if you're not making the web server available to the world, and just doing stuff inside your own LAN. It will just make the environment more complicated / slow things down. If you can set up a hardware firewall in your router to block / restrict access to web ports, do that. (for outside your LAN access obviously) If it's going to be a public web server, just don't give anyone a shell unless you've secured your system first. ssh is pretty easy to configure. Depends how you want to authenticate (certificates or keys). Basically just experiment and read. And learn about security.
 
https://linuxhint.com/install-apache-php-mysql-on-freebsd/

As a starting point. Really up to you on settings. Probably don't need jails if you're not making the web server available to the world, and just doing stuff inside your own LAN. It will just make the environment more complicated / slow things down. If you can set up a hardware firewall in your router to block / restrict access to web ports, do that. If it's going to be a public web server, just don't give anyone a shell unless you've secured your system first. ssh is pretty easy to configure. Depends how you want to authenticate (certificates or keys). Basically just experiment and read. And learn about security.
I know how to install famp .. actually as im doing Django ( python framework ) i dont need php.. i used vhost but i want to switch towards jails and yes, my website will be available to the world. ( i have ability to do so with my router - and it has been tested )
What im looking for are tips and tricks to finesse apache, ssh ... maybe there are some "handy" command lines to make life easier and system to be more faster , safer etc. .
Google search mostly provides same how to - basic ones, a template which every website uses... which is not the part im looking for :)
 
What im looking for are tips and tricks to finesse apache, ssh ... maybe there are some "handy" command lines to make life easier and system to be more faster , safer etc. .

Uh... faster and safer to do what? You haven't provided many details on how your system is set up or what you're specfically doing. There's not many ssh "tricks", it's just a protocol so you remotely auth / login to your server. I would read the FreeBSD handbook under the "Documentation" tab on site first. There's a section on jails. Apache runs on Linux and FreeBSD, so it's not FreeBSD specific. You googled "Apache tricks" and nothing came up? Weird. Like I said, learning about basic security concepts will make your web server safer and make your life easier. You might also want to read a guide on writing shell scripts in whatever shell you use to automate tasks. Understanding how networking works will help you too, when you run into a problem. (Network+ concepts). Some effort here is required on your part. If you haven't secured your webserver and FreeBSD system in general FIRST, I wouldn't even think about making it available to the world. For example, what is the difference between chmod 700 /dir and 777 /dir ? You have to ask more specific questions and post info about your setup.
 
If you want to setup a static site serving pre-generated webpages, just use hugo as it is superfast. It will even serve markdown files directly and there are lots of themes available to control the look. And it will be pretty portable (will run on all platforms officially supported by Go). Available as a port www/gohugo.
 
Back
Top