Gossamer Forum
Home : Products : Others : Gossamer Community :

Login Form using ssl?

Quote Reply
Login Form using ssl?
Hi Alex/All,
Please help. Would like to use SSL for the LoginForm "myform":

<form name ="myform" action=https://mydomain/perl/gc/community.cgi method="post">
-----
------
etc
</form>


After clicking submit, I get the following Error:

May 5 13:03:42 2006] [error] Can't locate GT/MD5/Crypt.pm in
@INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl . /etc/apache-ssl/ /etc/apache-ssl/lib/perl) at
/opt/mydomain/perl/gc/private/lib/Community.pm line 360.\n


thank you,pyc
Quote Reply
Re: [pyc] Login Form using ssl? In reply to
Hi,

Looks like something is wrong with your install. It looks like community.cgi isn't loading the private path into @INC. Check community.cgi for a line like:

use lib '/opt/mydomain/perl/gc/private/lib';

which should have been added during install.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Login Form using ssl? In reply to
Yes, the line below is included in community.cgi:

use lib '/opt/mydomain/perl/gc/private/lib';

thank you, peter
Quote Reply
Re: [pyc] Login Form using ssl? In reply to
Hi,

That path isn't in INC though, so something weird is going on:

May 5 13:03:42 2006] [error] Can't locate GT/MD5/Crypt.pm in
@INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl . /etc/apache-ssl/ /etc/apache-ssl/lib/perl) at
/opt/mydomain/perl/gc/private/lib/Community.pm line 360.\n

You should see the path in that list. Try editing:

/opt/mydomain/perl/gc/private/lib/Community.pm line 360

and put just before the GT::MD5::Crypt line:

require Carp;
eval {
require GT::MD5::Crypt;
};
if ($@) { Carp::confess("died: $@"); }

and see what the error message says.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Login Form using ssl? In reply to
Hi Alex,
I'm actually getting the same error.
thank you, peter
Quote Reply
Re: [pyc] Login Form using ssl? In reply to
Hi,

Check for multiple copies of community installed. I suspect under SSL you are hitting a different script, as you shouldn't get the same error.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Login Form using ssl? In reply to
Hi Alex,
Below is what I'm getting now after removing old installs and rebooting. Maybe its because of my login redirect. I'm redirecting from index.html. Don't have enought experience with redirecting:

Status: 302 Moved Set-Cookie: Community_Name=pyc; path=/ Set-Cookie: Community_Sesssion=e356013666054a4f0e26f9aaec24ebd6; path=/ Date: Fri, 05 May 2006 23:10:05 GMT Location: http://www.mydomain.com/...bmail.cgi?stay_put=1 Content-type: text/html


The above is printer on the screen instead of the mail.
thank you, peter
Quote Reply
Re: [pyc] Login Form using ssl? In reply to
Thanks Alex,
I finally got it going by also disabling suExec in both apache/apache-ssl
thank you, peter