# AWS EC2 Complete Setup with SSL and Cron Jobs

**URL:** https://forum.mautic.org/t/aws-ec2-complete-setup-with-ssl-and-cron-jobs/21549
**Category:** Product Support
**Created:** [November 8, 2021, 2:17am UTC](https://forum.mautic.org/t/aws-ec2-complete-setup-with-ssl-and-cron-jobs/21549 "2021-11-08T02:17:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dwayne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dwayne1/32/934_2.png) [@dwayne1](https://forum.mautic.org/u/dwayne1)
#### Post date: [November 8, 2021, 2:17am UTC](https://forum.mautic.org/t/aws-ec2-complete-setup-with-ssl-and-cron-jobs/21549/1 "2021-11-08T02:17:38Z")

</div>

Just wondering if there is a complete setup guide to install Mautic on AWS EC2? I know enough to get me in trouble, but not enough to do a complete install.

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![ledzee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ledzee/32/4252_2.png) [@ledzee](https://forum.mautic.org/u/ledzee)
#### Post date: [November 9, 2021, 1:02am UTC](https://forum.mautic.org/t/aws-ec2-complete-setup-with-ssl-and-cron-jobs/21549/2 "2021-11-09T01:02:27Z")

</div>

Hi, there are multiple tutorials. But it also depends on your use case.  
The easiest is to dedicate the instance to only Mautic on port 80 and then slowly add subdomains, if needed.  
In that case you would just install LAMP on the instance, create the database and unzip Mautic package in /var/www/html I think. Then the installation wizard should take you through the steps. Also the port would need to be opened.  
Do you have a domain in mind for the Mautic instance? Are you looking to use SSL from LetsEncrypt or Cloudflare?

---

<div class="post-metadata">

### Author: ![dwayne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dwayne1/32/934_2.png) [@dwayne1](https://forum.mautic.org/u/dwayne1)
#### Post date: [November 24, 2021, 10:42pm UTC](https://forum.mautic.org/t/aws-ec2-complete-setup-with-ssl-and-cron-jobs/21549/3 "2021-11-24T22:42:03Z")

</div>

Thank you for your response. My apologies I thought I had responded to this earlier. I was able to get mautic installed via this install guide.

> **[Secure, production-ready Mautic installation in 2024](https://mauteam.org/mautic/mautic-installation/securing-your-mautic-installation/)**
>
> A basic but production-ready Mautic installation with SSL certificate and slightly secured database, that you can run for a small production server.

AWS EC2  
Mautic 4.02  
Ubuntu 20.04  
Php 7.43  
SQL 5.2 (I believe) Says Distrib 10.3.31-MariaDB  
I then went on to install the cron jobs via the process at the end of the guide. I am getting a server error in regards to my cron jobs.

My cron jobs according to the install look like this:

# Cron jobs for Mautic 2

#\* \* \* \* \* php /var/www/html/app/console mautic:segments:update  
#\* \* \* \* \* php /var/www/html/app/console mautic:campaigns:update  
#\* \* \* \* \* php /var/www/html/app/console mautic:campaigns:trigger

# 

# Cron jobs for Mautic 3

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:segments:update

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:campaigns:update

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:campaigns:trigger

I get the following error, it looks the same for all three cron jobs.

mautic:segments:update (uncaught exception) at /var/www/html/vendor/symfony/console/Application.php line 676 while running console command `UNKNOWN`

Can anyone help? So close now lol.
