This update improves documentation clarity, fixes broken documentation links, and introduces a new feature that allows you to access and use the console directly inside containers from CyberPanel.
8.3 KiB
Complete Mautic Installation Guide for CyberPanel
Overview
Mautic is an open-source marketing automation platform that provides email marketing, lead management, campaign building, and marketing analytics. CyberPanel offers a one-click installation feature for Mautic that simplifies the deployment process.
Prerequisites
Before installing Mautic, ensure you have:
- CyberPanel installed and running
- A website created in CyberPanel
- Administrator or website owner access
- PHP 8.1 or higher (CyberPanel will automatically switch to PHP 8.1 during installation)
- Sufficient database quota in your hosting package
Step-by-Step Installation Process
Step 1: Access CyberPanel Dashboard
- Login to CyberPanel
- Navigate to:
https://your-server-ip:8090 - Enter your username and password
- Click "Sign In"
- Navigate to:
Step 2: Navigate to Websites Section
- From the main dashboard, look for the left sidebar menu
- Click on "Websites" to expand the menu
- Select "List Websites" from the dropdown
Step 3: Access Your Website's Management Page
- Find your website in the list of hosted websites
- Click on the "Manage" button next to your website domain
- Alternatively, click directly on the domain name
Step 4: Navigate to Application Installer
Once on your website's management page:
- Scroll down to find the "Applications" section
- Look for the Mautic card with the Mautic logo
- It will show "Open source marketing automation" as the description
- Click on the Mautic card or the "Install Now" button
Direct URL Pattern:
https://your-cyberpanel-domain:8090/websites/your-domain.com/installMautic
Step 5: Configure Mautic Installation
On the Mautic installation page, you'll need to provide:
Required Information:
-
Administrator Username
- Default suggestion:
admin - Choose a secure username for the Mautic admin account
- Default suggestion:
-
Email Address
- Enter a valid email address
- This will be used for the Mautic administrator account
- Important for password recovery and notifications
-
Password
- Create a strong password
- Must be secure to protect your marketing platform
- Recommended: Use a combination of uppercase, lowercase, numbers, and special characters
Step 6: Start Installation
- Review all entered information
- Click the "Install Now" button
- The installation will begin with the following automated steps:
Step 7: Installation Process
The system will automatically:
-
Change PHP version to 8.1 (if not already set)
- This ensures compatibility with Mautic 6.x
-
Create a MySQL database
- Database name, username, and password are generated automatically
-
Download Mautic 6.0.3 from GitHub
- Latest stable version is downloaded
-
Extract files to the specified location
-
Run Mautic installer with your provided credentials
-
Generate assets for the Mautic interface
-
Configure web server settings
Installation Progress Indicators:
- Setting up paths (0%)
- Setting up Database (20%)
- Downloading Mautic Core (30%)
- Extracting Mautic Core (50%)
- Running Mautic installer (70%)
- Successfully Installed (100%)
Step 8: Post-Installation
Once installation is complete:
-
Access URL will be displayed
- Example:
https://your-domain.comorhttps://your-domain.com/mautic
- Example:
-
Click on the provided URL to access Mautic
-
Complete Mautic Setup Wizard:
- The first time you access Mautic, you'll see the setup wizard
- Configure email settings
- Set up cron jobs for email sending
- Configure tracking settings
Step 9: Initial Mautic Configuration
After accessing Mautic for the first time:
-
Login with the credentials you provided during installation
-
Configure Email Settings:
- SMTP settings for sending emails
- Bounce handling
- Unsubscribe settings
-
Set Up Cron Jobs (Important!):
# Add these cron jobs for Mautic to function properly */5 * * * * /usr/local/lsws/lsphp81/bin/php /home/your-domain/public_html/bin/console mautic:segments:update */5 * * * * /usr/local/lsws/lsphp81/bin/php /home/your-domain/public_html/bin/console mautic:campaigns:update */5 * * * * /usr/local/lsws/lsphp81/bin/php /home/your-domain/public_html/bin/console mautic:campaigns:trigger 0 0 * * * /usr/local/lsws/lsphp81/bin/php /home/your-domain/public_html/bin/console mautic:emails:send
Technical Details
System Requirements Met by Installation
- PHP Version: 8.1 (automatically configured)
- Required PHP Extensions (installed automatically):
- bcmath
- imap
- curl
- gd
- json
- mbstring
- mysql
- xml
- zip
Database Configuration
- Database Type: MySQL/MariaDB
- Host: localhost
- Port: 3306
- Character Set: UTF-8
- Collation: utf8mb4_unicode_ci
File Permissions
The installation automatically sets appropriate permissions:
- Files: 644
- Directories: 755
- Configuration files are secured
Web Server Configuration
- LiteSpeed/OpenLiteSpeed: Configured automatically
- Apache: If using Apache, additional modules are installed
- .htaccess: Properly configured for URL rewriting
Features Available After Installation
Once Mautic is installed, you can:
-
Email Marketing
- Create and send email campaigns
- Design responsive email templates
- A/B testing for emails
-
Lead Management
- Track visitor behavior
- Score and segment leads
- Progressive profiling
-
Marketing Campaigns
- Visual campaign builder
- Multi-channel campaigns
- Automated workflows
-
Analytics & Reporting
- Real-time analytics
- Campaign performance metrics
- ROI tracking
Troubleshooting
Common Issues and Solutions
-
Installation Fails at Database Creation
- Issue: Maximum database limit reached
- Solution: Upgrade your hosting package or delete unused databases
-
PHP Version Error
- Issue: PHP 8.1 not available
- Solution: The installer will automatically install PHP 8.1 if missing
-
Permission Errors
- Issue: Cannot write to directory
- Solution: Ensure the website user has proper permissions
-
Blank Page After Installation
- Issue: Missing PHP extensions
- Solution: Check error logs and install missing extensions
-
Emails Not Sending
- Issue: Cron jobs not configured
- Solution: Set up the required cron jobs as shown above
Checking Installation Logs
To debug issues:
- Check CyberPanel logs:
tail -f /home/cyberpanel/error-logs.txt
Maintenance Tasks
Regular Maintenance
-
Clear Cache:
php bin/console cache:clear -
Update Database Schema:
php bin/console doctrine:schema:update --force -
Maintenance Mode (during updates):
php bin/console mautic:maintenance:enable php bin/console mautic:maintenance:disable
Updating Mautic
To update Mautic to a newer version:
- Backup your installation first
- Enable maintenance mode
- Run update command:
php bin/console mautic:update:find php bin/console mautic:update:apply - Clear cache
- Disable maintenance mode
Getting Help
Resources
- Mautic Documentation: https://docs.mautic.org/
- Mautic Community: https://community.mautic.org/
- CyberPanel Forums: https://community.cyberpanel.net/
- GitHub Issues: https://github.com/mautic/mautic/issues
Support Channels
- CyberPanel Support: For installation issues
- Mautic Community: For Mautic-specific questions
- Professional Support: Available from Mautic partners
Conclusion
The CyberPanel Mautic installer streamlines the deployment of this powerful marketing automation platform. With automatic PHP configuration, database setup, and web server optimization, you can have Mautic running in minutes. Remember to complete the post-installation configuration, especially setting up cron jobs, to ensure all features work correctly.
For optimal performance, regularly maintain your Mautic installation and keep both CyberPanel and Mautic updated to their latest versions.