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!
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 π
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
Minimum Requirement
- OS : Debian / ubuntu
- Storage : 25Gb
- Memory : 3 Gb
- Fresh Server with ssh...
Recommended Requirement
- OS : Debian 11
- Storage : 200 Gb
- Memory : 8Gb
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.
Discord : WaRtrO#6293