### Run Enhance Installation Script Source: https://enhance.com/docs/getting-started/installation-guide This command downloads and executes the Enhance installation script from the provided URL. It requires curl to be installed and will initiate the package installation process using apt. ```bash bash -c "$(curl https://install.enhance.com/install.sh)" ``` -------------------------------- ### Install Enhance Script (Bash) Source: https://enhance.com/docs/advanced/control-panel-migration This script downloads and executes the Enhance installation script from the official source. It's used to set up Enhance on a new server as if it were a fresh installation. ```bash curl https://install.enhance.com/install.sh | bash ``` -------------------------------- ### Example Node.js Startup Command Source: https://enhance.com/docs/website-management/nodejs An example of a typical startup command for a Node.js application using npm. This command specifies the 'start' script and the 'production' environment flag. Enhance executes this command from the specified working directory or the home directory. ```shell npm start --production ``` -------------------------------- ### Import Databases and Start Services (PostgreSQL & Systemd) Source: https://enhance.com/docs/advanced/control-panel-migration On the new control panel server, these commands first remove and recreate the `orchd` and `authd` databases, then import the data from the SQL files. Finally, they start the `orchd`, `appcd`, and `filerd` services. ```bash # remove the control panel data from the initial installation and create an empty database in its place sudo -u postgres psql -c "DROP DATABASE orchd;" sudo -u postgres psql -c "DROP DATABASE authd; " sudo -u postgres psql -c "CREATE DATABASE orchd;" sudo -u postgres psql -c "CREATE DATABASE authd;" sudo -u postgres psql -d orchd -c "GRANT USAGE, CREATE ON SCHEMA public TO orchd;" sudo -u postgres psql -d authd -c "GRANT USAGE, CREATE ON SCHEMA public TO orchd;" # import the data sudo -u orchd psql -d orchd < /var/orchd/orchd.sql sudo -u orchd psql -d authd < /var/orchd/authd.sql # start services systemctl start orchd systemctl start appcd systemctl start filerd ``` -------------------------------- ### Troubleshoot WordPress Installation with wp-cli Source: https://enhance.com/docs/wordpress/detect-existing-app Commands to verify a WordPress installation using wp-cli. These commands check user lists, core installation status, and database name. They should be run as the website user, not root. Replace `public_html` with the actual WordPress installation path. Failures indicate potential issues with the WordPress setup. ```bash wp user list --path=public_html wp core is-installed --path=public_html wp option get DB_NAME --path=public_html ``` -------------------------------- ### Install Ghost Locally Source: https://enhance.com/docs/website-management/install-deploy-ghost Creates a new Ghost project directory, navigates into it, and installs Ghost with a local configuration using the Ghost CLI. It also installs the sqlite3 package as a dependency for the database. ```bash mkdir ghost cd ghost ghost install --local npm install sqlite3 --save ``` -------------------------------- ### Initiate SSO for Enhance Control Panel Source: https://enhance.com/docs/getting-started/installation-guide This command is used to initiate a Single Sign-On (SSO) process for the Enhance control panel. It is run as root and facilitates passwordless access to the panel if admin credentials are forgotten. ```bash ecp sso ``` -------------------------------- ### Install NVM, Node.js, and Ghost CLI Source: https://enhance.com/docs/website-management/install-deploy-ghost Installs Node Version Manager (NVM), a specific Node.js version (22), and the Ghost command-line interface (CLI) globally. These are essential prerequisites for managing Node.js environments and installing Ghost. ```bash /usr/bin/install_nvm_and_node.sh nvm install 22 nvm use 22 npm install ghost-cli -g ``` -------------------------------- ### Install Packages and Upgrade Panel (Control Panel Server) Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Installs core Enhance packages and initiates the panel upgrade process on the control panel server. This is the first step in the v12 upgrade. ```bash apt update apt-get install -y ecp-core orchd ecp-filerd v12-upgrade upgrade-panel-from-v11 chown -R orchd:orchd /var/www/control-panel/screenshots v12-upgrade upgrade-app-server ``` -------------------------------- ### Update and Upgrade Packages (Bash) Source: https://enhance.com/docs/advanced/control-panel-migration This command updates the package list and upgrades all installed packages on a Debian-based system. It's a prerequisite for ensuring the Enhance installation is up-to-date before migration. ```bash apt update apt upgrade -y ``` -------------------------------- ### Initialize Node.js Environment via SSH Source: https://enhance.com/docs/website-management/nodejs This command initializes the Node.js environment for manual starts. It requires running the script via SSH as the website user and then logging out and back in. This is necessary for manual mode operations. ```shell install_nvm_and_node.sh ``` -------------------------------- ### Compile Custom PHP Module using PECL Source: https://enhance.com/docs/php/php-versions Instructions for compiling and installing a custom PHP module using PECL. This process involves updating package lists, installing build tools, running the PECL install command, and then enabling the module in the php.ini file. Dependencies on system libraries may require additional 'apt-get' installations. ```bash apt update apt install make gcc g++ autoconf opt/ecp-php81/bin/pecl install nameofmodule ``` -------------------------------- ### Install Packages (Cluster Servers) Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Installs essential Enhance packages on all cluster servers other than the control panel server. This ensures all nodes have the necessary components for the upgrade. ```bash apt update apt install -y ecp-core ecp-filerd ``` -------------------------------- ### Reinstate Control Panel Websites and Configure IP (PSQL & Bash) Source: https://enhance.com/docs/advanced/control-panel-migration These commands recreate control panel websites on the new server by querying the migrated database and executing `appcd-cli`. They also set the primary IP address for SSO and chown necessary certificate and asset files. Replace 9.9.9.9 with the new control panel server's IP. ```bash sudo -u orchd psql -At -c " SELECT 'appcd-cli create-website ' || w.id || ' ' || w.unix_user || ' ' || d.domain || ' php83 control-panel' FROM websites w JOIN domain_mappings dm ON w.id = dm.website_id JOIN domains d ON dm.domain_id = d.id WHERE w.kind = 1 and dm.kind = 'primary'; " | bash # set primary IP for SSO sudo -u orchd psql -c "UPDATE servers SET primary_ip = '9.9.9.9' where id = '00000000-0000-0000-0000-000000000000';" sudo -u orchd psql -c "UPDATE server_ips SET ip = '9.9.9.9' where server_id = '00000000-0000-0000-0000-000000000000';" # chown certificate files chown orchd:orchd /var/local/enhance/orchd/private/orchd.key /etc/ssl/certs/enhance/orchd.crt # chown brand assets chown -R orchd:orchd /var/www/control-panel/screenshots /var/www/control-panel/assets ``` -------------------------------- ### Dump and Transfer Databases and Certificates (Bash & SCP) Source: https://enhance.com/docs/advanced/control-panel-migration This sequence of commands dumps the `orchd` and `authd` PostgreSQL databases to SQL files, then securely copies these files along with SSL certificates and other configuration files to the new control panel server using SCP. Replace 9.9.9.9 with the new server's IP. ```bash sudo -u orchd pg_dump -O -d orchd > /var/orchd/orchd.sql sudo -u orchd pg_dump -O -d authd > /var/orchd/authd.sql scp /var/orchd/orchd.sql root@9.9.9.9:/var/orchd/orchd.sql scp /var/orchd/authd.sql root@9.9.9.9:/var/orchd/authd.sql # copy mTLS certificates scp -r /etc/ssl/certs/enhance root@9.9.9.9:/etc/ssl/certs/ scp -r /etc/ssl/private/enhance root@9.9.9.9:/etc/ssl/private/ scp -r /var/local/enhance/orchd/private root@9.9.9.9:/var/local/enhance/orchd scp /var/local/enhance/rca.pw root@9.9.9.9:/var/local/enhance/rca.pw # copy control panel assets scp -r /var/www/control-panel/assets root@9.9.9.9:/var/www/control-panel/ # copy cloudflare key (if in use) scp /var/local/enhance/orchd/cloudflare.key root@9.9.9.9:/var/local/enhance/orchd/cloudflare.key ``` -------------------------------- ### Retrieve Docker Registration Key Source: https://enhance.com/docs/troubleshooting/complete-install-closed-window This command inspects the 'orchd' Docker container to extract the REGISTRATION_KEY. It filters the output to isolate the key and removes the prefix. This key is essential for completing the installation setup via the web interface. ```shell docker inspect orchd | grep -oE "REGISTRATION_KEY=([a-z0-9-]+)" | sed 's/REGISTRATION_KEY=//' ``` -------------------------------- ### General System Update Source: https://enhance.com/docs/getting-started/upgrading-from-v11 A general command to update all installed packages on the system after the Enhance upgrade is complete. This ensures the entire system is up-to-date. ```bash apt update && apt upgrade ``` -------------------------------- ### Example Public SSH Key Source: https://enhance.com/docs/technical-guidance/adding-an-ssh-key-as-root This is an example of the format of a public SSH key. It typically starts with 'ssh-rsa' followed by a long string of characters and ends with a username@hostname identifier. This key is used to authenticate access to a server. ```plaintext ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7sBaZnNypvT4tfPiEWEN2rrHKTV9pweD1BiFtOx1...I5f6GmQboRn1wpW61CjAYwNMTd yourname@yourcomputer ``` -------------------------------- ### Update Ubuntu System Source: https://enhance.com/docs/server-management/updating-ubuntu Updates the package list, upgrades installed packages, performs a distribution upgrade, and initiates the release upgrade process. Ensure backups are intact before proceeding. No specific inputs or outputs are defined, but it's a critical system operation. ```bash apt update apt upgrade apt dist-upgrade do-release-upgrade ``` -------------------------------- ### Execute PHP Composer Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Invokes the PHP Composer dependency manager. Composer is used for managing PHP package installations and is required for certain scripts. Requires appcd version 1.1.0 or higher. ```bash /usr/bin/composer ``` -------------------------------- ### Enter MySQL Container Source: https://enhance.com/docs/database-role/managing-mysql This command provides direct access to the MySQL container's command-line interface. You can use this to perform administrative tasks directly within the container. This requires Docker to be installed and the MySQL container to be running. ```bash docker exec -it mysql /bin/bash ``` -------------------------------- ### Enter MariaDB Container Source: https://enhance.com/docs/database-role/managing-mysql This command provides direct access to the MariaDB container's command-line interface. You can use this to perform administrative tasks directly within the container. This requires Docker to be installed and the MariaDB container to be running. ```bash docker exec -it mariadb /bin/bash ``` -------------------------------- ### Disable Control Panel Services (Systemd) Source: https://enhance.com/docs/advanced/control-panel-migration These commands disable the `orchd` and `appcd` services from starting automatically on boot. This ensures they are not inadvertently restarted after being shut down for migration. ```bash systemctl disable orchd systemctl disable appcd ``` -------------------------------- ### Stop and Disable screenshotd Service Source: https://enhance.com/docs/application-role/screenshotd Commands to stop the screenshotd service and prevent it from starting on boot. This is useful for disabling screenshot functionality on a specific web server. ```bash systemctl stop screenshotd systemctl disable screenshotd ``` -------------------------------- ### Reset Owner Password via SQL (Enhance < 12.0.0) Source: https://enhance.com/docs/account/password-reset This SQL script is used to reset the owner's password for Enhance versions prior to 12.0.0. It connects to the PostgreSQL database, creates the `pgcrypto` extension if it doesn't exist, and then updates the password hash in the `logins` table. The owner's email and the new password must be specified. ```sql $ docker exec -it authd-postgres psql -U enhance > CREATE EXTENSION pgcrypto; > UPDATE logins SET password =DECODE(CRYPT ('NEW PASSWORD',gen_salt('bf')),'escape') WHERE email = 'owner@mo.com'; ``` -------------------------------- ### Stop Control Panel Services (Systemd) Source: https://enhance.com/docs/advanced/control-panel-migration These commands stop the `orchd` and `appcd` services on the Enhance control panel server. This is crucial before data transfer to prevent data corruption. ```bash systemctl stop orchd systemctl stop appcd ``` -------------------------------- ### Reset Owner Password via Command Line (Enhance >= 12.0.0) Source: https://enhance.com/docs/account/password-reset This command-line interface (CLI) command is used to reset the owner's password for Enhance versions 12.0.0 and later. It requires the owner's email and the new password as arguments. If the email is unknown, the `ecp users` command can be used to list users. ```bash ecp change-password your@email new-password # if you are unsure of your login email, run ecp users ``` -------------------------------- ### Monitor Running Processes Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Launches the `top` command, which displays real-time system processes running within the container. It shows CPU and memory usage, aiding in the identification of performance issues or potential malware. ```bash /usr/bin/top ``` -------------------------------- ### Switch Webserver via CLI Source: https://enhance.com/docs/application-role/switching-application-role This command allows you to switch the webserver kind for an application role using the command-line interface. It is useful as a fallback if the webserver change through the control panel fails. ```bash appcd-cli 127.0.0.1 change-webserver apache ``` -------------------------------- ### Replace Certificates and Convert MySQL (Control Panel Server) Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Replaces SSL certificates for cluster applications and file storage, and converts MySQL databases to the new version on the control panel server. ```bash v12-upgrade replace-all-cluster-appcd-certs v12-upgrade replace-all-filerd-certs v12-upgrade convert-all-mysql ``` -------------------------------- ### Dump MySQL Database using Docker Exec Source: https://enhance.com/docs/database-role/backup-database-as-root This command executes mysqldump within a specified Docker container to create a backup of a MySQL database. The output is redirected to a file on the host system. Ensure you replace 'database_name_here' with the actual database name. The backup file will be located at '/var/backups/database_name.sql' within the container, and accessible on the host at '/var/local/enhance/mysqlcd-backups'. ```shell docker exec mysqlcd sh -c "mysqldump database_name_here > /var/backups/database_name.sql" ``` -------------------------------- ### Execute WP-CLI for WordPress Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Utilizes WP-CLI, a command-line interface for WordPress. It allows for managing plugins, users, and various other WordPress functionalities directly from the terminal. ```bash /usr/bin/wp-cli ``` -------------------------------- ### View Running SQL Queries Source: https://enhance.com/docs/database-role/managing-mysql This command displays a list of all currently running SQL queries on the MySQL server. It is useful for monitoring database activity and identifying long-running or problematic queries. This command is executed directly from the host operating system. ```bash mysql -e 'show full processlist' ``` -------------------------------- ### Switch to Customer User Account Source: https://enhance.com/docs/customers/customer-ssh-useful-commands This command allows you to switch from the root user to a specific customer's username within their containerized PHP environment. This grants access to the customer's file structure and binaries. ```bash su - customer_username ``` -------------------------------- ### Trace PHP Script System Calls Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Uses the `strace` command to monitor and display system calls made by a PHP script. This is invaluable for debugging file access, network connections, and other low-level operations. ```bash strace php script.php ``` -------------------------------- ### Convert FTP Service Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Converts the FTP service to the new version. This command should be run on servers with the application role or the email role. ```bash v12-upgrade convert-all-ftps ``` -------------------------------- ### Upgrade Application Server Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Upgrades the application server component on servers with the application or email role. This replaces the running web server with the vendor-provided version. ```bash v12-upgrade upgrade-app-server ``` -------------------------------- ### View Website Access Logs in Real Time Source: https://enhance.com/docs/technical-guidance/website-access-and-logs This command allows you to monitor website access logs in real time. It streams the log file content as it is updated. This is useful for diagnosing live issues. It will continue to stream until the log file is cycled. ```bash tail -f /var/local/enhance/webserver_logs/{uuid}.log ``` -------------------------------- ### Create Directory Command Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Utilizes the `mkdir` command to create a new directory within the container's file system. This is a fundamental command for file structure management. ```bash /usr/bin/mkdir ``` -------------------------------- ### Fix Backup Permissions Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Corrects file permissions for backup storage on backup servers. This command may take a long time and should be run within a 'screen' session. ```bash v12-upgrade fix-backup-permissions /backups ``` -------------------------------- ### Switch User Environment for PHP Debugging Source: https://enhance.com/docs/php/strace-php This command allows you to switch to the user environment of the website or script you want to debug. This is a prerequisite for stracing PHP processes to ensure you are in the correct context. ```bash su - [user] ``` -------------------------------- ### Run PHP Script via CLI Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Executes a PHP script directly from the command line within the customer's container. This is useful for debugging and observing script behavior similar to web execution. ```bash php script.php ``` -------------------------------- ### Optional Docker Cleanup Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Provides steps to optionally stop and remove Docker if it's not needed for other services after the Enhance upgrade. This includes stopping containers, disabling the Docker service, and removing Docker packages. ```bash docker stop bkupd bkupfilerd systemctl disable docker apt-get remove docker-ce iptables -F DOCKER iptables -t nat -F DOCKER ``` -------------------------------- ### Convert DNS Zones (Control Panel Server) Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Converts all DNS zones on the control panel server. This is a critical step for maintaining DNS functionality after the upgrade. ```bash v12-upgrade convert-all-dns-zones ``` -------------------------------- ### Convert DNS Daemon Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Converts the DNS daemon service on servers with the DNS role. This ensures compatibility with the new Enhance version. ```bash v12-upgrade convert-dnscd ``` -------------------------------- ### Upgrade MySQL Database Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Upgrades the MySQL database service on all servers with the database role, including the control panel server. This command replaces the running MySQL Docker container. ```bash v12-upgrade upgrade-mysql ``` -------------------------------- ### Enable GZIP Compression - Apache .htaccess Source: https://enhance.com/docs/technical-guidance/enabling-gzip-compression This code snippet configures Apache's mod_deflate module to compress various text-based file types. It should be added to the .htaccess file in the website's root directory. Ensure mod_deflate is enabled on your server. ```apache AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/shtml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript ``` -------------------------------- ### Finalize Cluster Updates (Control Panel Server) Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Performs final upgrade tasks on the control panel server, including converting backup daemons, updating website backup locations, and refreshing HTTP disabled status. ```bash v12-upgrade convert-all-bkupds v12-upgrade update-all-website-backup-locations ecp update-http-disabled-status ``` -------------------------------- ### List Running Processes Source: https://enhance.com/docs/php/strace-php After switching to the target user's environment, this command lists all running processes associated with that user. You will use this output to find the Process ID (PID) of the PHP process you wish to trace. ```bash ps aux ``` -------------------------------- ### Update PHP Packages Source: https://enhance.com/docs/server-management/updating-ubuntu Updates the package list and then re-installs all specified PHP versions for Enhance. This step ensures that the correct PHP versions are available and functional after the Ubuntu upgrade. ```bash apt update apt install --reinstall ecp-php{56,70,71,72,73,74,80,81,82,83,84} ``` -------------------------------- ### Redirect PHP Script Output to File Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Demonstrates how to redirect the standard output (stdout) and standard error (stderr) of a PHP script to a log file. This is essential for capturing script results and error messages. ```bash php script.php > script.log ``` ```bash php script.php > script.log 2>&1 ``` -------------------------------- ### View LiteSpeed Error Log Source: https://enhance.com/docs/troubleshooting/websites-on-litespeed-404 This command allows you to view the LiteSpeed error log to diagnose issues. Ensure you have the necessary permissions to access the log file. ```bash /var/local/enhance/litespeedlogs/error.log ``` -------------------------------- ### Find large SQL files in /var/www (Bash) Source: https://enhance.com/docs/technical-guidance/reduce-hard-disk-usage This command searches for and lists all .sql files within the /var/www directory that are larger than 100MB. It is useful for locating large database dump files. ```bash find /var/www -name "*.sql" -size +100M ``` -------------------------------- ### Re-enable Enhance Apt Repository Source: https://enhance.com/docs/server-management/updating-ubuntu Re-enables the Enhance apt repository after an Ubuntu release upgrade by renaming the configuration file and updating the distribution codename from 'jammy' to 'noble'. This ensures access to Enhance-specific packages. ```bash # re-enable the Enhance apt repo mv /etc/apt/sources.list.d/enhance.list.distUpgrade /etc/apt/sources.list.d/enhance.list # replace references to jammy with noble sed -i 's/jammy/noble/g' /etc/apt/sources.list.d/enhance.list ``` -------------------------------- ### Attach Strace to a PHP Process Source: https://enhance.com/docs/php/strace-php This command attaches the strace utility to a specific running PHP process using its Process ID (PID). Strace will then display all system calls made by the process, aiding in debugging database connections, network requests, and identifying hangs. ```bash strace -p [process_id] ``` -------------------------------- ### Retrieve Email Secret for Central Webmail Source: https://enhance.com/docs/getting-started/upgrading-from-v11 Retrieves the email secret required for configuring central webmail. This involves using `jq` to parse a JSON file on the control panel server. ```bash cat /var/local/enhance/orchd.json | jq -r '.email_secret.secret' ``` -------------------------------- ### Display sizes of large databases (Bash) Source: https://enhance.com/docs/technical-guidance/reduce-hard-disk-usage This command displays the disk usage for each subdirectory within /var/local/enhance/mysqlcd-data/data in a human-readable format. It helps identify which MySQL databases are consuming the most space. ```bash du -hs /var/local/enhance/mysqlcd-data/data/* ``` -------------------------------- ### Find large gzip files in /var/www (Bash) Source: https://enhance.com/docs/technical-guidance/reduce-hard-disk-usage This command searches for and lists all .gz files within the /var/www directory that are larger than 100MB. It helps identify large compressed log or data files. ```bash find /var/www -name "*.gz" -size +100M ``` -------------------------------- ### Find large container log files (Bash) Source: https://enhance.com/docs/technical-guidance/reduce-hard-disk-usage This command searches for and lists log files within the Docker container directory (/var/lib/docker/containers) that are larger than 100MB. It helps identify excessive container logging. ```bash find /var/lib/docker/containers -name "*.log*" -size +100M ``` -------------------------------- ### Kill a Running SQL Query Source: https://enhance.com/docs/database-role/managing-mysql This command allows you to terminate a specific running SQL query by its process ID. Replace '1234' with the actual process ID obtained from 'show full processlist'. This is useful for stopping unresponsive or resource-intensive queries. This command is executed directly from the host operating system. ```bash mysql -e 'kill 1234' ``` -------------------------------- ### Remove File Command Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Executes the `rm` command to remove a specified file from the container's file system. Use with caution as this action is irreversible. ```bash /usr/bin/rm ``` -------------------------------- ### Find large zip files in /var/www (Bash) Source: https://enhance.com/docs/technical-guidance/reduce-hard-disk-usage This command searches for and lists all .zip files within the /var/www directory that are larger than 100MB. It helps identify large archive files contributing to disk usage. ```bash find /var/www -name "*.zip" -size +100M ``` -------------------------------- ### Disable 2FA via Command Line - Enhance CLI Source: https://enhance.com/docs/security/two-factor-authentication This command-line interface (CLI) command allows administrators to disable Two-Factor Authentication (2FA) for a specific user. It requires the user's email address and is only available to the master organization. ```bash ecp disable2-fa admin@admin.com* ``` -------------------------------- ### Change Permissions Command Source: https://enhance.com/docs/customers/customer-ssh-useful-commands Employs the `chmod` command to modify file or directory permissions. This is crucial for controlling access and execution rights for files. ```bash /usr/bin/chmod ``` -------------------------------- ### Configure Postfix Attachment Size Limit Source: https://enhance.com/docs/email-role/email-settings This snippet shows how to increase the maximum attachment size for emails sent via Postfix. It involves modifying the main configuration file and reloading the service to apply changes. Ensure you use the correct byte value for the desired limit. ```shell # /etc/postfix/main.cf message_size_limit = 51200000 # Reload Postfix to apply changes postfix reload ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.