I'm posting in an attempt to get my old vBulletin 2.3.0 board back up and running on a local PC.
- The version of my OS is Windows XP SP3.
- The version of IIS is 5.1.
- The version of PHP is the CGI version - 4.30.52 (since vBulletin 2.3.0 is not compatible with PHP 5.3+).
- The version of MySQL is 3.23.52.
- The version of PhpMyAdmin is 2.5.7.
Now the reason for all the older versions is this is exactly what I had running when I took the website down and things worked well.
I was able to reinstall my copy of vBulletin 2.3.0 and set up the required database, then imported the back up SQL file of the original forum. Loading of the forum works, and it is fully functional when browsing to http:\\192.168.2.10\testsite\forum\index.php from the date of the backup made some 8 years ago.
While attempting to get it up and running on my local system, the URL and directory structures have changed, resulting in blank pages loading through SSI includes or simply spitting out the PHP code itself where it's been called, thus the reason for this post.
When I go into the directory and type the URL directly through the browser, the PHP page loads, so I'm thinking I've become confused with <!--#include virtual"/testsite/location/file.php" --> calls, which is why it works directly but not with SSI calls, or I've installed something incorrectly.
Some information on the installation directory for vBulletin 2.3.0, as well as the header.php file and how I call it from an index.shtml file.
This is where I have the testsite installed:
G:\Inetpub\wwwroot\testsite
This is where I have the vBulletin files installed:
G:\Inetpub\wwwroot\testsite\form
G:\Inetpub\wwwroot\testsite\form\admin
This is the URL path I set in vBulletin's Control Panel under "General Settings":
http://192.168.2.10/testsite/forum
This is the URL of homepage set in vBulletin's Control Panel under "General Settings":
http://192.168.2.10/testsite/forum/index.php
This is the header.php I am attempting to call via "include virtual":
(header.php - LOCATION: G:\Inetpub\wwwroot\testsite\forum)
* I added the code from vBulletin's test PHP file for debug purposes.
This is how I am calling header.php via an index.shtml file:
(index.shtml - LOCATION: G:\Inetpub\wwwroot\testsite)
With the above information, these are the results I am getting:
Loading header.php directly through a web browser:
- http://192.168.2.10/testsite/forum/header.php
RESULTS: The header is displayed and the echo of "PHP is installed correctly" shown at the bottom.
Loading index.shtml that calls header.php through a web browser:
- http://192.168.2.10/Skullport/index.shtml
RESULTS: No header is displayed and the echo of "PHP is not installed correctly - Please contact your system administrator" shown at the bottom.
When I check IIS, right click on testsite -> Properties -> Home Directory TAB -> Configuration button -> Mappings:
It lists the following extensions and executable paths -
.shtml G:\Windows\system32\inetsrv\ssinc.dll
.php G:\PHP\php.exe
I've been trouble shooting this for the day and simply cannot get anything PHP related to spit out when calling it via an #include virtual or #include file.
On a similar note, #include virtual works just fine with a regular .txt file from the same index.shtml file.
Examples:
<!--#include virtual="/testsite/menus/home_news.shtml" -->
So I'm stumped as to what direction I need, or perhaps it is the path settings?
Thought I'd give a shot here. Thanks!
- The version of my OS is Windows XP SP3.
- The version of IIS is 5.1.
- The version of PHP is the CGI version - 4.30.52 (since vBulletin 2.3.0 is not compatible with PHP 5.3+).
- The version of MySQL is 3.23.52.
- The version of PhpMyAdmin is 2.5.7.
Now the reason for all the older versions is this is exactly what I had running when I took the website down and things worked well.
I was able to reinstall my copy of vBulletin 2.3.0 and set up the required database, then imported the back up SQL file of the original forum. Loading of the forum works, and it is fully functional when browsing to http:\\192.168.2.10\testsite\forum\index.php from the date of the backup made some 8 years ago.
While attempting to get it up and running on my local system, the URL and directory structures have changed, resulting in blank pages loading through SSI includes or simply spitting out the PHP code itself where it's been called, thus the reason for this post.
When I go into the directory and type the URL directly through the browser, the PHP page loads, so I'm thinking I've become confused with <!--#include virtual"/testsite/location/file.php" --> calls, which is why it works directly but not with SSI calls, or I've installed something incorrectly.
Some information on the installation directory for vBulletin 2.3.0, as well as the header.php file and how I call it from an index.shtml file.
This is where I have the testsite installed:
G:\Inetpub\wwwroot\testsite
This is where I have the vBulletin files installed:
G:\Inetpub\wwwroot\testsite\form
G:\Inetpub\wwwroot\testsite\form\admin
This is the URL path I set in vBulletin's Control Panel under "General Settings":
http://192.168.2.10/testsite/forum
This is the URL of homepage set in vBulletin's Control Panel under "General Settings":
http://192.168.2.10/testsite/forum/index.php
This is the header.php I am attempting to call via "include virtual":
(header.php - LOCATION: G:\Inetpub\wwwroot\testsite\forum)
* I added the code from vBulletin's test PHP file for debug purposes.
Code:
<?php /////////////// CONFIG /////////////// // $path = "/Inetpub/wwwroot/testsite/forum/admin"; // set the path to your admin directory. // ///////////// END CONFIG ///////////// require('./global.php'); require("$path/config.php"); echo($header); ?> <html> <head><title>vBulletin PHP Tester</title></head> <body> <!-- <?php // determine if php is running if (1==0) { echo "-->PHP is not installed correctly - Please contact your system administrator.<!--"; } else { echo "--".">"; } echo "PHP is installed correctly"; echo "<"."!--"; ?> </body> </html>
This is how I am calling header.php via an index.shtml file:
(index.shtml - LOCATION: G:\Inetpub\wwwroot\testsite)
Code:
<!--#include virtual="/testsite/forum/header.php" -->
With the above information, these are the results I am getting:
Loading header.php directly through a web browser:
- http://192.168.2.10/testsite/forum/header.php
RESULTS: The header is displayed and the echo of "PHP is installed correctly" shown at the bottom.
Loading index.shtml that calls header.php through a web browser:
- http://192.168.2.10/Skullport/index.shtml
RESULTS: No header is displayed and the echo of "PHP is not installed correctly - Please contact your system administrator" shown at the bottom.
When I check IIS, right click on testsite -> Properties -> Home Directory TAB -> Configuration button -> Mappings:
It lists the following extensions and executable paths -
.shtml G:\Windows\system32\inetsrv\ssinc.dll
.php G:\PHP\php.exe
I've been trouble shooting this for the day and simply cannot get anything PHP related to spit out when calling it via an #include virtual or #include file.
On a similar note, #include virtual works just fine with a regular .txt file from the same index.shtml file.
Examples:
<!--#include virtual="/testsite/menus/home_news.shtml" -->
So I'm stumped as to what direction I need, or perhaps it is the path settings?
Thought I'd give a shot here. Thanks!
Comment