Installing Vanilla on IIS - returns blank page
                    Hi everyone,
I'm installing Vanilla on IIS and have got PHP working (see test page here), but when I try and load Vanilla it just returns a blank page. I've got the permissions right, I think, and the MySQL database is setup correctly, I think.
Anyone got any suggestions?
Paul.
                I'm installing Vanilla on IIS and have got PHP working (see test page here), but when I try and load Vanilla it just returns a blank page. I've got the permissions right, I think, and the MySQL database is setup correctly, I think.
Anyone got any suggestions?
Paul.
0          
            This discussion has been closed.
             
         
            
Comments
Others that have had problems like this have found that it might be due to their ftp programs messing up the files as they upload them. If I were to guess, I'd say that it has something to do with the fact that you're running php 5 and it hasn't been configured to work with php 4.x class definitions. I can't remember what the php.ini configuration setting is, but it's something like php4.compatibility... sorry - swamped with work and can't figure it out for you right now.
Anyone else have any ideas?
It could be fixed by replacing header("Location: )" by this code:
if( strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS')) header("Refresh: 0;url=$location"); else header("Location: $location");But that's a nasty fix... Maybe Mark should look into it
<?php // Turn on all errors error_reporting(E_ALL); // Customize your database connection $Host = "Your MySQL Host Name"; $User = "Your MySQL Username"; $Password = "Your MySQL Password"; $Database = "Your MySQL database name"; // Open a database connection (you may see some errors here) $Connection = mysql_connect($Host, $User, $Password); // Attempt to select your database if ($Connection && !mysql_select_db($Database, $Connection)) echo("Failed to connect to the '".$Database."' database."); ?>Give that a go and see what happens.http://forums.mysql.com/read.php?11,6400,10611#msg-10611