Page Index Toggle Pages: 1
Topic Tools
Normal Topic Ubuntu Installation with Nginx (Read 3,890 times)
cyberlogic
YaBB Newcomer
*
Offline



Posts: 5

None
Ubuntu Installation with Nginx
Sep 28th, 2012 at 6:16am
Post Tools
Ok, crappity smack you.  --second-- --third-- --foruth-- --fifth-- sixth time trying to type this, the first time I was told I couldn't post external links so my whole post was thrown away...  Sad and the same the second and third times... even though, there are no links...  I really hope someone finds this useful as it has been painful to post...  Frankly, trying to post a guide on how I installed the darn thing is so frustrating, I don't want this on my site anymore... too bad because it looks like a really nice product.

Seriously, I can't post a simple topic... run away now...

So I've added a text file...  Yea, we'll see how that goes...
  
Back to top
 
IP Logged
 
cyberlogic
YaBB Newcomer
*
Offline



Posts: 5

None
Re: Ubuntu Installation with Nginx
Reply #1 - Sep 28th, 2012 at 6:18am
Post Tools
Whops, here's the attachment.

[edit]
a file attachment on this post name size and downloads install_instructions.txt (3 KB | 87  ) has been Moderated by xnoddyx to remove a Censored Word the part with #Censored Word# was where the
Censored Word was substitute file name now Moderated_install_instructions.txt
[/edit]
« Last Edit: May 30th, 2013 at 1:44pm by xnoddyx »  

Moderated_install_instructions.txt ( 3 KB | 68 Downloads )
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,991
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Ubuntu Installation with Nginx
Reply #2 - Sep 28th, 2012 at 2:29pm
Post Tools
I will fix it for you later. (the links are in the code sections)

Code
Select All
"http://downloads.sourceforge.net/project/yabb/YaBB%202/2.5/YaBB_2.5_AE.zip?r=http%3A%2F%2Fwww.yabbforum.com%2Fdownloads.php&ts=1348806278&use_mirror=superb-dca3" 



Thanks for the info - it will go in Server Side (which is for how-tos)

Good Luck
Cool

  

I find your lack of faith disturbing.
Back to top
IP Logged
 
cyberlogic
YaBB Newcomer
*
Offline



Posts: 5

None
Re: Ubuntu Installation with Nginx
Reply #3 - Sep 29th, 2012 at 9:45pm
Post Tools
Cool, thanks.

I see, even links in the code blocks are counted.
thanks for the clarification.

Installation was actually quite easy.  And working with YaBB is becoming easier.
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,991
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Ubuntu Installation with Nginx
Reply #4 - Oct 7th, 2012 at 3:36pm
Post Tools
Edited:
This is the text file cyberlogic posted for installing YaBB on nginx. Many thanks for the info


Anyway, here's how I installed YaBB on Ubuntu 12.04 using an Nginx webserver (the nginx instructions are taken from here: http://nginxlibrary.com/perl-fastcgi/ )

1) Install required packages:  apt-get install nginx libfcgi-perl wget

2)  Setup fastcgi:

Code
Select All
wget http://nginxlibrary.com/downloads/perl-fcgi/fastcgi-wrapper -O /usr/bin/fastcgi-wrapper.pl
wget http://nginxlibrary.com/downloads/perl-fcgi/perl-fcgi -O /etc/init.d/perl-fcgi
chmod +x /usr/bin/fastcgi-wrapper.pl
chmod +x /etc/init.d/perl-fcgi
update-rc.d perl-fcgi defaults
/etc/init.d/perl-fcgi start
 



3) Download the YaBB zip package to your servers root directory

4) rearrange the files and move them into place:

Code
Select All
wget -O /root/YaBB_2.5_AE.zip "http://downloads.sourceforge.net/project/yabb/YaBB%202/2.5/YaBB_2.5_AE.zip?r=http%3A%2F%2Fwww.yabbforum.com%2Fdownloads.php&ts=1348806278&use_mirror=superb-dca3"
mkdir workspace && cd workspace
unzip ../YaBB_2.5_AE.zip
mkdir yabb
mv public_html/yabbfiles/* yabb/
rm -rf public_html/
mv cgi-bin/yabb2/* cgi-bin/
rm -rf cgi-bin/yabb2/
ls cgi-bin/
mv cgi-bin/ yabb/
cp -r yabb/ /var/www/
 



5) Fix permissions

Code
Select All
chown -R  www-data.www-data /var/www/yabb
find /var/www/yabb/ -name *.pl exec | xargs -I {} cmhod +x {}
 



6) Setup your nginx config

place the following in /etc/nginx/sites-available/yabb.conf
(replace yoursite with your actual site)

Code
Select All
server {
    listen       80;
    server_name  forum.yoursite.com;

    access_log /var/log/nginx/forum_yoursite_com_access.log;
    error_log /var/log/nginx/forum_yoursite_com_error.log;    

    set $yabb_root "/var/www/yabb";
    root $yabb_root;

    fastcgi_send_timeout 300s;
    fastcgi_read_timeout 300s;

    location ~ \.pl|cgi$ {
        try_files $uri =404;
        gzip off;
        fastcgi_pass  127.0.0.1:8999;
        fastcgi_index index.pl;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include fastcgi_params;
    }


    location ~ (^/lib|^/data|^/locale|^/templates|^/tools|^/work) {
        deny all;
    }

    if ($http_user_agent ~ ^SiteSucker|^iGetter|^larbin|^LeechGet|^RealDownload|^Teleport|^Webwhacker|^WebDevil|^Webzip|^Attache|^SiteSnagger|^WX_mail|^EmailCollector|^WhoWhere|^Roverbot|^ActiveAgent|^EmailSiphon|^CrownPeak-HttpAgent|^$) {
        rewrite .* /404.html break;
   }
}
 



7) enable the site and restart nginx:

Code
Select All
ln -s /etc/nginx/sites-available/yabb.conf /etc/nginx/sites-enabled/
/etc/init.d/nginx restart
 



8) navigate to forum dot mysite dot com/cgi-bin/Setup.pl

« Last Edit: Oct 7th, 2012 at 4:17pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top