Skip to content


Yukihiko SAWANOBORI edited this page Jul 12, 2016 · 15 revisions


Mautic for AMI.


  • Amazon Linux 2015.09.2
  • httpd 2.4.x
  • php 5.6.x
  • mysql 5.6.x

Log in via Web

(Newer than 1.2.4)

First, visit by browser.

  • https://${public_hostname}

Please fill box with your instnace_id and push Next Step to unlock.

After unlock, you can log in by user: admin password: mautic.

(Before 1.2.3)

  • https://${public_hostname}
    • Administrator Login: admin / YOUR_INSTANCE_ID

Manage Service

httpd process

service httpd (start|stop|status)

mysql process

service mysqld (start|stop|status)

MySQL Admin Login: root / YOUR_INSTANCE_ID

Configuration example

Setup mail with SES



Verify sender address

Must use us-east-1 region.

  1. Open SES Dashboard.
  2. Switch TAB to Email Address.
  3. Click Verify a New Email Address and fill address.
  4. Retrieve mail which was sent from AWS.

This opration is need by all sender addresses(Mautic user).

Create SMTP Setting
  1. Open SES Dashboard.
  2. Switch TAB to SMTP Settings.
  3. Click Create My SMTP Credentials. This operation creates new IAM user.
  4. Save User SMTP Security Credentials.

Mautic Setup

  1. Open Configuration and choose Email Settings by admin user.
  2. Fill fields below.
    • Name to send mail as: Sender Name.
    • E-mail address to send mail from: Verified sender address by SES.
    • Service to send mail through: Amazon SES
    • Username for the selected mail service: SES SMTP Username
    • Password for the selected mail service: SES SMTP Password

Use RDS as Backend Database.

  1. Modify /var/www/html/app/config/local.php with RDS connection string.
  2. cd to /var/www/html/ and run commands to setup DB following.
$ sudo -u apache /usr/bin/php app/console doctrine:database:create --env=prod --no-interaction
$ sudo -u apache /usr/bin/php app/console doctrine:migrations:status --env=prod --no-interaction
$ sudo -u apache /usr/bin/php app/console doctrine:schema:create --env=prod --no-interaction
$ sudo -u apache /usr/bin/php app/console doctrine:migrations:migrate --env=prod --no-interaction
$ sudo -u apache /usr/bin/php app/console doctrine:fixtures:load --env=prod --fixtures=app/bundles/InstallBundle/InstallFixtures/ --no-interaction

Or, use mysqldump and import to replace if you have to migrate your data.


How to use signed certificates ?

The moodle AMI provides https with Self-Signed-Certificates by default. If you want to use your certificates, please replace like below steps.

  1. Upload your pemset to an instance.
  2. edit lines of /etc/httpd/conf.d/ssl.conf
    • SSLCertificateFile
    • SSLCertificateKeyFile
    • SSLCertificateChainFile(optional)
  3. restart httpd by service httpd restart

How to upgrade to latest version?


Log in Mautic as Administrator. You can see upgrade announce if exist newer version.


You can upgrade Mautic to latest version by CLI.

Update Mautic manually - Mautic Community

  1. Please log in your instance via SSH. (user=ec2-user)
  2. Change role to root.
    • sudo -s
  3. Change current directory to /var/www/html.
    • cd /var/www/html
  4. Detect latest version.
    • sudo -u apache php ./app/console mautic:update:find -e prod
  5. Upgrade to latest version.
    • sudo -u apache php ./app/console mautic:update:apply -e prod

There is a problem site in Mautic after upgrade

Probably, due to old cache. Please clear cache by below command.

cd /var/www/html
sudo -u apache php app/console cache:clear --env=prod

Social Monitoring Doesn't work?

You should setup Twitter integration.

[Settings] => [Plugins] => [Install/Upgrade Plugins] => [Twitter]

Clone this wiki locally
You can’t perform that action at this time.