Mautic

Installation Steps for Mautic on DirectAdmin driven by CloudLinux with LiteSpeed

1. Prepare Your Environment

  • Log in to your DirectAdmin control panel.
  • Create a database for Mautic:
    • Navigate to MySQL Management.
    • Click on Add New Database.
    • Create a user and assign it to the database with all permissions.

2. Install Composer

Composer is necessary to manage Mautic's PHP dependencies.

Via SSH:

  1. Access your server via SSH.

  2. Run the following commands to install Composer:

    bash

    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'YOUR_EXPECTED_HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"

    Replace YOUR_EXPECTED_HASH with the latest hash from the Composer site.

  3. Move Composer to a global location:

    bash

    mv composer.phar /usr/local/bin/composer

3. Download Mautic

You can download Mautic using Composer:

  1. Navigate to your desired web directory:

    bash

    cd /path/to/your/web/root
  2. Install Mautic:

    bash

    composer create-project mautic MAUTIC_DIR --no-interaction

    Replace MAUTIC_DIR with your desired directory name.

4. Set Permissions

Make sure the web server user has the right permissions:

bash

chown -R user:user /path/to/MAUTIC_DIR chmod -R 755 /path/to/MAUTIC_DIR

Replace user:user with the appropriate user and group.

5. Configure LiteSpeed

You will need to set up LiteSpeed to handle Mautic’s requests. This might involve creating an .htaccess file or altering the server configuration.

Example .htaccess for Mautic:

apache

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?_url=$1 [QSA,L] </IfModule>

Place this file in the root directory of your Mautic installation.

6. Final Setup

  • Access Mautic in your web browser by navigating to http://your-domain.com/MAUTIC_DIR.
  • Follow the web installer to set up your database connection and Mautic settings.
  • 1 Utilizadores acharam útil
Esta resposta foi útil?