Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues
Author Message
hamster
Hangin' Around



Joined: Mar 19, 2009
Posts: 42

PostPosted: Thu Mar 19, 2009 1:44 pm Reply with quote

I hope this is the correct forum...

I inherited a website and it's time to freshen things up. The 'Version Number add on' says the current Nuke version is 7.8.
The current phpbb is 2.0.15.

Plan is to perform downgrade/switches locally.

I'm missing a step in getting this site to run locally though. Here's what the error logs say.

apache_error_log (last line)
Thu Mar 19 11:41:59 2009] [notice] caught SIGTERM, shutting down

mysql_error_log
empty

php_error.log (last line)
[19-Mar-2009 11:41:54] PHP Notice: import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard in /Users/*/*/*/html/mainfile.php on line 64

mainfile.php
Code:
$phpver = explode(".", $phpver);

$phpver = "$phpver[0]$phpver[1]";
if ($phpver >= 41) {
   $PHP_SELF = $_SERVER['PHP_SELF'];
}

if (!ini_get("register_globals")) {
   import_request_variables('GPC');
}

if(isset($admin))
{
   $admin = base64_decode($admin);
   $admin = addslashes($admin);
   $admin = base64_encode($admin);
}

if(isset($user))
{
   $user = base64_decode($user);
   $user = addslashes($user);
   $user = base64_encode($user);
}

function makePass() {
   $cons = "bcdfghjklmnpqrstvwxyz";
   $vocs = "aeiou";
   for ($x=0; $x < 6; $x++) {
      mt_srand ((double) microtime() * 1000000);
      $con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);
      $voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);
   }
   mt_srand((double)microtime()*1000000);
   $num1 = mt_rand(0, 9);
   $num2 = mt_rand(0, 9);
   $makepass = $con[0] . $voc[0] .$con[2] . $num1 . $num2 . $con[3] . $voc[3] . $con[4];
   return($makepass);


Other questions...

Does the phpbb have to upgraded prior to downgrading phpnuke?
Do I downgrade to 76.phpnuke THEN switch to Raven?
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Thu Mar 19, 2009 2:31 pm Reply with quote

There is a section in the HowToInstall manual that comes with the latest RN 2.3.01 distribution and discusses upgrading from other Nuke version. Take a look. In addition use the search feature here to find the many threads that have discussed these issues.

RN2.3.01 will upgrade you to the latest PHPBB 2.x. You will need to be "downgraded" to 7.6 before switching over to RN ... unless you can trash the contents of the site and just start over (which would be much simpler).

I'm not sure what's happening with your Import_request_variables unless you have a new version of PHP that is objecting. Import request variables is not a recommended technique but we have to use it within mainfile because so much of the legacy *nuke code is dependent on it ... including many third party modules that we have no control over.
 
View user's profile Send private message Visit poster's website
hamster







PostPosted: Thu Mar 19, 2009 3:06 pm Reply with quote

Thank you.

I've read a few very informative threads as well as the how to.

The how to makes it sound like the phpbb has to be upgraded.
"You will have to execute each in succession starting from your current version up to 2.0.22." I was unclear if that was before, during or after.

The site is currently running php4.3
Locally php4.4

Seems like the local site should be functioning in order to run the downgrade78-76.php, no?

The site has been around for many years so there's quite a bit of forum data I'd like to retain, if at all possible. That's why the downgrade switch.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Mar 21, 2009 8:34 am Reply with quote

I would think that 4.4 is perfectly fine, although I wish folks would push on their hosts to move to 5.2.x. At least that is our direction for RN.

Unfortunately I am not an Apache expert or PHP setup expert, but am wondering if you have PHP in Safe mode in our local setup? If so, you might try turning that off in the php.ini.

With regards to the forums, the needed upgrade scripts should be in the following zip file within the distro:

UtilityFiles/bbtonuke_upgrades.zip

If you are at 2.0.15, you will needed to put each script into your root directory and run it, starting with upgrade15-16.php. However, stop SHORT of running upgrade22-23.php as the INSTALLATION/rndb_upgrade.php script will take care of upgrading everything else.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
hamster







PostPosted: Sat Mar 21, 2009 12:07 pm Reply with quote

It's already set to off.
 
hamster







PostPosted: Sat Mar 21, 2009 4:06 pm Reply with quote

sorry


Last edited by hamster on Sun Mar 22, 2009 9:15 pm; edited 1 time in total 
hamster







PostPosted: Sun Mar 22, 2009 9:19 am Reply with quote

double
 
montego







PostPosted: Wed Mar 25, 2009 8:29 am Reply with quote

Was there another Question there?
 
hamster







PostPosted: Wed Mar 25, 2009 12:10 pm Reply with quote

Ok. Making headway. Thanks for the help.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©