• Discussion
  • After Install mautic when I press send mail it go to spam folder.

Here you go the Mautic 3.0.2 installation document. Feel free to reach out for questions. Would love to answer them.

How to install Mautic 3.0 on AAPanel.

Step1. We need to download Mautic 3.0.2 from Mautic.org/download.
Step2. Prepare the domain/subdomain we are hosting it. (Ensure the A records are pointing and SSL is issued)
Step3. Minimum Requirements: https://www.mautic.org/blog/community/mautic-3-is-coming
Step4: Upload 3.0.2 zip on the website/subdomain we created.

Step5: Go to domain/subdomain on a browser and you should see the installer.
Step 6. Run the installer (Since, It’s a new installation, I am not backing up the DB)

Step 7: After giving your DB info. There is a high chance to get a 500 server error. If you come across any such errors. Its solely due to the file permissions. Ensure you have the permissions correct.
An easy command that you can use on the terminal to fix it would be
Ensure you cd to the websitefolder wwwroot/domain.com first and then type.
chmod -R g+w app
chmod -R g+w media/files/ media/images/ translations/
Once you do that, it should work fine.
Step7: You should now be able to refresh and reach the next page.

You will need to give your Admin username and password.
Your first name and last name and email address and it should take you to the next page /3
Here you would be asked to configure your email SMTP. I use AWS SES here.
Then Hit NEXT> You should redirect to the login page and should be able to login.
Next is to setup php cron jobs for the Mautic to work properly.
Once you login go to the settings gear icon on the top right.

You will need to click on configuration and check the patch to the installation and cache directory.
You also have to note that with Mautic 3.0.2 you have to cron using bin/console and not app/console.
You will need to go ahead to cron on AApanel and set up shell crons
This will be the syntax for the same considering you are using PHP 7.3
/www/server/php/73/bin/php /www/wwwroot/domain.com/bin/console mautic:segments:update
/www/server/php/73/bin/php /www/wwwroot/domain.com/bin/console mautic:email:fetch
/www/server/php/73/bin/php /www/wwwroot/domain.com/bin/console mautic:campaigns:trigger

You should be ready to send out emails from campaigns now.
😊 Good luck!
Don’t Spam and Be Responsible.
(Once everything works fine, remove the 3.0.2.zip from your wwwroot folder.)

I have only tried it with AWS SES at the moment and it works fine. I have never used an AAPanel Mail server as I feel if my ip gets blacklisted, I will lose out on the SEO of my websites too. I stick to AWS SES (Cheap and reliable)

All the best! Feel free to ask questions if you come across errors.

@aaPanel_Jose : Please feel free to share your opinions on this if you can run a test installation of Mautic 3.0.2 on AAPanel.

    pradhan You might also need to delete putenv() if not done yet.

    Best tutorial. You are the man. I will write tutorial for mautic 2.16.3. I started but my pc reboot T_T and i lost my notes.

      Thanks a lot roniel
      Yea please do write one for 2.XX.XX it would help others too.

      Tutorial mautic 2.16.3

      1- Use a recomended server for aapanel Centos 7.1+. I use Centos 7.6 x64;
      2-Acess the server as root and install the aapanel script;
      'yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh'
      Press "yes" ou "y" in all steps.

      3- Acesse the login information create by server

      Congratulations! Installed successfully!

      aaPanel Internal Address: https://158.245.46.84:8888/2c931050
      username: iwglcas5zv

      password: 8e5505b3d

      3- When logging into the panel, install the essential services to run your mautic on the server.
      Install this services. I prefer ngix, but you can also use apache 2.4

      4- Enable the 'putenv()' funcion in your server. for security reasons this function is disabled natively
      App Store > php 7.3 setting > disabled funcions > find "putenv" and clique 'del'.

      5- Install fileinfo extention. App Store > php 7.3 setting >Install extensions > choice install 'fileinfo';

      6- Add your domain to create your webroot. Website > Addsite

      7- Download your mautic.
      Go to webroot, del index. html. Clique in "remote download" and download the mautic version on webroot:
      'https://github.com/mautic/mautic/releases/download/2.16.3/2.16.3.zip'

      8-- Uncompress files in your directory;

      9- Set file permission to execute the installer:

      chmod 770 * -R
      or set

      If you want, save default premission before changes;

      10- Create your database;
      Database > Add database > create name, login and password
      10- Run installer
      11- Good job and be happy;

        roniel
        It would be great if your reply could be published as a tutorial post or I can post it for you 🙂

          aaPanel_Jose

          eu pretendo publicar no meu site para ajudar a comunidade. A versão em inglês e em português. Gostei muito do painel e vou ajuda-lo a crescer. o texto que escrevi pode ser melhorado e publicado na documentação.

          vamos aprender muito juntos e a partir das discussões do forum, vamos criando a documentação.

          sou feliz em fazer parte dessa comunidade.
          I plan to post on my website to help the community. The English and Portuguese versions. I really liked the panel and I will help you grow. the text I wrote can be improved and published in the documentation.

          we will learn a lot together and from the forum discussions, we will create the documentation.

          I am happy to be part of that community.

          roniel Haha, Thanks a lot @roniel . I really appreciate and am thankful for the credits. However, You are completely fine sending the tutorial. I am just here to help. 🙂 and get help.

          9 months later

          I set 770 permissions to folders but I still getting error 500

          a year later
          3 months later