I'm moving a vbulletin website over to a new machine and I'm having the following problem...vbulletin won't render; all I get is a blank page.
Config:
Windows 2000 server
IIS
PHP 4.4.2
MySQL 4.0.26
unmodified install of vbulletin 3.5.4
I believe I've boiled the issue down to one problem...the "require_once()" function is halting the execution due to pathing issues, but I don't know why.
On my new host I have an IIS virtual directory set to a different drive "K:\mywebfolder" and php is configured to work with this. I verified this by running a "phpinfo()" call and the page renders perfect.
So I did a small test as follows (I created a file named test.php before beginning):
Directory structure:
k:\webdirectory\
----------------index.php
----------------test.php
This code works (index.php):
<?php
require_once('test.php');
echo "this is a test";
?>
This code does not work (index.php):
<?php
require_once('./test.php');
echo "this is a test";
?>
I verified that the vbulletin's index.php halts at the first require statement "require_once('./global.php');" ...this causes the script to halt even when I know the directory structure is correct. Is there some relation to using that style pathing with virtual directories that might cause a problem? The reason I think it's that combination is because the current IIS host where vbulletin is running doesn't have this problem and it is NOT using a virtual directory. My simple test also proves this is where my problem lives...but I don't know how to fix it (I've always used apache in the past, but can't for this project).
Config:
Windows 2000 server
IIS
PHP 4.4.2
MySQL 4.0.26
unmodified install of vbulletin 3.5.4
I believe I've boiled the issue down to one problem...the "require_once()" function is halting the execution due to pathing issues, but I don't know why.
On my new host I have an IIS virtual directory set to a different drive "K:\mywebfolder" and php is configured to work with this. I verified this by running a "phpinfo()" call and the page renders perfect.
So I did a small test as follows (I created a file named test.php before beginning):
Directory structure:
k:\webdirectory\
----------------index.php
----------------test.php
This code works (index.php):
<?php
require_once('test.php');
echo "this is a test";
?>
This code does not work (index.php):
<?php
require_once('./test.php');
echo "this is a test";
?>
I verified that the vbulletin's index.php halts at the first require statement "require_once('./global.php');" ...this causes the script to halt even when I know the directory structure is correct. Is there some relation to using that style pathing with virtual directories that might cause a problem? The reason I think it's that combination is because the current IIS host where vbulletin is running doesn't have this problem and it is NOT using a virtual directory. My simple test also proves this is where my problem lives...but I don't know how to fix it (I've always used apache in the past, but can't for this project).
Comment