Commit Graph

71 Commits

Author SHA1 Message Date
usmannasir
6cbcc2862f bug fix: remove migrations commands 2025-10-01 00:20:05 +05:00
usmannasir
0e59310810 bug fix: remove migrations commands 2025-09-30 23:46:10 +05:00
usmannasir
fa039448e0 find was deleting important env files 2025-09-30 16:27:14 +05:00
usmannasir
77be45d692 bug fixes to isntall code 2025-09-29 12:42:27 +05:00
usmannasir
236ecd7ea8 fix: Comprehensive MariaDB socket authentication support
- Add execute_mysql_command() helper in install.py for robust auth fallback
- Update mysqlUtilities.py with socket auth fallback for all operations:
  * Database creation
  * User creation
  * Privilege granting
  * Privilege flushing
- Fix PowerDNS database setup to use new authentication helper
- Improve cyberpanel user connection verification
- Add proper error handling and logging throughout

This ensures the installation works correctly when MariaDB is pre-installed
with socket authentication (common with dependency installations).

Fixes the 'Cannot update settings with empty passwords' installation failure.
2025-09-29 12:18:03 +05:00
usmannasir
aff2f5f9c2 fix: Handle MariaDB socket authentication in changeMYSQLRootPassword()
- Add socket authentication support (sudo mysql/mariadb) for fresh MariaDB installs
- Fallback to traditional password-based authentication for existing installs
- Improve error handling with subprocess.run() and proper timeouts
- Add detailed logging to show which authentication method succeeded
- Graceful degradation when all methods fail
- Fixes installation failure when MariaDB is pre-installed as dependency

Resolves issue where installation fails with 'Cannot update settings with empty passwords'
when MariaDB gets installed during dependency phase with socket authentication.
2025-09-28 13:19:30 +05:00
usmannasir
46d7337bc6 bug fix: cyberpanel db 2025-09-28 02:50:33 +05:00
usmannasir
df9567a656 bug fixes to isntall code 2025-09-28 02:00:25 +05:00
usmannasir
14f46b6e56 bug fixes to isntall code 2025-09-28 00:05:35 +05:00
usmannasir
978d660c5d bug fix: circular import 2025-09-27 14:13:33 +05:00
usmannasir
ec159448af bug fix: staging site issue 2025-09-27 11:41:16 +05:00
Master3395
fd6eb8895c Update repository URLs to use secure HTTPS links
- Changed repository URLs in the CyberPanel upgrade script and related installation scripts to use HTTPS for improved security.
- Updated the `mailscannerinstaller.sh` and `spamassassin_tojunk_installer.sh` scripts to reflect the new secure URLs.
- Modified the `install.py` script to include an additional parameter in the `update_settings_file` method for better password management.
2025-09-25 22:45:35 +02:00
Master3395
afa0158a3b Remove deprecated environment configuration and testing scripts
- Deleted the .env.template file and the env_generator.py script to streamline the installation process.
- Removed various test scripts related to installation and compatibility checks, as they are no longer necessary with the updated configuration approach.
- Updated settings.py to directly include secure credentials, eliminating the need for external environment files.
- Enhanced security by ensuring sensitive information is handled directly within the application code.
2025-09-25 22:29:53 +02:00
Master3395
61f184bb2f Add comprehensive OS compatibility features and testing scripts
- Introduced `INSTALLER_COMPLETION_SUMMARY.md` to summarize the overhaul of the CyberPanel installer for universal OS compatibility.
- Added `test_all_os_compatibility.sh` and `test_installer_all_os.sh` for thorough testing across all supported operating systems.
- Implemented `validate_installation.sh` to ensure successful installation and service status verification.
- Created `universal_os_fixes.py` to manage OS-specific fixes and package installations.
- Enhanced `install.py` to integrate universal fixes and improve error handling during installation.
- Updated `UNIVERSAL_OS_COMPATIBILITY.md` with detailed documentation on compatibility features and testing procedures.
- Achieved 100% compatibility across all supported OS versions, ensuring a seamless installation experience for users.
2025-09-25 09:35:42 +02:00
Master3395
64b8dd931a Refactor installation script for improved readability and error handling
- Adjusted indentation in `install.py` for better code clarity.
- Enhanced error handling in package installation logic to prevent silent failures.
- Streamlined configuration file checks and updates for OpenLiteSpeed port changes.
2025-09-25 02:49:14 +02:00
Master3395
09caa5bda8 Update installation scripts for improved package handling and service management
- Modified `cyberpanel.sh` to correct the path for the `lsmcd` executable.
- Enhanced `install.py` with comprehensive fallback logic for installing AlmaLinux 9 packages, including support for PowerTools and alternative repositories.
- Improved error handling and installation methods in `venvsetup.sh` to ensure successful package installations with better error suppression and individual package handling.
- Added checks for service existence and installation for PowerDNS, improving the robustness of the installation process.
2025-09-25 02:12:33 +02:00
Master3395
e1ea4f8a1e Enhance MariaDB repository configuration and AlmaLinux 9 support
- Updated MariaDB repository URLs in cyberpanel_upgrade.sh and cyberpanel.sh to use the mirror site for improved reliability.
- Added logic in cyberpanel_upgrade.sh to determine the appropriate MariaDB repository based on the OS version.
- Introduced a new method in install.py to apply specific fixes for AlmaLinux 9, including the installation of compatibility packages.
- Removed the obsolete simple_install.py script to streamline the installation process.
2025-09-25 01:34:57 +02:00
Master3395
8c4083f4e4 Remove obsolete documentation and testing scripts related to branch prefix fixes and installation validation. Update MariaDB version to 12.1 in relevant scripts, enhancing compatibility and error handling for AlmaLinux 9. Improve user prompts in installation scripts for clarity and default options. Ensure MySQL password file handling is robust and properly logged. 2025-09-25 00:56:00 +02:00
Master3395
b739b4a038 Update MariaDB version to 12.1 across installation scripts
- Changed MariaDB server version from 10.11 to 12.1 in cyberpanel_upgrade.sh, cyberpanel.sh, install.py, and venvsetup.sh to ensure compatibility with the latest features and security updates.
- Enhanced error handling for branch and commit verification in venvsetup.sh to improve installation reliability.
- Streamlined the requirements file download process with fallback options in venvsetup.sh to handle potential download failures.
2025-09-24 23:45:28 +02:00
Master3395
1a7688e3f2 Enhance AlmaLinux 9 support in installation scripts
- Updated cyberpanel_upgrade.sh to differentiate AlmaLinux 9 for dnf package management and specific package installations.
- Improved OS detection logic to handle AlmaLinux 9 separately, ensuring correct repository setup and package installations.
- Enhanced error handling and logging for better feedback during the installation process.
- Refined version validation in cyberpanel.sh to support stable versions, development versions, and commit hashes.
- Streamlined installation process in install.sh to accommodate specific branch, tag, or commit installations.
2025-09-24 22:45:12 +02:00
Master3395
157f89fde2 Refactor AlmaLinux 9 installation process to apply comprehensive fixes
- Renamed the fix method to `fix_almalinux9_comprehensive` to reflect broader scope.
- Streamlined the installation process by updating system packages, installing essential build tools, and adding PHP dependencies.
- Enhanced firewall configuration by adding required ports and ensuring the service is started and enabled.
- Improved error handling and logging throughout the installation steps for better feedback on the process.
2025-09-24 20:51:46 +02:00
Master3395
4a2b003993 Refactor installation scripts to use dnf for package management on AlmaLinux
- Updated install.sh to replace yum with dnf for installing and updating curl and wget on AlmaLinux 9 and 10.
- Enhanced install/install.py to streamline MariaDB package installation with improved error handling and added installation of PHP dependencies, ensuring compatibility with AlmaLinux.
- Implemented logic to save MySQL root password securely and handle potential errors during installation processes.
2025-09-24 20:23:49 +02:00
Master3395
fe6aec4f09 Add initialization for serial variable in installation script 2025-09-24 18:20:59 +02:00
Master3395
7694fc16a5 Refactor installation process to enhance OS detection and specific fix application
- Integrated OS detection and specific fix application directly into the installation flow, improving compatibility and reducing conflicts.
- Added logging for MariaDB repository setup and verification, ensuring successful addition or warning on potential failures.
- Enhanced the installation of MariaDB for AlmaLinux 9 with improved error handling and service configuration checks.
- Removed the deprecated installCyberPanel.py file, consolidating functionality into the main installation script for better maintainability.
2025-09-24 17:29:33 +02:00
Master3395
60f6ade967 Enhance virtual environment setup and MariaDB installation process
- Added checks to ensure the Python virtual environment is properly set up before running migrations.
- Implemented logic to find the correct Python executable from multiple potential paths.
- Improved MariaDB installation by trying different package combinations for AlmaLinux 9 and checking for service file existence.
- Enhanced service management to handle symlinks and alternative service names for MariaDB.
- Added error handling for missing MySQL/MariaDB client commands and ensured proper cleanup of conflicting service files.
2025-09-24 13:56:32 +02:00
Master3395
cb95ba2c82 Enhance installation process for CyberPanel and Dovecot
- Improved Git clone reliability by implementing multiple clone methods and a fallback manual download option.
- Added checks to ensure necessary directories exist before cloning and configuring Dovecot.
- Enhanced Dovecot installation logic with multiple command attempts and service management.
- Updated PHP installation process to dynamically create symlinks to the best available PHP version.
- Added error handling for missing configuration files and created basic configurations as fallbacks.
- Ensured firewall setup for Sieve is only attempted if the required module is available.
2025-09-24 11:28:20 +02:00
Master3395
906faf43c8 Update MariaDB package names for consistency and enhance LSMCD service management in cyberpanel.sh
- Changed package names from 'MariaDB-*' to 'mariadb-*' for consistency across scripts.
- Modified LSMCD service type from 'forking' to 'simple' and added user/group settings in cyberpanel.sh.
- Improved error handling for LSMCD service startup in cyberpanel.sh.
- Fixed Django AutoField warnings in install.py by directly calling the fix function.
2025-09-24 11:08:22 +02:00
Master3395
2d3505b1ed Implement LSMCD installation and service management in cyberpanel.sh; enhance service status checks in install.py
- Added compilation and installation steps for LiteSpeed Memcached (LSMCD) in cyberpanel.sh, including systemd service creation and management.
- Updated install.py to include checks for LSMCD service status and improved status checks for OpenLiteSpeed, PowerDNS, and Pure-FTPd.
2025-09-24 01:45:55 +02:00
Master3395
a9398cef90 Enhance installation scripts and fix ownership commands
- Updated MariaDB repository setup commands in cyberpanel.sh to use double quotes for consistency.
- Added installation of libmemcached dependencies in both cyberpanel.sh and install.py for improved functionality.
- Modified ownership commands in install.py to remove unnecessary redirection for better clarity.
- Introduced a fix for Django AutoField warnings in install.py by adding a DEFAULT_AUTO_FIELD setting.
- Created mbstring configuration for each PHP version in installCyberPanel.py to ensure proper PHP functionality.
2025-09-24 01:44:26 +02:00
Master3395
aaf3b68e14 Update PHP version handling and installation logic across scripts
- Adjusted PHP version priority in cyberpanel_upgrade.sh and install.py to include PHP 8.5 (beta) as the highest priority.
- Enhanced package installation logic in cyberpanel.sh and installCyberPanel.py to install PHP dependencies more robustly, including error handling for missing packages.
- Updated README.md to reflect the new recommended PHP versions and deprecated versions.
- Improved error handling and dependency management in phpUtilities.py and upgrade.py for better installation reliability.
2025-09-24 01:11:23 +02:00
Master3395
93448a44b3 Add installation summary feature to cyberpanel.sh and install.py
Implemented a comprehensive installation summary function in both cyberpanel.sh and install.py. The summary includes installation status, system resource usage, and troubleshooting steps for failed installations. Enhanced user feedback during the installation process to improve clarity and support for users.
2025-09-24 00:45:34 +02:00
Master3395
49e3149622 Update MariaDB repository URLs to use HTTPS and enhance setup logic for RHEL 9/10 in cyberpanel.sh; modify permission commands in install.py to use raw string literals for better compatibility. 2025-09-24 00:36:38 +02:00
Master3395
30cb78d0ef Enhance OS detection and package management in installation scripts: Updated install.sh to improve OS detection logic for various CentOS, AlmaLinux, CloudLinux, Ubuntu, Debian, and openEuler versions. Refined package installation commands and added error handling for unsupported OS scenarios. Improved service name mapping in install.py for better compatibility across distributions. 2025-09-23 23:33:05 +02:00
Master3395
cc9a6ad31b Refactor installation scripts for improved service management and compatibility: Updated cyberpanel.sh to enhance PHP package installation logic based on available versions. Improved error handling for systemd service management in install.py and added pip upgrade functionality for better package compatibility. Enhanced PowerDNS database setup and service startup procedures with retry mechanisms and detailed logging. 2025-09-23 23:16:36 +02:00
Master3395
f41b54205b Refactor service management in installation scripts: Updated cyberpanel.sh to enhance the display of access information and system status. Improved install.py by adding comprehensive service checks and fixes for PowerDNS, Pure-FTPd, and database connectivity. Enhanced LiteSpeed configuration handling and ensured critical services are running properly during installation. Added detailed logging for better user feedback. 2025-09-23 22:35:47 +02:00
Master3395
685a464ca5 Fix pysftp dependency issue and optimize WSGI-LSAPI compilation: Removed pysftp from requirements in favor of paramiko, and updated Makefile for proper optimization flags to avoid _FORTIFY_SOURCE warnings during WSGI-LSAPI installation. 2025-09-23 19:06:33 +02:00
Master3395
c873bfc140 Remove deprecated migration script and update version to 2.4 Build 4: The run_migration.py script has been deleted as it is no longer needed. The version file has been incremented to reflect the latest build. Additionally, the Django settings have been updated to include DEFAULT_AUTO_FIELD for improved primary key handling. 2025-09-23 09:55:27 +02:00
usmannasir
0d537fd9ec bug fix: installation issues 2025-09-21 13:04:51 +05:00
usmannasir
570a4953d0 some bug fixes to install.py 2025-09-21 01:07:38 +05:00
usmannasir
f943e5c961 some bug fixes to install.py 2025-09-21 00:37:02 +05:00
usmannasir
6bd125622e some bug fixes to install.py 2025-09-21 00:21:07 +05:00
usmannasir
94c56c0015 bug fix: of evn creation 2025-09-20 20:21:18 +05:00
usmannasir
b07d895bec debian 12 2025-09-19 12:06:13 +05:00
usmannasir
f75bf31c68 debian 12 2025-09-19 11:45:19 +05:00
usmannasir
27f8bf65a9 debian 12 2025-09-19 11:32:35 +05:00
usmannasir
212bf53932 debian 12 2025-09-19 09:40:01 +05:00
usmannasir
2f297029d0 debian 12 2025-09-18 23:20:05 +05:00
usmannasir
76356d3032 debian 12 2025-09-18 23:16:37 +05:00
usmannasir
e9b2220246 debian 12 2025-09-18 14:20:01 +05:00
usmannasir
91d7c1457f debian 12 2025-09-18 12:42:00 +05:00