Interactive installer and uninstaller wrapper for free ConfigServer tools on common Linux hosting control panels.
This project helps Linux server administrators install or remove supported ConfigServer tools through a simple interactive Bash menu.
- CSF — ConfigServer Security & Firewall
- CMC — ConfigServer ModSecurity Control
- CMM — ConfigServer Mail Manage
- CMQ — ConfigServer Mail Queues
- CSE — ConfigServer Explorer
- cPanel
- CWP
- CyberPanel
- DirectAdmin
- InterWorx
- Generic Linux server
- Vesta
Run directly as root:
bash <(curl -fsSL https://raw.githubusercontent.com/homfar/configserver/main/installer.sh)The script will ask you to select:
- Control panel
- ConfigServer product
- Install or uninstall mode
For production servers, it is better to download and review the script before running it:
curl -fsSLo installer.sh https://raw.githubusercontent.com/homfar/configserver/main/installer.sh
less installer.sh
bash installer.shThe script must be executed as root.
- Linux server
- Root access
bashcurltarmktemp- Supported hosting control panel for panel-specific installers
Install common dependencies on Debian/Ubuntu:
apt update
apt install -y bash curl tar coreutilsInstall common dependencies on AlmaLinux/Rocky/CentOS:
dnf install -y bash curl tar coreutilsThe script:
- Shows an interactive menu.
- Asks for the hosting control panel.
- Asks for the ConfigServer product.
- Asks whether to install or uninstall.
- Downloads the required installer or uninstaller.
- Runs the selected script through
bash. - Cleans up the temporary working directory after completion.
The working directory is created under:
/usr/local/src
Using /usr/local/src helps avoid common issues caused by /tmp being mounted with noexec.
Start script
|
+-- Select control panel
|
+-- Select product
|
+-- Choose install or uninstall
|
+-- Download required package/script
|
+-- Run installer or uninstaller
|
+-- Cleanup
https://github.com/homfar/configserver
- This repository provides an automation wrapper for supported ConfigServer tools.
- It is intended for experienced Linux/server administrators.
- Review the script before running it on production servers.
- Keep backups and emergency console access before changing firewall or security components.
- Installing or removing CSF and related tools may affect network access if the server firewall is misconfigured.
- This project is not an official ConfigServer repository.
Check Bash syntax:
bash -n installer.shIf ShellCheck is available:
shellcheck installer.shاین پروژه یک اسکریپت تعاملی Bash برای نصب یا حذف ابزارهای رایگان ConfigServer روی سرورهای لینوکسی و کنترلپنلهای هاستینگ است.
هدف پروژه سادهسازی نصب و حذف ابزارهایی مثل CSF، CMC، CMM، CMQ و CSE برای مدیران سرور است.
- CSF — فایروال و ابزار امنیتی ConfigServer
- CMC — مدیریت ModSecurity
- CMM — مدیریت ایمیل
- CMQ — مدیریت صف ایمیل
- CSE — ابزار Explorer مربوط به ConfigServer
- cPanel
- CWP
- CyberPanel
- DirectAdmin
- InterWorx
- Generic Linux server
- Vesta
bash <(curl -fsSL https://raw.githubusercontent.com/homfar/configserver/main/installer.sh)بعد از اجرا، اسکریپت از شما میپرسد:
- کنترلپنل سرور چیست
- کدام محصول ConfigServer نصب یا حذف شود
- عملیات نصب انجام شود یا حذف
برای سرورهای production بهتر است ابتدا اسکریپت را دانلود و بررسی کنید:
curl -fsSLo installer.sh https://raw.githubusercontent.com/homfar/configserver/main/installer.sh
less installer.sh
bash installer.shاسکریپت باید با دسترسی root اجرا شود.
- سرور لینوکسی
- دسترسی root
- bash
- curl
- tar
- mktemp
- کنترلپنل سازگار برای نصبهای وابسته به پنل
نصب پیشنیازهای عمومی روی Debian/Ubuntu:
apt update
apt install -y bash curl tar coreutilsنصب پیشنیازهای عمومی روی AlmaLinux/Rocky/CentOS:
dnf install -y bash curl tar coreutilsاسکریپت:
- یک منوی تعاملی نمایش میدهد.
- کنترلپنل سرور را دریافت میکند.
- محصول ConfigServer را دریافت میکند.
- حالت نصب یا حذف را مشخص میکند.
- فایل installer یا uninstaller لازم را دانلود میکند.
- اسکریپت انتخابشده را با
bashاجرا میکند. - فایلهای موقت را بعد از پایان عملیات پاک میکند.
دایرکتوری کاری در این مسیر ساخته میشود:
/usr/local/src
استفاده از /usr/local/src باعث میشود مشکلات رایج مربوط به noexec بودن /tmp کمتر شود.
- این پروژه یک wrapper برای سادهسازی نصب و حذف ابزارهای ConfigServer است.
- برای مدیران سرور و کاربران باتجربه لینوکس مناسب است.
- قبل از اجرا روی سرور production، محتوای اسکریپت را بررسی کنید.
- قبل از تغییر ابزارهای firewall/security، دسترسی اضطراری یا کنسول سرور داشته باشید.
- نصب یا حذف CSF و ابزارهای امنیتی مشابه میتواند روی دسترسی شبکه تأثیر بگذارد.
- این پروژه repository رسمی ConfigServer نیست.
بررسی syntax اسکریپت:
bash -n installer.shاگر ShellCheck نصب است:
shellcheck installer.shReleased under the GPL-3.0 License.