# Install on Azure websites issues

**URL:** <https://forum.mautic.org/t/install-on-azure-websites-issues/1762>\
**Category:** Development\
**Created:** [April 20, 2015, 10:38am UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762 "2015-04-20T10:38:26Z")\
**Posts on this page:** 15\
**Page:** 1

<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:** [April 20, 2015, 10:38am UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/1 "2015-04-20T10:38:26Z")

</div>

Hello,  
  
  
  
I installed Mautic on an Azure website ( [http://azure.microsoft.com/](http://azure.microsoft.com/) ) and received a 500 error.  
  
I think that the cause is: IIS was not able to access the web.config file needed for the Web site.  
  
  
  
Detailed Error Information:  
  
Module FastCgiModule  
  
Notification ExecuteRequestHandler  
  
Handler PHP54\_via\_FastCGI  
  
Error Code 0x00000000  
  
Requested URL [http://mywebsite:80/index.php/](http://mywebsite:80/index.php/)  
  
Physical Path ![D:]( "D:")homesitewwwrootindex.php  
  
Logon Method Anonymous  
  
Logon User Anonymous  
  
  
  
Please create a web.config that can do the UrlRewrite and other stuff from .HTACCESS.  
  
  
  
In the following link are some detail to document the issue:  
  
Paragraph: .HTACCESS VS. WEB.CONFIG URL REWRITE  
  
[http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx](http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx)  
  
  
  
On another hand, Mautic was tested with Azure SQL?  
  
  
  
Thank you in advance.  
  
Gabriel

---

<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:** [April 20, 2015, 10:38am UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/2 "2015-04-20T10:38:26Z")

</div>

Hello,

I installed Mautic on an Azure website ( [http://azure.microsoft.com/](http://azure.microsoft.com/) ) and received a 500 error.  
I think that the cause is: IIS was not able to access the web.config file needed for the Web site.

Detailed Error Information:  
Module FastCgiModule  
Notification ExecuteRequestHandler  
Handler PHP54\_via\_FastCGI  
Error Code 0x00000000  
Requested URL [http://mywebsite:80/index.php/](http://mywebsite:80/index.php/)  
Physical Path D:homesitewwwrootindex.php  
Logon Method Anonymous  
Logon User Anonymous

Please create a web.config that can do the UrlRewrite and other stuff from .HTACCESS.

In the following link are some detail to document the issue:  
Paragraph: .HTACCESS VS. WEB.CONFIG URL REWRITE  
[http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx](http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx)

On another hand, Mautic was tested with Azure SQL?

Thank you in advance.  
Gabriel

---

<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:** [April 20, 2015, 7:30pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/3 "2015-04-20T19:30:44Z")

</div>

Any update? 🙂

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [April 21, 2015, 12:30pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/4 "2015-04-21T12:30:52Z")

</div>

As far as I know we haven’t tested Mautic on Azure. Its worth trying but no has done it yet. There are drivers for MSSql which I suppose in theory that should work just fine. I might try playing around with it, but the web.config file is definitely not included with Mautic so if that’s needed to make URL rewrites work that’ll have to be sorted out by someone who knows the Azure environment.

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [April 21, 2015, 8:43pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/5 "2015-04-21T20:43:58Z")

</div>

Alright

Even though I said that this hasn’t been attempted I couldn’t leave well enough alone and had to go ahead and try to make it work!

So, my biggest obstacles so far have been:

1. How in the world do you set up something like composer to run on Azure? I see some links about command line SDK which I installed, but working in a world where I can’t simply do php composer.phar is a really sad place. Have you figured out how to best get Mautic and all the vendor libraries running?

2. What kind of Azure set up do you have running? I went and created a ‘custom web app’ as recommended by Symfony:

[http://symfony.com/doc/current/cookbook/deployment/azure-website.html](http://symfony.com/doc/current/cookbook/deployment/azure-website.html)

Any advice you can give me so that as I try this I can get over the early azure hurdles?

---

<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:** [April 22, 2015, 6:35pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/6 "2015-04-22T18:35:17Z")

</div>

First of all, thank you Chad for your involvement.

Also, i want to say that I am not a PHP dev.

1. I have installed Mautic using the .zip file from [https://www.mautic.org/download](https://www.mautic.org/download) . This file contain complete instalation. You can upload the files on the Azure server in several modes:

- upload using ftp the .zip on server and unzip using the Kudu service console
- upload the unziped files directly on server
- unzip the .zip in a local folder and publish on the server using WebMatrix ( a dev tool; can sync files from local folder with the files from server).

The Kudu console can be found at:  
https://[your-website-name].scm.azurewebsites.net  
after you created the application.

As you can see, i have not used the composer and git deployment.

1. Web app creation:  
Yes, is ok the “custom web app”.  
You have following options:

For the website:  
a. you can use 10 free websites, with some limitations  
b. as long as you are in trial period, you can setup more powerfull versions ( shared, basic or standard)  
In this way you can have an account for testing Mautic in the future for free.

For the database:  
a. you can use Azure SQL ( this is a MSSQL with almost all features and with many benefits as a cloud service) - free for trial period  
b. you can use a MySQL database provided by a 3rd party - ClearDB ( a 20 mb database is free)  
c. you can setup a VM for a MySQL server ( using any OS ) and create a database from there. In this case you lose the advantages of the cloud concept ( automatic backup, updates, … ).

As far as i see that Mautic supports also IIS + MSSQL ( [https://www.mautic.org/download/requirements](https://www.mautic.org/download/requirements) ), you can use as database Azure SQL or MySql.  
…  
In my Mautic instalation i use Azure SQL, but beacause i have not passed the install process, i can’t tell if there are some issues with the database use.

…

As far i understand, is needed to meke these steps ( also as in [http://symfony.com/doc/current/cookbook/deployment/azure-website.html](http://symfony.com/doc/current/cookbook/deployment/azure-website.html) ):

1. Create Web Site  
2: Create new MySQL or AzureSQL Database - // using AzureSQL has some major benefits in production in Azure context setup
2. Configuring the Azure Website for Symfony - from control panel + Kudu

- latest PHP Runtime
- php.ini Configuration Settings
- Enabling the PHP intl Extension // or other extension needed and not activated

1. Upload files on server using FTP ( with complete dependencies done before uploading ) // as i posted above, in the root of the website  
or  
4’. Upload files using git + composer, as in [symfony.com](http://symfony.com) tutorial
2. Configure the Web Server // create the web.config as in:  
[http://symfony.com/doc/current/cookbook/deployment/azure-website.html](http://symfony.com/doc/current/cookbook/deployment/azure-website.html)  
And  
Paragraph: .HTACCESS VS. WEB.CONFIG URL REWRITE from [http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx](http://www.hanselman.com/blog/InstallingSendyAPHPAppOnWindowsAzureToSendInexpensiveNewsletterEmailViaAmazonSES.aspx)

As a final word, i think that you will find usefull:  
From control panel:  
WebApp \> [yourwebapp name] \> Configure\>  
Activate: Application Diagnostics and Site Diagnostics ( use the file system to store the logs)  
Then you can connect using FTP in order to read these files.

If you need any other information, please ask me.

Regards,  
Gabriel

---

<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:** [April 29, 2015, 6:32pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/7 "2015-04-29T18:32:47Z")

</div>

Chad , is there any progress in this issue?

Regards,  
Gabriel

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [April 30, 2015, 7:30pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/8 "2015-04-30T19:30:55Z")

</div>

Hi Gabriel

Sorry I haven’t had a chance to get back to this yet after my first attempt. I’ll try again this weekend!

---

<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:** [May 1, 2015, 12:05pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/9 "2015-05-01T12:05:33Z")

</div>

Hi Chad,

If you think necessary, we can discuss online when you working on this issue. In this case, send me an email. Regarding time zone: I live in Europe.

Regards,  
Gabriel

---

<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:** [May 15, 2015, 4:13pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/10 "2015-05-15T16:13:10Z")

</div>

Any update?

---

<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 2, 2016, 4:02pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/11 "2016-02-02T16:02:40Z")

</div>

Hi, I managed to make it work on Azure Websites, if you have any question I can help.

---

<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 2, 2016, 4:52pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/12 "2016-02-02T16:52:34Z")

</div>

Thank you, @oriolqc ! I suggest you to write a step-by-step short guide, as i saw also your post related to "IIS Rewrite rules ". Maybe there are more people interested in this matter. I will try to install Mautic in the next days.

---

<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:37am UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/13 "2016-02-04T10:37:51Z")

</div>

Done! Find it here: [https://www.mautic.org/community/index.php/2667-installing-mautic-on-azure-websites](https://www.mautic.org/community/index.php/2667-installing-mautic-on-azure-websites)

---

<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:51am UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/14 "2016-02-04T10:51:39Z")

</div>

Great! Thank you @oriolqc !

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/install-on-azure-websites-issues/1762/15 "2020-02-02T22:59:57Z")

</div>


