Skip to content

Debian web server | fresh server autoinstallation | tools πŸ› οΈ | virtualhost πŸ—‚οΈ | mail service πŸ“« | Chroot πŸ”‘

License

Notifications You must be signed in to change notification settings

WaRtr0/webserver-debian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

72 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub GitHub top language GitHub repo size GitHub Repo stars GitHub repo directory count GitHub watchers GitHub followers GitHub contributors GitHub last commit (branch)

Debian Web Server

Debian - Apache - Nginx - iRedMail - certbot - Fail2ban - Php - NodeJs - Phusion Passenger

Important

As of now, I am no longer actively maintaining this project. I strongly advise against using it for personal purposes, and especially not in production environments. Feel free to browse through the code to understand its workings 😊.

However, I welcome contributions! If you're interested in updating or improving this repository, please feel free to submit a pull request. Your input would be greatly appreciated!

About

New project! I have been working in a Debian and Plesk environment for a very long time.

But I decided to stop working with Plesk which does all the work for me πŸ˜….

So I'm challenging myself to create a small tool to install a web server, with a complementary tools for example to add clients with a chroot that will host their sites...

I'm still a student so don't imagine a perfect thing, I count on your help to improve this project πŸ˜‰

Work environment

Virutal Private Server of Contabo

  • OS : Debian 11 (bullsere) x86_64
  • Shell : Bash 5.1.4
  • CPU : AMD EPYC 7282 (6) @ 2.799GHz
  • Memory : 16 GB

Software

  • putty
  • vim & vs code

Requirement

Minimum Requirement

  • OS : Debian / ubuntu
  • Storage : 25Gb
  • Memory : 3 Gb
  • Fresh Server with ssh...

Recommended Requirement

  • OS : Debian 11
  • Storage : 200 Gb
  • Memory : 8Gb

Install

It is highly recommended to be a root user!

Install git to clone the script :

apt install git -y

Download the script :

git clone https://github.com/WaRtr0/webserver-debian.git

Run the script

bash webserver-debian/install.sh

You have some questions at the beginning, please fill them in correctly, without spam on "enter" !

After these questions the script will install most of the things we need on the server. You can go have a little coffee πŸ˜‚

Reboot your machine when the installation is complete

Reboot

For a question of security, I recommend you to disable the possibility to connect in ssh with a root user For this go to :

nano /etc/ssh/sshd_config

and modify the line (121) where you have "PermitRootLogin yes" and replace "yes" by "no" then save & restart ssh service.

systemctl restart sshd

Finish, now you have to log in with the user that was created with the script.

Contact

Discord : WaRtrO#6293

LinkedIn

Releases

No releases published

Packages

No packages published

Languages