Commit Graph

5173 Commits

Author SHA1 Message Date
Master3395
da649631d6 Merge pull request #1637 from master3395/v2.5.5-dev
Fix CloudFlare DNS Management: Filter main domains only, auto-delete DNS records on domain removal, improve table display
2026-01-04 02:15:42 +01:00
master3395
f248ef23c4 Fix CloudFlare DNS Management: Filter main domains only, auto-delete DNS records on domain removal, improve table display
- Filter domain dropdown to show only main domains (exclude sub-domains)
- Add automatic CloudFlare DNS record deletion when domains/sub-domains are removed
- Improve DNS Records table display to match SSH Logins/Logs table styling
- Add loading states and proper table structure with ng-if conditions
- Update CSS to match activity-table styling with sticky headers
2026-01-04 02:13:46 +01:00
Master3395
73c19445a2 Merge pull request #1634 from master3395/v2.5.5-dev
Updated index.html to reference local copies of qrious.min.js and chart.umd.min.js. Added functionality in install.py and upgrade.py to download these libraries before running collectstatic. Updated website.html to ensure compatibility with the new local scripts.
2026-01-01 05:30:21 +01:00
Master3395
737c9b99c4 Download CDN libraries locally to eliminate tracking prevention warnings. Updated index.html to reference local copies of qrious.min.js and chart.umd.min.js. Added functionality in install.py and upgrade.py to download these libraries before running collectstatic. Updated website.html to ensure compatibility with the new local scripts. 2026-01-01 05:29:46 +01:00
Master3395
fadacdcb31 Merge pull request #1633 from master3395/v2.5.5-dev
Refactor configuration modification methods for improved safety

https://github.com/usmannasir/cyberpanel/issues/1609
2025-12-31 23:15:09 +01:00
Master3395
c0586099f3 Refactor configuration modification methods for improved safety and validation
- Introduced a `safeModifyHttpdConfig` method in `installUtilities` to handle modifications to the OpenLiteSpeed configuration file with backup, validation, and rollback capabilities.
- Updated various modules (`modSec.py`, `sslUtilities.py`, `tuning.py`, `vhost.py`, etc.) to utilize the new safe modification method, enhancing reliability and preventing configuration corruption.
- Improved error handling and logging throughout the configuration modification processes to ensure better traceability and debugging.
2025-12-31 23:13:53 +01:00
Master3395
821e65f82e Merge pull request #1632 from master3395/v2.5.5-dev
Update rsync exclude patterns in backupUtilities.py

https://github.com/usmannasir/cyberpanel/issues/1615
2025-12-31 22:56:17 +01:00
Master3395
0865b60c10 Update rsync exclude patterns in backupUtilities.py to use leading slashes for top-level directory exclusions. This change improves backup accuracy by ensuring only the intended directories are excluded during the backup process. 2025-12-31 22:55:09 +01:00
Master3395
e36a51a06c Merge pull request #1631 from master3395/v2.5.5-dev
V2.5.5 dev

https://github.com/usmannasir/cyberpanel/issues/1612
2025-12-31 22:46:00 +01:00
Master3395
8c068e2e9d Merge branch 'usmannasir:v2.5.5-dev' into v2.5.5-dev 2025-12-31 22:45:34 +01:00
Master3395
158098b9ee Enhance venvsetup.sh to conditionally create timezone.ini file
- Added logic to check for the successful installation of the timezonedb extension before creating the corresponding .ini file.
- Implemented a check to verify the existence of timezonedb.so in the PHP extension directory, improving the robustness of the installation process.

These changes ensure that the timezone configuration is only applied when the extension is available, enhancing the reliability of the setup script.
2025-12-31 22:44:58 +01:00
Master3395
5cd9d51e38 Merge pull request #1630 from master3395/v2.5.5-dev
Add support for PHP versions 8.2 to 8.5 in installation process
2025-12-31 22:36:17 +01:00
Master3395
62b72b4e06 Add support for PHP versions 8.2 to 8.5 in installation process
- Implemented logic to save new PHP versions (8.2, 8.3, 8.4, 8.5) and their corresponding extensions from XML configuration files.
- Enhanced compatibility with CentOS and Ubuntu distributions by dynamically determining the correct XML file paths for each PHP version.
- Improved error handling during the installation of PHP extensions to ensure robustness.

These changes enhance the PHP management capabilities within CyberPanel, allowing users to utilize the latest PHP versions seamlessly.
2025-12-31 22:35:18 +01:00
Master3395
cfcef26fd2 Merge pull request #1629 from master3395/v2.5.5-dev
Randomize acme.sh cron schedule in installation and upgrade scripts
2025-12-31 22:28:14 +01:00
Master3395
882a970104 Randomize acme.sh cron schedule in installation and upgrade scripts to prevent traffic spikes to Let's Encrypt. Added logic to generate random hour and minute for cron job entries, enhancing the installation process. 2025-12-31 22:26:50 +01:00
Master3395
13287d4608 Merge pull request #1628 from master3395/v2.5.5-dev
Implement Catch-All Email Configuration Management

https://github.com/usmannasir/cyberpanel/issues/1626
https://github.com/usmannasir/cyberpanel/issues/1627
2025-12-31 22:19:45 +01:00
Master3395
bcb5df3a0b Implement Catch-All Email Configuration Management
- Added new model `CatchAllEmail` to store catch-all email configurations per domain.
- Implemented views for fetching, saving, and deleting catch-all email configurations, enhancing email management capabilities.
- Updated URL routing to include endpoints for catch-all email operations.
- Enhanced error handling and permission checks for email forwarding actions.

These changes improve the flexibility and user experience of email management within CyberPanel.
2025-12-31 22:18:33 +01:00
Master3395
5b35a3d37f Merge pull request #1622 from master3395/v2.5.5-dev
Implement dynamic PHP version detection and configuration updates
2025-12-17 19:54:05 +01:00
Master3395
adf3a853ed Implement dynamic PHP version detection and configuration updates
- Added a new function `detect_default_php` to dynamically determine the default PHP version based on symlink and available versions, enhancing compatibility with PHP 7.4-8.5.
- Updated `phpmyadmin_limits` to utilize the detected PHP version for configuration changes, ensuring accurate parameter adjustments for the current PHP environment.
- Enhanced installation scripts for Redis and Memcached extensions to support PHP versions 7.4-8.5, improving backward compatibility and installation reliability.
- Improved error handling for missing PHP configuration files, providing clearer feedback to users.

These changes enhance the flexibility and robustness of PHP management within CyberPanel.
2025-12-17 19:48:28 +01:00
Master3395
ba9f124de9 Merge pull request #1620 from master3395/v2.5.5-dev
V2.5.5 dev
2025-12-17 19:22:16 +01:00
Master3395
d5fd7748aa Implement .htaccess feature banner and extraction support in file manager
- Added a new fixed position banner in the index.html to announce .htaccess support, including styling and functionality for showing and dismissing the notification.
- Enhanced file manager to support extraction of 7z and rar file formats, with appropriate command handling in filemanager.py.
- Updated JavaScript files to determine extraction types based on file extensions, ensuring compatibility with new formats.
- Modified HTML templates to include options for 7z and rar compression types in the user interface.
https://github.com/usmannasir/cyberpanel/issues/1617#issue-3727006951

These changes improve user experience by providing clear notifications and expanding file management capabilities within CyberPanel.
2025-12-17 19:19:00 +01:00
Master3395
df36b45ad0 Remove deprecated rDNS fix scripts and documentation for CyberPanel v2.4.4
- Deleted the `apply-rdns-fix.sh` script, `INDEX.md`, `INSTALL.md`, `QUICK-INSTALL.md`, and related fixed code files as they are no longer needed.
- This cleanup helps streamline the codebase and remove outdated resources that are not compatible with the current version of CyberPanel.

These changes ensure that the repository remains clean and focused on the latest functionalities.
2025-12-09 18:37:29 +01:00
Master3395
77f0885cc6 Enhance reverse DNS lookup functionality in mailUtilities
- Added detailed error handling and logging for reverse DNS lookups, improving robustness against network issues and invalid responses.
- Updated virtualHostUtilities to handle cases where reverse DNS lookups fail, providing clearer error messages and guidance for users.
- Ensured that the results from DNS queries are validated before processing, enhancing the reliability of the rDNS checks.

These changes improve the overall reliability and user experience of the reverse DNS lookup feature within the CyberPanel environment.
2025-12-09 18:32:52 +01:00
Master3395
877e762d80 Merge pull request #1607 from master3395/v2.5.5-dev
Update README and mysqlUtilities for MySQL account resolution

- Added a section in README.md detailing recent fixes, including enhancements to MySQL password rotation to prevent errors when metadata is missing.
- Removed outdated test files for MySQL utilities and ImunifyAV route checks.
- Improved mysqlUtilities.py to resolve MySQL accounts more reliably, including better handling of user and host resolution, and added logging for account resolution processes.

These changes enhance the robustness and clarity of MySQL user management within the CyberPanel environment.
2025-11-15 23:56:24 +01:00
Master3395
7427fa10c5 Merge branch 'v2.5.5-dev' of https://github.com/master3395/cyberpanel into v2.5.5-dev 2025-11-15 23:55:49 +01:00
Master3395
7f7a8a0581 Update README and mysqlUtilities for versioning and MySQL account resolution
- Changed versioning in README.md to 2.5.5-dev and updated the last modified date.
- Added a section for recent fixes in README.md detailing improvements to MySQL password rotation.
- Removed obsolete test files for MySQL utilities and ImunifyAV route.
- Enhanced mysqlUtilities.py to improve MySQL account resolution and logging, ensuring better handling of user and host identification during password changes.
2025-11-15 23:55:47 +01:00
Master3395
c61f285e5d Merge pull request #1606 from master3395/v2.5.5-dev
Implement ImunifyAV asset management and routing
2025-11-15 23:25:45 +01:00
Master3395
8cf62030f8 Implement ImunifyAV asset management and routing
- Added a static method to ensure ImunifyAV assets are created and permissions set correctly in CageFS.py.
- Updated the URL routing in urls.py to include paths for ImunifyAV, supporting both legacy and new routes.
- Modified the ImunifyAV HTML template to use Django's URL template tag for better maintainability.
- Enhanced the cyberpanel_fixes.sh script to ensure ImunifyAV UI assets are installed during fixes.
- Improved database user resolution and password handling in mysqlUtilities.py for better security and reliability.

This update enhances the integration and management of ImunifyAV within the CyberPanel environment.
2025-11-15 23:25:13 +01:00
Master3395
d72510b4a7 Merge pull request #1595 from master3395/v2.5.5-dev
Enhance Postfix management and validation in installation scripts

- Refactored the enableDisableEmail function to improve handling of Postfix service enabling and disabling, including better error logging and cleanup of stale marker files.
- Added a new method in mailUtilities to check if Postfix is installed, ensuring that DKIM setup only proceeds if Postfix is available.
- Updated virtualHostUtilities to verify Postfix installation before attempting DKIM setup, with appropriate logging for missing markers.
- Improved overall robustness of email service management during installation and configuration processes.

https://github.com/usmannasir/cyberpanel/issues/1570
2025-11-02 20:30:51 +01:00
Master3395
583f9e1e2c Merge branch 'v2.5.5-dev' of https://github.com/master3395/cyberpanel into v2.5.5-dev 2025-11-02 20:29:52 +01:00
Master3395
be949f49fc Enhance Postfix management and validation in installation scripts
- Refactored the enableDisableEmail function to improve handling of Postfix service enabling and disabling, including better error logging and cleanup of stale marker files.
- Added a new method in mailUtilities to check if Postfix is installed, ensuring that DKIM setup only proceeds if Postfix is available.
- Updated virtualHostUtilities to verify Postfix installation before attempting DKIM setup, with appropriate logging for missing markers.
- Improved overall robustness of email service management during installation and configuration processes.

https://github.com/usmannasir/cyberpanel/issues/1570
2025-11-02 20:29:45 +01:00
Master3395
ffa96b1e9c Merge pull request #1594 from master3395/v2.5.5-dev
Refactor disk and bandwidth limit calculations in getSystemStatus
2025-11-02 19:55:55 +01:00
Master3395
352d843e77 Refactor disk and bandwidth limit calculations in getSystemStatus
- Updated the calculation of total disk limit and bandwidth limit to convert values from MB to GB for better clarity in the system status display.
- Ensured default values are maintained when limits are not set, enhancing the robustness of resource reporting.

https://github.com/usmannasir/cyberpanel/issues/1592
2025-11-02 19:54:58 +01:00
Master3395
134ef7398e Merge pull request #1590 from master3395/v2.5.5-dev
V2.5.5 dev
2025-10-29 22:58:57 +01:00
Master3395
c5c2e94bf6 Add cron service restart functionality in CronUtil
- Introduced a static method `restartCronService` to restart the cron service across various distributions, ensuring immediate application of changes.
- Updated `website.py` to call `restartCronService` after modifying cron jobs, with error handling to return appropriate responses if the restart fails.
- Enhanced overall reliability of cron job management by ensuring the service is restarted after changes are made.
https://github.com/usmannasir/cyberpanel/issues/1589
2025-10-29 22:55:38 +01:00
Master3395
6724ef2173 Enhance SQL query safety in mysqlUtilities.py
- Updated SQL queries to use backticks around database and table names for improved safety and compatibility.
- Implemented escaping for user inputs in CREATE USER and SET PASSWORD statements to prevent SQL injection vulnerabilities.
- Ensured consistent use of safe variable handling across various database operations, including user creation and privilege grants.
2025-10-24 01:24:22 +02:00
Master3395
a0474d7aa4 Merge pull request #1585 from master3395/v2.5.5-dev
Add regenerateTwoFASecret functionality and UI support
2025-10-17 01:27:38 +02:00
Master3395
ecf739602c Add regenerateTwoFASecret functionality and UI support
- Introduced a new endpoint to manually regenerate the 2FA secret for users.
- Updated views to handle 2FA secret regeneration, including security checks and logging.
- Enhanced the user interface with a button to regenerate the 2FA secret, along with appropriate alerts and confirmations.
- Updated JavaScript to manage the regeneration process and display the new secret key and QR code provisioning URI.
https://github.com/usmannasir/cyberpanel/issues/1577
2025-10-17 01:06:04 +02:00
Master3395
4b14011e36 Merge pull request #1584 from master3395/v2.5.5-dev
- Added PHP 8.6 to the list of system PHP versions and fallback versions in PHPManager.
- Updated return values to include PHP 8.6 in case of errors or empty results.
- Enhanced phpUtilities to recognize PHP 8.6 for CentOS and Ubuntu configurations.
- Adjusted recommended PHP version order to prioritize PHP 8.6.
2025-10-16 22:44:07 +02:00
Master3395
40139cb84e Update PHP version handling to include PHP 8.6 across scripts
- Added PHP 8.6 to the list of system PHP versions and fallback versions in PHPManager.
- Updated return values to include PHP 8.6 in case of errors or empty results.
- Enhanced phpUtilities to recognize PHP 8.6 for CentOS and Ubuntu configurations.
- Adjusted recommended PHP version order to prioritize PHP 8.6.
2025-10-16 22:43:12 +02:00
Master3395
f36beb4f9b Refactor CyberPanel installation logic to streamline PHP version handling
- Removed local installation function in favor of a direct installation approach.
- Updated installation script to prioritize the development branch for downloading CyberPanel, with a fallback to stable if unavailable.
- Adjusted PHP version lists across various scripts to exclude PHP 8.6 and ensure compatibility with existing versions.
- Enhanced error handling and feedback during installation to improve user experience.
2025-10-16 22:34:18 +02:00
Master3395
8a2e96a656 Enhance PHP support in installation and management scripts
- Added installation logic for PHP 8.6 in the install script, ensuring compatibility with various distributions.
- Updated PHP version lists in the PHPManager to include PHP 8.6 for system checks and fallbacks.
- Modified phpUtilities to recognize PHP 8.6 for CentOS and Ubuntu.
- Adjusted upgrade script to support PHP 8.6 for AlmaLinux 8+ compatibility.
- Revised symlink setup logic to prioritize PHP 8.6 alongside other versions.
2025-10-16 22:26:33 +02:00
Master3395
3ba8148018 Merge pull request #1582 from usmannasir/revert-1579-v2.5.5-dev
Revert "Enhance OS detection and support for AlmaLinux 10 and additional Ubun…"
2025-10-09 23:05:28 +02:00
Master3395
f9248370a0 Revert "Enhance OS detection and support for AlmaLinux 10 and additional Ubun…" 2025-10-09 23:05:16 +02:00
Master3395
ac1dadd397 Merge pull request #1581 from master3395/v2.5.5-dev
V2.5.5 dev
2025-10-09 23:01:57 +02:00
Master3395
fd5a478f6a Merge branch 'usmannasir:v2.5.5-dev' into v2.5.5-dev 2025-10-09 23:01:33 +02:00
Master3395
cf23e0f0ec Merge branch 'v2.5.5-dev' of https://github.com/master3395/cyberpanel into v2.5.5-dev 2025-10-09 23:00:46 +02:00
Master3395
fbaac14a66 Update CyberPanel installation script to prioritize stable branch
- Changed the default installer URL to the stable branch, with an option to use the development branch if BRANCH_NAME is set to v2.5.5-dev.
- Enhanced the logic to check for the availability of the development branch before falling back to stable.
- Updated the archive URL selection based on the chosen branch to ensure correct installation files are downloaded.
- Improved feedback messages to clarify which branch is being used during installation.
2025-10-09 23:00:45 +02:00
Master3395
9770102cab Merge pull request #1580 from master3395/v2.5.5-dev
V2.5.5 dev
2025-10-09 22:46:30 +02:00
Master3395
3ef0ba0bc0 Merge branch 'usmannasir:v2.5.5-dev' into v2.5.5-dev 2025-10-09 22:45:56 +02:00