phpMyBitTorrent Project Forums
phpMyBitTorrent project discussion forums

Home » Support Forums for PMBT 2.X » Bug Reports for V2.X » Changed server (Changed server)
Changed server [message #5196] Mon, 13 December 2010 12:52 Go to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
ok, so, i tried to move my tracker to another server, changing from windows server to linux.
my htdocs is in my home dir not in its normal directory(like: /opt/lampp/htdocs )
i have chmod-ed 777 every file needed and it gives me this errors:
Deprecated: Function eregi() is deprecated in /home/interdata/htdocs/tracker/header.php on line 33

Warning: require_once(include/config.php) [function.require-once]: failed to open stream: Permission denied in /home/interdata/htdocs/tracker/header.php on line 35

Fatal error: require_once() [function.require]: Failed opening required 'include/config.php' (include_path='.:/opt/lampp/lib/php') in /home/interdata/htdocs/tracker/header.php on line 35


what am i doing wrong?
Re: Changed server [message #5197 is a reply to message #5196] Mon, 13 December 2010 14:06 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
what version are you running first because I know that's not 2.0.4 repack.
Now open the folder include and see if there is a config file there.


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5198 is a reply to message #5197] Mon, 13 December 2010 14:15 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
it's 2.0.4 for sure, repack as i remember.how do i find which one?
and yes there is a config file in include folder.
Re: Changed server [message #5199 is a reply to message #5198] Mon, 13 December 2010 14:21 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
there is no use of eregi() in repack header.php
<?php
/*
*----------------------------phpMyBitTorrent V 2.0.4---------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/

$startpagetime = microtime();
if (!defined('IN_PMBT'))die("You can't access this file directly");
//header("Content-Type: text/html; charset=utf-8");
require_once("include/config.php"); //if config file has not been loaded yet
//if($user->id == 5)require_once("snatchwarning.php"); //NHR system

themeheader();

?>

that,s how you know your using 2.0.4repack.
as for the other warning what is the include folder chmod?


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5200 is a reply to message #5199] Mon, 13 December 2010 14:25 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
<?php
/*
*----------------------------phpMyBitTorrent V 2.0.4---------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/

$startpagetime = microtime();
if(eregi("header.php",$_SERVER["PHP_SELF"])) die("You can't access this file directly");
//header("Content-Type: text/html; charset=utf-8");
require_once("include/config.php"); //if config file has not been loaded yet
//if($user->id == 5)require_once("snatchwarning.php"); //NHR system

themeheader();

?>


i did chmod 777 on as instructed on step 1.
Re: Changed server [message #5201 is a reply to message #5200] Mon, 13 December 2010 14:32 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
ok that header.php is a min. of 2.0.4gold repack is the newer.
also I believe you are running in safe mode in your php.ini file.
and please even though you said you chmodd to 777 I would like you to double check this for me.
second are you in a sub folder? if so make sure the sub folder is chmodd to 777


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5202 is a reply to message #5201] Mon, 13 December 2010 14:39 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
safe_mode = Off

my subfolder is /tracker/ and it is chmoded 777

Re: Changed server [message #5203 is a reply to message #5202] Mon, 13 December 2010 14:52 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
not really sure Y but you are still having a Permission problem.
with out looking into your ftp to see Y this is going on it is going to be hard to figure out.


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5204 is a reply to message #5203] Mon, 13 December 2010 15:03 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
i tried to install 2.0.5 from cvs but when try to acces any page it gives me:
This webpage is not available.

The webpage at http://localhost/tracker2/ might be temporarily down or it may have moved permanently to a new web address.

  More information on this error
Below is the original error message

Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
Re: Changed server [message #5205 is a reply to message #5204] Mon, 13 December 2010 15:25 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
2.0.5 from cvs is no where near ready Embarassed that's Y I put it in a separate folder.
PMBT 2.0.4 is accessible from here http://sourceforge.net/projects/phpmybittorrent/files/phpMyB itTorrent-hacks/phpMyBitTorrent2.0.4-repack.rar/download

But the error you are getting is a server side error not script.
Basically its saying that your server is not responding.
if you are running skype you may want to turn it off or any other program the uses port 80


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5206 is a reply to message #5205] Mon, 13 December 2010 17:32 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
no skype, only web server on port 80.

/tracker/index.php does not work
but /tracker/setup/index.php worked
Re: Changed server [message #5207 is a reply to message #5206] Mon, 13 December 2010 17:44 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/include/configdata.php on line 30

Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of ip_valid(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /opt/lampp/htdocs/tracker/include/functions.php on line 158

Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/include/functions.php on line 34

Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/include/functions.php on line 36

Strict Standards: Resource ID#13 used as offset, casting to integer (13) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#13 used as offset, casting to integer (13) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/include/functions.php on line 37

Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/include/functions_phpBB3.php on line 33

Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Strict Standards: Resource ID#19 used as offset, casting to integer (19) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#19 used as offset, casting to integer (19) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Strict Standards: Resource ID#22 used as offset, casting to integer (22) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#22 used as offset, casting to integer (22) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Strict Standards: Resource ID#24 used as offset, casting to integer (24) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#24 used as offset, casting to integer (24) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Strict Standards: Resource ID#26 used as offset, casting to integer (26) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 482

Strict Standards: Resource ID#26 used as offset, casting to integer (26) in /opt/lampp/htdocs/tracker/include/db/mysql.php on line 484

Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/language/english.php on line 749


this gave me after installing 2.0.4 repack
an allot more Sad(

[Updated on: Mon, 13 December 2010 17:44]

Report message to a moderator

Re: Changed server [message #5208 is a reply to message #5207] Mon, 13 December 2010 18:03 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
use these
and in configdata.php line 30 should be if
(!defined('IN_PMBT'))die ("You can't access this file directly");
I well have to look into the mysql.php
and line 33 in functions_phpBB3.php should be
if (preg_match("/download.php/",$_SERVER["PHP_SELF"]))define('IN_CRON', true);
  • Attachment: english.php
    (Size: 100.28KB, Downloaded 463 times)
  • Attachment: functions.php
    (Size: 42.16KB, Downloaded 482 times)


\"http://a.imageshack.us/img831/5562/mybikes.png\"

[Updated on: Mon, 13 December 2010 18:11]

Report message to a moderator

Re: Changed server [message #5209 is a reply to message #5208] Mon, 13 December 2010 18:28 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
ok try this in mysql.php fined
        function sql_fetchrow($query_id = 0)

        {

                if(!$query_id)

                {

                        $query_id = $this->query_result;

                }

                if($query_id)

                {

                        $this->row[$query_id] = @mysql_fetch_array($query_id);

                        return $this->row[$query_id];

                }

                else

                {

                        return false;

                }

        }

and replace with
	function sql_fetchrow($query_id = false)
	{

		if ($query_id === false)
		{
			$query_id = $this->query_result;
		}

		return ($query_id !== false) ? @mysql_fetch_assoc($query_id) : false;
	}


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5210 is a reply to message #5209] Mon, 13 December 2010 18:53 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
nothing changed. same errors:
Deprecated: Function eregi() is deprecated in /opt/lampp/htdocs/tracker/header.php on line 33

Warning: require_once(/opt/lampp/htdocs/tracker/include/config.php) [function.require-once]: failed to open stream: Permission denied in /opt/lampp/htdocs/tracker/header.php on line 35

Fatal error: require_once() [function.require]: Failed opening required 'include/config.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/tracker/header.php on line 35
Re: Changed server [message #5211 is a reply to message #5210] Mon, 13 December 2010 18:57 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
lol your working on 2 codes now
these fixes are for the tracker2 dictory


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5212 is a reply to message #5211] Mon, 13 December 2010 19:05 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
lol
for imported tracker i tried chown -R the /tracker/ folder to user and group set in http.conf but still no change

now trying your solution on tracker2 Embarassed
Re: Changed server [message #5213 is a reply to message #5212] Mon, 13 December 2010 19:17 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
now for tracker2 worked but now it gives me a lot of these errors:

Notice: Undefined index: HTTP_X_FORWARDED_FOR in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_X_FORWARDED in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_FORWARDED_FOR in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_FORWARDED in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_VIA in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_X_COMING_FROM in /opt/lampp/htdocs/tracker2/include/functions.php on line 158

Notice: Undefined index: HTTP_COMING_FROM in /opt/lampp/htdocs/tracker2/include/functions.php on line 158
Re: Changed server [message #5214 is a reply to message #5213] Mon, 13 December 2010 19:18 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
disable E_NOTICE errors in php.ini


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5215 is a reply to message #5214] Mon, 13 December 2010 19:23 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
and make cache folder writable (chmodd 777)

\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5216 is a reply to message #5215] Mon, 13 December 2010 19:32 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
already done that.still some problems with permissions:
Warning: fopen(cache/cache_newestmemberblock.txt) [function.fopen]: failed to open stream: Permission denied in /opt/lampp/htdocs/tracker/blocks/newestmember_block.php on line 47

Warning: fputs() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/tracker/blocks/newestmember_block.php on line 48

Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/tracker/blocks/newestmember_block.php on line 49
Re: Changed server [message #5217 is a reply to message #5216] Mon, 13 December 2010 19:37 Go to previous messageGo to next message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
if you can not make it writable then just open newestmember_block.php and replace
    $OUTPUT = serialize($newestmemberrecords);
    $fp = fopen($file,"w");
    fputs($fp, $OUTPUT);
    fclose($fp);

with
    if(is_writable($file)){
    $OUTPUT = serialize($newestmemberrecords);
	$fp = fopen($file,"w");
    fputs($fp, $OUTPUT);
    fclose($fp);
	}


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Re: Changed server [message #5218 is a reply to message #5217] Mon, 13 December 2010 19:48 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
i tried to login with my username and it gives me this:
User Registered but NOT Active!!
and in db all users have 'active' set to '1'.

Re: Changed server [message #5222 is a reply to message #5218] Tue, 14 December 2010 17:39 Go to previous messageGo to next message
Malikster is currently offline  Malikster
Messages: 50
Registered: November 2010
Location: Romania
Seeder
now i have problem with the language file.i think it does not load it.
it shows _btsitenews instead of Site News
everithing is like that

problem solved.

[Updated on: Tue, 14 December 2010 20:45]

Report message to a moderator

Re: Changed server [message #6531 is a reply to message #5218] Mon, 09 September 2013 19:56 Go to previous messageGo to next message
justme is currently offline  justme
Messages: 1
Registered: September 2013
Leecher
Hi I am having this same issue. I cannot find anything on it other than this post. Can you please share how you fixed this login issue?
Re: Changed server [message #6532 is a reply to message #6531] Sat, 14 September 2013 17:56 Go to previous message
joeroberts is currently offline  joeroberts
Messages: 2174
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
You need to make new language file
the only file that is complete is the English file


\"http://a.imageshack.us/img831/5562/mybikes.png\"
Previous Topic: Fresh Install
Next Topic: Bug report Rules
Goto Forum:
  


Current Time: Mon Apr 23 13:26:24 CEST 2018

Total time taken to generate the page: 0.12044 seconds