Empty page is loading instead of a website

Hello,

I have PHP/MySQL website on a dedicated Windows Server 2008 server.

It worked just fine for few years, but few days ago I get empty page instead of a website.

Firebug shows “200 OK” net status, so there is no any 404 or 500 error, but HTML source is empty…

For example: http://roamearth.com/en/

I’ve checked PHP error log and check all MySQL tables, everything is ok.

I wonder what it can be? How can I fix this?

You say that it worked up until a few days ago, did you change anything to do with the server configuration around about then?

No, I did absolutely nothing for about a month.

Anyone please? I still can’t find a reason for this.

What can it be?

<?php
$server_version            = $_SERVER['SERVER_SOFTWARE'];
$php_version            = phpversion();
$link                    = mysqli_connect("localhost", "db_user_name", "db_password");
$mysql_server_version    = mysqli_get_server_info($link);

echo "
    <p>The server (Version: $server_version) is running the following versions of PHP and MySQL:</br>
    PHP: $php_version</br>
    MySQL: $mysql_server_version</p>
    ";
?>

Try that script (substituting “db_user_name” and “db_password” for the appropriate values. Are the versions echoed at all?

Did windows auto install any updates around the time the problem started?

I had a similar problem. Host had reset my database passwords and changed versions of PHP to PHP5. Both led to problems.

have you tried restarting the server? is apache running? php? mysql? pop open a terminal and do some digging.

I have IIS instead of apache and it’s running. PHP/MySQL working too.

You said about terminal. How can I run it and what can I do to find a reason?

The code returns this:

The server (Version: Microsoft-IIS/7.0) is running the following versions of PHP and MySQL:
PHP: 5.2.9-2
MySQL: 5.1.34-community

Did windows auto install any updates around the time the problem started?

Nope, auto updates aren’t allowed on my server. Windows just reminds me about available updates.

My PHP version is 5.

What is the error_reporting set to in php.ini ? Anything unusual in Windows Server 2008 server’s error logs?

error_reporting = E_ALL

Anything unusual in Windows Server 2008 server’s error logs?

Simple IIS logs looks the same, like:

2010-03-24 23:59:58 216.75.1.198 GET /ru/thingstodo/United-States/4440821/Persimmon-Creek-Structure-Y--21--8-Dam-travel-guide.html - 80 - 65.55.209.33 msnbot/2.0b+(+http://search.msn.com/msnbot.htm). 200 0 0 187

Where can I find IIS error log?

Are you using any forum or CMS, ie Wordpress, Joomla, PHPbb, etc?

What is the error reporing set to (in php.ini)?

PHPBB3 and self-made scripts which use PHPBB3’s user auth system.

What is the error reporing set to (in php.ini)?

error_reporting is set to E_ALL

error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_RECOVERABLE_ERROR);
ini_set('display_errors', 1);

Add that to the start of PHPbb’s index page, what errors if any are displayed?

Do you have any stray /* in the index.php page?

The thing is my PHPBB was modified after installation, to host multilingual forums on the same PHPBB installation. So, my PHPBB’s index.php redirects to the main page…

Can I add this to some another file of PHPBB?

How far down the index.php script do you have the redirect that directs to the “main page”?

Is the “main page” one of PHPBB’s scripts or is it a script coded by yourself?

Sorry, what do you mean?

Is the “main page” one of PHPBB’s scripts or is it a script coded by yourself?

The thing is I can’t show PHPBB’s index page to users. So, when user tries to load PHPBB’s index.php, he redirects to the website’s main page:

http://www.roamearth.com/forum/index.php
redirects to:
http://www.roamearth.com

How far down the index.php script to you have the header(); function redirecting users to the website’s main page?

The index.php script for PHPBB loads the forums so possibly the redirect is happening before the the lines where the forums are displayed. If you have got a redirect in the index.php try commenting it out.

I’m using IIS for redirecting.