Page Index Toggle Pages: 1
Topic Tools
Normal Topic Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how! (Read 1,918 times)
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,587
Location: UK:Scotland/livingston

None
Re: Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Reply #5 - Jun 2nd, 2013 at 12:22am
Post Tools
Elfen wrote on Jun 1st, 2013 at 8:31pm:
I'll give you a thumbs up, xnoddyx.

thank you i hope this was of help to you.  Smiley
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Elfen
Full Member
***
Offline



Posts: 450
Re: Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Reply #4 - Jun 1st, 2013 at 8:31pm
Post Tools
I'll give you a thumbs up, xnoddyx.
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,587
Location: UK:Scotland/livingston

None
Re: Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Reply #3 - May 18th, 2013 at 9:36pm
Post Tools
Elfen wrote on May 18th, 2013 at 7:12pm:
Personally, though there are ways in using IIS with Perl and YaBB, it is not a perfect marriage since MS put in and use their (stupid!) definitions instead of using the ones everybody else does. Also, the security of IIS when compared to all other webserver software out there is very lacking. I would not use IIS even if my life depended on it.Now, understanding the differences between Apache and other webserver software and MS's IIS, one has to put together their own set of commands to get it to work. And permissions on Windows is very different than on UnIX/Linux...I might even point a finger at ActiveState Perl, though I praise it. Its not perfect either. Nothing really is...In question, I have to ask, what are your logs and error logs saying about this? That would be very helpful to an answer.There used to be a very good MS/IIS guy on the forum but I have not seen him lately despite my absence on the board. Maybe he will post something up if he reads this.

unforchantly JonB is very busy just now but I setup a windows x64 server 2003 IIS with ActiveState Perl x32 5.16.2 Build 1602 as i had read that there was problems with ActiveState Perl x64 and IIS what I did was install it as normal then in Internet Information Services (IIS) Manager in the left window find your site right click it and go to properties then click on home directory tab then then click on configuration button then look for .cgi and .pl if you don't see them use the add button to add them with this info
Executable: C:\Perl\bin\perl.exe "%s" %s
Verbs Limit to: GET,HEAD,POST,DEBUG

save that and test that is all I remember doing to set it up.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Elfen
Full Member
***
Offline



Posts: 450
Re: Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Reply #2 - May 18th, 2013 at 7:12pm
Post Tools
Gomez Addams wrote on Dec 11th, 2012 at 9:46pm:
3. There is a bug in fatal_error where it calls template() to display the error to the user. Unfortunately, if fatal_error is called to report that the config files can't be found, it calls template() and since the template files can't be opened, it calls "die()". My workaround is to put this in "fatal_error":

Code (Perl)
Select All
print "Content-type: text/plain

";
print "Last error: $!
";
 



Not pretty, but it lets you know what's going on.


Using 'Content-type: text/plain' defautls to a text screen or file and crashes when trying to be used on a browser.


Personally, though there are ways in using IIS with Perl and YaBB, it is not a perfect marriage since MS put in and use their (stupid!) definitions instead of using the ones everybody else does. Also, the security of IIS when compared to all other webserver software out there is very lacking. I would not use IIS even if my life depended on it.

Now, understanding the differences between Apache and other webserver software and MS's IIS, one has to put together their own set of commands to get it to work. And permissions on Windows is very different than on UnIX/Linux...

I might even point a finger at ActiveState Perl, though I praise it. Its not perfect either. Nothing really is...

In question, I have to ask, what are your logs and error logs saying about this? That would be very helpful to an answer.


There used to be a very good MS/IIS guy on the forum but I have not seen him lately despite my absence on the board. Maybe he will post something up if he reads this.
« Last Edit: May 18th, 2013 at 7:15pm by Elfen »  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,255
Location: Earth

YaBB 2.6.0
Re: Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Reply #1 - Jan 3rd, 2013 at 5:04pm
Post Tools
I'm not actually as dumb as I sometimes sound but exactly where in sub fatal_error does this go?
Code
Select All
print "Content-type: text/plain\n\n";
print "Last error: $!\n";
  

 Huh

Edited:
And wouldn't
Code
Select All
use CGI::Carp qw(fatalsToBrowser); 

be more generic and work as well?
« Last Edit: Jan 3rd, 2013 at 6:52pm by Dandello »  

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



Posts: 5

None
Installing YaBB 2.5.2 on Windows 2008 and IIS 7 - here's how!
Dec 11th, 2012 at 9:46pm
Post Tools
There are three problems that happen:
1. ActivePerl doesn't register handlers with IIS
2. YaBB can't find its install directory
3. There is a bug in the function "fatal_error" in Subs.pl

Here are the fixes:

1. Register perl.exe as a handler for *.pl as an exe handler (I can't post the link, but google "perl iis 7 perl.exe" ) Don't try to use perl via isapi.

2. Towards the top of Setup.pl, just after this line:
Code (Perl)
Select All
$script_root = $ENV{'SCRIPT_FILENAME'};
 



add this code:
Code (Perl)
Select All
if( ! script_root ) {
   $script_root = $ENV{'PATH_TRANSLATED'};
   $script_root =~ s!\\!\/!g;
}
 



3. There is a bug in fatal_error where it calls template() to display the error to the user. Unfortunately, if fatal_error is called to report that the config files can't be found, it calls template() and since the template files can't be opened, it calls "die()". My workaround is to put this in "fatal_error":

Code (Perl)
Select All
print "Content-type: text/plain\n\n";
print "Last error: $!\n";
 



Not pretty, but it lets you know what's going on.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top