Page Index Toggle Pages: 1 Print
SBOX Installs (GoDaddy) (Read 5125 times)
Captain John
Ex Member


SBOX Installs (GoDaddy)
Jan 12th, 2008 at 5:50pm
Print Post  
Fix for Godaddy.com servers

##################################################################
IMPORTANT!!!

This is a fix that havent been tested on all functions
THere can be some errors that i havent found yet.
If you find any please PM me at YaBBforum.com

Mats Persson
##################################################################

Do the changes to the script files as described below.
Be sure to change the paths to your servers paths.
If you dont know the absolute paths or html root on your server
upload the file perldiver.cgi ( found in the package)
run it and you will find the path in the list.

Change the Paths.pl according to your servers paths.
Upload the files and chmod them according to the manual.
Upload the Paths.pl file from the Variables folder to the folder
on your server. ( do not upload the whole folder only the
files in it!!)

Now in your browser go to YaBB.pl and login as admin PW: admin.

The Setup.pl only works when converting files


################################################################################

######

SCRIPTCHANGES

YaBB.pl

Find:
Code
Select All
$YaBBplver   = 'YaBB 2.1 $Revision: x.x.x $'; 



add after
Code
Select All
$boardurl = "http://www.mysite.org/cgi/yabb2";						  # URL of your board's folder (without trailing '/')
$boarddir = "/path/to/my/account/html/cgi/yabb2";				    # The server path to the board's folder (usually can be left as '.')
$boardsdir = "/path/to/my/account/html/cgi/yabb2/Boards";			  # Directory with board data files
$datadir = "/path/to/my/account/html/cgi/yabb2/Messages";			  # Directory with messages
$memberdir = "/path/to/my/account/html/cgi/yabb2/Members";			 # Directory with member files
$sourcedir = "/path/to/my/account/html/cgi/yabb2/Sources";			 # Directory with YaBB source files
$admindir = "/path/to/my/account/html/cgi/yabb2/Admin";			    # Directory with YaBB admin source files
$vardir = "/path/to/my/account/html/cgi/yabb2/Variables";			  # Directory with variable files
$langdir = "/path/to/my/account/html/cgi/yabb2/Languages";			 # Directory with Language files and folders
$helpfile = "/path/to/my/account/html/cgi/yabb2/Help";			     # Directory with Help files and folders
$templatesdir = "/path/to/my/account/html/cgi/yabb2/Templates";
$script_root = "/path/to/my/account/html/cgi/yabb2"; 



AdminIndex.pl

Find:

Code
Select All
push(@INC, "./Modules");
push(@INC, "./Modules/Upload");
push(@INC, "./Modules/Digest"); 



replace

Code
Select All
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules");
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Upload");
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Digest"); 



find

Code
Select All
require "$vardir/Settings.pl";
require "$sourcedir/Subs.pl";
require "$sourcedir/System.pl";
require "$sourcedir/DateTime.pl";
require "$sourcedir/Load.pl";
require "$vardir/advsettings.txt";
require "$vardir/secsettings.txt";
require "$vardir/membergroups.txt"; 




replace
Code
Select All
require "/path/to/my/account/html/cgi/yabb2/Variables/Settings.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/Subs.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/System.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/DateTime.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/Load.pl";
require "/path/to/my/account/html/cgi/yabb2/Variables/advsettings.txt";
require "/path/to/my/account/html/cgi/yabb2/Variables/secsettings.txt";
require "/path/to/my/account/html/cgi/yabb2/Variables/membergroups.txt"; 



Subs.pl

Find:
Code
Select All
     push(@INC, "./Modules");
     push(@INC, "./Modules/Upload");
     push(@INC, "./Modules/Digest"); 



replace

Code
Select All
     push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules");
     push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Upload");
     push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Digest"); 



find:

Code
Select All
$yytemplate = "$templatesdir/$usehead/$usehead.html"; 



replace

Code
Select All
$yytemplate = "/path/to/my/account/html/cgi/yabb2/Templates/$usehead/$usehead.html";
 


Setup.pl

find

Code
Select All
unless ($lastsaved) {
     $boardsdir = "./Boards";
     $sourcedir = "./Sources";
     $memberdir = "./Members";
     $vardir    = "./Variables";
} 



replace

Code
Select All
unless ($lastsaved) {
     $boardsdir = "/path/to/my/account/html/cgi/yabb2/Boards";
     $sourcedir = "/path/to/my/account/html/cgi/yabb2/Sources";
     $memberdir = "/path/to/my/account/html/cgi/yabb2/Members";
     $vardir    = "/path/to/my/account/html/cgi/yabb2/Variables";
} 



find
Code
Select All
push(@INC, "./Modules");
push(@INC, "./Modules/Upload");
push(@INC, "./Modules/Digest");

require "$sourcedir/Subs.pl";
require "$sourcedir/System.pl";
require "$sourcedir/Load.pl";
require "$sourcedir/DateTime.pl"; 



replace

Code
Select All
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules");
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Upload");
push(@INC, "/path/to/my/account/html/cgi/yabb2/Modules/Digest");

require "/path/to/my/account/html/cgi/yabb2/Sources/Subs.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/System.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/Load.pl";
require "/path/to/my/account/html/cgi/yabb2/Sources/DateTime.pl"; 



find
Code
Select All
sub tempstarter {
     require "Paths.pl"; 



replace

Code
Select All
sub tempstarter {
     require "/path/to/my/account/html/cgi/yabb2/Paths.pl"; 



################################################################################

#####
« Last Edit: Jan 23rd, 2008 at 5:41pm by »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Print
 
  « Board Index ‹ Board  ^Top