Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page
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
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
-
- Joomla! Apprentice
- Posts: 7
- Joined: Mon Apr 16, 2018 10:40 pm
Apache on Linux to IIS 10 on Windows Server 2016 - Blank Page
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!
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!
-
- 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
On IIS you use the web.config.txt file and not .htaccess
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- 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
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 wrote:On IIS you use the web.config.txt file and not .htaccess
-
- 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
I would try using the default web.config file that comes with joomla rather than importing from htaccess,they are very different.
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- 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
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>
<?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>
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- 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
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 wrote:I would try using the default web.config file that comes with joomla rather than importing from htaccess,they are very different.
-
- 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
Don't know then. Often with IIS and joomla permissions play a role but that's a guess.Good luck
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- 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
Thanks, definitely i need luck to solve this. There is no enough official documentation to set permissions on Folders using IIS.gws wrote:Don't know then. Often with IIS and joomla permissions play a role but that's a guess.Good luck
If you have any additional idea, please let me know!
-
- 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
Again just fishing,blank page is often a php error,are the php modules the same on IIS as they were on apache?
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- 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
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 SSOgws wrote:Again just fishing,blank page is often a php error,are the php modules the same on IIS as they were on apache?
Thanks for your help.
Jason.