To help you setup your server 😊 Include : Webmin, Apache/Nginx server and others.
- Integrated with ModSecurity 3 from source, choose upon installation prompt
To disable add :
SecRuleEngine Off
to the virtualhost - Fail2ban
- Server Optimization
- php installation from 7.3 to 8.1
Example to disable :
SecRuleEngine Off
- Installing Virtualmin with port 9191
service webmin start
- Registering Phpmyadmin as service so you can running it by executing this command and access it with port 9292
service pamin start
- Fail2ban integrated with mod_security
- Setup cron to automatically turn off webmin and pamin service
- Change timezone to Makassar
- Optimalization
- Disabled ssh login by password, only allow private key
It is recommended to use screen to inititate the installation process due to the installation may take more than 30 minutes (depend on computing power of server)
wget https://raw.githubusercontent.com/navotera/BashServerSetup/master/init.sh && chmod +x init.sh && ./init.sh | tee /var/log/bashServerSetup_install.log
ansible-playbook /var/BashServerSetup/playbook/init.yml
- Access password on server.config or Change passsword
sudo -i passwd
- Change the hostname by using command
hostname YOUR_HOSTNAME
[optional] - Start the webmin
service webmin start
and access to https://ip_address:9191 - PHPMyadmin Start by
service pamin start
access to https://ip_address:9292
if you want install Modsecurity you can run this :
ansible-playbook /var/BashServerSetup/app/modsecurity/apache2/install.yml
--> for Apache
ansible-playbook /var/BashServerSetup/app/modsecurity/nginx/install.yml
--> for Nginx
- Live Progress
- Select Feature
- Installing via screen
- Ubuntu 24.04 x64 ✔
- Ubuntu 22.04 x64 ✔
- Ubuntu 20.04 x64 ✔
- Ubuntu 18.04 LTS x64 ✔
- Ubuntu 2X.10 x64 ❌ (virtualmin not compatible yet)
- On some case, installation of virtualmin may failed, you need to rerun the script from initiation.
If you are using GCP server please follow this video to open port 9191 and 9292 : https://www.youtube.com/watch?v=XFxdECTpiEg