### Install Webuzo with Apache and Bind Source: https://www.webuzo.com/docs/installing-webuzo/install Download the installation script, make it executable, and run it to install Webuzo with Apache2 and Bind services. ```bash wget -N https://files.webuzo.com/install.sh chmod 0755 install.sh ./install.sh --install=apache2,bind ``` -------------------------------- ### Install Webuzo with Selected Apps Source: https://www.webuzo.com/docs/installing-webuzo/install Specify a comma-separated list of desired application softnames using the '--install' parameter to customize the installation. ```bash ./install.sh --install=apache2,mariadb108,bind,exim,dovecot,php81,php80,php74 ``` -------------------------------- ### Install Webuzo with Default Apps Source: https://www.webuzo.com/docs/installing-webuzo/install Run the installation script without any parameters to install Webuzo with its default set of applications. ```bash ./install.sh ``` -------------------------------- ### Install Source: https://www.webuzo.com/docs/api/manage-domains Installs Webuzo on a new server. ```APIDOC ## POST /install ### Description Installs Webuzo on a new server. ### Method POST ### Endpoint /install ### Parameters #### Request Body - **license_key** (string) - Required - The Webuzo license key. - **server_details** (object) - Required - Details about the server environment. ``` -------------------------------- ### Initiate NodeBB Setup Source: https://www.webuzo.com/docs/enduser-applications/setup-nodebb-with-application-manager Start the NodeBB interactive setup script. This will prompt you for various configuration details. ```bash ./nodebb setup ``` -------------------------------- ### Download ImunifyAV Installation Script Source: https://www.webuzo.com/docs/installing-webuzo/install-imunifyav Download the ImunifyAV installation script using wget. This command ensures you get the latest version. ```bash wget -N https://files.webuzo.com/plugins/imunifyav/imunifyav.sh ``` -------------------------------- ### Download and Execute Installation Script Source: https://www.webuzo.com/docs/installing-webuzo/install Download the Webuzo installation script, make it executable, and run it to install Webuzo along with default services like LAMP stack, DNS, and FTP. ```bash wget -N https://files.webuzo.com/install.sh chmod 0755 install.sh ./install.sh ``` -------------------------------- ### NodeBB Configuration Example Source: https://www.webuzo.com/docs/enduser-applications/setup-nodebb-with-application-manager This is an example of the config.json file after NodeBB setup. Pay close attention to the MongoDB connection details and the 'authSource=admin' parameter. ```json { "url": "http://localhost:30001", "secret": "646advfs2e04-db07-491b-b980-33cfcbf98c12", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "DATABASE_USER", "password": "PASSWORD", "database": "DATABASE_NAME", "uri": "" }, "port": "30001" } ``` -------------------------------- ### Example Error Message on CentOS 7 Source: https://www.webuzo.com/docs/how-tos/centos-7-error-restarting-starting-a-systemd-service This snippet shows the typical error message encountered when a systemd service fails to start on CentOS 7 due to PolicyKit issues. ```bash # service pure-ftpd start Redirecting to /bin/systemctl start pure-ftpd.service ** (pkttyagent:478736): WARNING **: 198.168.100.138: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0) ``` -------------------------------- ### Install System Application using --installapp Source: https://www.webuzo.com/docs/developers/install-remove-a-system-applications Use this command to install a system application by specifying its name. Ensure the --installapp flag is used to initiate the installation. ```bash webuzo --installapp --app=git ``` -------------------------------- ### Run ImunifyAV Installation Source: https://www.webuzo.com/docs/installing-webuzo/install-imunifyav Execute the ImunifyAV installation script to install the plugin in Webuzo. The installation runs in the background. ```bash ./imunifyav.sh ``` -------------------------------- ### Example .deploy.json Configuration Source: https://www.webuzo.com/docs/endusers-website-owners/guide-to-git-deployment This JSON file specifies the deployment path and the files or directories to be deployed. Ensure this file is present in the remote directory and updated to match your specific deployment needs. ```json { "DEPLOYPATH" : "/home/user/git_repo", // DEPLOYPATH : where changes will be deployed "task" : { "0" : "index.php", // This will deploy only index.php file "1" : "images" // This will deploy Entire images Directory with all its files } } ``` -------------------------------- ### Install App Source: https://www.webuzo.com/docs/api/install-apps Installs a specified application using the Install Apps API. Requires authentication and app details. ```APIDOC ## POST /index.php?api=json ### Description Installs an application by specifying the action and app ID. ### Method POST ### Endpoint `https://hostip:2005/index.php?api=json&act=apps&app=app_id` ### Parameters #### Query Parameters - **act** (string) - Required - The action specified to retrieve data after installing the app. Value should be 'apps'. - **app** (string) - Required - The ID of the app to install. #### Request Body - **install** (string) - Required - Specifies the installation action. Value should be 'install'. ### Request Example ```json { "install": "install" } ``` ### Response #### Success Response (200) - **done** (object) - Contains installation status if successful. - **installed** (integer) - Indicates if the app was installed (1 for success). #### Response Example ```json { "done": { "installed": 1 } } ``` #### Error Response - **error** (object) - Contains error details if installation fails. ``` -------------------------------- ### Install App API Output Source: https://www.webuzo.com/docs/api/install-apps This is a sample output indicating a successful app installation via the API. ```text Array ( [installed] => 1 ) ``` -------------------------------- ### Install System Application via CLI (Multiple Commands) Source: https://www.webuzo.com/docs/developers/webuzo-cli-commands Install a system application using one of three equivalent commands. Specify the application name or its soft ID. ```bash webuzo --installapp --app=git ``` ```bash webuzo --a --app=git ``` ```bash webuzo --app_install --app=git ``` ```bash webuzo --app_install --soft=67_1 ``` -------------------------------- ### Build and Run Go Application Source: https://www.webuzo.com/docs/enduser-applications/how-to-setup-go-lang-with-application-manager Commands to first build an executable binary of your Go application and then run it. This is often preferred for deployment. ```bash /usr/local/apps/go/bin/go build -o main main.go ./main ```