Page Index Toggle Pages: 1 [2] 
Topic Tools
Very Hot Topic (More than 25 Replies) Unable to log in to my new forum (Read 10,055 times)
Captain John
Ex Member


Re: Unable to log in to my new forum
Reply #15 - Dec 3rd, 2010 at 10:11pm
Post Tools
Remove that code from YaBB.pl

in Subs.pl find:
Code (Perl)
Select All
  &split_string(\$testenv, \%INFO, 1);
  if ($ENV{'SERVER_SOFTWARE'} =~ /IIS/) {
    ($dummy,$IISver) = split( '\/', $ENV{'SERVER_SOFTWARE'});
    ($IISver,$IISverM) = split( '.',$IISver);
    if (int($IISver) < 6 && int($IISverM) < 1) { eval 'use CGI qw(:standard)'; }
  } 



Replace highlighted with:
Code (Perl)
Select All
	if ($ENV{'SERVER_SOFTWARE'} =~ /IIS/) {
		($dummy,$IISver) = split( '\/', $ENV{'SERVER_SOFTWARE'});
		($IISver,$IISverM) = split( '.',$IISver);
		if (int($IISver) < 6 && int($IISverM) < 1) { eval 'use CGI qw(:standard -nph)'; }
	}

 

  
Back to top
 
IP Logged
 
Darf76
YaBB Newcomer
*
Offline



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #16 - Dec 4th, 2010 at 10:56pm
Post Tools
ok.. I have done this, now there is no error message.. however, when I have entered the username and password, and press "Login" the username and password fields just turn "blank"..
I checked the file permissions again, and verified that I uploaded the file in ASCII mode...

Im still waiting for an answer for my host, to tell me about the coockie info you mentioned earlier...
  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Unable to log in to my new forum
Reply #17 - Dec 5th, 2010 at 12:01am
Post Tools
The cookie problem deals with a windows server not entering the correct date/time in the cookie written to your personal computer.
 See if you can find your forums cookie on your computer and see if the date written inside is correct, it is a simple text file.
« Last Edit: Dec 5th, 2010 at 12:03am by »  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #18 - Dec 5th, 2010 at 5:59pm
Post Tools
@ CJ -

My recollection of the issue is that most browsers discard (never write) expired inbound cookies.  That was, I think, why we had to use a packet-sniffer.  I have a nachine at the office setup for network analysis.

@Darf - I'm asking you to PM me the correct URL for YaBB on that server.  On Monday (once I have restored a database server and its clients to working) I'll point it at your server - I know what to look for.

Good luck to all
Smiley
  

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



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #19 - Dec 6th, 2010 at 8:06am
Post Tools
I cannot find the coockie for the forum on my computer, but I wasnt successful at finding any trace og the coockie when I was trying to log in.

@JonB I hav PM'ed you the URL for Yabb on that server Smiley

thank you for your help Smiley
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #20 - Dec 6th, 2010 at 7:58pm
Post Tools
I farqued up:  Grin

In order to have it send a cookie, I need a valid login & pw - preferably the admin (that might be all you could give at the moment) I have to get past the login/login2 phase for YaBB.pl to send a cookie for me to trap with PCAP.

Thanks
Smiley
  

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



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #21 - Dec 7th, 2010 at 8:27am
Post Tools
Grin
Then I have just PM'ed you som usernames and passwords, that will make you able to log on.

Admin and a user with admin rights
Smiley
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #22 - Dec 8th, 2010 at 2:48pm
Post Tools
for better or worse - I was correct about the problem - YaBB is sending expired cookies (sadly)
Code
Select All
0000  00 09 5b e2 ce f6 00 09  5b 44 63 ba 08 00 45 00   ..[..... [Dc...E.
0010  02 10 14 6f 40 00 76 06  d6 71 d5 bc 81 48 c0 a8   ...o@.v. .q...H..
0020  00 5a 00 50 0f cc 9e d0  f9 67 7b ef 92 0f 50 18   .Z.P.... .g{...P.
0030  f6 a1 10 f1 00 00 48 54  54 50 2f 31 2e 31 20 32   ......HT TP/1.1 2
0040  30 30 20 4f 4b 0d 0a 53  65 72 76 65 72 3a 20 4d   00 OK..S erver: M
0050  69 63 72 6f 73 6f 66 74  2d 49 49 53 2f 35 2e 30   icrosoft -IIS/5.0
0060  0d 0a 44 61 74 65 3a 20  57 65 64 2c 20 30 38 20   ..Date:  Wed, 08
0070  44 65 63 20 32 30 31 30  20 31 34 3a 34 31 3a 35   Dec 2010  14:41:5
0080  34 20 47 4d 54 0d 0a 43  6f 6e 6e 65 63 74 69 6f   4 GMT..C onnectio
0090  6e 3a 20 63 6c 6f 73 65  0d 0a 48 54 54 50 2f 31   n: close ..HTTP/1
00a0  2e 30 20 32 30 30 20 4f  4b 0d 0a 53 65 74 2d 43   .0 200 O K..Set-C
00b0  6f 6f 6b 69 65 3a 20 59  32 55 73 65 72 2d 36 35   ookie: Y 2User-65
00c0  36 35 31 3d 3b 20 70 61  74 68 3d 2f 3b 20 65 78   651=; pa th=/; ex
00d0  70 69 72 65 73 3d 54 68  75 72 73 64 61 79 2c 20   pires=Th ursday,
00e0  30 31 2d 4a 61 6e 2d 31  39 37 30 20 30 30 3a 30   01-Jan-1 970 00:0
00f0  30 3a 30 30 20 47 4d 54  3b 0d 0a 53 65 74 2d 43   0:00 GMT ;..Set-C
0100  6f 6f 6b 69 65 3a 20 59  32 50 61 73 73 2d 36 35   ookie: Y 2Pass-65
0110  36 35 31 3d 3b 20 70 61  74 68 3d 2f 3b 20 65 78   651=; pa th=/; ex
0120  70 69 72 65 73 3d 54 68  75 72 73 64 61 79 2c 20   pires=Th ursday,
0130  30 31 2d 4a 61 6e 2d 31  39 37 30 20 30 30 3a 30   01-Jan-1 970 00:0
0140  30 3a 30 30 20 47 4d 54  3b 0d 0a 53 65 74 2d 43   0:00 GMT ;..Set-C
0150  6f 6f 6b 69 65 3a 20 59  32 53 65 73 73 2d 36 35   ookie: Y 2Sess-65
0160  36 35 31 3d 3b 20 70 61  74 68 3d 2f 3b 20 65 78   651=; pa th=/; ex
0170  70 69 72 65 73 3d 54 68  75 72 73 64 61 79 2c 20   pires=Th ursday,
0180  30 31 2d 4a 61 6e 2d 31  39 37 30 20 30 30 3a 30   01-Jan-1 970 00:0
0190  30 3a 30 30 20 47 4d 54  3b 0d 0a 43 61 63 68 65   0:00 GMT ;..Cache
01a0  2d 43 6f 6e 74 72 6f 6c  3a 20 6e 6f 2d 63 61 63   -Control : no-cac
01b0  68 65 2c 20 6d 75 73 74  2d 72 65 76 61 6c 69 64   he, must -revalid
01c0  61 74 65 0d 0a 50 72 61  67 6d 61 3a 20 6e 6f 2d   ate..Pra gma: no-
01d0  63 61 63 68 65 0d 0a 43  6f 6e 74 65 6e 74 2d 45   cache..C ontent-E
01e0  6e 63 6f 64 69 6e 67 3a  20 67 7a 69 70 0d 0a 43   ncoding:  gzip..C
01f0  6f 6e 74 65 6e 74 2d 54  79 70 65 3a 20 74 65 78   ontent-T ype: tex
0200  74 2f 68 74 6d 6c 3b 20  63 68 61 72 73 65 74 3d   t/html;  charset=
0210  49 53 4f 2d 38 38 35 39  2d 31 0d 0a 0d 0a         ISO-8859 -1....
 



The sad part is that I don't really know how to directly fix it.  I'm not expert enough with the Perl processes.

Time for more research
Wink
  

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



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #23 - Dec 8th, 2010 at 6:23pm
Post Tools
OK -

The 'right Google' helps -

I have some stuff to review and ask questions on

Google "iis 5.0 NPH".

It is indeed a set-cookie on CGI issue.

Could one of the 'knowledgeable ones' look at these?

http://support.microsoft.com/kb/176113

http://www.perlmonks.org/?node_id=485009

http://www.mail-archive.com/perl-win32-web@listserv.activestate.com/msg01468.htm...


Carsten:  it appears that the script name prefixing (nph-YaBB.pl) was broken by SP6 for NT.

It may be that IIS needs to be running Pwerl in ISAPI mode for this to work.
http://forum.joomla.org/viewtopic.php?p=1329879

Ask your host if they are configured to allow you to use ActiveStates Perl in ISAPI mode???

(sort of progress)
Wink
« Last Edit: Dec 8th, 2010 at 6:44pm by JonB »  

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



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #24 - Dec 10th, 2010 at 1:46am
Post Tools
@ darf

You need to ask your host two things -

1. - can you use Perl in ISAPI mode on the current server?

2. - Could your site be moved onto a Server 2003 machine? (IIS 6 does not have this issue)

There is a simple experiment to test #1.


temporarily remove the shebang lines in the files listed in the Quick Guide note on editing the shebang lines.

IF - after saving those files, you can access your YaBB forum, Perl for ISAPI is installed.  (and the problem may be solved)

Quick explanation - IIS is really an application server, and Active States built a library for Perl that does not require the Perl executable, all teh work is actaully done by the IIS Server processes.  Its like PHP as a DLL on Apache for Windows - the interpreter is run by the webserver itself.

I'm still looking for answers, BUT the nph fix should be the solution, since it didn't 'take', I think we may not have met one of its requirements - which 'might' be Perl for ISAPI (which is the default way to run Active States Perl on IIS)

Good Luck
  

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



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #25 - Dec 10th, 2010 at 11:46am
Post Tools
Hello! My host saus that it is running winserver 2003, and that Perl ist supported on that server ?!?!  Shocked
So they want to move "me" over to a Linux server instead of the windows server I am currently on...

... will that solve any problems?

I will ask my host again if it can be run in ISAPI mode, and if they have a server with IIS 6 installed, and then let you know the answer Smiley
  
Back to top
 
IP Logged
 
Darf76
YaBB Newcomer
*
Offline



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #26 - Dec 10th, 2010 at 11:54am
Post Tools
what I ment to say here is :My host saus that it is running winserver 2003, and that Perl is not supported on that server ?!?

Darf76 wrote on Dec 10th, 2010 at 11:46am:
Hello! My host saus that it is running winserver 2003, and that Perl ist supported on that server ?!?!  Shocked
So they want to move "me" over to a Linux server instead of the windows server I am currently on...

... will that solve any problems?

I will ask my host again if it can be run in ISAPI mode, and if they have a server with IIS 6 installed, and then let you know the answer Smiley

Darf76 wrote on Dec 10th, 2010 at 11:46am:
Hello! My host saus that it is running winserver 2003, and that Perl ist supported on that server ?!?!  Shocked
So they want to move "me" over to a Linux server instead of the windows server I am currently on...

... will that solve any problems?

I will ask my host again if it can be run in ISAPI mode, and if they have a server with IIS 6 installed, and then let you know the answer Smiley

  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.1
Re: Unable to log in to my new forum
Reply #27 - Dec 10th, 2010 at 2:14pm
Post Tools
A. if your host thinks that server is running Windows Server 2003, they are either liars or totally incompetent, take your choice, both BAD.  Note in that packet capture (code) I did, the server identification is passed in that exchange - both the server environment and cookie are passed in the sent HTTP header.  So you can draw your own conclusions. Wink

B. Yes, switching to a Linux host will eliminate this particular problem. You will need to install clean, get it working, and then move your backed up data into the new server. There will be some things that are different on Linux, such as sendmail, the shebang line abd the importance of proper permissions.  The file location/path for 'public_html' may also be different. So be sure to re-read the Quick Start and look in the Codex.


Good Luck
Cool
  

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



Posts: 15
Location: Norway

None
Re: Unable to log in to my new forum
Reply #28 - Jan 11th, 2011 at 11:58am
Post Tools
Finally I have gotten an answer from my web host.
I asked them what they could offer me if I moved to a Linux host.

The answer I got was "We support perl5.8 but do not have support for cgi.pm and socket.pm"

Dows this mean that I should look for a different place to hodt my yabbforum, or could I still run Yabb on this host?

I see that usually  cgi.pm and socket.pm are default installed with Perl5.8 but Im not sure what these people have done.. Sad
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Topic Tools
 
  « Board Index ‹ Board  ^Top