diff --git a/CPScripts/mailscannerinstaller.sh b/CPScripts/mailscannerinstaller.sh index 917c678a3..780486854 100644 --- a/CPScripts/mailscannerinstaller.sh +++ b/CPScripts/mailscannerinstaller.sh @@ -285,7 +285,7 @@ IPADDRESS=$(cat /etc/cyberpanel/machineIP) # #elif [ "$CENTOSVERSION" = "VERSION_ID=\"8\"" ]; then # -# rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm +# rpm -Uvh http://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm # dnf --enablerepo=gf-plus upgrade -y dovecot23* # dnf --enablerepo=gf-plus install -y dovecot23-pigeonhole # dnf install -y net-tools postfix-perl-scripts diff --git a/CPScripts/spamassassin_tojunk_installer.sh b/CPScripts/spamassassin_tojunk_installer.sh index cb7eb680d..8043f3956 100644 --- a/CPScripts/spamassassin_tojunk_installer.sh +++ b/CPScripts/spamassassin_tojunk_installer.sh @@ -30,7 +30,7 @@ elif [ "$CENTOSVERSION" = "VERSION_ID=\"7\"" ];then elif [ "$CENTOSVERSION" = "VERSION_ID=\"8\"" ];then - rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm + rpm -Uvh http://mirror.ghettoforge.net/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm dnf --enablerepo=gf-plus upgrade -y dovecot23* dnf --enablerepo=gf-plus install -y dovecot23-pigeonhole dnf install -y net-tools postfix-perl-scripts diff --git a/README.md b/README.md index 7dcf727bb..98284c029 100755 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Web Hosting Control Panel powered by OpenLiteSpeed, designed to simplify hosting - š **One-click Backups and Restores**. - š³ **Docker Management** with command execution capabilities. - š¤ **AI-Powered Security Scanner** for enhanced protection. +- š **Monthly Bandwidth Reset** - Automatic bandwidth usage reset (Fixed in latest version). --- @@ -75,9 +76,10 @@ CyberPanel runs on x86_64 architecture and supports the following operating syst ### **ā Currently Supported** +- **Ubuntu 24.04.3** - Supported until April 2029 ā **NEW!** - **Ubuntu 22.04** - Supported until April 2027 - **Ubuntu 20.04** - Supported until April 2025 -- **AlmaLinux 10** - Supported until May 2030 +- **AlmaLinux 10** - Supported until May 2030 ā **NEW!** - **AlmaLinux 9** - Supported until May 2032 - **AlmaLinux 8** - Supported until May 2029 - **RockyLinux 9** - Supported until May 2032 @@ -107,6 +109,7 @@ Install CyberPanel easily with the following command: sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh) ``` + --- ## š Upgrading CyberPanel @@ -119,6 +122,22 @@ sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgr --- +## š Recent Updates & Fixes + +### **Bandwidth Reset Issue Fixed** (January 2025) +- **Issue**: Monthly bandwidth usage was not resetting, causing cumulative values to grow indefinitely +- **Solution**: Implemented automatic monthly bandwidth reset for all websites and child domains +- **Affected OS**: All supported operating systems (Ubuntu, AlmaLinux, RockyLinux, RHEL, CloudLinux, CentOS) +- **Manual Reset**: Use `/usr/local/CyberCP/scripts/reset_bandwidth.sh` for immediate reset +- **Documentation**: See [Bandwidth Reset Fix Guide](to-do/cyberpanel-bandwidth-reset-fix.md) + +### **New Operating System Support Added** (January 2025) +- **Ubuntu 24.04.3**: Full compatibility with latest Ubuntu LTS +- **AlmaLinux 10**: Full compatibility with latest AlmaLinux release +- **Long-term Support**: Both supported until 2029-2030 + +--- + ## š Resources - š [Official Site](https://cyberpanel.net) @@ -146,4 +165,22 @@ sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgr | š³ Docker | [Command Execution](guides/Docker_Command_Execution_Guide.md) | Execute commands in containers | | š¤ Security | [AI Scanner](guides/AIScannerDocs.md) | AI-powered security scanning | | š§ Email | [Mautic Setup](guides/MAUTIC_INSTALLATION_GUIDE.md) | Email marketing platform | +| š Bandwidth | [Reset Fix Guide](to-do/cyberpanel-bandwidth-reset-fix.md) | Fix bandwidth reset issues | | š All | [Complete Index](guides/INDEX.md) | Browse all available guides | + +--- + +## š§ Troubleshooting + +### **Common Issues & Solutions** + +#### **Bandwidth Not Resetting Monthly** +- **Issue**: Bandwidth usage shows cumulative values instead of monthly usage +- **Solution**: Run the bandwidth reset script: `/usr/local/CyberCP/scripts/reset_bandwidth.sh` +- **Prevention**: Ensure monthly cron job is running: `0 0 1 * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/client.py monthlyCleanup` + + +#### **General Support** +- Check logs: `/usr/local/lscp/logs/error.log` +- Verify cron jobs: `crontab -l` +- Test manual reset: Use provided scripts in `/usr/local/CyberCP/scripts/` diff --git a/backup/templates/backup/backupSchedule.html b/backup/templates/backup/backupSchedule.html index 904bcf303..30d12e3b2 100644 --- a/backup/templates/backup/backupSchedule.html +++ b/backup/templates/backup/backupSchedule.html @@ -402,6 +402,7 @@
{% trans "Backup retention is a" %} - {% trans "paid feature" %}. + {% trans "paid feature" %}. {% trans "Upgrade to manage how long backups are stored." %}
{% trans "Configure Hostname and other default Settings for CyberPanel" %}
- + {% trans "Learn More" %} diff --git a/cyberpanel.sh b/cyberpanel.sh index b063ec27e..17ce2e110 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -88,7 +88,7 @@ log_info "CyberPanel installation started" log_info "Log file: $LOG_FILE" log_info "Debug log file: $DEBUG_LOG_FILE" -#CyberPanel installer script for CentOS 7, CentOS 8, CloudLinux 7, AlmaLinux 8, RockyLinux 8, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, Ubuntu 24.04, openEuler 20.03 and openEuler 22.03 +#CyberPanel installer script for CentOS 7, CentOS 8, CloudLinux 7, AlmaLinux 8, AlmaLinux 9, AlmaLinux 10, RockyLinux 8, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, Ubuntu 24.04, Ubuntu 24.04.3, openEuler 20.03 and openEuler 22.03 #For whoever may edit this script, please follow: #Please use Pre_Install_xxx() and Post_Install_xxx() if you want to something respectively before or after the panel installation #and update below accordingly @@ -99,7 +99,7 @@ log_info "Debug log file: $DEBUG_LOG_FILE" #Set_Default_Variables() ---> set some default variable for later use #Check_Root() ---> check for root #Check_Server_IP() ---> check for server IP and geolocation at country level -#Check_OS() ---> check system , support on CentOS 7/8, RockyLinux 8, AlmaLinux 8, Ubuntu 18/20/22/24, openEuler 20.03/22.03 and CloudLinux 7, 8 is untested. +#Check_OS() ---> check system , support on CentOS 7/8, RockyLinux 8, AlmaLinux 8/9/10, Ubuntu 18/20/22/24, openEuler 20.03/22.03 and CloudLinux 7, 8 is untested. #Check_Virtualization() ---> check for virtualizaon , #LXC not supported# , some edit needed on OVZ #Check_Panel() ---> check to make sure no other panel is installed #Check_Process() ---> check no other process like Apache is running @@ -306,6 +306,17 @@ baseurl = http://yum.mariadb.org/10.11/rhel9-amd64/ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB enabled=1 gpgcheck=1 +EOF + elif [[ "$Server_OS_Version" = "10" ]] && uname -m | grep -q 'x86_64'; then + cat <Click "Generate docker-compose.yml" and "Generate .env file" to download both files.
+ +Place both files in the same directory on your server.
+ +Run the following commands in your terminal:
+docker compose up -d
+
+ To update environment variables:
+docker compose up -dClick "Generate docker-compose.yml" and "Generate .env file" to download both files.
+ +Place both files in the same directory on your server.
+ +Run the following commands in your terminal:
+docker compose up -d
+
+ To update environment variables:
+docker compose up -d{% trans "Use Docker Compose for easier environment variable management" %}
++ {% trans "Choose between simple line-by-line input or advanced bulk editing mode" %} +
++ {% trans "Switch to advanced mode to copy & paste multiple variables" %} +
++ {% trans "Enter environment variables in KEY=VALUE format, one per line. Example:" %} +
++ {% trans "Enable advanced mode for bulk editing environment variables" %} +
+{% trans "With Docker Compose, you can:" %}
++ {% trans "Edit environment variables in bulk using KEY=VALUE format" %} +
+{% trans "Loading containers..." %}
+{% trans "No other containers found to import from" %}
+{% trans "Importing environment variables..." %}
+{% trans "SSL for email is not configured properly. You may get self-signed errors in mail clients like Outlook and Thunderbird." %}
- {% trans "Learn more" %} + {% trans "Learn more" %}