Page Index Toggle Pages: 1 [2] 
Topic Tools
Hot Topic (More than 10 Replies) Local host install (Read 7,290 times)
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 | 100 Downloads )
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

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



Posts: 2,130
Location: Earth

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



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

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

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