# Installing Mautic on Azure Websites

**URL:** <https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384>\
**Category:** Product Support\
**Created:** [February 4, 2016, 10:26am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384 "2016-02-04T10:26:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oriolqc](https://avatars.discourse-cdn.com/v4/letter/o/e56c9b/32.png) [@oriolqc](https://forum.mautic.org/u/oriolqc)\
**Post date:** [February 4, 2016, 10:26am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/1 "2016-02-04T10:26:52Z")

</div>

Hi,  
  
  
  
This is a quick install guide for Azure Websites. The purpose is make it grow within this thread. I will appreciate any contribution to it.  
  
  
  
Install steps:

1. Log in to Azure Portal with your account (you must have a Credit Card associated, won’t work with Open Subscriptions)  
2. Create a ClearDB MySQL Database. I selected the Venus Plan (10$/month). Log in and note down the connection data (server, user and password).  
3. Create a Web App, and note down the FTP connection parameters. For example, let’s say we have created [http://mautic.azurewebsites.net](http://mautic.azurewebsites.net)  
4. Download Mautic and unzip it  
5. Upload via FTP the Mautic files  
6. Browse the website ([http://mautic.azurewebsites.net](http://mautic.azurewebsites.net)). Follow the wizard. Provide the ClearDB connection data when required. Let the wizard run.  
  
  
  
At this point you should be running Mautic on Azure Websites. However if you try to browse the URL [http://mautic.azurewebsites.net](http://mautic.azurewebsites.net) it won’t work unless you add /index.php at the end. To overcome this problem create a web.config file with the contents below (IIS Rewrite Rules and mime types) and upload it to the root folder where you uploaded Mautic:  
  
  

\<?xml version="1.0" encoding="utf-8" ?\>  

\<system.web\>  
  
  
  
\</system.web\>  
  
\<system.webServer\>  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
\</system.webServer\>  
  
  
  
  
  
There is still an issue to solve: the performance is not good, I suppose because of the connection with ClearDB. I keep investigating, if anyone discover the solution I will appreciate if he/she can post it.

---

<div class="post-metadata">

**Author:** ![oriolqc](https://avatars.discourse-cdn.com/v4/letter/o/e56c9b/32.png) [@oriolqc](https://forum.mautic.org/u/oriolqc)\
**Post date:** [February 4, 2016, 10:26am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/2 "2016-02-04T10:26:52Z")

</div>

Hi,

This is a quick install guide for Azure Websites. The purpose is make it grow within this thread. I will appreciate any contribution to it.

Install steps:

1. Log in to Azure Portal with your account (you must have a Credit Card associated, won’t work with Open Subscriptions)
2. Create a ClearDB MySQL Database. I selected the Venus Plan (10$/month). Log in and note down the connection data (server, user and password).
3. Create a Web App, and note down the FTP connection parameters. For example, let’s say we have created [http://mautic.azurewebsites.net](http://mautic.azurewebsites.net)
4. Download Mautic and unzip it
5. Upload via FTP the Mautic files
6. Browse the website ([http://mautic.azurewebsites.net](http://mautic.azurewebsites.net)). Follow the wizard. Provide the ClearDB connection data when required. Let the wizard run.

At this point you should be running Mautic on Azure Websites. However if you try to browse the URL [http://mautic.azurewebsites.net](http://mautic.azurewebsites.net) it won’t work unless you add /index.php at the end. To overcome this problem create a web.config file with the contents below (IIS Rewrite Rules and mime types) and upload it to the root folder where you uploaded Mautic:

\<?xml version="1.0" encoding="utf-8" ?\> 

There is still an issue to solve: the performance is not good, I suppose because of the connection with ClearDB. I keep investigating, if anyone discover the solution I will appreciate if he/she can post it.

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forum.mautic.org/u/Gabriel)\
**Post date:** [February 4, 2016, 10:58am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/3 "2016-02-04T10:58:24Z")

</div>

In the next days I will install Mautic using a mysql db from a dedicated VM, and I will post here the conclusion. On another hand, for Web App you use the shared plan or a dedicated one?

---

<div class="post-metadata">

**Author:** ![Terkhos](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Terkhos](https://forum.mautic.org/u/Terkhos)\
**Post date:** [March 9, 2016, 3:01pm UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/4 "2016-03-09T15:01:15Z")

</div>

Actually there’s a problem, i don’t know if it’s only on the latest build but you only work with URLs that have 2 blocks line `/s/dashboard` but the system also work on 3 and 4 blocks URLS like `/s/leads/new` and `/s/leads/edit/1` and your rules will fail on these situations.

I have created a little hack to work this around that is create the same rule with 1, 2, 3 and 4 blocks like this one: `^([_0-9a-zA-Z-]+)/([_0-9a-zA-Z-]+)/([_0-9a-zA-Z-]+)$`.

As i said this is a hacky solution and as far as i know Regex does allow the configuration of repeating blocks so it would only be necessary to create one rule to get all blocks but i’m no expert on it.

Also in my case it was necessary to add a file verification to remove the file routing through these rules:

`<rule name="Rewrite to index.php 2">
      <match url="^([_0-9a-zA-Z-]+)?(/[_0-9a-zA-Z-]+)?$" ></match>
      <conditions>
            <add input="{URL}" negate="true" pattern="index.php(.*)" ></add>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" ></add>
      </conditions>
      <action type="Rewrite" url="index.php/{R:1}/{R:2}" ></action>
</rule>`

This solution works also on hosts outside Azure, it will work on anything that has a web.config.

---

<div class="post-metadata">

**Author:** ![claudiom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/claudiom/32/628_2.png) [@claudiom](https://forum.mautic.org/u/claudiom)\
**Post date:** [March 25, 2021, 8:44am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/5 "2021-03-25T08:44:20Z")

</div>

Hi guys, this doesn’t work for me ☹ . The install process seems good but after SMTP configuration (step 3 of installation process) i receive the message as in picture

 ![Schermata 2021-03-25 alle 09.41.50](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7f5b00555fd9dcdb96f06a923940e18289cabe09.png)  
the same if i can go to [https://mautic.retedoc.net/s/login](https://mautic.retedoc.net/s/login)  
any suggestion ? thanks a lot

---

<div class="post-metadata">

**Author:** ![claudiom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/claudiom/32/628_2.png) [@claudiom](https://forum.mautic.org/u/claudiom)\
**Post date:** [March 29, 2021, 7:46am UTC](https://forum.mautic.org/t/installing-mautic-on-azure-websites/3384/6 "2021-03-29T07:46:34Z")

</div>

anyone can help me please??? Thanks !!!
