Page Index Toggle Pages: [1] 2 
Topic Tools
 10 Local host install (Read 7,077 times)
Elfen
Full Member
***
Offline



Posts: 450
Re: Local host install
Reply #22 - Jan 23rd, 2012 at 10:47pm
Post Tools
Ubuntu should not be that different from any other Linx Install, except Ubuntu Server is in text mode only and everything is done on the command window.

If you read over the Basics for Suse Linux install and realize the differences where Suse and Ubuntu saves their files, then you should be able to install your YaBB on Ubuntu.

Read: http://www.yabbforum.com/codex/YaBB.pl?num=1216527632
(Yes, I wrote many years ago and those who follow it to the letter, are success 100% of the time!)

Now NOTE: You will need Ubnutu Server and not Ubuntu Desktop or any other Unbuntu Distro like Kubunu! Ubuntu desktop does not come with a webserver applications. Furthermore, Ubuntu Server does not come with a GUI (Desktop Windows systems), and Ubuntu Desktop does not come with a full Perl Package.

In thinking about it, looks like its time to set up an Ubuntu server, install YaBB on it and write it up to post here!
« Last Edit: Jan 23rd, 2012 at 10:48pm by Elfen »  
Back to top
 
IP Logged
 
JimTR
YaBB Newcomer
*
Offline



Posts: 10

None
Re: Local host install
Reply #21 - Sep 25th, 2011 at 8:20pm
Post Tools
JimTR wrote on Sep 25th, 2011 at 6:12pm:
Dandello wrote on Sep 25th, 2011 at 5:42pm:
Try using your desktop IP instead of localhost for the url path settings in YaBB that aren't working properly.
(I've had this problem before. I ended up having to change settings on the second machine to identify 'localhost' as belonging to the server machine's IP. It was ugly.)

What's happening:  localhost is the local loopback IP (127.0.0.1)  - so when the second machine sees a call to localhost, it's looking at itself to find the path.

Ok fixed just changed the paths to read 192.168 ... etc  it worked .. perhaps not the best solution but good enough for software development !

Hence why I like the no SQL approach ... the server the finished product may reside on has no mysql ... just sql (by ms ... is that short for multiple sclerosis  Cool ) so the deployment , when required, will work !
  
Back to top
 
IP Logged
 
JimTR
YaBB Newcomer
*
Offline



Posts: 10

None
Re: Local host install
Reply #20 - Sep 25th, 2011 at 8:14pm
Post Tools
Dandello wrote on Sep 25th, 2011 at 6:21pm:
Well, the other method would be:
In the httpd.config there is a line to set your server name to the IP address instead of localhost.

Now, the downside I see to using this is it may bollix up your previously installed apps as nothing referring to 'localhost' is going to work properly.

But you've now got everything working so congratulations.  Grin

Thanks just one last thing before I go and annoy everyone in the CSS area ... do you fancy a challenge ?
to set up the BB software I help develop back in the 80's ?
required are :-
a PC with a processor greater or equal to 8086
ram greater or equal to 512kb

at least 1 modem

Dos V4 or greater ... some versions of the dos shell under windows do not work ... (XP does so perhaps W7 also ?)

a text editor

a fossil driver

knowledge of ANSI std for colours

I can supply the fossil driver along with the forum software (bb)

let's see if it takes 5 days  Cheesy
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,088
Location: Earth

YaBB 2.6.0
Re: Local host install
Reply #19 - Sep 25th, 2011 at 6:21pm
Post Tools
Well, the other method would be:
In the httpd.config there is a line to set your server name to the IP address instead of localhost.

Now, the downside I see to using this is it may bollix up your previously installed apps as nothing referring to 'localhost' is going to work properly.

But you've now got everything working so congratulations.  Grin
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JimTR
YaBB Newcomer
*
Offline



Posts: 10

None
Re: Local host install
Reply #18 - Sep 25th, 2011 at 6:12pm
Post Tools
Dandello wrote on Sep 25th, 2011 at 5:42pm:
Try using your desktop IP instead of localhost for the url path settings in YaBB that aren't working properly.
(I've had this problem before. I ended up having to change settings on the second machine to identify 'localhost' as belonging to the server machine's IP. It was ugly.)

What's happening:  localhost is the local loopback IP (127.0.0.1)  - so when the second machine sees a call to localhost, it's looking at itself to find the path.

Ok fixed just changed the paths to read 192.168 ... etc  it worked .. perhaps not the best solution but good enough for software development !
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.0
Re: Local host install
Reply #17 - Sep 25th, 2011 at 5:47pm
Post Tools
@ Dandello

I agree, from a web development point fo view, there's relatively little difference between a Windows desktop with Apache, PHP and MySQL and a Windows Server with Apache and MySQL.  I used to use WAMP, but became a fan of XAMPP.  There are still some extensions that just don't have the Windows binaries, and it takes a  lot of work (plus the right compilers) to 'shake & bake' your own.  Those, admittedly, are mostly exotic stuff and for that you should be developing on the same OS, in my opinion.

That said - these are enormous differences in  IIS production environments or in Windows Domains. Including the fact that the Windows IP stack is different on workstation flavors from the same Server versions (more IP sessions - among other things). The Windows Server family also has literally dozens of specialized server variants 

@ JimTR

Well you have it working, and that's the big part.  Wink

I can knock out a few of those

Bzip2 method is one of several compression methods for YaBB backup. (which you SHOULD learn about in Admin Center) YaBB can back it self up and store, email or allow you to DL the backup files). You will probably find that the tar and tar.gz methods are available since you are on Linux.

Net::SMTP:TLS and Crypt::SSLeay are both for communicating with an SMTP server using TLS(SSL for mail) such as Gmail or Yahoo Bizmail (that would be used sending notifications or 'email your members'). The outbound server is a third party (not yours or your ISP's) that requires a secure connection w/authentication. for a local server - not an issue.

MIME::Lite appears to be for attaching to e-mail - I suspect its used by YaBB Backup to attach the Archive to the outbound e-mail - in your case on a local server, non-critical
 
http://search.cpan.org/~rjbs/MIME-Lite-3.027/lib/MIME/Lite.pm

Good Luck
Cool
  

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,088
Location: Earth

YaBB 2.6.0
Re: Local host install
Reply #16 - Sep 25th, 2011 at 5:42pm
Post Tools
Try using your desktop IP instead of localhost for the url path settings in YaBB that aren't working properly.
(I've had this problem before. I ended up having to change settings on the second machine to identify 'localhost' as belonging to the server machine's IP. It was ugly.)

What's happening:  localhost is the local loopback IP (127.0.0.1)  - so when the second machine sees a call to localhost, it's looking at itself to find the path.
« Last Edit: Sep 25th, 2011 at 5:47pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JimTR
YaBB Newcomer
*
Offline



Posts: 10

None
Re: Local host install
Reply #15 - Sep 25th, 2011 at 4:57pm
Post Tools
Ok so now it works on the desktop (ip 192.168.1.67) no problem but if I log on via another machine on the network by typing "192.168.1.67/cgi-bin/yabb2/YaBB.pl" this machine appears to read the paths set (localhost) really this should be 192.168.1.67 and displays the board in a format without css & images (as the paths read localhost/*.* rather than 192.168.1.67/*.*). Any option then selected then fails with a 404 error so I guess I have missed yet another point !
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,088
Location: Earth

YaBB 2.6.0
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
 
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
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.0
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 #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: 3,768
Location: Land of the Blazing Sun!

YaBB 2.6.0
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
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,088
Location: Earth

YaBB 2.6.0
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: 3,768
Location: Land of the Blazing Sun!

YaBB 2.6.0
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
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top