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.
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>
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