Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

This forum is for issues with installing Joomla! 3.x on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
jasondogor
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 16, 2018 10:40 pm

Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by jasondogor » Wed Apr 18, 2018 4:49 pm

Hello Guys, after a backup restore from Apache to IIS, the site loads correctly, the database connection works fine and the main page and the login administrator page are accesible.

However, when i tried to access with the administrator account, appears HTTP error 500 in different browsers.
I've been searching solutions for two days. In some threads people suggest enable $error_reporting to development and enable debugging on the configuration.php file. After that, i tried to access again and appears a blank page, there is no log registered.

Another think that i checked is the htaccess file. I imported succesfully in IIS using the URL Rewrite component on IIS.

I tried again restore the site on RedHat Server with apache and it works without problems.

It is possible a related problem with the OS version? or PHP Version? or there is a possible configuration that i missed during the restore process? Thanks in advance guys!

gws
Joomla! Champion
Joomla! Champion
Posts: 5932
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by gws » Wed Apr 18, 2018 4:51 pm

On IIS you use the web.config.txt file and not .htaccess

jasondogor
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 16, 2018 10:40 pm

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by jasondogor » Wed Apr 18, 2018 4:53 pm

gws wrote:On IIS you use the web.config.txt file and not .htaccess
Done, the URL rewrite component on IIS turn the rules in .htaccess file into rules inside of web.config file. But the problem persists.

gws
Joomla! Champion
Joomla! Champion
Posts: 5932
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by gws » Wed Apr 18, 2018 4:57 pm

I would try using the default web.config file that comes with joomla rather than importing from htaccess,they are very different.

gws
Joomla! Champion
Joomla! Champion
Posts: 5932
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by gws » Wed Apr 18, 2018 5:02 pm

This is what it should look like.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path=".">
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Joomla! Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{QUERY_STRING}" pattern="base64_encode[^(]*\([^)]*\)" ignoreCase="false" />
<add input="{QUERY_STRING}" pattern="(>|%3C)([^s]*s)+cript.*(<|%3E)" />
<add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
<add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
</conditions>
<action type="CustomResponse" url="index.php" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Joomla! Rule 2">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/index.php" ignoreCase="true" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
</configuration>

jasondogor
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 16, 2018 10:40 pm

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by jasondogor » Wed Apr 18, 2018 5:10 pm

gws wrote:I would try using the default web.config file that comes with joomla rather than importing from htaccess,they are very different.
Recently follow your instructions, restarting the IIS service, however the problem persists. I used the web.config file of the package version downloaded directly from Joomla.

gws
Joomla! Champion
Joomla! Champion
Posts: 5932
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by gws » Wed Apr 18, 2018 5:16 pm

Don't know then. Often with IIS and joomla permissions play a role but that's a guess.Good luck

jasondogor
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 16, 2018 10:40 pm

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by jasondogor » Wed Apr 18, 2018 5:58 pm

gws wrote:Don't know then. Often with IIS and joomla permissions play a role but that's a guess.Good luck
Thanks, definitely i need luck to solve this. There is no enough official documentation to set permissions on Folders using IIS.

If you have any additional idea, please let me know! ;)

gws
Joomla! Champion
Joomla! Champion
Posts: 5932
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by gws » Wed Apr 18, 2018 6:09 pm

Again just fishing,blank page is often a php error,are the php modules the same on IIS as they were on apache?

jasondogor
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 16, 2018 10:40 pm

Re: Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page

Post by jasondogor » Wed Apr 18, 2018 8:43 pm

gws wrote:Again just fishing,blank page is often a php error,are the php modules the same on IIS as they were on apache?
I found the solution. The problem was related with a component called JMApMyLDAP authentication. I disabled it directly from the database and the login works. Now i Need to configure SSO :)
Thanks for your help.

Jason.


Locked

Return to “Joomla! 3.x on IIS webserver”