# Install Problems on PHP on IIS

**URL:** https://forum.mautic.org/t/install-problems-on-php-on-iis/26940
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [February 3, 2023, 2:55am UTC](https://forum.mautic.org/t/install-problems-on-php-on-iis/26940 "2023-02-03T02:55:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![scarfie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/scarfie/32/9041_2.png) [@scarfie](https://forum.mautic.org/u/scarfie)
#### Post date: [February 3, 2023, 2:55am UTC](https://forum.mautic.org/t/install-problems-on-php-on-iis/26940/1 "2023-02-03T02:55:28Z")

</div>

My PHP version is: 7.4.33  
My MySQL version is: 8.0.32  
I am: Installing via Web (from the zip downloaded zip folder)

These errors are showing in the installer:

## The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.

#### System administrators, check server logs for errors.

There is nothing in the server error logs. Empty.

These errors are showing in the Mautic log:  
where is the Mautic log?

I am trying to install on PHP running in IIS on Windows. I’ve set permissions on the mautic folder, I can access the mautic site via https. I have tested that PHP is running on the server. I have tested that PHP is able to connect to mysql on the server.

Not sure what to try next. Any help is appreciated. Thank you.

---

<div class="post-metadata">

### Author: ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)
#### Post date: [February 3, 2023, 8:48am UTC](https://forum.mautic.org/t/install-problems-on-php-on-iis/26940/2 "2023-02-03T08:48:11Z")

</div>

EDITED:  
Did you complete the installation or the error is before starting?

This comes after install:  
Did you add the rewrite rules in the web.config?  
I am not 100% it is correct but…

I think this needs to be inside  
\<system.webServer\>  
.  
.  
.  
.

```
    <rewrite>
        <rules>
            <rule name="myrule 1">
                <match url=".*" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{HTTP_AUTHORIZATION}" pattern=".+" ignoreCase="false" />
                </conditions>
                <action type="None" />
            </rule>
            <rule name="myrule 2">
                <match url="^(.*)" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{URL}::{R:1}" pattern="^(/.+)/(.*)::2$" ignoreCase="false" />
                </conditions>
                <action type="None" />
            </rule>
            <rule name="myrule 3" stopProcessing="true">
                <match url="^index.php(/(.*)|$)" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{REDIRECT_STATUS}" pattern="^$" ignoreCase="false" />
                </conditions>
                <action type="Redirect" url="{BASE}/{R:2}" redirectType="Permanent" />
            </rule>
            <rule name="myrule 4" stopProcessing="true">
                <match url=".?" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                </conditions>
                <action type="None" />
            </rule>
            <rule name="myrule 5" stopProcessing="true">
                <match url=".?" ignoreCase="false" />
                <action type="Rewrite" url="{BASE}/index.php" />
            </rule>
        </rules>
    </rewrite>

```

\</system.webServer\>

---

<div class="post-metadata">

### Author: ![scarfie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/scarfie/32/9041_2.png) [@scarfie](https://forum.mautic.org/u/scarfie)
#### Post date: [February 7, 2023, 1:20am UTC](https://forum.mautic.org/t/install-problems-on-php-on-iis/26940/3 "2023-02-07T01:20:42Z")

</div>

Thanks for the help Kongo. The installation never started. I am trying to get to the initial setup after uploading the files to the server, and accessing the site via HTTPS for the first time.

I had no idea about the rewrites. I just added them but no luck.

Server logs from the request:

2023-02-07 01:08:15 108.59.7.89 GET /index.php - 443 - 104.186.144.127 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/109.0.0.0+Safari/537.36 - 301 0 0 112

2023-02-07 01:08:15 108.59.7.89 GET / - 443 - 104.186.144.127 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/109.0.0.0+Safari/537.36 - 302 0 0 233

2023-02-07 01:08:15 108.59.7.89 GET /index.php/installer - 443 - 104.186.144.127 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/109.0.0.0+Safari/537.36 - 301 0 0 58

2023-02-07 01:08:16 108.59.7.89 GET /installer - 443 - 104.186.144.127 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/109.0.0.0+Safari/537.36 - 500 0 0 712
