### Get Users for a Package Example Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Example output for a script that lists all user IDs belonging to a specified package. ```text 100 101 ``` -------------------------------- ### Get Package for a User Example Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Example output for a script that returns the package name associated with a given user ID. ```text package1 ``` -------------------------------- ### Install and Initialize PostgreSQL on CloudLinux OS 7 Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs PostgreSQL server and client packages, initializes the database, and starts the service on CloudLinux OS 7. ```bash yum install postgresql-server postgresql postgresql-setup initdb systemctl start postgresql systemctl enable postgresql ``` -------------------------------- ### Install and Initialize PostgreSQL on CloudLinux OS 6 Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs PostgreSQL server and client packages, initializes the database, and starts the service on CloudLinux OS 6. ```bash yum install postgresql-server postgresql service postgresql initdb service postgresql start chkconfig postgresql on ``` -------------------------------- ### Check and Install EA-PHP74 Redis Extension Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Example commands to check and install the Redis extension for ea-php74. ```bash rpm -q ea-php74-php-redis yum install ea-php74-php-redis ``` -------------------------------- ### Example Custom Executable Script Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration This bash script demonstrates how to implement the required options for custom panel integration with switch_mod_lsapi. It handles setup, uninstall, and domain enable/disable actions. ```bash #!/bin/bash CMD=$1 if [ "$CMD" == "--setup" ]; then echo "application/x-httpd-php81-lsphp /usr/local/apps/php81/bin/lsphp" >>/etc/container/php.handler fi if [ "$CMD" == "--uninstall" ]; then sed -i "#application/x-httpd-php81-lsphp#d" /etc/container/php.handler fi if [ "$CMD" == "--enable-domain" ]; then http_root=`/opt/ExamplePanel/domain2root $2` if [ -e $http_root/.htaccess ]; then sed -i '/lsphp/d' $http_root/.htaccess fi fi if [ "$CMD" == "--disable-domain" ]; then http_root=`/opt/ExamplePanel/domain2root $2` if [ -e $http_root/.htaccess ]; then sed -i '/lsphp/d' $http_root/.htaccess fi fi # if command not supported if [ "$CMD" == "--enable-global" ]; then echo "LSAPI enable global command is not supported by ExamplePanel"; exit 1 fi ``` -------------------------------- ### Install Application Modules Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Runs the 'npm install' command for a user application to install its dependencies. Use --json for machine-readable output. ```bash cloudlinux-selector install-modules [--json] --interpreter nodejs [(--user | --domain )] --app-root ``` ```bash cloudlinux-selector install-modules --json --interpreter nodejs --user user1 --app-root my_apps/app ``` -------------------------------- ### Convert to EA4 with mod_lsapi and alt-php Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated This example demonstrates converting to EasyApache 4 while installing mod_lsapi and updating or installing alt-php. ```bash sh cloudlinux_ea3_to_ea4 --convert --mod_lsapi --altphp ``` -------------------------------- ### Install MySQL Server on CloudLinux OS 6 Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs MySQL and MySQL Server on CloudLinux OS 6 and starts the service. ```bash yum install mysql mysql-server service mysqld start chkconfig mysqld on ``` -------------------------------- ### List Available Packages Example Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Example output for a script that lists all available package names configured in the system. ```text package1 package2 package3 ``` -------------------------------- ### Download and Start cldeploy Script Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Downloads, makes executable, and runs the cldeploy script for CloudLinux OS installation. Replace SHARED_PRO_CLN_KEY_HERE with your actual key. The --testing-repo flag enables the testing repository. ```bash wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy chmod 775 cldeploy ./cldeploy -k SHARED_PRO_CLN_KEY_HERE --testing-repo ``` -------------------------------- ### Install Docker CE using convenience script on CloudLinux Source: https://docs.cloudlinux.com/cloudlinuxos/docker Installs Docker CE using the official convenience script from get.docker.com. Requires a temporary workaround to change '/etc/os-release' ID to 'centos' before running the script. Starts the Docker service and verifies with a hello-world container. ```bash curl -fsSL https://get.docker.com | sh sudo systemctl enable --now docker sudo docker run --rm hello-world ``` -------------------------------- ### Example of Appended GET Parameters for Upgrade URL Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Illustrates the GET parameters automatically appended to the upgrade URL by AccelerateWP, which are used to identify the user and provisioning context. ```text https://plan.upgrade/splash/?m=acceleratewp&action=provisioning&username=democom&domain=demo.com&server_ip=10.51.0.10 ``` -------------------------------- ### Install Git on cPanel (General) Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated This command installs the Git package on cPanel servers. This is a general installation command for Git. ```bash yum install git ``` -------------------------------- ### Install All PHP Versions Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Use this command to install all available PHP versions provided by alt-php. ```bash yum groupinstall alt-php ``` -------------------------------- ### Automatic Installation with Confirmation Skip Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Use the --yes flag with the installation script to bypass confirmation prompts for automatic installations. This is also used for restoring packages after a failed installation. ```bash /usr/share/lve/dbgovernor/mysqlgovernor.py --install --yes ``` -------------------------------- ### Install Docker CE on CloudLinux 8+ using DNF Source: https://docs.cloudlinux.com/cloudlinuxos/docker Installs Docker CE, CLI, containerd, buildx, and compose plugins using the official RHEL repository. Enables and starts the Docker service. Verifies installation with a hello-world container. ```bash sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo systemctl enable --now docker sudo docker run --rm hello-world ``` -------------------------------- ### Reseller Information Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example JSON output for the /scripts/resellers command, showing reseller details. ```json { "data": [ { "name": "reseller", "locale_code": "EN_us", "email": "reseller@domain.zone", "id": 10001 } ], "metadata": { "result": "ok" } } ``` -------------------------------- ### Install LVE-Stats Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Use this command to install the LVE-Stats package, which collects LVE usage statistics. This is the command for initial installation. ```bash yum install lve-stats ``` -------------------------------- ### PHP Versions Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example JSON output for the /scripts/php command, detailing available PHP versions and their configurations. ```json { "data": [ { "identifier": "alt-php74", "version": "7.4", "modules_dir": "/opt/alt/php74/usr/lib64/modules", "dir": "/opt/alt/php74/", "bin": "/opt/alt/php74/usr/bin/php", "ini": "/opt/alt/php74/link/conf/default.ini" }, { "identifier": "ea-php74", "version": "7.4", "modules_dir": "/opt/cpanel/ea-php74/usr/lib64/modules", "dir": "/opt/cpanel/ea-php74/", "bin": "/opt/cpanel/ea-php74/usr/bin/php", "ini": "/opt/cpanel/ea-php74/etc/php.ini" } ], "metadata": { "result": "ok" } } ``` -------------------------------- ### Enable and Start CRIU Service Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Enable the CRIU service to start on boot and start it immediately. This is a prerequisite for using CRIU with mod_lsapi. ```bash systemctl enable criu systemctl start criu ``` -------------------------------- ### Install cPanel Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Installs cPanel on a prepared Virtuozzo container. Ensure you have prepared the container and entered it before running this command. ```bash cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest ``` -------------------------------- ### Install MAx Web Server Package Source: https://docs.cloudlinux.com/cloudlinuxos/max_webserver Installs the max_webserver package using dnf. Ensure the cloudlinux-updates-testing repository is enabled. ```bash dnf --enablerepo=cloudlinux-updates-testing install max_webserver ``` -------------------------------- ### Install MySQL Governor Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Use this command to install the MySQL Governor package. ```bash yum install governor-mysql ``` -------------------------------- ### Install Control Panel Components on an Already Converted System Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Use this command to install only the control panel components on a system that has already been converted to CloudLinux OS. It does not perform registration or install the CloudLinux OS kernel. ```bash cldeploy --components-only ``` -------------------------------- ### Start cloudlinux-file-change-collector Service Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_kernel Starts the daemon responsible for collecting file change events. This service should start automatically after installation. ```bash systemctl start cloudlinux-file-change-collector ``` -------------------------------- ### Administrator Information Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example JSON output for the /scripts/admins command, showing administrator details. ```json { "data": [ { "name": "admin1", "unix_user": "admin", "locale_code": "EN_us", "email": "admin1@domain.zone", "is_main": true }, { "name": "admin2", "unix_user": "admin", "locale_code": "Ru_ru", "email": "admin2@domain.zone", "is_main": false }, ], "metadata": { "result": "ok" } } ``` -------------------------------- ### Install Node.js Version Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Installs a specific Node.js version. Use --json for structured output. ```bash cloudlinux-selector install-version --json --interpreter nodejs --version 8 ``` -------------------------------- ### Install CloudLinux Collect Package Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Installs the cloudlinux-collect package, which automatically starts system load statistics collection in the background. It is recommended to use the cloudlinux-updates-testing repository for installation. ```bash yum install cloudlinux-collect --enablerepo=cloudlinux-updates-testing ``` -------------------------------- ### Install rhn-check and rhn-setup Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Installs the `rhn-check` and `rhn-setup` packages if `rhn_check` is not found. These are required for certain system checks. ```bash yum install rhn-check rhn-setup ``` -------------------------------- ### FSize_watcher_collector Configuration Example Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Example configuration file for the FSize_watcher_collector plugin. Specifies the file to be monitored. ```ini # Config file for FSize_watcher_collector plugin # Please define monitoring file here # file_to_monitoring = /usr/local/cpanel/logs/error_log file_to_monitoring = /usr/local/cpanel/logs/access_log ``` -------------------------------- ### Install wget and Download cldeploy Script Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Installs the wget utility and downloads the cldeploy conversion script. This is a prerequisite for key-based activation. ```bash yum install wget -y wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy ``` -------------------------------- ### CloudLinux SSA Manager Set Config Help Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Example output showing help for the 'set-config' command, detailing available optional arguments for configuring SSA. ```bash /usr/sbin/cloudlinux-ssa-manager set-config --help ............ usage: cloudlinux-ssa-manager set-config [-h] [--domains-number DOMAINS_NUMBER] [--urls-number URLS_NUMBER] [--requests-duration REQUESTS_DURATION] [--request-number REQUEST_NUMBER] [--time TIME] [--correlation CORRELATION] [--correlation-coefficient CORRELATION_COEFFICIENT] [--ignore-list IGNORE_LIST] optional arguments: -h, --help show this help message and exit --domains-number DOMAINS_NUMBER Size of TOP list for slow domains --urls-number URLS_NUMBER Size of TOP list for slow urls --requests-duration REQUESTS_DURATION The threshold value of request duration in seconds --request-number REQUEST_NUMBER The threshold value of slow requests number in the period of time to mark URL as a slow one --time TIME Period of time in hours required to analyze these requests --correlation CORRELATION Flag to enable or disable correlation --correlation-coefficient CORRELATION_COEFFICIENT The threshold value of correlation coefficient --ignore-list IGNORE_LIST List of URLs or domains that should not be included in the daily report ``` -------------------------------- ### Install GRUB to Master Boot Record Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Installs the GRUB boot loader to the master boot record of the specified device. ```bash /sbin/grub-install /dev/sda ``` -------------------------------- ### Enable CDN Pro for All Users Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Example command to enable the AccelerateWP CDN Pro suite for all users on the server. ```bash cloudlinux-awp-admin --api-version 1 set-suite --suites accelerate_wp_cdn_pro --users all --allowed-for-all ``` -------------------------------- ### Get Changed Files by Current User (With Timestamp) Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_kernel Example of using cloudlinux-backup-helper-uid to get files changed by the current user after a specific timestamp. ```bash [user@localhost ~]$ cloudlinux-backup-helper-uid -t 1495547922 1,1495548343 1000:/home/user/file1.txt 1000:/home/user/file2.txt ``` -------------------------------- ### Initialize CageFS Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Initializes CageFS on the system. This command should be run as root. ```bash cagefsctl --init ``` -------------------------------- ### Get Changed Files by Current User (No Timestamp) Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_kernel Example of using cloudlinux-backup-helper-uid to get files changed by the current user since the last collection. ```bash [user@localhost ~]$ cloudlinux-backup-helper-uid 1,1495530576 1000:/home/user/.bash_history ``` -------------------------------- ### List Available PHP Alternatives Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Lists all available PHP versions (alternatives) installed on the system, along with their paths. This is useful for understanding the selectable PHP environments. ```bash $ selectorctl --list ``` -------------------------------- ### Install lve-utils Package Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Use this command to install the `lve-utils` package, which is a prerequisite for CloudLinux OS Shared Pro. ```bash yum install lve-utils ``` -------------------------------- ### User to Package Mapping Example Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated This is an example output format for a script that maps user IDs to their respective packages, used for CloudLinux OS package integration. ```text 100 package1 101 package1 102 package2 103 package3 ``` -------------------------------- ### AccelerateWP Suites Statistics Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Example output for AccelerateWP suites statistics, detailing user and site counts, active suites, and visibility status per user. ```json { "last_scan_time": 1681198804, "result": "success", "timestamp": 1681203383.3503218, "total_sites_count_active": { "accelerate_wp": 1, "accelerate_wp_premium": 0 }, "total_users_count": 1, "total_users_count_active": { "accelerate_wp": 1, "accelerate_wp_premium": 0 }, "total_wordpress_count": 2, "users": [ { "accelerate_wp_active_sites_count": 1, "accelerate_wp_premium_sites_count": 0, "suites": { "accelerate_wp": { "source": "manual", "status": "allowed" }, "accelerate_wp_premium": { "source": "default", "status": "visible" } }, "username": "user16", "wp_sites_count": 2 } ] } ``` -------------------------------- ### FSize_watcher Log Example 1 Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Example log output from the FSize_watcher plugin monitoring a specific file. It shows the plugin starting, recording file sizes at regular intervals, and terminating. ```log Tue Feb 3 13:06:24 2015 - FSize_watcher started. Monitoring file: /usr/local/cpanel/logs/access_log, saving data period=60 sec Tue Feb 3 13:06:24 2015 - FSize_watcher: file size is 122972890 bytes Tue Feb 3 13:07:25 2015 - FSize_watcher: file size is 122975507 bytes Tue Feb 3 13:08:25 2015 - FSize_watcher: file size is 122978124 bytes Tue Feb 3 13:09:25 2015 - FSize_watcher: file size is 122978997 bytes Tue Feb 3 13:10:25 2015 - FSize_watcher: file size is 122981033 bytes Tue Feb 3 13:11:25 2015 - FSize_watcher: file size is 122982052 bytes Tue Feb 3 13:13:25 2015 - FSize_watcher: file size is 122983798 bytes Tue Feb 3 13:20:15 2015 - File watcher saver plugin: TERMINATE ``` -------------------------------- ### Install mod_proctitle on cPanel EasyApache 3/Non-cPanel Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs the mod_proctitle module for Apache on CloudLinux 7 systems using cPanel EasyApache 3 or non-cPanel setups. Requires enabling the cloudlinux-updates-testing repository. ```bash #!/bin/bash yum install mod_proctitle --enablerepo=cloudlinux-updates-testing service httpd restart ``` -------------------------------- ### Package Listing Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example JSON output from the `packages` script, showing a list of packages with their names and owners. This helps in understanding user groupings and their associated limits. ```json { "data": [ { "name": "package", "owner": "root" }, { "name": "package", "owner": "admin" }, { "name": "package", "owner": "reseller" } ], "metadata": { "result": "ok" } } ``` -------------------------------- ### Get All Changed Files by Timestamp Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_kernel Example of using cloudlinux-backup-helper to retrieve all files modified after a specific timestamp. ```bash [root@localhost ~]# cloudlinux-backup-helper -t 1495533489 1,1495533925 1000:/home/user1/.bashrc 1001:/home/user2/public_html/output.txt 1001:/home/user2/public_html/info.php 1003:/home/user3/logs/data.log ``` -------------------------------- ### Example Global PHP Settings Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components This example shows the format for specifying global PHP options in the `/etc/cl.selector/global_php.ini` file. Sections are ignored; only option names and values matter. ```ini [Global PHP Settings] date.timezone = Europe/Warsaw error_log = error_log memory_limit = 192M ``` -------------------------------- ### Node.js Selector Get Command JSON Output Structure Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Example JSON output structure for the 'cloudlinux-selector get --interpreter nodejs' command, detailing selector status, versions, and user application data. ```json { "selector_enabled": true | false, "default_version": "6.11.3", "result": "success", "timestamp": 1508667174.220027 "cache_status": "ready" // or “updating” during automatic yum cache rebuild "available_versions": { // begin of “versions” "6.11.3" : { // begin of version "6.11.3" "name_modifier": "", "status": "enabled", // enabled, disabled, not_installed, installing, removing “base_dir”: “/opt/alt/alt-nodejs6” // empty when version is not installed “users”: { // begin of “users” “user1”: { // begin of “user1” “homedir”: “/home/user1”, “applications”: { // begin of “applications” “apps_dir/app1” : { // begin of application “apps_dir/app1” “domain”: “cltest1.com”, “app_uri”: “apps/my-app1”, “app_mode” : “development”, “startup_file” : “app.js”, “app_status” : “started”, // ‘started’ or ‘stopped’ “config_files” : [ “package.json”, “gruntfile.js” ], “env_vars” : { “var1” : “value1”, “var2” : “value2” }, }, }, }, }, }, "8.21.5" : { << data for version "8.21.5" (same structure as for version “6.11.3” above) >> }, } } // end of json ``` -------------------------------- ### JSON Output for Get Command Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Example of the JSON structure returned by the `cloudlinux-selector get --json --interpreter python` command, detailing Python Selector status, versions, and user application configurations. ```json { "selector_enabled": true | false, "default_version": "2.7.15", "result": "success", "timestamp": 1508667174.220027, “cache_status”: “ready”, // or “updating” during automatic yum cache rebuild "available_versions": { // begin of “versions” "2.7.15" : { // begin of version "2.7.15" "status": "enabled", // enabled, disabled, not_installed, installing, removing, locked “base_dir”: “/opt/alt/alt-python27” // empty when version is not installed “users”: { // begin of “users” “user1”: { // begin of “user1” "homedir": "/home/user1", "applications": { // begin of “applications” "apps_dir/app1" : { // begin of application “apps_dir/app1” "domain": "cltest1.com", "app_uri": "apps/my-app1", "startup_file" : "run.py", "entry_point" : "app", "app_status" : "started", // ‘started’ or ‘stopped’ "config_files" : [ "requirements.txt", "requirements-migration.txt" ], "env_vars" : { "var1" : "value1", "var2" : "value2" }, }, // end of application “apps_dir/app1” "apps_dir/app2" : { // begin of application “apps_dir/app2” << data for application “apps_dir/app2” (same structure as for application “apps_dir/app1” above) >> }, // end of application “apps_dir/app2” }, // end of “applications” }, // end of “user1” “user2”: { // begin of “user2” << data for user “user2” (same structure as for “user1” above) >> }, // end of “user2” }, // end of “users” }, // end of version “2.7.15” "8.21.5" : { // begin of version "3.3.7" << data for version "3.3.7" (same structure as for version “2.7.15” above) >> }, // end of version “3.3.7” }, // end of “versions” } // end of json ``` -------------------------------- ### PHP Selector Configuration Example Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Displays the default configuration file paths for an alternative PHP version (e.g., php5.2), including the main php.ini and module scan directories. ```text Configuration File (php.ini) Path /opt/alt/php52/etc Loaded Configuration File /opt/alt/php52/etc/php.ini Scan this dir for additional .ini files /opt/alt/php52/etc/php.d additional .ini files parsed /opt/alt/php52/etc/php.d/alt_php.ini ``` -------------------------------- ### Get Changed Files by Timestamp and UID Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_kernel Example of using cloudlinux-backup-helper to retrieve files modified after a specific timestamp for a given UID. ```bash [root@localhost ~]# cloudlinux-backup-helper -t 1495533489 -u 1,1495533925 1001:/home/user2/public_html/output.txt 1001:/home/user2/public_html/info.php ``` -------------------------------- ### Install Beta MySQL Version Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs a beta version of MySQL using the MySQL Governor utility. Ensure you have backups before proceeding. ```bash /usr/share/lve/dbgovernor/mysqlgovernor.py --install-beta ``` -------------------------------- ### List Available Advices Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Use this command to retrieve a list of available optimization advices. The output includes metadata, advice details, and the result of the command. ```bash cl-smart-advice --api-version= list ``` -------------------------------- ### Download and Prepare cloudlinux7to8 Tool Source: https://docs.cloudlinux.com/cloudlinuxos/elevate Download the cloudlinux7to8 upgrade tool, unzip it, and make it executable. This is a prerequisite for running the upgrade. ```bash > wget https://github.com/plesk/cloudlinux7to8/releases/download/v1.1.3/cloudlinux7to8-1.1.3.zip > unzip cloudlinux7to8-1.1.3.zip > chmod 755 cloudlinux7to8 ``` -------------------------------- ### Start Leapp Pre-upgrade Check Source: https://docs.cloudlinux.com/cloudlinuxos/elevate Initiates the pre-upgrade check for the Leapp utility. This phase identifies potential problems and recommended solutions without installing any packages. ```bash sudo leapp preupgrade ``` -------------------------------- ### Configure cldetect for SuperGID Setup Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools This command is part of the lve-utils package and is automatically called during installation or upgrades to configure system settings for software like nagios. ```bash cldetect --setup-supergids ``` -------------------------------- ### Apply Apache Patches for LVE and CageFS Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example of applying a patch to the APR library source code. This is necessary for custom Apache installations to work with LVE and CageFS. ```bash # ls apapr-1.4.8.tar.bz2 apr-2.4-httpd.2.patch # tar xvjf apr-1.4.8.tar.bz2 # cp apr-2.4-httpd.2.patch ./apr-1.4.8 # cd ./apr-1.4.8 # patch -p3 < apr-2.4-httpd.2.patch patching file include/apr_thread_proc.h Hunk #1 succeeded at 204 (offset -2 lines). patching file threadproc/unix/proc.c Patch applied Successfully, recompile apr. ``` -------------------------------- ### FSize_watcher_notifier Configuration File Example Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Example configuration file for the FSize_watcher_notifier plugin, specifying email addresses, subject, and notification period. ```ini # Config file for FSize_watcher_notifier.py plugin # Please define email options here NOTIFY_FROM_EMAIL=user@hostname NOTIFY_FROM_SUBJECT=Message from FSize_watcher_notifier NOTIFY_TO_EMAIL=admin@hostname NOTIFY_PERIOD=12h ``` -------------------------------- ### Install CageFS and Initialize Skeleton Directory Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs the CageFS package and initializes the skeleton directory. This command may require significant disk space. ```bash yum install cagefs /usr/sbin/cagefsctl --init ``` -------------------------------- ### Allow AccelerateWP Premium for a User Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro This command enables AccelerateWP Premium for a specific user, allowing plugin installation and starting the billing cycle. It should be executed by the billing system when a user upgrades. ```bash cloudlinux-awp-admin set-suite --suites=accelerate_wp_premium --allowed --source=BILLING_OVERRIDE --users= ``` -------------------------------- ### Compile and Install mod_hostinglimits from Source Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Compiles and installs the mod_hostinglimits Apache module from source. Requires wget, cmake, and development tools. ```bash wget https://repo.cloudlinux.com/cloudlinux/sources/mod_hostinglimits.tar.gz yum install cmake tar -zxvf mod_hostinglimits*.tar.gz cd mod_hostinglimits* cmake . make make install ``` -------------------------------- ### Install OptimumCache Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Installs OptimumCache using yum. Ensure you have the necessary requirements before installation. ```bash yum install optimumcache ``` -------------------------------- ### Setup CloudLinux OS PHP Selector Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Configures the CloudLinux OS PHP Selector after specifying the location of native PHP binaries in /etc/cl.selector/native.conf. ```bash cagefsctl --setup-cl-selector ``` -------------------------------- ### Successful Output for Listing Advices Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Example of a successful response when listing advices, showing detailed information for each advice. ```json { "data": [ { "created_at": "2023-04-11T07:33:48.191870+00:00", "updated_at": "2023-04-11T07:33:48.191870+00:00", "metadata": { "username": "user16", "domain": "user16.com", "website": "/wordpress" }, "advice": { "id": 23484, "type": "OBJECT_CACHE", "status": "review", "description": "Turn on Object Caching", "is_premium": true, "module_name": "object_cache", "subscription": { "status": "no", "upgrade_url": null }, "total_stages": 0, "completed_stages": 0, "detailed_description": "To improve site performance, enable the Object Caching We recommend applying the advice if you see it frequen tly for the most valuable URLs of your site." } }, { "created_at": "2023-04-11T07:33:48.297784+00:00", "updated_at": "2023-04-11T08:51:42.362117+00:00", "metadata": { "username": "user16", "domain": "user16.com", "website": "/wordpress" }, "advice": { "id": 23485, "type": "SITE_OPTIMIZATION", "status": "applied", "description": "Turn on AccelerateWP feature", "is_premium": false, "module_name": "accelerate_wp", "total_stages": 0, "completed_stages": 0, "detailed_description": "To improve site performance, enable the AccelerateWP optimization feature. We recommend applying the advice if you see it frequently for the most valuable URLs of your site." } } ], "result": "success", "timestamp": 1681203110 } ``` -------------------------------- ### Enable AccelerateWP Premium Suite for Free for All Users Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Enables the AccelerateWP Premium suite for free for all users. ```bash cloudlinux-awp-admin set-suite --suites=accelerate_wp_premium --allowed-for-all ``` -------------------------------- ### Install Git on cPanel Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated This command installs the Git package on cPanel servers. It is recommended to use this method for installing Git on cPanel. ```bash yum install git-cpanel ``` -------------------------------- ### Initialize CageFS Filesystem Template Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Initializes the CageFS filesystem template. This command should be run after initial setup or significant configuration changes. ```bash /usr/sbin/cagefsctl --init ``` -------------------------------- ### cloudlinux-top Usage Help Source: https://docs.cloudlinux.com/cloudlinuxos/command-line_tools Displays the help message for the cloudlinux-top utility, outlining available options and arguments. ```bash cloudlinux-top [-h] [-v] [-j] [--hide-mysql] [-u USERNAME | -r FOR_RESELLER] [-d DOMAIN] [-m MAX] [-o ORDER_BY] ``` -------------------------------- ### Install Alternative Python Packages Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs alternative Python packages required for Python Selector. This command is used for both cPanel and DirectAdmin installations. ```bash yum groupinstall alt-python ``` -------------------------------- ### Install X-Ray Package via SSH Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Installs the `alt-php-xray` package along with `lvemanager` via SSH. This is one method to install X-Ray. ```bash yum install lvemanager alt-php-xray ``` -------------------------------- ### Start ELevate Upgrade Process Source: https://docs.cloudlinux.com/cloudlinuxos/elevate Initiate the ELevate upgrade process. The system may restart automatically. ```bash /scripts/elevate-cpanel --start ``` -------------------------------- ### Install Custom Files in mod_lsapi.spec Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Use these commands within the %install section of the mod_lsapi.spec file to install custom configuration and script files. ```bash install -D -m 644 config.ini $RPM_BUILD_ROOT%{g_path}/custom/config.ini install -D -m 755 custom.sh $RPM_BUILD_ROOT%{g_path}/custom/custom.sh ``` -------------------------------- ### Install MySQL Governor with Control Panel Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Run this command to install MySQL Governor, typically after configuring user mapping and backing up databases. ```bash /usr/share/lve/dbgovernor/mysqlgovernor.py --install ``` -------------------------------- ### Install FFmpeg PHP Bindings Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs FFmpeg PHP bindings using yum. Requires FFmpeg package to be installed from the 'Nux Dextop' repository. ```bash yum install alt-php*ffmpeg ``` -------------------------------- ### Enable AccelerateWP CDN Free for All Users Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Enables the free AccelerateWP CDN for all users on the system. ```bash cloudlinux-awp-admin set-suite --suites accelerate_wp_cdn --allowed-for-all ``` -------------------------------- ### Install mod_lsapi Build Dependencies Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Installs necessary packages for building mod_lsapi from source on CloudLinux OS. Ensure all listed packages are installed before proceeding. ```bash yum install -y rpm-build yum install -y liblsapi liblsapi-devel yum install -y autoconf cmake apr-devel apr-util-devel yum install -y python-lxml pytest python-mock ``` -------------------------------- ### Example: Enable Object Caching Feature Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro This example demonstrates how to enable the Object Caching feature for a specific WordPress site using the cloudlinux-awp-user command. ```bash cloudlinux-awp-user --api-version 1 enable --feature object_cache --wp-path "userwordpresssite" --domain username1.com ``` -------------------------------- ### Install Alternative Python Packages Source: https://docs.cloudlinux.com/cloudlinuxos/deprecated Installs the group of alternative Python packages required for Python Selector functionality. This command should be run after installing the core tools. ```bash yum groupinstall alt-python ``` -------------------------------- ### Full User Data Output Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration This example shows the full JSON output for users when no specific fields are requested. It includes details like user ID, username, owner, domain, package information, and email. ```json { "data": [ { "id": 1000, "username": "ins5yo3", "owner": "root", "domain": "ins5yo3.com", "package": { "name": "package", "owner": "root" }, "email": "ins5yo3@ins5yo3.com", "locale_code": "EN_us" }, { "id": 1001, "username": "ins5yo4", "owner": "root", "domain": "ins5yo4.com", "package": { "name": "package", "owner": "root" }, "email": "ins5yo4@ins5yo4.com", "locale_code": "EN_us" } ], "metadata": { "result": "ok" } } ``` -------------------------------- ### Install Leapp Packages for CloudLinux OS Source: https://docs.cloudlinux.com/cloudlinuxos/elevate Installs the leapp-upgrade and leapp-data-cloudlinux packages required for the CloudLinux OS upgrade process. A valid license is required for installation. ```bash sudo yum install -y leapp-upgrade leapp-data-cloudlinux ``` -------------------------------- ### Install mod_suexec via YUM Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs the mod_suexec module using the YUM package manager on cPanel servers with EasyApache 4. Ensure mod_ruid2 is removed before installation. ```bash yum install ea-apache24-mod_suexec ``` -------------------------------- ### Enable AccelerateWP Free Suite for All Users Source: https://docs.cloudlinux.com/cloudlinuxos/shared-pro Enables the free AccelerateWP suite for all users on the system. ```bash cloudlinux-awp-admin set-suite --suites=accelerate_wp --allowed-for-all ``` -------------------------------- ### Install Beta MySQL Governor Packages Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Use the --install-beta flag to install beta packages, which may contain newer versions of MySQL than the stable channel. ```bash /usr/share/lve/dbgovernor/mysqlgovernor.py --install-beta ``` -------------------------------- ### Install mod_proctitle on cPanel EasyApache 4 Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs the mod_proctitle module for Apache on systems using cPanel EasyApache 4. This command installs the EA version of the module. ```bash yum install ea-apache24-mod_proctitle service httpd restart ``` -------------------------------- ### Remove and Install MySQL Governor Packages Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Use these commands to remove existing governor packages and install the MySQL Governor package. Errors can be ignored if the packages are not installed. ```bash yum remove db-governor db-governor-mysql # you can ignore errors if you don't have those packages installed yum install governor-mysql ``` -------------------------------- ### Install AlmaLinux or CentOS Kernel Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Install the appropriate kernel for AlmaLinux or CentOS after removing the CloudLinux OS kernel. If the latest kernel is already installed, no further action is needed for the kernel. ```bash yum install kernel ``` -------------------------------- ### panel_info Script Output Example Source: https://docs.cloudlinux.com/cloudlinuxos/control_panel_integration Example JSON output for the panel_info script, detailing control panel name, version, login URL, and supported CloudLinux OS features. ```json { "data": { "name": "SomeCoolWebPanel", "version": "1.0.1", "user_login_url": "https://{domain}:1111/", "supported_cl_features": { "php_selector": true, "ruby_selector": true, "python_selector": true, "nodejs_selector": false, "mod_lsapi": true, "mysql_governor": true, "cagefs": true, "reseller_limits": true, "xray": false, "accelerate_wp": false, "autotracing": true } }, "metadata": { "result": "ok" } } ``` -------------------------------- ### Install Apache Modules for PHP Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_installation Installs the mod_suexec and mod_suphp Apache modules required for certain PHP configurations. These can be installed via SSH or through cPanel's EasyApache 4. ```bash yum install ea-apache24-mod_suexec yum install ea-apache24-mod_suphp ``` -------------------------------- ### Install mod_lsapi PRO on servers without control panel (httpd24) Source: https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components Installs mod_lsapi PRO for httpd24 installations, using a specific path for the switch_mod_lsapi command. Requires restarting httpd24. ```bash yum install liblsapi liblsapi-devel yum install httpd24-mod_lsapi /opt/rh/httpd24/root/usr/bin/switch_mod_lsapi --setup service httpd24-httpd restart ```