Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Local host install (Read 8,763 times)
JimTR
YaBB Newcomer
*
Offline



Posts: 10

None
Local host install
Sep 20th, 2011 at 4:34pm
Post Tools
Hi All,
I'm trying to install yabbs on a linux local host ... I have left the paths as default but the setup script fails to run. do I need to copy the /usr/bin/*.* directories to the root folder of my local host server 
so /user/bin/*.* would become localhost:/usr/bin/*.* can anyone help ?
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #1 - Sep 21st, 2011 at 12:26am
Post Tools
Ummm "no"

Under the assumption you are using the Apache webserver

If you are going to install on localhost AND you are not going to 'open it up' soon

THEN

You should place the yabb2 files in the cgi-bin folder inside your server root.

give them the permissions as given in this codex article:
http://www.yabbforum.com/codex/YaBB.pl?num=1190660838

Change the shebang lines if needed - that will depend on the distribution and where perl is located.
(probably /usr/bin/perl or usr/sbin/perl)
http://www.yabbforum.com/codex/YaBB.pl?num=1233421622

Then place the yabbfiles folder under your DocumentRoot (usually htdocs, /var/www, or whereever your distribution has located them)

Again change the permissions as given in the Codex:
http://www.yabbforum.com/codex/YaBB.pl?num=1190660838

then you 'should' be able to start the Setup.pl

the address will be
http://localhost/cgi-bin/yabb2/YaBB.pl

when you install, use localhost wherever it asks for a domain name.


If you decide to open up - you will be able to edit these entries in the Admin Center to match your domain name

localhost is all ONE word and refers to the loopback address of 127.0.0.1

Good Luck
Cool

Edited:
If you don't know what DocumentRoot and ServerRoot refer to, you need some Apache basics
http://www.brennan.id.au/13-Apache_Web_Server.html <== good basics
« Last Edit: Sep 21st, 2011 at 12:43am by JonB »  

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



Posts: 10

None
Re: Local host install
Reply #2 - Sep 21st, 2011 at 4:27pm
Post Tools
Server Used : Apache/2.2.17 (Ubuntu)
I have followed all the links you sent before I posted the original message .... everything is as per the instructions with two changes rather than the root the files as in a directory called YABB and all files are chmod 777.
The problem I have is if I access
Code
Select All
http://localhost/Yabb/cgi-bin/yabb2/Setup.pl 

the browser just attempts to download the script rather than run it. I guess I need to configure apache some how
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #3 - Sep 21st, 2011 at 7:33pm
Post Tools
http://localhost/Yabb/cgi-bin/yabb2/Setup.pl

"NO"

The cgi-bin folder is a "SPECIAL" folder in most Apache installs - it has 'ScriptAlias' and/or 'Directory' directives in the Apache httpd.conf or one of the /extra/*.conf files that allow the execution of programs in the ServerRoot. (and probably map the Perl handler)  The yabb2 folder belongs in whatever folder is named in ScriptAlias OR /cgi-bin/ IF you do not find a ScriptAlias directive.

The way Perl works is that you 'the end user' invoke the Perl executable (on the server -- the shebang line) and that, in turn, interprets the YaBB script.


THIS IS NOT FOR YOU TO COPY - BUT ILLUSTRATES THE POINT - COPYING IT WILL LIKELY BREAK YOUR APACHE

Code
Select All
ScriptAlias /cgi-bin/  "/cgi-bin/"
....

PerlPostConfigRequire "/apache/conf/extra/startup.pl"

<IfModule mime_module>
    AddType text/html .pl
</IfModule>

<FilesMatch "\.pl$">
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
</FilesMatch>

<Directory "/cgi-bin">
    <FilesMatch "\.pl$">
        SetHandler cgi-script
    </FilesMatch>
</Directory>
 



DO NOT TRY TO MAKE THIS CONF WORK ON YOUR SERVER


Simply locate the /cgi-bin folder in your ServerRoot (as I said before) and put your all your yabb2 files and folders below there.

should look like this -
/cgi-bin
/cgi-bin/yabb2

/htdocs (or whatever your DocumentRoot is)
/htdocs/yabbfiles

If they ARE already like this last bit - then just use this next URL -
otherwise - arrange as above -

THEN

http://localhost/cgi-bin/yabb2/Setup.pl

Good Luck
Cool
« Last Edit: Sep 21st, 2011 at 7:35pm by JonB »  

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



Posts: 10

None
Re: Local host install
Reply #4 - Sep 22nd, 2011 at 5:43pm
Post Tools
I guess I'll just to have to give up .. I have followed the instructions to the letter but it did not work  Shocked perhaps Yabb does not like to be installed on a local server ?
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,476
Location: Earth

YaBB 2.6.1
Re: Local host install
Reply #5 - Sep 23rd, 2011 at 4:02pm
Post Tools
I have YaBB working fine on a local server.

First, make sure your server is actually serving up pages from your designated document root directory. If you're not at least getting an index page of some sort served up from localhost you're already in trouble.

If you ARE getting your index page served, then make sure that the perl scripts in YaBB are actually pointing to your installation of Perl (That's the 'hash-bang' line JonB talked about.) The files also need to be their proper place - as JonB pointed out your directory for the Yabb Scripts is not correct for a vanilla server install. and you'll need to either move them or edit your httpd.config to take that into account.

For a Vanilla install:
Your cg-bin is a directory in your default Document root (wherever your Apache install put it). The YaBB scripts directory and sub-directories should be in there. Make sure your permissions are set to 755 for the scripts.

The Yabb docs should be in the properly named directory right next to that cgi-bin.

Again, if you want to change the location of your document root, you need to edit your httpd.conf to point to that directory and allow directories other than the main cgi-bin to serve up scripts.  There are various ways to do this - JonB gave you an example of the most common method.

The various Apache boards and tutorials can guide you through editing the httpd.config file.

Good luck.

But yes, it can be done.
« Last Edit: Sep 23rd, 2011 at 4:12pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #6 - Sep 23rd, 2011 at 7:54pm
Post Tools
thanks Dandello - that was a good explanation...

Cool
  

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



Posts: 10

None
Re: Local host install
Reply #7 - Sep 24th, 2011 at 2:27pm
Post Tools
JonB wrote on Sep 23rd, 2011 at 7:54pm:
thanks Dandello - that was a good explanation...

Cool

Ok still no good !! I must be missing something ... from the instructions or I am not understanding them ! 5 days to set something up is a bit more than one would imagine I have inclosed the apache settings. As for the server not serving documents other programs such as wordpress (I know php based) installed within 5 mins and are working quite happy.
  

mysite.txt ( 0 KB | 104 Downloads )
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #8 - Sep 24th, 2011 at 6:20pm
Post Tools
OK - based on that configuration these locations should work:

all of the files from yabb2 -> down

/usr/lib/cgi-bin/yabb2

all of the files from yabbfiles -> down

/home/jim/www/yabbfiles

Set all permissions as described earlier - (as in the codex or Quick Guide that came with the DL)

---- that may just get things going ---- but I don't see a Perl Handler and I think I know why -

http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html

If that is what you are running - you may not have Perl Support - can be fixed -  and that would explain everything.

Google this "adding Perl Support to natty"

Perl is the scripting language YaBB is written in and is required to make it run.

I'm not an Ubuntu wiz - I have Fedora & Centos for Linux - else I might have made that connection earlier.

I agree, WordPress indeed has a wonderful installer.  I won't go into the intricate differences, - but suffice to say YaBB is nimbler and has very, very, few absolute requirements to run, the exact opposite is the case for WordPress.  The trade-off is that YaBB's flexibility has a price - it requires a much deeper understanding of servers for a self-hoster to get set up. (I'm also a WordPress developer and a member of the XAMPP project)

Good Luck
Wink
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,476
Location: Earth

YaBB 2.6.1
Re: Local host install
Reply #9 - Sep 24th, 2011 at 9:58pm
Post Tools
I knew I should have added this to my explanation: make sure your perl handler is running. Shocked
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #10 - Sep 24th, 2011 at 10:15pm
Post Tools
@ Dandello - hehehehehe  Wink

And we have not even mentioned SE Linux, which might or might not throw a wrench in the works...

Shocked
  

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



Posts: 10

None
Re: Local host install
Reply #11 - Sep 25th, 2011 at 10:54am
Post Tools
Still not working should I be taking note of http://packages.ubuntu.com/natty/libcgi-ajax-perl.
Also to bear in mind this is a desktop version of natty and not the server version. I have a spare partition do you think it wise to setup a server version of Ubuntu on that partition ?
On the desktop I have installed perlbrew which allows installation of perl and usage it notes I have perl version -5.15.3 is that ok ?
If I manage to get this set up I intend to develop the site and when ready move it to a windows server. The idea behind using YABBS for this deployment is that YABBS does not rely on mysql so in theory should be happy on a windoze server
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Local host install
Reply #12 - Sep 25th, 2011 at 12:55pm
Post Tools
A. - On Linux, The different distributions (Ubuntu, debian, Fedora and so on) ALL share the exact same Linux 'core' (obviously newer versions come along from time to time) - just in somewhat different packages.  Perl, PHP, Apache, MySQL - even the desktops (GNU, KDE etc) and so forth come from other parties/developers.  There is really only ONE PHP 5.3.8 source, and only one Perl 5.xx and so forth. (that is NOT true on Windows - things get all over the place)

Linux distributions are recipes, but the ingredients are basically all the same.  So they are all Linux 'cake', and have basically the same 'nutrients' but in different proportions and taste a little different. Unlike Windows - as you have learned - the different distros 'put stuff in different places'. BUT its all the same stuff!  And they all take exactly the same commands, and work by the same settings.

So the difference between a desktop version and a server version is the mix of ingredients. Unlike Windows, where there is NO question a server product can do things a desktop version cannot, on Linux, you just add the missing pieces (like Perl, or whatever) and sometimes twiddle the settings to optimize it.

Both of my Linux boxes I use for development are Fedora desktop installs.  I just added the right 'software parts' in order to arrive at a Linux server.  One is a XAMMP/LAMPP fix-up and the other was all done with 'yum' (its basically just like 'apt-get') -- an installer.  Usually the easiest thing is to pick an install package that has most of the things you want, and then just add a few things.  Perl is in most of the 'server' and 'developer' flavors of any given distribution.  In your case, you just need some 'extra spices' to make your desktop install work. To validate what we are talking about - just look at the specs of the package you installed from - if it doesn't say Perl somewhere in the features - its just 'not installed'.

The best course for you is to ask on the 'Ubuntu' forums and ask which package is easiest to add to get you the Perl you probably need (just like you did here). Its probably already packaged in the official repositories waiting for you to 'apt-get perl' or something like that. The installer will figure out what dependencies there are, and do the job for you.

http://ubuntuforums.org/

When your machine serves a 'Hello World' perl page, YaBB will be ready to move in.
http://perl.about.com/od/gettingstartedwithperl/a/testperl.htm

Name it HelloWorld.pl - place it in the cgi-bin folder, then http://localhost/cgi-bin/HelloWord.pl -> It should work if Perl is installed.

This kind of stuff is actually 'my other volunteer job on the net' I'm part of the XAMPP project (Apache, MySQL, PHP, Perl on Windows, Linux, Mac and Solaris) - another packaging job - except on 'all' the desktop platforms.  I do the same thing - explain server settings and how to make things work.  

B. - As for MySQL on Windows, that is no longer the chore it used to be either.  

Good Luck and have fun. Although this was not as 'easy' as Wordpress - you will have actually learned a lot more,.

Cool

BTW - visit my Wordpress site dedicated to all this stuff -'The Excruciatingly Correct Guide'  If you think its worthy, give it a Facebook thumbs up (Like)
« Last Edit: Sep 25th, 2011 at 1:04pm by JonB »  

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



Posts: 10

None
Re: Local host install
Reply #13 - Sep 25th, 2011 at 3:32pm
Post Tools
I have perl running ... got to the install logged in as admin and now working .. but some of the modules are missing
Net::SMTP::TLS
Compress::Bzip2
MIME::Lite
Crypt::SSLeay
are they required ?
To be fair I do not quite understand how I got perl to run so I have not learnt anything ... yet let us see when I add this to a live server
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,476
Location: Earth

YaBB 2.6.1
Re: Local host install
Reply #14 - Sep 25th, 2011 at 3:39pm
Post Tools
Quote:
Unlike Windows, where there is NO question a server product can do things a desktop version cannot...


Since my development desktop server is on XP (Wamp with ActivePerl)... A properly configured Windows server package with Perl added does a very nice job of emulating of whatever. I've actually found very little functional difference (from a web developer's POV) between my desktop server and my Linux-based VPS - aside from cPanel and access to a mail server.
My production server is a VPS running Linux.

And yes, MySQL does now work nicely on a Windows desktop.  Smiley

Chances are, you won't need Net::SMTP::TLS or Compress::Bzip2

For the others, if YaBB is working, you may not need them. If you do, check whatever module installer your Perl came with and install them - they may or may not be installed on your main server. If they are not, you should get them installed for you.

YaBB does a good job telling you if certain modules are required.

« Last Edit: Sep 25th, 2011 at 3:48pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools