Home :: Forums :: Register :: Sign In :: Links :: Downloads :: Shop
You are not signed in. Please sign in. If you have not registered, please click here.

Forum not working

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
#1Wed Jul 14, 2004 12:18 am   Forum not working
rfburn
CZ Newbie
rfburn has been a member for over 4 year's 4 Year Member
Status: Offline
Joined: Jul 14, 2004
0.00 posts per day
Posts: 8
Points: 362
   
My nuke is not installed in the root folder, i.e. httpdocs/nuke
It is instead one folder down, i.e. httpdocs/root_folder/nuke
All the basics work but not the forum
I cant get the admin forum to work
I get an Apache server error about being outside the basedir
Apache doesnt know anybetter so it gives that error
I am not outside the basedir, but nuke is not installed in the root, see.
My answer probably lays in writing an .htaccess file to redirect or include necessary files/folders
If anyone can help or advise or even post an example of the code I would be very grateful. I can then use my new found knowledge to help others in similar need.

Rfburn



Back to top Reply with quote
#2Wed Jul 14, 2004 3:19 pm   
Telli
Site Admin
Telli has been a member for over 5 year's 5 Year Member
usa.gif florida.gif
Occupation: Self Employed
Age: 37
Fav. Sports Team: Detroit Red Wings
Website: www.codezhost.com
Status: Offline
Joined: May 26, 2003
3.89 posts per day
Posts: 7852
Points: 492,565
   
Open the mainfile.php and find this line:

if ($forum_admin == 1) {
    require_once("../../../config.php");
    require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
} else {
    require_once("config.php");
    require_once("db/db.php");
    /* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
    /* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
    require_once("includes/sql_layer.php");
    $dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}


And change it too:

if ($forum_admin == 1) {
    require_once("../../../../config.php");
    require_once("../../../../db/db.php");
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
} else {
    require_once("config.php");
    require_once("db/db.php");
    /* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
    /* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
    require_once("includes/sql_layer.php");
    $dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}


Make a backup and let me know how it goes.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3Fri Jul 22, 2005 5:04 pm   re: Forum not working
rfburn
CZ Newbie
rfburn has been a member for over 4 year's 4 Year Member
Status: Offline
Joined: Jul 14, 2004
0.00 posts per day
Posts: 8
Points: 362
   
Thank you very much.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum