Re: Cannot load mod_perl.so

2006-05-16 Thread Issac Goldstand
You may need to add (to httpd.conf)
LoadFile c:/path/to/perl/bin/perl58.dll

before the LoadModule line.

  Issac

Tracy E Schreiber wrote:
> Hi,
>
> I hope this isn't too much of a newbie question...
>
> I am trying to upgrade from Apache 2.0.55 using mod_perl V1.0 to Apache 
> 2.2.2 using mod_perl V2.0. This installation is on a Windows XP Pro SP2 
> machine. I get this error:
>
> httpd.exe: Syntax error on line 31 of D:/Apache2.2/conf/httpd.conf: Cannot 
> load
> D:/Apache2.2/modules/mod_perl.so into server: The specified module could not 
> be
> found.
>
> The module is in the directory. Am I doing something wrong or is the module 
> not compatible with Apache 2.2.2?
>
> Thank You,
> Tracy
>
>
>   



Is Apache::Session for Apache2 on Windows?

2006-05-16 Thread Foo Ji-Haw
I'm trying to explore using sessions in my application. It seems that my 
option is restricted to Apache::Session. Please let me know if other 
session modules exist for my platform.


My test codes are as follows:
First run (to generate the session):

   my %session;
   eval
   {
   tie %session, 'Apache::Session::File', undef,
   {Directory => 'd:/sessions',
   LockDirectory   => 'd:/LockSessions',};
   };
   if ($@)
   {
   die "Global data is not accessible: $@";
   }
   print $session{_session_id};
undef %session;

Subsequent runs:

   my %session;
   my $SessionID = 'c2e9a96e10b6918c4a358591413cddf5';
   eval
   {
   tie %session, 'Apache::Session::File', $SessionID,
   {Directory => 'd:/trendicate3/sessions',
   LockDirectory   => 'd:/trendicate3/LockSessions',};
   };
   if ($@)
   {
   die "Global data is not accessible: $@";
   }
   print $session{name}.'';
   $session{name} = 'John Doe';
undef %session;

My problems as as follows:
1. For some strange reason, the page will not load completely. What I 
mean to say is that the page displays, but the connection will not end, 
as if the process (thread, in Windows implementation) cannot end. I 
suspect maybe cleaning up the tie() has something to do with it.
2. I tried to store some stuff in the session (see code above), but it 
did not store. Very strange. I suspect if I can solve (1), (2) will 
resolve on its own.


Hope you guys can point me in the right direction. Thanks.


Re: Is Apache::Session for Apache2 on Windows?

2006-05-16 Thread Perrin Harkins

Foo Ji-Haw wrote:
I'm trying to explore using sessions in my application. It seems that my 
option is restricted to Apache::Session. Please let me know if other 
session modules exist for my platform.


CGI::Session.  Don't be put off by the name.  Neither Apache::Session or 
CGI::Session have anything to do with mod_perl, and both work fine with it.



Subsequent runs:

   my %session;
   my $SessionID = 'c2e9a96e10b6918c4a358591413cddf5';


Where did that come from?  Normally you would store this in a cookie or 
in URLs.


1. For some strange reason, the page will not load completely. What I 
mean to say is that the page displays, but the connection will not end, 
as if the process (thread, in Windows implementation) cannot end. I 
suspect maybe cleaning up the tie() has something to do with it.


It may be having problems locking on Win32, or the file storage may not 
work with threads.  Have you considered using a database for storage 
instead?  It's faster and more cross-platform.


- Perrin


Re: Cannot load mod_perl.so

2006-05-16 Thread Tracy E Schreiber
Hi Randy,

Thank you for the new module. It loads correctly.

Thank you to everyone for their help and suggestions.

Tracy

"Randy Kobes" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Mon, 15 May 2006, Tracy E Schreiber wrote:
>
>> Hi,
>>
>> I hope this isn't too much of a newbie question...
>>
>> I am trying to upgrade from Apache 2.0.55 using mod_perl V1.0 to Apache 
>> 2.2.2 using mod_perl V2.0. This installation is on a Windows XP Pro SP2 
>> machine. I get this error:
>>
>> httpd.exe: Syntax error on line 31 of D:/Apache2.2/conf/httpd.conf: 
>> Cannot load D:/Apache2.2/modules/mod_perl.so into server: The specified 
>> module could not be found.
>>
>> The module is in the directory. Am I doing something wrong or is the 
>> module
>> not compatible with Apache 2.2.2?
>
> Assuming you got the mod_perl package through our ppm repository at 
> http://theoryx5.uwinnipeg.ca/ppms/, you're
> right that it's a compatibility issue; the mod_perl ppm
> package was compiled with Apache/2.0, and such modules
> aren't compatible with Apache/2.2. I've put up a
> mod_perl-2.2 ppm package in this repository that was
> compiled against Apache/2.2 - try installing that to
> see if that helps.
>
> -- 
> best regards,
> Randy Kobes
> 





module "mod_perl.c" is not compatible with this version of Apache (found 20051115, need 20020903)

2006-05-16 Thread Adrian Diezig
I try to install apache 2.0.58 with mod_perl 2.0.2.

After "make test" I got the following output at the end:



httpd: module "mod_perl.c" is not compatible with this version of Apache
(found 20051115, need 20020903).
Please contact the vendor for the correct version.
httpd: module "mod_perl.c" is not compatible with this version of Apache
(found 20051115, need 20020903).
Please contact the vendor for the correct version.
httpd: module "mod_perl.c" is not compatible with this version of Apache
(found 20051115, need 20020903).
Please contact the vendor for the correct version.
[  error] You are using mod_perl response handlers
[  error] but do not have a mod_perl capable Apache.
++
| Please file a bug report: http://perl.apache.org/bugs/ |


On the website perl.apache.org you can see that it should be possible to
install apache 2.0.58 with mod_perl 2.0.2.

With apache 2.2.2 there aren't any installation problems with mod_perl
2.0.2.

I started the installation with:

perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX="/tmp/httpd-2.0.58"
MP_AP_CONFIGURE="--prefix=/opt/qip-WS/apache2 --enable-ssl --with-ssl=/usr/l
ocal/ssl --with-mpm=prefork"


Mit freundlichen GrĂ¼ssen / Best Regards
Adrian Diezig

GENESIS COMMUNICATION
Adrian Diezig
Bernstrasse 34
CH-3072 Ostermundigen

Telefon:   ++41 (0)878 883 111
Fax:   ++41 (0)878 883 110

Email: [EMAIL PROTECTED]
WEB:   www.GenesisCom.ch