Commit Graph

443 Commits

Author SHA1 Message Date
master3395
7b9495d761 Notification dropdown: scroll, button size, dark-mode text; install/upgrade use usmannasir URLs
- index.html: notification dropdown scroll (list max-height, flex min-height:0), button min-width and contrast, dark text on white for dark mode visibility
- cyberpanel.sh, cyberpanel_upgrade.sh, preUpgrade.sh: default install/upgrade URLs to usmannasir/cyberpanel (keep -r/--repo for fork)
- databases/plogical: AutoLogin, views, phpmyadminsignin updates
2026-02-15 03:02:08 +01:00
master3395
6de967975b fix: use mariadb CLI instead of deprecated mysql (version check, GRANT, service, upgrade.py) 2026-02-15 02:11:09 +01:00
master3395
d9973a8e5a AlmaLinux 8/9/10 and Ubuntu 22/24 full support
- cyberpanel.sh: Add Ubuntu 24.04 detection, update supported-OS message
- simple_install.sh: Add Ubuntu 24.04, AlmaLinux 10; use dnf for Alma 8
- cyberpanel_utility.sh: Add Ubuntu 24.04 to OS detection and supported list
- CPScripts/mailscanner*.sh: Add Ubuntu 24.04, AlmaLinux 9/10 to supported list
- serverStatus/views.py: Prefer dnf.conf for package locks on dnf-based systems
- README.md: Recommend AlmaLinux; add aarch64 note
- Remove .DS_Store from repo

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 22:39:04 +01:00
master3395
8bfd24b0b9 Patch installer to use system Python when archive is old; add AWS/cloud port 8090/7080 hints 2026-02-05 00:32:26 +01:00
master3395
4fec86f80c Install logs: show paths at start and on completion; dns-one path fix; shell/composer fixes; doc install log locations 2026-02-04 23:58:43 +01:00
master3395
48f55af32d Clear temp install folder on run; harden Python path in install_utils; cache-bust archive download 2026-02-04 23:38:15 +01:00
master3395
131ae61b80 MariaDB: only add dnf exclude when installed version matches chosen; allow upgrade to 11.8 2026-02-04 23:23:32 +01:00
master3395
566d1d2066 Install/upgrade fixes: stdin for pipe, branch archive, Python/composer paths, MariaDB version, web server order; FTP quota and docs 2026-02-04 23:19:22 +01:00
master3395
aed08437c1 Fix dev branch detection: use curl -L so GitHub archive 302 redirect is followed and v2.5.5-dev is recognized as available 2026-02-04 22:05:16 +01:00
master3395
c7ec9af886 Fix interactive menu when script is piped (curl | bash): redirect stdin from /dev/tty so Force Reinstall and other prompts read from terminal 2026-02-04 21:54:23 +01:00
master3395
307be04335 Clear MariaDB-server from dnf exclude before install; dev branch archive URL
- cyberpanel.sh: clear MariaDB-server* from dnf.conf/yum.conf before running installer so MariaDB-server can be installed (fixes exclude filtering on retry/partial install)
- cyberpanel.sh: try refs/heads/v2.5.5-dev.tar.gz for branch archive; remove installer MariaDB patch; softer chmod message
- install.py: sed fallback to strip MariaDB-server from dnf exclude if Python logic fails
2026-02-04 21:42:40 +01:00
master3395
9ebb28ea9f Install fixes: venv creation, composer.sh download, SSH key non-interactive, ensure 8090/7080 accessible
- install.py: create venv at /usr/local/CyberCP if missing; add system python3 fallback for migrations; download composer.sh before chmod; remove existing SSH keys before ssh-keygen
- installCyberPanel.py: remove MariaDB-server from dnf exclude before install
- cyberpanel.sh: ensure ports 8090 and 7080 listening after install; final status shows port accessibility
- backupUtilities.py: remove existing cyberpanel keys before ssh-keygen to avoid Overwrite prompt
2026-02-04 21:33:26 +01:00
master3395
118e342f28 Add MariaDB 10.11 option; fix install/upgrade robustness
- install.py: allow --mariadb-version 10.11 (with 11.8, 12.1); use --nobest for 10.11/11.8 on RHEL; accept existing 10.x
- cyberpanel.sh: prompt and --mariadb-version accept 10.11; only pass --mariadb-version if install.py supports it; fix MySQLdb check (no __version__)
- cyberpanel_upgrade.sh: accept 10.11 in --mariadb-version and prompt; Check_Root allow uid 0 when SUDO set; Branch_Check avoid double v (vv2.5.5-dev); early root check
2026-02-04 21:15:10 +01:00
master3395
c685966fa3 Install: MariaDB prompt first, non-interactive SSH key, AlmaLinux 9 MariaDB 11.8
- cyberpanel.sh: ask MariaDB version (11.8/12.1) first even in --auto; add --mariadb-version
- install/install.py: remove existing SSH key before ssh-keygen to avoid Overwrite (y/n) prompt
- install/installCyberPanel.py: use MariaDB 11.8 and --nobest for AlmaLinux 9 / cent8 to fix client dependency
2026-02-04 20:31:28 +01:00
master3395
f9215f9d75 Fix mariadb-devel installation when MariaDB-server is excluded
- Temporarily adjust dnf exclude to allow mariadb-devel installation
- Only exclude MariaDB-server, not development packages
- Ensures mariadb-devel can be installed even when server is excluded
- Critical for Python mysqlclient package compilation
2026-01-26 22:48:53 +01:00
master3395
2b21f1a57d Improve Python MySQL dependency installation with better error handling
- Remove silent redirects to show actual errors
- Add explicit success/failure messages
- Show pip installation output for debugging
- Better OS detection with fallback
- Verify MySQLdb availability with version check
- Add diagnostic output if installation fails
- Ensures dependencies are installed before install.py runs
2026-01-26 22:48:28 +01:00
master3395
071330eb7e Add AlmaLinux 10 support to OS detection
- Detect AlmaLinux 10 in detect_os() function
- Treat AlmaLinux 10 same as AlmaLinux 9 for package installation
- Update supported OS list to include AlmaLinux 10
- Ensures installer works on AlmaLinux 9.x and 10.x
2026-01-26 22:44:51 +01:00
master3395
ff4bf7f017 Install Python MySQL dependencies before running install.py
- Install MariaDB/MySQL development headers (mariadb-devel/mysql-devel)
- Install mysqlclient Python package (provides MySQLdb)
- Support for AlmaLinux 9/10, Rocky Linux, CentOS, RHEL, Ubuntu, Debian
- Verify MySQLdb is available before running installer
- Fixes ModuleNotFoundError: No module named 'MySQLdb'
2026-01-26 22:44:17 +01:00
master3395
b85359587f Add verification for install directory extraction
- Verify install directory exists after extraction
- Show archive contents if extraction fails
- Ensures install/install.py is available for direct execution
2026-01-26 22:39:33 +01:00
master3395
f5f98d0b96 Patch install.py directly to exclude MariaDB-server from dnf commands
- Patches install.py (not just wrapper script) to add --exclude=MariaDB-server*
- Handles both shell commands and Python string commands
- Ensures MariaDB exclude is applied to all installation commands
- Works in conjunction with dnf.conf excludes
2026-01-26 22:38:58 +01:00
master3395
2bd555165a Pass required arguments to install.py for non-interactive installation
- Get server IP address automatically
- Pass publicip as required positional argument
- Set default options (OpenLiteSpeed, Full install, Local MySQL)
- Ensures install.py runs in non-interactive mode
- Fixes issue where old interactive installer was being used
2026-01-26 22:38:32 +01:00
master3395
eb651c5090 Use install/install.py directly instead of cyberpanel_installer.sh wrapper
- install/install.py is the actual installer with our fixes
- cyberpanel_installer.sh is old v2.4.4 wrapper that doesn't support auto-install
- This ensures auto-install mode works and uses our fixed installer
- Falls back to cyberpanel_installer.sh if install.py not found
2026-01-26 22:37:50 +01:00
master3395
6921a97981 Fix Python script syntax for installer patching
- Uses python3 -c instead of heredoc for better compatibility
- Simplified regex patterns for more reliable matching
- Better error handling and fallback to sed
- Properly adds --exclude=MariaDB-server* to dnf/yum install commands
2026-01-26 22:29:33 +01:00
master3395
8617bde2bb Improve installer script patching with Python for better reliability
- Uses Python to properly parse and modify installer script
- Handles multiple patterns for dnf/yum install commands
- Adds --exclude=MariaDB-server* to all relevant commands
- Falls back to sed if Python fails
- More robust than simple sed replacements
2026-01-26 22:29:01 +01:00
master3395
fe1b922ca6 Patch downloaded installer script to exclude MariaDB-server from dnf/yum commands
- Modifies installer script after download but before execution
- Adds --exclude=MariaDB-server* to all dnf/yum install commands
- Prevents MariaDB upgrade attempts in Pre_Install_Required_Components
- Works even if repository is set up and enabled
2026-01-26 22:28:30 +01:00
master3395
2176ba5705 Use Python to properly disable MariaDB repositories with fallback
- Uses Python for more reliable repository file parsing
- Handles MariaDB 12.1 repository sections correctly
- Falls back to renaming repository files if Python fails
- More robust than sed for complex repository file formats
2026-01-26 22:02:44 +01:00
master3395
85e4f93446 Fix sed commands to properly disable MariaDB repositories
- Simplified repository disabling logic
- Ensures enabled=0 is set in all MariaDB repository sections
- Handles cases where enabled line doesn't exist
- More robust file detection using find command
2026-01-26 22:02:14 +01:00
master3395
0fe147e30e Add background monitor to disable MariaDB repositories after they're created
- Creates function to disable MariaDB repository files
- Starts background process to monitor and disable repos as they're created
- Calls disable function right before installer runs
- Stops monitor after installation completes
- Prevents MariaDB upgrade attempts even if repository is set up
2026-01-26 22:01:53 +01:00
master3395
a76463f358 Improve dnf exclude syntax and add yum.conf exclude
- Use MariaDB-server* with wildcard for better matching
- Ensure exclude is in [main] section of dnf.conf
- Also add exclude to yum.conf for compatibility
- Better handling of existing exclude lines
2026-01-26 22:01:12 +01:00
master3395
220bfd40f9 Add dnf exclude for MariaDB-server in cyberpanel.sh before installer runs
- Checks for existing MariaDB 10.x installation
- Adds MariaDB-server to dnf excludes BEFORE Pre_Install_Setup_Repository
- Prevents upgrade attempts in Pre_Install_Required_Components
- Runs early in install_cyberpanel_direct() function
2026-01-26 21:49:46 +01:00
master3395
64f75cb029 Update cyberpanel.sh to use master3395 fork instead of usmannasir
- Change installer URL from usmannasir/cyberpanel to master3395/cyberpanel
- Update archive URL to use master3395 fork
- This ensures our fixes (bash execution, permission handling) are used
- Fixes issue where old version without fixes was being downloaded
2026-01-26 21:30:49 +01:00
master3395
359d550947 Fix cyberpanel_installer.sh execution permission issues
- Use bash to execute cyberpanel_installer.sh instead of relying on execute bit
- Verify file exists before execution
- Use absolute path to ensure correct file location
- Improve chmod error handling with verification
- Fixes 'Permission denied' error when cyberpanel.sh tries to execute installer
2026-01-26 21:27:16 +01:00
usmannasir
bee742c058 Improve installation flow and output organization
- Move status messages to appear after CyberPanel installer completes
- Silence verbose output during post-installation fixes
- Auto-answer OpenLiteSpeed password prompts to avoid manual input
- Simplify final status summary with cleaner formatting
- Fix static file permissions silently in background
- Show actual server IP in access details
- Reduce redundant success messages
- Make post-installation configurations less verbose

This creates a cleaner installation experience where the CyberPanel installer's summary appears first, followed by minimal post-installation configuration messages and a concise final status.
2025-10-01 13:48:00 +05:00
usmannasir
ab9e9a20ce Fix password handling in CyberPanel installer
- Capture actual generated password from CyberPanel installation output
- Save generated password to /root/.cyberpanel_password for persistence
- Use captured password for OpenLiteSpeed admin configuration
- Update status summary to show actual password instead of hardcoded value
- Fix service check to use lscpd (actual CyberPanel service) instead of non-existent 'cyberpanel' service
- Add lscpd service status check in installation summary

This ensures the password shown in the summary matches the actual CyberPanel admin password.
2025-10-01 13:18:17 +05:00
usmannasir
297364235f fix static file permissions 2025-10-01 11:46:58 +05:00
usmannasir
58749118ad find was deleting important env files 2025-09-30 16:27:14 +05:00
usmannasir
0d8527a82a bug fix: staging site issue 2025-09-27 11:41:16 +05:00
Master3395
3dffa9f09e Refactor CyberPanel installation and upgrade scripts for live progress monitoring
- Updated the installation and upgrade processes to provide live output monitoring instead of background execution.
- Enhanced logging by creating dedicated directories for installation and upgrade logs.
- Improved error handling to display relevant exit codes and log information upon failure.
- Removed deprecated progress tracking logic for a more streamlined user experience during installation and upgrades.
2025-09-25 23:04:55 +02:00
Master3395
c49f26ba8a Update CyberPanel installation script to support version-specific downloads
- Modified the download logic to use a version-specific URL for the installation files.
- Added conditional checks to determine the appropriate installation directory based on the selected installer URL.
- Updated user feedback to inform about the availability of the v2.5.5-dev version and guide users on alternative options if it's not available.
2025-09-25 21:28:36 +02:00
Master3395
f7768ede98 Enhance CyberPanel installation script with improved database user management and password handling
- Added functionality to drop and recreate the 'cyberpanel' database user with proper permissions.
- Implemented verification for the database user creation process, including an alternative method if the initial attempt fails.
- Set a unified password for both CyberPanel and OpenLiteSpeed, ensuring consistency across services.
- Improved PHP configuration handling by establishing a reference PHP version for creating missing php.ini files.
- Updated service restart and installation verification messages to include access details and default credentials for both CyberPanel and OpenLiteSpeed.
2025-09-25 21:22:57 +02:00
Master3395
17b8ddf5cd Add force reinstall option and cleanup functions to CyberPanel installation script
- Introduced a new function to check if CyberPanel is already installed and clean up existing installations if necessary.
- Added a force reinstall option in the main menu, allowing users to completely remove and reinstall CyberPanel.
- Enhanced user prompts and feedback during the cleanup and reinstallation process to improve clarity and user experience.
2025-09-25 20:47:02 +02:00
Master3395
0c410d9e8a Add post-installation fixes and verification to CyberPanel installation script
- Introduced a new function to address common post-installation issues, including starting services and fixing database permissions.
- Added a verification function to ensure services are running and accessible after installation.
- Implemented checks for MariaDB and LiteSpeed services, along with database connection validation.
- Enhanced user feedback during the installation process with detailed status messages and troubleshooting steps.
2025-09-25 20:27:16 +02:00
Master3395
81ca12bf08 Refactor CyberPanel installation script to use a direct installation method
- Replaced the original download logic with a streamlined approach that directly installs CyberPanel from a stable branch.
- Introduced a new function for direct installation, improving clarity and reducing complexity.
- Enhanced error handling during the download and extraction of installation files.
- Updated user prompts to reflect the new installation process and provide clearer feedback.
2025-09-25 19:17:20 +02:00
Master3395
cd0811c10e Refactor CyberPanel installation script to simplify download logic and enhance error handling
- Removed branch and commit hash checks for downloading the installer, defaulting to a single download URL.
- Added fallback mechanism to attempt downloading from the GitHub main branch if the primary download fails or the file is too small.
- Included additional debugging information for failed installations, such as file size and permissions, to assist in troubleshooting.
- Improved clarity in error messages related to the downloaded file's integrity.
2025-09-25 18:59:49 +02:00
Master3395
fcc12b62bd Enhance CyberPanel installation script with detailed error troubleshooting
- Improved error handling during installation and upgrade processes by providing specific troubleshooting steps and log file locations.
- Added a new function to display error help, guiding users through common issues and solutions.
- Updated user prompts to offer troubleshooting assistance directly after installation failures.
- Enhanced the advanced menu to include an option for showing error help, improving user experience and support accessibility.
2025-09-25 18:16:00 +02:00
Master3395
16b54ad760 Enhance CyberPanel installation script with commit hash selection and improved logging
- Added functionality to allow users to select specific commit hashes for installation.
- Improved logging by creating a dedicated log directory and updating log file paths.
- Enhanced user prompts and error handling for better clarity during installation and upgrade processes.
- Updated installation steps to reflect new options and improved user experience.
2025-09-25 17:57:28 +02:00
Master3395
39924aef6c Enhance CyberPanel installation script with improved error handling and verification
- Added checks to ensure successful download and execution of the CyberPanel installer.
- Implemented detailed error messages for various failure scenarios during installation.
- Introduced debugging output for better visibility into the installer script's behavior.
- Enhanced progress monitoring with minimum wait time and timeout handling during installation.
- Improved overall structure and readability of the script for better maintainability.
2025-09-25 17:38:04 +02:00
Master3395
887c9d1957 Refactor CyberPanel installation script to improve upgrade and pre-upgrade processes
- Renamed the original installer script to 'cyberpanel_original.sh' for clarity.
- Added functions for starting upgrades and pre-upgrade setups, enhancing the installation workflow.
- Implemented detailed progress monitoring and status messages during the upgrade process.
- Updated the main menu to include options for pre-upgrade and reinstallation, improving user navigation.
- Enhanced progress calculation for a more realistic display during installation and upgrade processes.
2025-09-25 17:21:36 +02:00
Master3395
7ba9717f10 Enhance dependency installation feedback and progress display in CyberPanel installer
- Added detailed status messages and progress indicators during the installation of system dependencies to improve user experience.
- Implemented a more interactive progress bar with real-time updates during the CyberPanel installation process.
- Improved clarity of installation steps with clear prompts and success messages for each stage of dependency installation.
- Enhanced overall structure and readability of the installation script for better maintainability.
2025-09-25 13:34:47 +02:00
Master3395
ec3973e47b Enhance CyberPanel installation process with user-friendly progress indicators
- Added detailed status messages and progress indicators during the installation of CyberPanel to improve user experience.
- Implemented background installation with real-time feedback, allowing users to monitor the installation status without interruption.
- Updated the OS detection and dependency installation steps with clear prompts to guide users through the process.
- Improved overall structure and readability of the installation script for better maintainability.
2025-09-25 13:26:42 +02:00