Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Gazelle (http://www.bvlist.com/forumdisplay.php?f=40)
-   -   How To Set Up Gazelle on a Debian Server (http://www.bvlist.com/showthread.php?t=2359)

pirpiliter 3rd April 2009 11:47

How To Set Up Gazelle on a Debian Server
 
Tutorial:How To Set Up Gazelle on a Debian Server

This was taken from from ScT forum, and left exactly as-is … take a look here:
ScT/forums_viewtopic.php?id=19331&page=1#p344573

This guide allows anyone to setup their very own BitTorrent tracker using the fancy and flashing Project Gazelle sourcecode by the What.CD development team — Setup and steal releases off ScT and you’ll be as good as SCC, ScL and the likes in no time and NO EFFORT!!!!

This guide is written for Debian (etch), but with little modification you can suit it for other distributions as well. It’s time to go and rent that 20€ Kimsufi now and start your very own career as the SysOp of your imba tracker. While not necessary, it’s preferred that you purchase a domain for the site as well. Preferably something that has “scene” prefix or postfix!!!! Like sceneIMBA.com, cbatogetmyownsceneaxx.com or faggotscene.net.

Want to run a tracker, but your low-end seedbox with 512mb ram runs on Windows? GTFO.

Here’s what you need to install, via apt-get.

1. Dependencies:

Code:

$ apt-get install build-essential apache2 php5 libapache2-mod-php5 mysql-server libmysqlclient15-dev php5-mysql memcached php5-memcache php5-gd php5-mcrypt subversion automake
Code:

$ apt-get install cmake g++ libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev make zlib1g-dev
For database management you can use CLI or some sort of gay www frontend such as phpmyadmin (apt-get install phpmyadmin). If you don’t know anything about MySQL just tell yourself that it’ll all be fine and skip this step.

2. Configuring apache

Apache2 installs itself in /etc/apache2. By default, it serves its **** from /var/www directory, but we’ll change that along with some other stuff in a mo.
First, create a directory where you store your web-frontend files. For example:

Code:

$ cd /
$ mkdir site

Now you’ve got a directory called “site” in your filesystem root. Next it’s time to let apache now you’ll want web files served from there.
The file to alter is /etc/apache2/sites-enabled/000-default

Code:

$ nano /etc/apache2/sites-enabled/000-default
Empty the whole file and replace it with this (modify if you like and know your ****):

Code:

# Standard http port
    NameVirtualHost *:80

   
    ServerAdmin leet@sysop.com
    ServerName scenefaggot.net

    DocumentRoot /site/

   
    Order deny,allow
    Deny from all
   


   
    Order deny,allow
    Deny from all
   


   
    Order deny,allow
    Deny from all
   


   
    Order deny,allow
    Deny from all
   


   
    Order deny,allow
    Deny from all
   


   

It’s noteworthy that if you wish to enable leet SSL browsing for your site, just add another clause there for:

Code:

# HTTPS port
NameVirtualHost *:443


SSLEngine on
SSLCertificateFile /path/to/cert.crt
SSLCertificateKeyFile /path/to/cert.key

And also add Listen 443 to /etc/apache2/ports.conf
Then you just need to create a certificate (consult google).

Ogay, we’ve done configuring apache. Time to reload the changes

Code:

$ apache2 -k restart


3. Getting sourcecode


EDIT: since the repository is offline you can get the exact copy of the source here: http://www.bvlist.com/gazelle/2208-g...n-11397-a.html

You can fetch the source from What’s SVN repository as follows:



4.Configuring MySQL


Principally you should take a look at /etc/mysql/my.cnf and optimize it for your setup and needs. Obviously you’re too much of a slob and cba to, so just skip this step and tell yourself it’ll all be ok. What you should do, though, is to setup a root password for MySQL as it is not automatic.

Code:

$ mysql -u root
$ use mysql
$ update user set password=PASSWORD(”NEWPASSWORD”) where User=’root’;
$ flush privileges;
$ quit;

You should probably create a different MySQL user for the site with less-than-root rights. But again, you cba to do so, so we’ll just skip this.

5. Configuring the site

Then you will need to navigate to youripaddress and follow instructions. Literacy is required in this step unfortunately. If all is well, you should now be able to access your site. If not, all is not well.

That is not all, though. You’ve got the site web frontend working, but not the tracker — yet. Project Gazelle includes a tracker written in C++. It is its program that runs on its own. Remember to remove the installation directory after successful install. Ie, rm -r /site/install

6. Getting tracker up and running

Code:

$ cd /site/
$ tar zxfv xbtt.tar.gz
$ cd xbtt/build/xbtt
$ ./autogen.sh
$ make
$ cd src

Now you’ve got a compiled tracker that is ready to work. Well, almost ready. There’s a file called xbt_tracker.conf that you need to modify. The fields are rather obvious, there’s stuff like:

Code:

mysql_host =
mysql_user =

Yeah, you got the idea. If not, GTFO.

There’s also the actual tracker executeable xbt_tracker. Which you’ll need to run with command ./xbt_tracker xbt_tracker.conf after the last step.

The last step to get the tracker working is to insert some parameters into MySQL. It defaults to What.cd’s IP address and stuff, and you must change that.

Code:

$ mysql -u root -pNEWPASSWORD
$ use databasename_that_you_defined_in_install_php
$ select * from xbt_config;

There are some important values. You’ll need to modify some and some not if you don’t want to. Anyway:

Code:

$ update xbt_config set value = ‘YOURIPADDRESSHERE’ where value = ‘70.47.114.223′;
$ update xbt_config set value = ‘WHATPORTYOUWANNAUSE’ where value = ‘34000′;

$ select * from xbt_client_whitelist;

Whitelisted, ie. allowed clients. These are outdated; you will need to insert Peer IDs for newer clients.
If you don’t know how to, tell everyone to use uTorrent 1.8 or it’s banhammer time.

Code:

$ insert into xbt_client_whitelist (peer_id, vstring) values (’-UT1810-’, ‘uTorrent 1.8.1′);

andsh 25th April 2009 13:04

error
 
Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory

When I "make" says
Code:

sql_result.h:70: error: 'atoll' was not declared in this scope
make[4]: *** [database.lo] Error 1
make[4]: Leaving directory `/site/xbtt/build/xbtt/src/misc/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/site/xbtt/build/xbtt/src/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/site/xbtt/build/xbtt/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/site/xbtt/build/xbtt'
make: *** [all] Error 2


Fynnon 25th April 2009 13:39

Quote:

Originally Posted by adyshor (Post 11061)
Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory


You must create some simlinks for libraries.. should be something like this:
Code:

ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so
not really sure...im not very good with linux :P

andsh 25th April 2009 13:41

Quote:

Originally Posted by pirpiliter (Post 10506)


The last step to get the tracker working is to insert some parameters into MySQL. It defaults to What.cd’s IP address and stuff, and you must change that.

$ mysql -u root -pNEWPASSWORD
$ use databasename_that_you_defined_in_install_php
$ select * from xbt_config;

There are some important values. You’ll need to modify some and some not if you don’t want to. Anyway:

$ update xbt_config set value = ‘YOURIPADDRESSHERE’ where value = ‘70.47.114.223′;
$ update xbt_config set value = ‘WHATPORTYOUWANNAUSE’ where value = ‘34000′;

$ select * from xbt_client_whitelist;

Whitelisted, ie. allowed clients. These are outdated; you will need to insert Peer IDs for newer clients. If you don’t know how to, tell everyone to use uTorrent 1.8 or it’s banhammer time.

$ insert into xbt_client_whitelist (peer_id, vstring) values (’-UT1810-’, ‘uTorrent 1.8.1′);

I'm lost here more details pls :unknown:

Quote:

$ select * from xbt_config;
What does * symbolyse?

Late edit: Still same error
Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory


joeroberts 25th April 2009 14:10

Quote:

What does * symbolyse?
that is a data base feature indicating "all rows in this table"

andsh 25th April 2009 14:19

Almost done
 
:bubble: Hi I'm almost done a still need to resolve this problem
Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory

Thank you all!
Later edit: How can I make the anounce url from tracker.domain to domain?

m1cha31 15th June 2009 07:37

Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory

I'm getting that, too. Can someone PM me with some help? It would be greatly appreciated!

Zepp 2nd July 2009 12:51

Got it working, thanks!

GeorgeS069 8th November 2009 04:14

I know this is an older thread but, could use a little help
 
I have xbtt mostly setup and installed but I keep getting this error when I try to run it:
Code:

./xbt_tracker: error while loading shared libraries: libmisc.so.0:
cannot open shared object file: No such file or directory

Any ideas what I need to do to fix this?

Thank You for ANY help with this!

George

P.S. Guess I should give some more info like OS and stuff....the system is running Debian Stable(Lenny) and I do have Libtools installed if that helps any.

calebrulez 27th November 2009 10:55

for the shared libraries issue do
Code:

cp /usr/local/lib/libmisc.* /usr/lib/
you are basically copying the libmisc.so.0.0.0 file to the default sys lib path for xbt to find.

Quote:

Originally Posted by adyshor (Post 11067)
Later edit: How can I make the anounce url from tracker.domain to domain?

edit file /path_to_site_root/classes/config.php and modify line
Code:

define('ANNOUNCE_URL','http://tracker.A.B.C.1D:port'); //Announce URL

mrs 18th January 2010 23:34

Quote:

6. Getting tracker up and running

[code]$ cd /site/
$ tar zxfv xbtt.tar.gz
$ cd xbtt/build/xbtt
$ ./autogen.sh
$ make

i have an error when i try to run ./autogen.sh
..........
Code:

checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... configure: error: cannot compute sizeof (short), 77
See `config.log' for more details.


I am using a centos 5.4 vmware image with latest updates and lxadmin control panel.

Please help me

Regards

movizdb 18th January 2010 23:35

Maybe it's because of the lxadmin Remove LXadmin then retry ;)

mrs 18th January 2010 23:37

Quote:

Originally Posted by movizdb (Post 19724)
Maybe it's because of the lxadmin Remove LXadmin then retry ;)

But i need lxadmin for hosting :D

Phogo 18th January 2010 23:46

Quote:

Originally Posted by marius (Post 19723)
i have an error when i try to run ./autogen.sh
..........
Code:

checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... configure: error: cannot compute sizeof (short), 77
See `config.log' for more details.

I am using a centos 5.4 vmware image with latest updates and lxadmin control panel.

Please help me

Regards

Post your config.log

Laffin 18th January 2010 23:51

if the compiler cannot compute the sizeof(short) than its a compiler problem.
as code is simple as
Code:

function main()
{
  printf("%d",sizeof(short));
}

and if your compiler can't handle compiling that routine, its most likely a bad installation of the compiler system. As it should have no problems.
Do as the log suggests, and look into the log file for any further hints as to what the problem is.

mrs 18th January 2010 23:56

1 Attachment(s)
Here is my config.log.
I'we named it config.log.php because i can't upload it as config.log

Laffin 19th January 2010 00:08

Quote:

/usr/bin/ld: cannot find -lmysqlclient_r
You need to install the mysql client libs, and they should be for the version you are running

mrs 19th January 2010 00:27

Quote:

Originally Posted by Laffin (Post 19731)
You need to install the mysql client libs, and they should be for the version you are running

I have installed libs and it's working.
Now i'm trying to follow next steps on this turorial.
Maybe i will come with other questions latter.


Thank you

Laffin 19th January 2010 01:16

Well good lucks on your venture :)

mrs 19th January 2010 23:43

Quote:

Originally Posted by marius (Post 19733)
I have installed libs and it's working.
Now i'm trying to follow next steps on this turorial.
Maybe i will come with other questions latter.


Thank you

Unfortunately i'm back... with another problem :D

Now i'm trying to install it on a centos 5.3 server, not virtual server :D

Now i can run
Code:

./autogen.sh
, but when i run make, i have errors.

What file should i upload here for you to see the errors i have after running make?


Thanks

zuzubv 20th January 2010 01:26

add this 3 lines

PHP Code:

#include "assert.h"                                                                                                             
#include "string.h"                                                                                                             
#include "stdlib.h" 

in header of this files

sql_result.h
stream_int.h
bt_misc.cpp
bvalue.cpp
virtual_binary.cpp
xif_value.h

when you have make error, type make clean then make again

LE: and in tracker_input.cpp

LE2: and if you got LONG_LONG_MAX error

add to tracker_input.cpp

PHP Code:

#include <climits> 

if not works

then make clean, and add this

PHP Code:

#define LONG_LONG_MAX 9223372036854775807LL 

and then make clean and again MAKE and you got it

mrs 20th January 2010 11:52

I have done all that you said. Now i have jus one error:

PHP Code:

FILE_SOURCE -fno-strict-aliasing -fwrapv -funroll-loops -fexpensive-optimizations -O3 -MT bt_tracker_url.lo -MD -MP -MF .deps/bt_tracker_url.Tpo -c bt_tracker_url.cpp  -fPIC -DPIC -.libs/bt_tracker_url.o
bt_tracker_url
.cpp:4:38errorboost/algorithm/string.hppNo such file or directory
bt_tracker_url
.cpp:6error'boost' is not a namespace-name
bt_tracker_url
.cpp:6errorexpected namespace-name before ';' token
bt_tracker_url
.cppIn member function 'void Cbt_tracker_url::write(const std::string&)':
bt_tracker_url.cpp:45error'istarts_with' was not declared in this scope
make
[2]: *** [bt_tracker_url.loError 1
make
[2]: Leaving directory `/home/marius/mydomain/xbtt/build/xbtt/src/misc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/marius/mydomain/xbtt/build/xbtt/src/misc'
make: *** [all-recursive] Error 1 


zuzubv 20th January 2010 15:35

do you type make clean and again make ?

if yes, then include the 3 lines in bt_tracker_url.cpp too

Laffin 20th January 2010 18:36

It doesnt matter what you type or include, if you dont pay attention to the log file and errors. just spewing possible solutions will just create more problems.
Quote:

bt_tracker_url.cpp:4:38: error: boost/algorithm/string.hpp: No such file or directory


looks like you have a mis-installation of the boost library, (re)install the boost libs and headers.



mrs 20th January 2010 22:46

Quote:

zuzubv

do you type make clean and again make ?

if yes, then include the 3 lines in bt_tracker_url.cpp too
i have included the 3 lines


Quote:

Originally Posted by Laffin (Post 19795)
It doesnt matter what you type or include, if you dont pay attention to the log file and errors. just spewing possible solutions will just create more problems.


looks like you have a mis-installation of the boost library, (re)install the boost libs and headers.


[/COLOR][/COLOR]

and you are right, boost library was not installed. I have installed it and now i have no errors when i run make.

But i'm not ready yet :secret: maybe i will come with another questions :ok:

Thank you


Edited

I have executed ./xbt_tracker xbt_tracker.conf and all is ok, executed install.php, config.php file was created automatically, i have modifyed ip adress and port in my database... but when i try to login i receive a blank screen. I have turned display errors on, and i have this error:

Code:

Notice: Undefined index: HTTPS in /home/admin/mydomain/classes/config.php on line 10

Fatal error: Class 'Memcache' not found in /home/admin/mydomain/classes/class_cache.php on line 213


zuzubv 21st January 2010 00:07

you don't have memcache installed

check google

mrs 21st January 2010 00:24

Quote:

Originally Posted by zuzubv (Post 19806)
you don't have memcache installed

check google

In my php.ini it exists mod_mem_cache

Code:

Loaded Modules        core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_version mod_php5 mod_proxy_ajp mod_ssl

Laffin 21st January 2010 00:57

that looks more like apache modules than php modules

mrs 21st January 2010 01:17

Quote:

Originally Posted by Laffin (Post 19811)
that looks more like apache modules than php modules

Quote:

memcachememcache support enabled
Active persistent connections 0
Version 2.2.5
Revision $Revision: 1.111 $

Directive Local Value Master Value
memcache.allow_failover 1 1
memcache.chunk_size 8192 8192
memcache.default_port 11211 11211
memcache.default_timeout_ms 1000 1000
memcache.hash_function crc32 crc32
memcache.hash_strategy standard standard
memcache.max_failover_attempts 20 20
I have found how to install it for centos 5, here: How To Install memcached with memcache PHP Extension on CentOS 5.x


But i still have errors:

Code:

Notice: Undefined index: HTTPS in /home/admin/christianmovies.eu/classes/config.php on line 10

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/admin/christianmovies.eu/classes/config.php:10) in /home/admin/christianmovies.eu/classes/script_start.php on line 36

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/admin/christianmovies.eu/classes/config.php:10) in /home/admin/christianmovies.eu/classes/script_start.php on line 36

Notice: Undefined index: logged_user in /home/admin/christianmovies.eu/classes/script_start.php on line 42

Notice: Undefined index: keeplogged in /home/admin/christianmovies.eu/classes/script_start.php on line 57

Notice: Undefined index: clearcache in /home/admin/christianmovies.eu/classes/class_cache.php on line 397

Notice: Undefined index: querytime in /home/admin/christianmovies.eu/classes/class_mysql.php on line 160

Fatal error: Call to undefined function mb_detect_encoding() in /home/admin/christianmovies.eu/classes/script_start.php on line 768


Laffin 21st January 2010 01:56

turn off error reporting in php.ini, (yes them wonderful errors that help you find problems in scripts).

Gazelle isnt coded very well to run with error reporting on. These error reports throw off some of the functions that require no display code in order to interact with the page headers.

so you have a snowball effect as you just witnessed,

Enable the error_log, so you can still find php errors. just disable the error reporting.

mrs 21st January 2010 02:06

I have turned error reporting to off, and now in opera it say "The page cannot be dispalyed" , in google chrome and firefox there is a blank page, and in iexplorer error 500.

Check here

Quote:

Originally Posted by marius (Post 19816)
I have turned error reporting to off, and now in opera it say "The page cannot be dispalyed" , in google chrome and firefox there is a blank page, and in iexplorer error 500.

Check here


Any ideea ? :sad:
I need to setup this tracker before 1th february.
Please help me!

zuzubv 21st January 2010 19:32

Quote:

Originally Posted by marius (Post 19816)
I need to setup this tracker before 1th february.
Please help me!


kiddin, right?

after compile and install the tracker, you have to resolve some bugs, and much other :)

mrs 22nd January 2010 17:40

Quote:

Originally Posted by zuzubv (Post 19830)
kiddin, right?

after compile and install the tracker, you have to resolve some bugs, and much other :)


I'm not kidding :bubble: i try to configure it ... if i can ... but i need some help... maybe i ask here stupid questions, but... :bubble: i realy need help

underx 6th February 2010 16:19

When i run these
[quote]$ mysql -u root
$ use mysql
$ update user set password=PASSWORD(

pennst26 11th February 2010 05:45

need some help please (error on make)
 
Code:

Now type `make' to compile.
debian:/site/hh/xbtt/build/xbtt# make
make  all-recursive
make[1]: Entering directory `/site/hh/xbtt/build/xbtt'
Making all in src
make[2]: Entering directory `/site/hh/xbtt/build/xbtt/src'
Making all in misc
make[3]: Entering directory `/site/hh/xbtt/build/xbtt/src/misc'
Making all in sql
make[4]: Entering directory `/site/hh/xbtt/build/xbtt/src/misc/sql'
/bin/sh ../../../libtool --tag=CXX  --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../ -I../../    -g -O2 -I/usr/include/mysql  -DBIG_JOINS=1 -fPIC -funroll-loops -fexpensive-optimizations -O3 -MT database.lo -MD -MP -MF .deps/database.Tpo -c -o database.lo database.cpp
 g++ -DHAVE_CONFIG_H -I. -I../../.. -I../ -I../../ -g -O2 -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -funroll-loops -fexpensive-optimizations -O3 -MT database.lo -MD -MP -MF .deps/database.Tpo -c database.cpp  -fPIC -DPIC -o .libs/database.o
In file included from database.h:8,
                from database.cpp:2:
sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
sql_result.h:70: error: 'atoll' was not declared in this scope
make[4]: *** [database.lo] Error 1
make[4]: Leaving directory `/site/hh/xbtt/build/xbtt/src/misc/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/site/hh/xbtt/build/xbtt/src/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/site/hh/xbtt/build/xbtt/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/site/hh/xbtt/build/xbtt'
make: *** [all] Error 2

anyone know a fix for this?
I had xbtt running from src before, but this one in this rls is slightly different. It has added tables etc and the older one doesn't start up with gazelle.

That aside, how can I fix this error on debian 5.04

Phogo 15th February 2010 15:02

Quote:

Originally Posted by pennst26 (Post 20877)
Code:

Now type `make' to compile.
debian:/site/hh/xbtt/build/xbtt# make
make  all-recursive
make[1]: Entering directory `/site/hh/xbtt/build/xbtt'
Making all in src
sql_result.h:70: error: 'atoll' was not declared in this scope
make[4]: *** [database.lo] Error 1

anyone know a fix for this?
I had xbtt running from src before, but this one in this rls is slightly different. It has added tables etc and the older one doesn't start up with gazelle.

That aside, how can I fix this error on debian 5.04

I can fix this, pm me

gordon 10th April 2010 07:32

This tut seems pretty old, and I have run into many many problems trying to use this one. Is there a new one available?

pirpiliter 9th October 2010 21:57

How to install Gazelle RC2 on Debian or Ubuntu
 
This guide is designed for Debian based systems (Ubuntu for example). This tutorial is going to assume you are installing it under a vhost in /var/www.

Before we get to Gazelle:

1. Update software, and package cache:

Code:

sudo aptitude update && sudo aptitude upgrade
2. Build essentials (install important stuff):

Code:

sudo aptitude install build-essential gcc wget subversion automake libtool make g++ -f mysql-server mysql-client libmysqlclient15-dev libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev zlib1g-dev libpng-dev libmcrypt-dev libxml2-dev libevent-dev libmysqld-dev
apache2, php5, memcached, and sphinxsearch are also in the Debian package repository so you don't need to build by hand. If you run Sid (unstable) you will get the versions described below.

Code:

sudo apt-get install apache2 php5 memcached sphinxsearch
3. Install Apache HTTP Server:

Code:

cd /usr/local && wget http://mirror.cc.columbia.edu/pub/software/apache//httpd/httpd-2.2.16.tar.gz

tar -xzvf httpd-2.2.16.tar.gz && cd httpd-2.2.16

./configure --enable-so

make

make install

/usr/local/apache2/bin/apachectl start

/usr/local/apache2/bin/apachectl stop

4. Install Memcached (you can also use this shell script to install memcache automatically)

Code:

cd /usr/local && wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz

tar -xvf memcached-1.4.5.tar.gz && cd memcached-1.4.5

./configure

make

make install

5. Install PHP

Code:

cd /usr/local && wget http://us3.php.net/get/php-5.3.3.tar.gz/from/this/mirror

tar xzvf php-5.3.3.tar.gz && cd php-5.3.3

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-mcrypt --with-mysqli --with-gd --enable-mbstring

make

make install

libtool --finish /usr/local/php-5.3.3/libs

cp php.ini-development /usr/local/lib/php.ini

cd /usr/local/src/ && wget http://pecl.php.net/get/memcache-2.2.4.tgz

tar xzvf memcache-2.2.4.tgz && cd memcache-2.2.4

phpize && ./configure --enable-memcache && make

mkdir -p /usr/local/lib/php/extensions/no-debug-non-zts-20090626

cp modules/memcache.so /usr/local/lib/php/extensions/no-debug-non-zts-20090626/

Add extension=memcache.so to your php.ini (/usr/local/lib/php.ini) file and restart the webserver (/usr/local/apache2/bin/apachectl restart)

While in php.ini - find the line: "short_open_tag = Off" - Turn it On, and restart apache

6. Locate HTTPD.conf
Should be in /usr/local/apache2/conf
add the following lines to the the bottom of the .conf file:

Code:

LoadModule php5_module modules/libphp5.so

SetHandler application/x-httpd-php


SetHandler application/x-httpd-php


SetHandler application/x-httpd-php-source

you can add this as well, so you can set where your files are served from:

Code:


DocumentRoot /var/www

AllowOverride All
allow from all
Options +Indexes


Test it:

Code:

/usr/local/apache2/bin/apachectl start
Create a PHP file with the folowing code in it:
Code:


Place that file in your web root (in this case, /var/www) and navigate to localhost (either 127.0.0.1, or 127.0.1.1) - See if you have success!

7. Start Memcache (if you used the shell script from step 4, skip this step as memcache is already running!)

Code:

memcached -d -m XXX -s /var/run/memcached.sock -a 0777 -t16 -C -u root
xxx= megabytes of ram. We used 512 for the -m XXX bit.

8. Run an SQL query for gazelle.sql to create the database, the table, and the default data. To use the code below you must first extract gazelle.sql (from the latest release) to /var/www/

Code:

mysql -u root -p < /var/www/gazelle.sql
9. Install Sphinx
-for documentation, see: http://www.sphinxsearch.com/docs/current.html

Sphinx is a bit tricky. You have been warned.

Run this:

Code:

cd /usr/local && wget http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz

tar xzvf sphinx-1.10-beta.tar.gz && cd sphinx-1.10-beta

./configure

make

make install

Use the sphinx.conf included in the latest Gazelle tarball build

Put sphinx.conf in /usr/local/sphinx-1.10-beta as sphinx.conf. You will need to edit in your database settings, otherwise nothing will work. (Really important ones are lines 11, 99, 312-315)

Run the following commands:

Code:

mkdir -p /var/data/sphinx/delta

/usr/local/bin/indexer -c /usr/local/sphinx-1.10-beta/sphinx.conf --all

mkdir -p /var/log/searchd/

/usr/local/bin/searchd

If you get any errors, try to debug it yourself. If all else fails, post in the forums or join IRC.



10. Front-end Install

1. Get the latest copy of Gazelle from http://what.cd/gazelle. Once you have downloaded and extracted it, upload it to your server.

2. Run the following command:

Code:

cp /var/www/classes/config.template /var/www/classes/config.php
3. With FileZilla or a shell editor, open config.php. This is your main configuration file for Gazelle. Set all the settings for your site, how you want them. The important bit is the SITE_SALT and other hashes. You can use this site to make good hash keys: http://grc.com/passwords.html

P.S. if you get a MYSQL SOCK error, change the line about that in the config file to /var/run/mysqld/mysqld.sock

4. Register at your site, you will be made a SysOp automatically. You will not be sent an email, just login. You'll need to configure the email server later.

5. Setup cron jobs:

Use the following commands:

Code:

crontab -e
Enter this:

Code:

0,15,30,45 * * * * /usr/local/bin/php /var/www/schedule.php INSERT_YOUR_SCHEDULE_KEY >> /root/schedule.log

10,25,40,55 * * * * /usr/local/bin/php /var/www/peerupdate.php INSERT_YOUR_SCHEDULE_KEY >> /root/peerupdate.log

* * * * * /usr/local/bin/indexer -c /usr/local/sphinx-1.10-beta/sphinx.conf --rotate delta requests_delta

5 0,12 * * * /usr/local/bin/indexer -c /usr/local/sphinx-1.10-beta/sphinx.conf --rotate --all

Where SCHEDULE_KEY is the password you set in classes/config.php



11. Back-end install (XBTT)

***This probably wont work, I have a version which I will test again that should work on Debian***

Code:

cd /var/www/ && tar xzvf xbtt.tar.gz && cd xbtt/build/xbtt/

./configure --bindir=/path/to/xbtt/xbtt/bin --libdir=/path/to/xbtt/xbtt/lib --libexecdir=/path/to/xbtt/xbtt/lib --enable-epoll

make

sudo make all install

For common installation problems, see here: http://what.cd/gazelle/forums.php?ac...ead&threadid=2
----------------------------------
source: http://what.cd/gazelle/

wMan 20th October 2010 22:05

yep
 
yes torrent lol when upload them go to seed then go missing from site on seebox as well as home torrents on refresh of index and torrent page come back as seeding and then go missing again so you have site full off torrents one min then on refresh gone lol what a laf code bin it no good at all:muscle:

nikole957 5th December 2010 04:12

Quote:

Originally Posted by adyshor (Post 11067)
:bubble: Hi I'm almost done a still need to resolve this problem
Code:

./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory

Thank you all!
Later edit: How can I make the anounce url from tracker.domain to domain?

I'm getting that, too. Can someone PM me with some help? It would be greatly appreciated





______________________
YouTube - Downloading Wii Games - Where to Download the Best Wii Games! YouTube - Downloading Wii Games - Where to Download the Best Wii Games!
YouTube - Downloading Wii Games - Where to Download the Best Wii Games!


All times are GMT +2. The time now is 05:59.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.