isohuntto / openbay

Other
3.52k stars 902 forks source link

Installing Openbay #30

Open zwitterionwork opened 9 years ago

zwitterionwork commented 9 years ago

I run my own hosting with apache/mysql/php, all latest, and am having issues setting openbay up, the wiki included is far from helpful, is there anyone out there that has a better wiki, to setting up openbay? Thanks. P.S is it that i am trying to set it up as a v-host?

LucasRoot commented 9 years ago

I had problems to install in Windows, but I tried in a shared host (http://oldpiratebay.zz.mu/), and all worked. I put the src folder in "/".

booth-f commented 9 years ago

I'm also having issues, I'm running nginx with php5-fpm on Ubuntu but when I go to the page all I get is a white page. http://xalogen.koding.io/ I don't know what I'm doing wrong, anything else with PHP works like PhpBB3. :/

EDIT: Just looked at my access logs to see if there was any errors being spit out but I'm getting nothing, x.x.x.x - - [21/Dec/2014:18:18:21 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0"

and I moved everything from the src folder into the root directory of the web server.

LucasRoot commented 9 years ago

I did other changes in src folder, I'll pull a request when I finish.

zwitterionwork commented 9 years ago

LucasRoot, yes i see it working very well on your shared site, so is it just not possible to run on my system then? shame as i run many sites and proxies, and have no issues with php, i run an anti censorship site for access to torrent sites, and i run anon and onion proxies for users to access for free here in the uk, i wish i could run it on my normal site, oh well, i will have to give it a miss, as i spend a lot on my own hosting, i will put a link to your site on my anti-censorship site, if thats ok with you? My sites are, http://fuckoff-and-die.com/ and http://hidemyassnet.net/ http://notoriously-white.co.uk/ thanks for your speedy reply!

zwitterionwork commented 9 years ago

Tranquilitycal, i have exactly the same problem, someone needs to write a much better wiki, or howto, i will take all of the info collected by this thread and if i get it working, will write one! Thanks for your reply.

LucasRoot commented 9 years ago

I don't know if I'll leave the site up. But I'll try to publish what I did to work.

zwitterionwork commented 9 years ago

LucasRoot, much thanks, and i will put together a howto once i get is working, and i will keep my eye on your site, if it stays up for 4 weeks ill keep a link for you, i get about 50k to 70k users a day to access torrent sites on http://fuckoff-and-die.com/proxies.html thanks again for you input.

booth-f commented 9 years ago

This is what I've tried so far to get it working, I've flushed my entire VM and reinstalled, installed nginx mysql and php5-fpm and set nginx site config to use the php5-fpm, then I git cloned the repository to /home/openbay/www/ then set the v-host to have document root at /home/openbay/www/src/www/ and that's where I'm stuck with the white screen.

Maybe someone will notice something I forgot to do?

aaruni96 commented 9 years ago

I run nginx with php5-fpm on Ubuntu, and I can confirm that it doesn't work. All I get is a blank page. Does anyone have a fix / workaround for this ?

zwitterionwork commented 9 years ago

tranquilitycal,aaruni96 , I have to agree i run over 30 sites, and a mix of html and php, in php from WordPress, to durpal, and phpbb3, and i can not get the thing to work, i also get a blank page, or if i mess around with it i get a forbidden, and miss-configuration, and i know what i am doing, so i agree, i think there are a lot of issues, and wounder just what is not being told to us with regards to the story, i mean they could have done a much better wiki, or how-to, any way i will wait and see if someone is kind enough to tell us how to do it! Thanks again to all who have commented, your help is much app... Merry Xmas to all

zwitterionwork commented 9 years ago

My Errors, [Sat Dec 20 12:49:07.971601 2014] [:error] [pid 6028:tid 1352] [client 2001:470:1f08:4cf::2:17038] PHP Fatal error: require_once(): Failed opening required 'G:\httpd-v\openbay.fuckoff-and-die.com/../protected/config/debug.php' (include_path='.;C:\php\pear') in G:\httpd-v\openbay.fuckoff-and-die.com\index.php on line 5

and

[Sun Dec 21 16:36:26.844525 2014] [core:alert] [pid 6880:tid 1352] [client 2001:470:1f08:4cf::2:43779] G:/httpd-v/openbay.fuckoff-and-die.com/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

booth-f commented 9 years ago

zwitterionwork, the error of invalid command 'RewriteEngine' is because you might not have the rewrite engine module installed.

I would try doing sudo a2enmod rewrite && sudo /etc/init.d/apache2 restart and see if that error disappears.

aaruni96 commented 9 years ago

I think we have to have some rewrite rules enabled for it to work. I'll try it out tomorrow again, see what I can do.

booth-f commented 9 years ago

I'll see what I can do with Apache2 first and then see if I can get nginx to work. I'll let you know what I got

zwitterionwork commented 9 years ago

tranquilitycal, That server is running under Windows, setup Apache 2.9 open ssl 1.0.1g php 5.5.5 what about that?i can setup under Linux, i have two Linux boxes running, so that not an issue, i will try and run this on Linux, as i am getting no where with Windows, Much thanks again.

booth-f commented 9 years ago

It shouldn't make much of a difference, I'm getting nowhere with ether nginx or apache so far, I was going to try to install WAMP on my desktop and see if that works. If that works then I'm missing some major information somewhere.

zwitterionwork commented 9 years ago

tranquilitycal, i think by opening this thread, we will work it out, good to see people putting in there thoughts!

zwitterionwork commented 9 years ago

aaruni96 , if you could post your results, it would be much app... Thanks

aaruni96 commented 9 years ago

I'll hack around a bit tomorrow, maybe fire up a VM to try it on a blank host. I'll post my findings here.

booth-f commented 9 years ago

sounds good, I might actually do the same with a VM

zwitterionwork commented 9 years ago

aaruni96, great and thanks, i am sure between us all we will crack it, i will then write a wiki, how-to and put it on my site with all the files.. Merry Xmas!

zwitterionwork commented 9 years ago

Thanks to all for there input, i will go and try a VM as well, and post my results Tomorrow as well, have to cook dinner for the family , thanks again to all!

milezzz commented 9 years ago

Debian 7 + nginx + php5-fpm = WORKS.

You guys needs to learn to read a log file and stop attempting to use Windows as a host. Just sayin.

zwitterionwork commented 9 years ago

milezteg, i thank you for your input, and do not disagree, however, a little more then telling us to use 3 programs ans an os would really help, i.e, someone needs to do a much better wiki, i will try all of the ways put forward, and i will get it working, but i will then write a how-to and put it on my site, for all os's i mean it really should not be difficult to run, we all run sites, and from what i can see we all use Linux and some like my self also use Windows, if i can run Durpal/wordpress/phpbb3 on windows, and run the lot again on Ubuntu Server 14.04 under Nginx, then is should be easy, but for some reason it is not, i now understand why Peter Sunde said that it was full of bad code in his interview with Torrentfreak. Thanks for your input and merry xmas..

booth-f commented 9 years ago

indeed zwitterionwork, and mileszteg please give us some info to how you did it so that we can benefit.

milezzz commented 9 years ago

i now understand why Peter Sunde said that it was full of bad code in his interview with Torrentfreak.

Dude this is NOT the piratebay code. Are you kidding? Also I think the guys who released this code need to remove that bit in their description.

someone needs to do a much better wiki

Honestly if you can't get this working you shouldn't be attempting to run a torrent website. In 5 seconds from looking at your error message I can see very clearly: You do not have rewrite enabled in Apache and you're not loading a required file.

I mean they included an installer and detailed instructions for Christ's sake. I have a feeling this github is going to be full of n00b "I want to run a torrent site but cannot nix" comments instead of any real development. *sigh

zwitterionwork commented 9 years ago

milezteg, well thanks for your input, i am sure i will file it where it belongs. Again, have a merry Xmas.

booth-f commented 9 years ago

mileszteg, I don't know if your just ignorant or what but obviously as I've said previous and I think you just didn't read it carefully. I am using Ubuntu server with nginx, php5-fpm and mysql. Very much the EXACT SAME SETUP as you just mentioned. Ubuntu is a fork of Debian and the two are almost alike except for with Ubuntu I get updated packages and Debian is just more stable because of how long it takes packages to enter stable but anyways. Please refrain from targeting users like zwitterionwork instead you could HELP troubleshoot the issues we are having so that we can all learn from it.

I've got 5 years experience using Linux (Gentoo, Arch, Debian, Ubuntu) I know my way around.

zwitterionwork commented 9 years ago

milezteg, Also I think the guys who released this code need to remove that bit in their description., Well the point was to clone as many sites as possable, at least that is how i read it. In 5 seconds from looking at your error message I can see very clearly: You do not have rewrite enabled in Apache and you're not loading a required file. That error message was generated by using the .htaccess examples, my 30 plus sites run fine and have for years, but again thanks, and have a merry Xmas

booth-f commented 9 years ago

Alright, I know its got nothing to do with my nginx/mysql/php-fpm install because low and behold http://xalogen.koding.io/forum works perfectly fine, its only Openbay I cannot get to work.

milezzz commented 9 years ago

Confirmed: Also works on a Ubuntu install I just built fresh as I fully expected. Nginx + php5-fpm + mysql. I could test on Apache but I am sure it works there as well.

Fatal error: require_once(): Failed opening required 'G:\httpd-v\openbay.fuckoff-and-die.com/../protected/config/debug.php

Obviously this error means what it says: Failed opening a required file. Either your permissions are wrong or your web server has no access to the file. My guess is your permissions are wrong as I ran into this myself. This is really *nix 101 stuff here guys! Shirley if you've got 300 websites you've run into this type of thing.

Invalid command 'RewriteEngine'

Install rewrite for Apache with: a2enmod rewrite. Restart Apache.

Merry Christmas kids.

booth-f commented 9 years ago

Here is the problem, I check my logs and get no error messages WHAT SO EVER. I can't fix something if I'm getting no output!

booth-f commented 9 years ago

Milezteg, just hear me out and try to understand where I'm coming from here.

I got a fresh Ubuntu VM set, I install nginx + mysql + php-fpm and even install the MyBB forum to make sure php is working properly. I git clone the openbay repository and I take the src/www folder and move it to the webserver document root, all I see when I go to the site is the white page with no error messages or output at all. What could be wrong. Please enlighten me.

milezzz commented 9 years ago

Simple. You forgot to include the "protected" dir. It needs to be included in order for the installer to run.

booth-f commented 9 years ago

even with the protected dir in the directory in /var/ and the src in /var/www, the only thing I get for errors is unexpected end of file in index.php on line 14 when reading from upstream

TalonSoulWhisper commented 9 years ago

Ok, i am joining this Conversation, cause i'm helping tranquilitycal at this, He has moved the " protected " dir in every place possible, You can't just say your boss that you got it to work, Not everyone is good at the same thing, I hope you understand this, because i have been sitting at my screen for bout an hour now trying to help him figure this out, we pulled it straight off the github, as you probably know. index.php has only 14 lines, we never changed much of it other than what was needed, so you tell me how we are doing something wrong when you don't give sh\ to help us.

TalonSoulWhisper commented 9 years ago

So unless if your gonna help, which i can obviously tell your not capable of, then go fu*k with someone else.

milezzz commented 9 years ago

Well as my last few posts demonstrated I was in fact attempting to help you, I even tried to recreate your "problem" in a fresh Ubuntu VM and posted the results. Also it's obvious that if you're not getting any "error messages WHAT SO EVER", then you have not setup nginx/php5-fpm properly. That much is obvious am I right?

So unless if your gonna help, which i can obviously tell your not capable of, then go fu*k with someone else.

Fine, sounds like you kid's got it covered. I was about to test this in Apache and offer to log in and take a look but with an attitude like that I don't really see the point. Merry Christmas ladies.

booth-f commented 9 years ago

If I didn't set up php5-fpm properly then wouldn't my forum not work? I don't see why this isn't working I'm trying again in a fresh ubuntu install again

milezzz commented 9 years ago

Because ponies.

TalonSoulWhisper commented 9 years ago

To be honest, what does ponies have to do with Openbay? If you dont mind me asking?

milezzz commented 9 years ago

I don't see why this isn't working I'm trying again in a fresh ubuntu install again

This time enable error_logging in /etc/php5/fpm/php.ini.

To be honest, what does ponies have to do with Openbay? If you dont mind me asking?

Wait didn't you just get all in a huff and tell me to fuck off? Shirley you should be off playing WOW or PS4 by now. It's Christmas dude go open some presents or something. Here's a bunny:

..(-/).. (='.'=) (")-(")o

TalonSoulWhisper commented 9 years ago

( ͡° ͜ʖ ͡°)

milezzz commented 9 years ago

I don't see why this isn't working I'm trying again in a fresh ubuntu install again.

ProTip: Use Debian 7.5.

TalonSoulWhisper commented 9 years ago

milezteg, Alright, we'll try Debian 7.5, but it still might not work.

milezzz commented 9 years ago

Alright, we'll try Debian 7.5, but it still might not work.

Now you're thinking. Also use nginx and see my other post about fixing the rewrite issues. Also punch your girlfriend in the pussy for me.

tvvocold commented 9 years ago

@tranquilitycal which vps/hosting server do u use?(i know u use ubuntu,did u build this vps on ur own or bought from some place?) (btw,i think u should create a openbay' docker file in ur local machine)

zwitterionwork commented 9 years ago

milezteg, i can see a lot has happened since i started this thread, i would be very much interested in your thoughts on Apache, if you have the time, i am not a pro at this, but have been running stuff since wildcat days, i always seem to get it in the end, and with help from you and other this would be a great Christmas present, i am sorry if i have offended you, that was never my point, thank you all for you time and all of your input. Merry Xmas to all.

zwitterionwork commented 9 years ago

tvvocold , in my case i am running this on one of my own boxes, under windows 7 64, php 5.5.5 apache 2.4.10, also trying on another box, running Ubuntu Server 14.04 Apache 2 latest php , i have an nginx server running on another Ubuntu Box, and could try that as well, i am just getting the same thing that tranquilitycal, is getting, normally a blank screen, no install php script? Any help would be nice, i know i am not a pro at this, but in the spirit of the bay, the more of us that get it up and running the concept of Kopimi will hold true. Thanks for any help. In the end someone will post a proper setup guide, this much i know, but if we all could get our issues working first it would be great! Merry Christmas to All!

zwitterionwork commented 9 years ago

On a foot note, i see Http://thepiratebay.se is hosting a flag!! This is a good sign, we may not need to do this at all! would be a great Christmas present if they came back!, however now that i have started this i would at least like to get it to work, then take it down if TPB is back!..