MP1 - libapreq1.2 broke apache / mod_perl installation

2003-08-03 Thread [EMAIL PROTECTED]
Hi

I am puzzled.

I installed libapreq1.2 on a server the normal way (perl Makefile.PL, make, make test, 
make install)
and now my server refuses to run Apache::Cookie or Apache::Request.

It complains of

[Sun Aug  3 18:09:29 2003] [error] Can't load 
'/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Apache/Cookie/Cookie.so' for module 
Apache::Cookie: libapreq.so: cannot open shared object file: No such file or directory 
at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
 at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mod_perl.pm line 14

What puzzles me is that it this worked perfectly on another near identical machine.

Why does it want .so files? I thought that happened only if you installed it using the 
./configure method, which I didnt.

Apache  Modperl installed from the official redhat 7.2 rpms

Please help, I have a production server that is down and I cannot think straight at 
the moment.


-- Joelle Nebbe, [EMAIL PROTECTED] on 03/08/2003



Re: Preloading DBI crashes Apache

2003-02-26 Thread [EMAIL PROTECTED]
On Wed, Feb 26, 2003 at 01:09:46AM -0500, Dan Brosemer wrote:
 Here's the thread to date:
 http://marc.theaimsgroup.com/?l=apache-modperlm=104586287823510w=2
helo;
I am seeing problems with mod_perl in OpenBSD 3.2 
chroot env. This has me twiddling my thumbs after tailing my 
error_log:) Anyways it is obviously something to do with 
the chroot. If I start apache with httpd -u (non-chrooted dso)
Then everything works fine. To test I try a simple mod_perl 
module, as well as try the env cgi tests in /cgi-bin .
Then when I chroot the mod_perl simple test works however
any /cgi-bin .pl or .cgi do not work. The chroot / is /var/www
whereas the /cgi-bin is /var/www/cgi-bin 
Did you find something occuring like that as well? 
Maybe it something obvious that I staring @ but I don't see
it and would appreciate a clue stick. (If one is handy.) ;-)

Best Regards,
[EMAIL PROTECTED]

-- 
/*  Security is a work in progress - dreamwvr */
# 
# Note: To begin Journey type man afterboot,man help,man hier[.]  
# 
// Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]


Re: Preloading DBI crashes Apache

2003-02-26 Thread [EMAIL PROTECTED]
On Wed, Feb 26, 2003 at 02:05:24PM -0500, Dan Brosemer wrote:
 This is not the problem I'm seeing at all.  You'll note from this thread
 http://monkey.org/openbsd/archive/misc/0302/msg01943.html
 that I see this same problem when using the sources from apache.org (no
 chroot available to be a problem).
 
 It seems related to compiling mod_perl as DSO and nothing else.
 
 To correct the problem you're seeing, I found it useful to make
 /var/www/var/www a symlink to /
tried it. It did not work. What happens is the same /var/www/cgi-bin
is used by httpd when in chroot or not. The error is the notorious 
Premature end of Script headers.. Which occurs only in chroot env.
chown to www.www doesn't make any diff  the chmod will be the same.
Appreciate the solution although it didn't work for me. 
before I forget for this wanting to apache in chroot w/startup.pl 

Here is a snippit for those using startup.pl in chroot that works ..

#!/usr/bin/perl

#modify the include path before we do anything
BEGIN {
 
  use Apache ();
  use lib Apache-server_root_relative('/lib/perl');
  ## Note: 
  # in chroot env server_root_relative is absolute from chroot /
  ##
}

I am starting to think it is not too practical running apache chrooted
at this time. I had thought that once the libs were in place etc
everything would work exactly the same. ;-}
Well off to parse the dso stuff. I might be real sorry I sed that;-)

Best Regards,
[EMAIL PROTECTED]

-- 
/*  Security is a work in progress - dreamwvr */
# 
# Note: To begin Journey type man afterboot,man help,man hier[.]  
# 
// Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]


Re: httpd chroot 3.2 mod_perl

2003-02-09 Thread [EMAIL PROTECTED]
On Sun, Feb 09, 2003 at 03:30:09PM +1100, Stas Bekman wrote:
 [EMAIL PROTECTED] wrote:
Hi,

  use lib Apache-server_root_relative('/lib/perl');
  in the chrooting of mod_perl the server_root_relative() is 
  absolute to the new chroot '/' not relative as in ('lib/perl)
  
Best Regards,
[EMAIL PROTECTED]



httpd chroot 3.2 mod_perl

2003-02-08 Thread [EMAIL PROTECTED]
  Hi,
I have the following error while running mod_perl chrooted
which I would appreciate suggestions.
[Sat Feb  8 08:58:30 2003] [error] Can't locate Apache/Test.pm in @INC (@INC contains: 
/var/www/lib/perl
+/var/www/lib/perl/Apache [...] . /var/www/) at (eval 299) line 3 during global 
+destruction.

[Sat Feb  8 08:58:30 2003] [error] Undefined subroutine Apache::Test::handler called 
at PerlHandler subroutine
+`Apache::Test' line 1 during global destruction.

ls -la /var/www/lib/perl/Apache
total 10
drwxr-xr-x  2 root  daemon   512 Feb  8 09:05 .
drwxr-xr-x  3 root  daemon   512 Feb  8 09:05 ..
-r--r--r--  1 root  daemon  7822 Feb  8 08:44 Test.pm

@INC looks fine..


## httpd.conf changes to test mod_perl chroot
# LoadModule foo_module libexec/mod_foo.so
LoadModule perl_modulelib/modules/mod_perl.so
#LoadModule perl_module/usr/lib/apache/modules/mod_perl.so
PerlRequire conf/startup.pl
PerlFreshRestart On
PerlModule Apache
[...]
Location /hello/test
  SetHandler perl-script
# Options and allow from all will adjust later
  Options ExecCGI
  allow from all
  PerlHandler Apache::Test
/Location
[...]
EOF

# ok check to make certain chroot has mod_perl dso where it likes it
ls -la /var/www/lib/modules
total 234
drwxr-xr-x  2 root  daemon 512 Feb  7 17:53 .
drwxr-xr-x  4 root  daemon 512 Feb  7 17:52 ..
-rwxr-xr-x  1 root  daemon  227540 Feb  7 17:53 mod_perl.so

# ok make sure conf/startup.pl exists
ls -al /var/www/conf
total 142
drwxr-xr-x   2 root  daemon512 Feb  7 16:41 .
drwxr-xr-x  12 root  daemon512 Feb  8 07:16 ..
-r--r--r--   1 root  bin 34840 Feb  8 09:08 httpd.conf
-r--r--r--   1 root  bin 44119 Oct  3 19:33 httpd.conf-dist
-r--r--r--   1 root  bin 34530 Feb  6 16:39 httpd.conf.bak
-r--r--r--   1 root  bin 12965 Oct  3 19:33 magic
-r--r--r--   1 root  bin 12381 Oct  3 19:33 mime.types
-rw-r--r--   1 root  bin   399 Feb  8 08:39 startup.pl
  
#used PerlModule Apache to tell httpd to load on startup we always start Fresh with 
apachectl start
less startup.pl
#!/usr/bin/perl
   
#modify the include path before we do anything
BEGIN {

  # forced insert into @INC to see if this is the problem. nope .. still does not 
work..
  use lib /var/www/lib/perl/Apache;
  use Apache ();
  use lib Apache-server_root_relative('lib/perl');

}

#commonly used modules
use Apache::Registry ();
use Apache::Constants ();
use CGI qw(-compile :all);
use CGI::Carp ();

1;

#Well seems like there is something missing. Not sure what. Suggestions?
 

Best Regards,
[EMAIL PROTECTED]



Re: [MP2] bug report startup and XML::LibXML

2003-01-31 Thread [EMAIL PROTECTED]

Hi !


 and as suggested :
 LIBXML2.DLL VERSION 2.4.26
 XML::LibXML version 1.52

I've tested with libxml2-2.4.23 and XML::LibXML 1.53 on linux 
and it works 
just fine.


I tested it with libxml2-2.4.23 and XML::LibXML 1.52 
and it still segfaults.



this looks suspicious as address: 0xabababab, as you have 
traced it. So it 
could be a bug in the ActiveState's perl or is it a standard 
one?

it is perl 58 cpan source I have rebuilt all myself debug
but the bug also happens with asperl 58

here is more precicion, I have followed the trace starting with 
perl_croak :

segfault
Perl_sv_setpvn(interpreter * 0x00e7f024, sv * 0xabababab, 
Perl_sv_vsetpvfn(interpreter * 0x00e7f024, sv * 0xabababab, 
Perl_vmess(interpreter * 0x00e7f024, const char * 0x2818fac0
Perl_vcroak(interpreter * 0x00e7f024, const char * 0x2818fac
Perl_croak(interpreter * 0x00e7f024, const char * 0x2818fac0 
`string')



---
in perl_croak
Perl_croak(interpreter * 0x00e1a024, const char * 0x2818fac0 
`string') line 1350 + 17 bytes

[...]
void
Perl_croak(pTHX_ const char *pat, ...)
{
va_list args;
va_start(args, pat);
vcroak(pat, args);   LINE CALLED
/* NOTREACHED */
va_end(args);
}

[...]

variable state:

+   args   0x0006efe4
+   args0x0006eff8 p
+   pat 0x2818fac0 Bizarre SvTYPE [%ld]






in perl_vcroak

Perl_vcroak(interpreter * 0x00e1a024, const char * 0x2818fac0 
`string', char * * 0x0006efe4) line 1241 + 17 bytes


void
Perl_vcroak(pTHX_ const char* pat, va_list *args)
{
char *message;
HV *stash;
GV *gv;
CV *cv;
SV *msv;
STRLEN msglen;

if (pat) {
msv = vmess(pat, args); LINE CALLED pat and 
args unchanged
if (PL_errors  SvCUR(PL_errors)) {
sv_catsv(PL_errors, msv);
message = SvPV(PL_errors, msglen);
SvCUR_set(PL_errors, 0);
}
else



in perl_vmess
Perl_vmess(interpreter * 0x00e7f024, const char * 0x2818fac0 
`string', char * * 0x0006efe4) line 1096


[...]
Perl_vmess(pTHX_ const char *pat, va_list *args)
{
(***)SV *sv = mess_alloc();
static char dgd[] =  during global destruction.\n;
COP *cop;

sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null
(bool*));
if (!SvCUR(sv) || *(SvEND(sv) - 1) != '\n') {

/*
[...]


( *** )sv is set to point to 0xabababab at this point of 
program 
so maybe the mess_alloc() function has failed in some way



inside mess_alloc():

STATIC SV *
S_mess_alloc(pTHX)
{
1SV *sv;
2XPVMG *any;

3if (!PL_dirty)
return sv_2mortal(newSVpvn(,0));

4if (PL_mess_sv)
return PL_mess_sv;

/* Create as PVMG now, to avoid any upgrading later */
New(905, sv, 1, SV);
Newz(905, any, 1, XPVMG);
SvFLAGS(sv) = SVt_PVMG;
SvANY(sv) = (void*)any;
SvREFCNT(sv) = 1  30; /* practically infinite */
PL_mess_sv = sv;
return sv;
}


at line 1 sv gets the following value :
-   sv  0x00e7f470
sv_any  0xabababab
sv_refcnt   2880154539
sv_flags2880154539


function is exited by line 4 PL_mess_sv but I dont see its 
value anywhere


hope this is clear
thanks 

pascal

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






[MP2] bug report startup and XML::LibXML

2003-01-30 Thread [EMAIL PROTECTED]
Hi 

here is a revised complete report bug



 Hi
 
 on
 SERVER_SOFTWARE: Apache/2.0.44 (Win32) mod_perl/1.99_08-dev 
 Perl/v5.8.0 


and as suggested :
LIBXML2.DLL VERSION 2.4.26
XML::LibXML version 1.52

everything rebuild debug


test code 
---
use testxml(); (in startup.pl)

testxml
---
package testxml;

use strict;
use warnings;

use XML::LibXML();

my $base='c:/apache2/mason';
our $promod=
XML::LibXML-new-parse_string(?xml version=\1.0\?
doc/doc);

print tostring: ,$promod-toString ;

1;

problem is 

output ok but apache segfault

---

here is a complete debug trace (this one is certified exact)

---
source in perl5.8.0\sv.c line 4020

[...]
void
Perl_sv_setpvn(pTHX_ register SV *sv, register const char *ptr, 
register STRLEN len)
{
register char *dptr;

SV_CHECK_THINKFIRST(sv); line that makes the segfault
if (!ptr) {
(void)SvOK_off(sv);
return;
}

[...]

--
variables values
*dptr 0
len 0
ptr 0
sv (cannot be evaluated)


stack trace



Perl_sv_setpvn(interpreter * 0x00d84344, sv * 0xabababab, const 
char * 0x28194f90 `string', unsigned int 0) line 4020 + 3 bytes
Perl_sv_vsetpvfn(interpreter * 0x00d84344, sv * 0xabababab, 
const char * 0x2818fac0 `string', unsigned int 20, char * * 
0x0006efe4, sv * * 0x, long 0, char * 0x) line 
7629 + 20 bytes
Perl_vmess(interpreter * 0x00d84344, const char * 0x2818fac0 
`string', char * * 0x0006efe4) line 1096 + 40 bytes
Perl_vcroak(interpreter * 0x00d84344, const char * 0x2818fac0 
`string', char * * 0x0006efe4) line 1241 + 17 bytes
Perl_croak(interpreter * 0x00d84344, const char * 0x2818fac0 
`string') line 1350 + 17 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0006f6e8, 
clone_params * 0x0006fdf0) line 9297 + 26 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x009133e8, 
clone_params * 0x0006fdf0) line 9203 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00906c8c, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00906ca4, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00906c68, 
clone_params * 0x0006fdf0) line 9283 + 22 bytes
Perl_gp_dup(interpreter * 0x00d84344, gp * 0x008fba94, 
clone_params * 0x0006fdf0) line 8698 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008f8614, 
clone_params * 0x0006fdf0) line 9142 + 22 bytes
Perl_he_dup(interpreter * 0x00d84344, he * 0x008e62d8, char 1, 
clone_params * 0x0006fdf0) line 118 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0023fb5c, 
clone_params * 0x0006fdf0) line 9233 + 43 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008c813c, 
clone_params * 0x0006fdf0) line 9140 + 22 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008c4950, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008c4968, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008c4944, 
clone_params * 0x0006fdf0) line 9283 + 22 bytes
Perl_gp_dup(interpreter * 0x00d84344, gp * 0x008cd49c, 
clone_params * 0x0006fdf0) line 8698 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x008c4980, 
clone_params * 0x0006fdf0) line 9142 + 22 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0092ba80, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0092bb04, 
clone_params * 0x0006fdf0) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0092ba8c, 
clone_params * 0x0006fdf0) line 9283 + 22 bytes
Perl_gp_dup(interpreter * 0x00d84344, gp * 0x00930114, 
clone_params * 0x0006fdf0) line 8698 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x0092baf8, 
clone_params * 0x0006fdf0) line 9142 + 22 bytes
Perl_he_dup(interpreter * 0x00d84344, he * 0x0091cdf4, char 1, 
clone_params * 0x0006fdf0) line 118 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00847d40, 
clone_params * 0x0006fdf0) line 9233 + 43 bytes
Perl_gp_dup(interpreter * 0x00d84344, gp * 0x0084bad4, 
clone_params * 0x0006fdf0) line 8696 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00843c8c, 
clone_params * 0x0006fdf0) line 9142 + 22 bytes
Perl_he_dup(interpreter * 0x00d84344, he * 0x008488e4, char 1, 
clone_params * 0x0006fdf0) line 118 + 20 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00843c80, 
clone_params * 0x0006fdf0) line 9233 + 43 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00a45c18, 
clone_params * 0x0006fdf0) line 9140 + 22 bytes
Perl_sv_dup(interpreter * 0x00d84344, sv * 0x00a45c30, 
clone_params * 0x0006fdf0) line 9274 + 22 bytes
Perl_gp_dup(interpreter * 0x00d84344, 

pb with theoryx5 ppms archname

2003-01-29 Thread [EMAIL PROTECTED]
Hi

with perl 58 /win32

I noted that ppm refuses to install
packages from http://theoryx5.uwinipeg.ca/ppms (the one for 5.8)

because these packages mention 

ARCHITECTURE NAME=MSWin32-x86-multi-thread-5.8


while perl 580 built without archname (and the one from 
activestate) does not specify 5.8

but ARCHITECTURE NAME=MSWin32-x86-multi-thread only

the packages still install after manual donwload and 
change of ppd file


thanks
pascal



Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re: do as temp solution for require problem ?

2003-01-28 Thread [EMAIL PROTECTED]
Hi,

I am using: mod_perl/1.26

Now I tried to include subroutines from an external .pl file with  
require.

This I got from:  
http://perl.apache.org/docs/1.0/guide/porting.html#The_First_Mystery
For example if we move the code from the script into the subroutine  
run, place the subroutines into the mylib.pl file, save it in the same  
directory as the script itself and require() it, there will be no  
problem at all. (Don't forget the 1; at the end of the library or the  
require() might fail.)

This is working fine although a mysql database connection in a  
subroutine in an external file doesn't always work.

The do solution I got from:  
http://perl.apache.org/docs/1.0/guide/ 
porting.html#Name_collisions_with_Modules_and_libs
- on the bottom of the page: A hack)

Cheers,

Bart



On Sunday, January 26, 2003, at 05:30 AM, Stas Bekman wrote:

[EMAIL PROTECTED] wrote:

Hi,
I think mod_perl is wonderful but unfortunately enough the require  
function does not work as it does in CGI.
Is using the function do the only workaround  as temporary solution  
till this problem is fixed in a/the next mod_perl version?

Have you read:
http://perl.apache.org/docs/1.0/guide/ 
porting.html#Name_collisions_with_Modules_and_libs
?

If you are referring to a different problem, what mod_perl version are  
you talking about?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com





Re: do as temp solution for require problem ?

2003-01-28 Thread [EMAIL PROTECTED]
Hi,
Yes, I am using Apache::Registry; how did you know that? ;-)
In fact I am trying to change the CGI-Perl pages of 
http://www.deweertsport.be to mod_perl.
As I was used to work with include files in PHP, I sort continued this 
way of making pages in Perl-CGI.
If you look at the previous mentioned site, you can see there is only 
one file, but it contains a lot of includes.
- a random function for the banners on top
- a file for the navigation on the left which includes a file for the 
date and a file for the counter (mysql database)
- the content pages with different files for the forms redirected per 
OS and type of Browser.
The reason why I work that way is to have a sort of frame in which the 
content is included, directed via the variables of the URL.
That gives me a good overview on how the site is built and it makes it 
easy to maintain.
Now, with mod_per this is a whole different story. Probably I need to 
review my strategy as things get more complicated regarding using 
use, or require ... or do 
Would using Apache::PerlRun be a better option to deal with this way of 
building a website?
Thanks for your advise!
Bart

On Tuesday, January 28, 2003, at 05:21 PM, Randal L. Schwartz wrote:

mail@adventureforum == mail@adventureforum net 
[EMAIL PROTECTED] writes:

mail@adventureforum I am using: mod_perl/1.26

mail@adventureforum Now I tried to include subroutines from an 
external .pl file with
mail@adventureforum require.

This smells a bit like you're using Apache::Registry (you haven't said
yet) and you've moved some subroutines into a separate file, but not a
separate package, and you either aren't aware or don't understand the
significance of the fact that every Apache::Registry script runs in a
different package.

Could that be the case?

If you're using Apache::Registry, and you're not properly using
packages, you'll get burned.  Turn your external code into a real
module, and things will work again.  Use use, not require, not
do.

print Just another (mod) Perl hacker,

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 
0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl 
training!





do as temp solution for require problem ?

2003-01-25 Thread [EMAIL PROTECTED]
Hi,

I think mod_perl is wonderful but unfortunately enough the require 
function does not work as it does in CGI.
Is using the function do the only workaround  as temporary solution 
till this problem is fixed in a/the next mod_perl version?

Cheers,

Bart



[MP2] pb with modperl and XML::LibXML

2003-01-23 Thread [EMAIL PROTECTED]
Hi

on
SERVER_SOFTWARE: Apache/2.0.43 (Win32) mod_perl/1.99_08-dev 
Perl/v5.8.0 PHP/4.3.0 


having installed the latest XML::LibXML from 
http://theoryx5.uwinnipeg.ca/ppms

and having Loadfile c:/perl/bin/libxml2.dll in httpd.conf

I still have the error :

- a USED testxml from startup is executed but prevents apache 
from starting with a segfault (testxml just reads and parse an 
xml file)

- use XML::LibXML() ; use XML::LibXSLT() ; from startup is ok


- the use testxml; from modperl / registry/ cgi produces this
error log :

[Thu Jan 23 10:37:18 2003] [notice] Parent: child process 
exited with status 3221225477 -- Restarting.
[Thu Jan 23 10:37:27 2003] [notice] Parent: Created child 
process 1256
[Thu Jan 23 10:37:34 2003] [notice] Child 1256: Child process 
is running
[Thu Jan 23 10:37:34 2003] [notice] Child 1256: Acquired the 
start mutex.
[Thu Jan 23 10:37:35 2003] [notice] Child 1256: Starting 25 
worker threads.


after which the script is served normally (but with a long 
apache resarting delay), then normally served a couple of times,
then again the apache restart (maybe after child process dies 
normally)


- perl testxml.pm is ok.

thanks 

pascal barbedor




Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re:[MP2] pb with modperl and XML::LibXML

2003-01-23 Thread [EMAIL PROTECTED]
 Hi
 
 on
 SERVER_SOFTWARE: Apache/2.0.43 (Win32) mod_perl/1.99_08-dev 
 Perl/v5.8.0 PHP/4.3.0 
 
 
 having installed the latest XML::LibXML from 
 http://theoryx5.uwinnipeg.ca/ppms
 
 and having Loadfile c:/perl/bin/libxml2.dll in httpd.conf
 
 I still have the error :


in any case, 
here is the call stack and debug output

WARNING: Stack unwind information not available. Following 
frames may be wrong.
perl58!Perl_my_failure_exit+0x14f
perl58!Perl_croak+0x19
perl58!Perl_sv_dup+0xb71
perl58!Perl_sv_dup+0x77a
perl58!Perl_sv_dup+0x73c
perl58!Perl_sv_dup+0x73c
perl58!Perl_sv_dup+0xaa1
perl58!Perl_gp_dup+0x108
perl58!Perl_sv_dup+0x44b
perl58!Perl_he_dup+0xbe
perl58!Perl_sv_dup+0x8ad
perl58!Perl_sv_dup+0x9cb
perl58!Perl_gp_dup+0x108
perl58!Perl_sv_dup+0x44b
perl58!Perl_he_dup+0xbe
perl58!Perl_sv_dup+0x8ad
perl58!Perl_gp_dup+0xda
perl58!Perl_sv_dup+0x44b
perl58!Perl_he_dup+0xbe
perl58!Perl_sv_dup+0x8ad


and the debug output

CommandLine: C:\Apache2\bin\Apache.exe 
Symbol search path is: 
SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols;

Executable search path is: 
ModLoad: 0040 00405000   image0040
ModLoad: 7846 784e1000   ntdll.dll
ModLoad: 6ee0 6ee1e000   C:\Apache2\bin\libapr.dll
ModLoad: 77e7 77f2c000   C:\WINNT\system32\KERNEL32.dll
ModLoad: 77da 77dfb000   C:\WINNT\system32\ADVAPI32.dll
ModLoad: 770c 77131000   C:\WINNT\system32\RPCRT4.dll
ModLoad: 74fb 74fc3000   C:\WINNT\System32\WS2_32.dll
ModLoad: 7800 78046000   C:\WINNT\system32\MSVCRT.DLL
ModLoad: 74fa 74fa8000   C:\WINNT\System32\WS2HELP.DLL
ModLoad: 74f7 74f83000   C:\WINNT\System32\MSWSOCK.dll
ModLoad: 77e0 77e5f000   C:\WINNT\system32\USER32.DLL
ModLoad: 77f4 77f79000   C:\WINNT\system32\GDI32.dll
ModLoad: 7797 77994000   C:\WINNT\System32\DNSAPI.DLL
ModLoad: 74fd 74fd9000   C:\WINNT\System32\WSOCK32.dll
ModLoad: 06ed 06ef6000   C:\Apache2\bin\libaprutil.dll
ModLoad: 6ff0 6ff41000   C:\Apache2\bin\libhttpd.dll
(4dc.4d4): Break instruction exception - code 8003 (first 
chance)
eax= ebx=00071f04 ecx=0009 edx= 
esi=7ffdf000 edi=00071f70
eip=78477704 esp=0006f984 ebp=0006fc98 iopl=0 nv up ei 
pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  
gs= efl=0202
ntdll!DbgBreakPoint:
78477704 cc   int 3
0:000 g
ModLoad: 7758 777cb000   C:\WINNT\system32\shell32.dll
ModLoad: 70bd 70c34000   C:\WINNT\system32\SHLWAPI.dll
ModLoad: 7178 7180a000   C:\WINNT\system32\COMCTL32.dll
ModLoad: 6fcf 6fcf6000   C:\Apache2\modules\mod_access.so
ModLoad: 6fce 6fce6000   C:\Apache2\modules\mod_actions.so
ModLoad: 6fcd 6fcd6000   C:\Apache2\modules\mod_alias.so
ModLoad: 6fcc 6fcc6000   C:\Apache2\modules\mod_asis.so
ModLoad: 6fcb 6fcb6000   C:\Apache2\modules\mod_auth.so
ModLoad: 6fca 6fca8000   C:\Apache2\modules\mod_autoindex.so
ModLoad: 6fc9 6fc97000   C:\Apache2\modules\mod_cgi.so
ModLoad: 6fc8 6fc86000   C:\Apache2\modules\mod_dir.so
ModLoad: 6fc7 6fc76000   C:\Apache2\modules\mod_env.so
ModLoad: 6fc6 6fc67000   C:\Apache2\modules\mod_imap.so
ModLoad: 6fc5 6fc5a000   C:\Apache2\modules\mod_include.so
ModLoad: 6fc4 6fc48000   C:\Apache2\modules\mod_isapi.so
ModLoad: 6fc3 6fc37000   C:\Apache2
\modules\mod_log_config.so
ModLoad: 6fc2 6fc27000   C:\Apache2\modules\mod_mime.so
ModLoad: 6fc1 6fc19000   C:\Apache2
\modules\mod_negotiation.so
ModLoad: 6fc0 6fc06000   C:\Apache2\modules\mod_setenvif.so
ModLoad: 6fbf 6fbf6000   C:\Apache2\modules\mod_userdir.so
ModLoad: 2800 280bc000   C:\Perl\bin\perl58.dll
ModLoad: 1000 10019000   C:\Apache2\modules\mod_perl.so
ModLoad: 0083 00968000   C:\Apache2\bin\php4ts.dll
ModLoad: 77a4 77b35000   C:\WINNT\system32\ole32.dll
ModLoad: 779a 77a3b000   C:\WINNT\system32\OLEAUT32.dll
ModLoad: 1f7f 1f825000   C:\WINNT\System32\ODBC32.dll
ModLoad: 76b0 76b3d000   C:\WINNT\system32\comdlg32.dll
ModLoad: 1f8e 1f8f6000   C:\WINNT\System32\odbcint.dll
ModLoad: 00e8 00e86000   C:\Apache2\modules\php4apache2.dll
ModLoad: 00e9 00fe4000   C:\Perl\bin\libxml2.dll
ModLoad: 74f5 74f6d000   C:\WINNT\system32\msafd.dll
ModLoad: 74f9 74f97000   C:\WINNT\System32\wshtcpip.dll
ModLoad: 011f 011f5000   C:\Perl\site\lib\Apache2
\auto\ModPerl\Util\Util.dll
ModLoad: 0120 0120b000   C:\Perl\site\lib\Apache2
\auto\Apache\RequestRec\RequestRec.dll
ModLoad: 0121 01217000   C:\Perl\site\lib\Apache2
\auto\Apache\RequestIO\RequestIO.dll
ModLoad: 0122 01227000   C:\Perl\site\lib\Apache2
\auto\Apache\RequestUtil\RequestUtil.dll
ModLoad: 0123 01237000   C:\Perl\site\lib\Apache2
\auto\Apache\Server\Server.dll
ModLoad: 0124 01246000   C:\Perl\site\lib\Apache2
\auto\Apache\ServerUtil\ServerUtil.dll
ModLoad: 0125 01257000   

[MP2] pb with startup.pl and LibXML

2003-01-22 Thread [EMAIL PROTECTED]
Hi I have 

SERVER_SOFTWARE: Apache/2.0.43 (Win32) mod_perl/1.99_08-dev 
Perl/v5.8.0 PHP/4.3.0 

installed from theoryx5 all-in-one archive


here is the problem I have :
-
package testxml;
use strict;
use warnings;

use XML::LibXML();
use XML::LibXSLT();
use Data::Dumper;

my $base='c:/apache2/mason';

my $promod=
XML::LibXSLT-new-parse_stylesheet(
XML::LibXML-new-parse_file($base/stylesheets/test.xsl));
print Dumper $promod ;
1;
---

the above script runs ok when PERL testxml.pm is run. (outside 
of any apache environment)
Dumper prints 

bless XML::LibXSLT::Stylesheet.. 

showing
all parsing ok (the stylesheets is simplisssima one tag sheet)

when it is USEed from startup.pl (# removed below in startup) 
then
it also prints the line 

bless ... 

but apache issues a fatal error and refuses to 
start instruction 0X28027104 memory cant be read !


here is the startup.pl

use Apache2 ();
use lib 'c:/apache2/mason/lib';
use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use Apache::Const -compile = ':common';
use APR::Const -compile = ':common';
use APR::Table ();
use Apache::compat ();
use ModPerl::Registry ();
use CGI ();
use XML::LibXML();
use XML::LibXSLT();
#use testxml;
1;


same thing if  you omit the xslt step in the testxml script

I pointed out this problem from the early distribution of 
modperl2, it's not recent.


thanks 

pascal

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re: [MP2] pb with startup.pl and LibXML

2003-01-22 Thread [EMAIL PROTECTED]

Does adding a
LoadFile /Path/to/libxml2.dll
directive, before pulling in the startup script, help?
(in the distribution from our site, libxml2.dll is in
the Perl/bin/ directory).

-- 
best regards,
randy


I have no libxml2.dll file from the all-in-one 30 or so MB 
archive donwloaded from theoryx5

i only have libxml.dll in perl/site/lib/auto/xml/libxml



I do have one libxml2.dll in my path from a separate xmlsoft 
download... maybe this is the reason of problems ?

apache issues the segfault (popup window) on every situation : 
mason modperl,
registry or simple cgi. 

but then it restarts itself immediatly and serves the request 
(after a rather long restarting delay).

the segfault sometimes does not happen for two or three times 
and then again.


pascal



Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






unsubscribe modperl

2003-01-13 Thread [EMAIL PROTECTED]
unsubscribe modperl 

--


mail2web - Check your email from the web at
http://mail2web.com/ .





XML-LibXML-Common in perl 58 repository at theoryx5.

2002-12-02 Thread [EMAIL PROTECTED]
Hi

when trying to ppm install XML::LibXML::Common
from http://theoryx5.uwinnipeg.ca/ppms, the new perl58
repository, I have this error :

error, read a ppd but it is not intended for this build of perl
(mswin32-x86-multi-thread)

I have active state perl58 installed and successfully installed
other modules from this repository.

best regards
pascal

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






default-handler ignored if url points to a directory

2002-10-02 Thread [EMAIL PROTECTED]

Hi

on win32
perl 561 with last modperl

when a location is reset to default-handler and no real
file is called but just a directory, modperl
does not pass on to default (and to mod_dir for
indexing of the directory).

 url /stylesheets/style.css triggers the default handler
properly, but not /stylesheets/ alone for instance.

url/telechargements/some.html also , but /telechargements/ does
not trigger default and no mod_dir as well


can anyone explain why ?

thanks
pascal


here is my conf, there is no virtual host


%Location = (
  '/' = {
'PerlHandler' = 'MY::Stat',
'Options' = '+ExecCGI',
'SetHandler' = 'perl-script'
  },
  '/telechargements/' = {
'SetHandler' = 'default-handler'
  },
  '/stylesheets/' = {
'SetHandler' = 'default-handler'
  },
  '/icons/' = {
'SetHandler' = 'default-handler'
  },
);

%Directory = (
  'c:/home/_stat3/htdocs' = {
'AllowOverride' = 'None',
'Order' = 'allow,deny',
'Options' = 'Indexes',
'Allow' = 'from all'
  },
  'c:/home/_stat3/telechargements' = {
'AllowOverride' = 'None',
'Order' = 'allow,deny',
'Options' = 'Indexes Multiviews',
'Allow' = 'from all'
  },
  'c:/home/_stat3/icons' = {
'AllowOverride' = 'None',
'Order' = 'allow,deny',
'Options' = 'Indexes Multiviews',
'Allow' = 'from all'
  }
);

#arrays:


Alias = (
  [
'/stylesheets/',
'c:/home/_stat3/stylesheets/'
  ],
  [
'/icons/',
'c:/home/_stat3/icons/'
  ],

  [
'/telechargements/',
'c:/home/_stat3/telechargements/'
  ]
);

#scalars:

$DocumentRoot = 'c:/home/_stat3/htdocs';

$Port = 8080;

$PerlInitHandler = 'Apache::Reload';

$CustomLog = 'c:/home/_stat3/access.log common';

$ErrorLog = 'c:/home/_stat3/error.log';




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






bug with IO::Scalar IO::String Text::Iconv and XML

2002-10-01 Thread [EMAIL PROTECTED]

Hi

here is a program that shows something wrong when using
Text::Iconv with
IO::Scalar or IO::String


read a sample xml file, with an accented character, after
xml parsing (which translates to utf-8), translate back to iso-
8859-1.

also prepare a simple utf-8 string with text::iconv


problem :
when print is done with IO::Scalar or IO::String redirection,
conversion fails.


pascal


here the XML is read with XML::Simple or XML::LibXML,
but this is the same with XML::XPath


note Text::Iconv-raise_error(1) raises no error.


source program test:

use warnings;
use XML::Simple;
use Text::Iconv;
use XML::LibXML ;
Text::Iconv::-raise_error(1);

my $string=q{?xml version=1.0 encoding=iso-8859-1 ?
grpétude/grp};

my $string2=Text::Iconv-new(iso-8859-1,utf-8)-convert
(étude);

my $doc =XML::LibXML-new-parse_string($string) ;

my $ref=XML::Simple-new-XMLin($string);

my $C= Text::Iconv-new('UTF-8','ISO-8859-1');



print \n--\n;
print $doc-toString, \n raw:, $ref,\tconv:, $C-convert
($ref);
print \n str2:, $string2,\tconv:, $C-convert($string2);


--



source program calltest
-
use IO::Scalar;
use IO::String;

my $page;
my $CACHE =new IO::Scalar \$page ;
select $CACHE;
do 'test' ;
select STDOUT;
print $page ;


my $io=IO::String-new(my $tocache);

select  $io ;
do 'test' ;
select STDOUT ;


print $tocache ;

 do 'test' ;


---
output of PERL test

--


--
?xml version=1.0 encoding=iso-8859-1?
grpétude/grp

 raw:étude conv:étude
 str2:étudeconv:étude

raw print is UTF-8, conv print is iso
XML output is in iso directly
Iconv conversion is successful
raw and str2 are the same
all correct


now look at other output :

==
output of PERL calltest


IO::Scalar --

?xml version=1.0 encoding=iso-8859-1?
grpétude/grp

 raw:étude conv:étude
 str2:étude  conv:étude

IO::String--

?xml version=1.0 encoding=iso-8859-1?
grpétude/grp

 raw:étude conv:étude
 str2:étude  conv:étude

STDOUT--

?xml version=1.0 encoding=iso-8859-1?
grpétude/grp

 raw:étude conv:étude
 str2:étudeconv:étude
=


ICONV fails to convert when IO redirection,
 looks like characters are not the same between raw and
string2, which
both should be utf-8 translation of étude


the toString method of LIbXML seems to output back in iso-8859-
1, without explicit
translation, but this fails with IO redirection too.




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






perl section does not override conf default

2002-09-30 Thread [EMAIL PROTECTED]

Hi

I have an httpd.conf like this for what concerns icons
(this is default apache conf)


#Alias /icons/ c:/apback/icons/

#Directory c:/apback/icons
#Options Indexes MultiViews
#AllowOverride None
#Order allow,deny
#Allow from all
#/Directory


later in the conf I have a perl section redefining the above :

[...]

push Alias,  ['/icons/'=$MY::basePath/icons/];

$Directory{$MY::basePath.'/icons'}={
Options='Indexes Multiviews',
AllowOverride='None',
Order='allow,deny',
Allow='from all'
};


$Location{/icons/}=
{
 SetHandler='default-handler',

};


the problem is that
if I do not comment out apache default conf section,
 handler is well reset to default handler but the alias
and directory directive are not overriden by the perl section

so icons are sought in default c:/apback/icons directory
instead of the special one indicated by $MYbasepath.


is it normal ?


thanks

pascal








Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re:AxKit under Win32

2002-09-11 Thread [EMAIL PROTECTED]

 Does anybody know where I can find information for
installing and running
 AxKit under windows (is this possible?).

 I looked on axkit.org but didn't find any guidance.

 Thanks
 PC

 there is a ppm available at theoryx5.uwinnipeg.ca/ppmpackages

but on win32 there is no cache of pages possible by axkit
itself (unless changed in recent versions )

pascal

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






RE: weird bug in Apache::Filter with UTF-8

2002-09-10 Thread [EMAIL PROTECTED]

  
  Hi
  under perl561/modperl 1
  
  I have 2 modules in an apache filter context
  
  perlhandler  module1 module2
  
  module1 prints some text 
  partly hardcoded normal (but accented) text 
  partly from an XML::XPath  instruction (UTF-8 codeset but 
  inside the ascii 127)
  
  - if module1 is alone the output is ok
  
  - with module 2 :
  
   *dumped to file module1 output is correct (iso)
  
   *module2 through Apache::Filter receives module1 output 
all 
  translated in UTF-8, even the hardcoded text (like an UTF-
8 
  contamination to all the text)
  
  the same thing printed to a file and to STDOUT (tied by 
  Apache::Filter), is in first case normal, in 2d case all 
UTF-8.


this was with activestate build 631
the bug disappeared with activestate build 633


Pascal





Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






pb with Apache::Filter and internal_redirect

2002-09-10 Thread [EMAIL PROTECTED]

Hi

on win32 perl561/modperl127, last apache::filter

when the first registered handler in the chain calls an
internal redirect (thus short-circuiting others) this produces
an error :

Not a HASH reference at D:/Perl/site/lib/Apache/Filter.pm line
221.
 (corresponds to return unless length $self{content} in sub
READLINE.)

is there a cleanup to do before sending an internal redirect ?

best regards
pascal




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






perlsetvar sometimes fails at server startup

2002-09-09 Thread [EMAIL PROTECTED]

Hi

on win32 with perl 561/modperl 1.27-01 dev

httpd.conf
Perl
[..]
$PerlSetvar='var foo'; (set outside any container in 
httpd.conf)
$Perlrequire='startup.pl';
[...]
/Perl

then inside a module used in startup.pl

use Apache();
my $s=Apache-server ; (ok)
my $base=$s-dir_config('var') (no error);
$base is undef...

I had noticed this behaviour already but sometimes it 
disappears and sometimes it reappears .

is there a particular order to follow ?
(persetvar directive before perlrequire startup.pl ? which is 
the case here anyway)

best regards
pascal






Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






weird bug in Apache::Filter with UTF-8

2002-09-09 Thread [EMAIL PROTECTED]

Hi
under perl561/modperl 1

I have 2 modules in an apache filter context

perlhandler  module1 module2

module1 prints some text
partly hardcoded normal (but accented) text
partly from an XML::XPath  instruction (UTF-8 codeset but
inside the ascii 127)

- if module1 is alone the output is ok

- with module 2 :

 *dumped to file module1 output is correct (iso)

 *module2 through Apache::Filter receives module1 output all
translated in UTF-8, even the hardcoded text (like an UTF-8
contamination to all the text)

the same thing printed to a file and to STDOUT (tied by
Apache::Filter), is in first case normal, in 2d case all UTF-8.



thanks for any help
pascal




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






$r-print does not dereference

2002-09-03 Thread [EMAIL PROTECTED]



Hi

when using $r-print in perl 561/modperl 1.26 context on winXP,
I cannot get the value passed to be dereferenced as it is
explained in the doc $r-print automatically does.

$out='toto' ;

$r-print($out) -output toto

$r-print(\$out)
$r-print((\$out))  -both output scalar xxx

thanks for help
pascal


Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






RE: $r-print does not dereference

2002-09-03 Thread [EMAIL PROTECTED]

 when using $r-print in perl 561/modperl 1.26 context on
winXP,
 I cannot get the value passed to be dereferenced as it is
 explained in the doc $r-print automatically does.

 $out='toto' ;

 $r-print($out) -output toto

 $r-print(\$out)
 $r-print((\$out))  -both output scalar xxx



 This is an intentional and documented performance hack.
RTFM. :)


:):)
Sorry I don't understand RTFM :)

I forgot to mention the dereference does not work in
 Apache::Filter context, while it works in regular situations.


Pascal

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






apache::status on win32

2002-08-31 Thread [EMAIL PROTECTED]

Hi

with winXP
Embedded Perl version v5.6.1 for Apache/1.3.26 (Win32)
mod_perl/1.27_01-dev

Apache Status is not working as expected


the httpd.conf configuration is

Perl Module Apache::Status (before any other module)

PerlModule B::TerseSize



location /perl-status
SetHandler perl-script
PerlHandler Apache::Status
PerlSetVar StatusOptionsAll On
PerlSetVar StatusTerseSizeMainSummary On
Allow from localhost
/location


the memory usage link http://localhost:8080/perl-status?
status_memory_usage produces an apache segfault in SIZE.dll
(but apache does not die)


http://localhost:8080/perl-status?inc returns ok but
other links of the form below return FORBIDDEN :


http://localhost:8080/perl-
status/Apache::Constants::EXPORT/ARRAY?data_dump

http://localhost:8080/perl-
status/Apache::Request::bootstrap/FUNCTION?cv_dump


Best Regards
Pascal



Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re: Image manipulation recommendation?

2002-06-28 Thread [EMAIL PROTECTED]

Maybe GD.pm?
 --- Ryan Thompson [EMAIL PROTECTED] wrote:  
 Hi all,
 
 I hope this isn't too far off topic. I'm working on
 a mod_perl web
 project in which it would be *really* quite handy if
 I could
 dynamically rasterize text over existing images.
 
 What I would ideally like is a pointer to a good
 Perl library that
 will allow me to take an existing image (gif, png,
 or jpg), and fairly
 easily render Type 1 (preferred) or Truetype fonts
 overtop of the
 image, and return the result. Caching the result
 would be a bonus.
 
 For this project, ease of implementation far
 outweighs the need for
 bells and whistles. I'd rather not have to learn a
 complex API just to
 throw some dynamic text on an image. :-)
 
 Thanks,
 - Ryan
 
 -- 
   Ryan Thompson [EMAIL PROTECTED]
 
   SaskNow Technologies - http://www.sasknow.com
   901 1st Avenue North - Saskatoon, SK - S7K 1Y4
 
 Tel: 306-664-3600   Fax: 306-664-3630  
 Saskatoon
   Toll-Free: 877-727-5669 (877-SASKNOW)
 North America
  

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!



Re: errors installing libapreq

2002-06-26 Thread [EMAIL PROTECTED]

Try an older version.
 --- Tim Bolin [EMAIL PROTECTED] wrote:  ok, im at
the end of my proverbial rope on this one
 and dont know how to 
 proceed... i am trying to install libapreq for
 Apache::Request, and when i 
 try to run make the thing just pukes up a huge
 long string of errors like:
 
 -=-=-=-=-=-=-
 make[1]: Entering directory
 `/root/.cpan/build/libapreq-0.33/c'
 gcc -c -I/usr/local/httpd//include
 -I/usr/local/httpd//include 
 -fno-strict-aliasing -I/usr/local/include -O2 -march
 =i386 -mcpu=i686   -DVERSION=\0.10\
 -DXS_VERSION=\0.10\ -fPIC 
 -I/usr/lib/perl5/5.6.1/i386-linux/CORE  apache_re
 quest.c
 In file included from apache_request.c:58:
 apache_request.h:38: parse error before `table'
 apache_request.h:38: warning: no semicolon at end of
 struct or union
 apache_request.h:48: parse error before `}'
 apache_request.h:48: warning: data definition has no
 type or storage class
 apache_request.h:55: parse error before `table'
 apache_request.h:55: warning: no semicolon at end of
 struct or union
 apache_request.h:58: parse error before `*'
 apache_request.h:58: warning: data definition has no
 type or storage class
 apache_request.h:59: parse error before `}'
 apache_request.h:89: parse error before `*'
 apache_request.h:89: warning: data definition has no
 type or storage class
 apache_request.h:90: parse error before `*'
 apache_request.h:91: parse error before `*'
 apache_request.h:92: parse error before `*'
 apache_request.h:93: parse error before `*'
 .
 .
 .
 -=-=-=-=-=-=-
 
 it goes on for 200 more lines or so with many
 different seemingly 
 syntactical errors...
 
 i decided for grins to try v0.33 and see what
 happened, and curiously 
 enough, i get exactly the same errors... well, for
 the first 50 lines or 
 so, i was just eyeballing the first screen or two...
 
 anyone have any idea at all what would cause this?
 it occurs if i try to do 
 it with the CPAN module or when i do it manually...
 i even tried it with 
 both the Makefile.PL and using configure... same
 results...
 
 id definitely appreciate any insight any of you
 might have on how to 
 resolve this...
 
 thanks!
 
 -Tim
  

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!



Win32 Binarys

2002-06-25 Thread [EMAIL PROTECTED]

Where can I get a Win32 binary of mod_perl?
I use Apache 1.3.26/ActivePerl Build 522.
None of Randy Kobes' PPMs would Install and the newest
pre-compiled zipped binary is for mod_perl 1.16.

Thanks!

http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!



reverseproxy configuration

2002-04-22 Thread [EMAIL PROTECTED]

hi

i am trying to set up a front end vanilla + backend modperl
server with mod_proxy

the front end server (apache2)works ok on port 80, the back
end works (apache mod_perl 1) ok on port 8080, but

each time the url is redirected to the backend server i get a
forbidden response even though i put allow from all for
everything in the front end .

the front end conf is something like this

directory / allow from all/directory
ProxyRequests Off
ProxyPass /stylesheets !
ProxyPass /icons !
ProxyPass /evolif http://localhost:8080/evolif
RewriteEngine On
RewriteRule (^.*\.pl)$ http://localhost:8080$1 [proxy,last]
ProxyPassReverse / http://localhost:8080/
ProxyReceiveBufferSize 49152

the back end conf is set on port 8080 and works perfectly by
itself if I specify :8080 in the url.

the reverse proxy setting is explained everywhere, but only
allusions is made to access rights that goes with it.

I looked in the apache docs, in mod_perl guide, but found no
practical working example that explains about how to set
access rights, after the reverseproxy setting, especially when
the back-end is to serve generated on the fly document and not
a file on disk.

thanks for any help
pascal




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Apache::DB for win32

2002-04-17 Thread [EMAIL PROTECTED]

Hi

winnt/as561/ modperl 1_26_01-dev / apache 1.3.22

I installed Apache::DB module from theoryx5 repository.
I put the necessary directives in httpd.conf.

It is said to start apache with -X flag. but there is no such
possibility on win32 apache. so i started the server normally
and manually in a cmd window.

there is a notice APACHE::DB initialized in the cmd window.

I enter an url in the browser, which hangs as expected,  but
when i come back to my cmd window i have no opportunity to
enter debug commands. the screen is freezed as when you start
apache manually without the debugger.

has anyone succesfully used apache::DB on win32 ?



thanks

pascal


Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Re:Help required

2002-04-16 Thread [EMAIL PROTECTED]

 Hi
   I am new to mod_perl and  i am  developing some samples
using
 mod_perl .
 While  developing sample , i do not want to restart the
server
 frequently with respect to my changes.

 So i used the$r-header_out(Pragma, no-cache);
statement  not
 to cache the results. i seems to be not working for me .

 Any suggestions and how to include the directives in the
server side
 not to cache  the results.

 Thanks in advance

 With Regards
 K.Murugan


Hi

$r-header_out is related to the generated response not to the
modules used by mod_perl to generate a response

you should read the paragraph of the modperl guide related to
re -reading configuration files without restarting the server

http://thingy.kcilink.com/modperlguide/porting/Reloading_Config
uration_Files.html

and the whole chapter cgi to mod-perl porting guidelines

http://thingy.kcilink.com/modperlguide/porting/index.html


pascal







Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






compiling modperl2 debug pb

2002-04-16 Thread [EMAIL PROTECTED]

hi

winnt/perl 561

about the compiling error of mod_perl-1.99_01 in debug mode,

the specific error is

unresolved external _MP_debug_level when linking filter.dll

this symbol is found in every .lo files of the
src/modules/perl directory after the build process but in no
source file

isn't this a typo maybe it should be MP_debug_level external
to look for ?

the symbol MP_debug_level (without leading _) is found in
1- modperl_log.c modperl_trace.h in src/modules/perl
2- coded.pm in lib/modperl

so maybe the makefile generate something incorrect somewhere
but i cannot figure out where it is

thanks

pascal


Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






error compiling modperl2 debug

2002-04-15 Thread [EMAIL PROTECTED]
 -def:Filter.def
   Creating library ..\..\..\blib\arch/Apache2
\auto\Apache\Filter\Filter.lib and
object ..\..\..\blib\arch/Apache2\auto\Apache\Filter\Filter.exp
Filter.obj : error LNK2001: unresolved external symbol
_MP_debug_level
..\..\..\blib\arch/Apache2\auto\Apache\Filter\Filter.dll :
fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

-8--End Bug Report --8---
---

Note: Complete the rest of the details and post this bug
report to dev
at perl.apache.org. To subscribe to the list send an empty
email to
[EMAIL PROTECTED]




Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






Apache::ServerUtil pb in modperl2

2002-04-12 Thread [EMAIL PROTECTED]

Hi

apache 2.0.35 / mod_perl 1.99_01 / winnt

I confirm that using a module in startup.pl consisting of

use Data::Dumper ;
use XML::LibXML() ;

[1] use Apache::ServerUtil ;
[2] my $s=Apache-server ;
[3] my $base=$s-dir_config('some');
[4] my $xml=XML::LibXML-new();
[5] print Dumper $xml ;

causes the line [3] to output message Attempt to free
unreferenced scalar

line [4] causes apache segfaults unhandled exception
perl56.dll (XML::LibXML in version 1.31 or 1.40)

line [5] is executed before apache stops
$VAR1 = bless( {}, 'XML::LibXML' );


if I drop line [4] and [5], there is the line [3] message, but
apache does not seem to segfault.




pascal









Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






mod_perl on windows

2002-03-22 Thread [EMAIL PROTECTED]



Hi.
my $erver: Apache/1.3.22 (Win32) PHP/4.0.6 
mod_perl/1.26_01-dev
perl v5.6.1
Consider this sample script:

use Apache::Request;use strict;use 
warnings;

my $r=Apache-request;my $apr = 
Apache::Request-new($r);$r-send_http_header('text/html');

The first time i run the script the error 
is:
" Can't locate loadable object for module 
Apache::Request in @INC "

Any trials after that would give:
" Can't locate object method "new" via package 
"Apache::Request" "

I sawsome other guy in the list had a 
similar program but in his case installing the libapreq pragma 
solved his problem.My problem is that the pragma 
seems already installed using ppm (!)but can't be installed 
using perl -MCPAN -e shell because it needs me to 
build mod_perl first..
However I've installed theBINARY mod_perl 
version using the ppm method described in the mod_perl cookbook
listing 1.2 so the second method 
fails.

I'm a little confused right now.
Should i try to find another way to build mod_perl 
using the sources or is there maybe a trick or
something i've missed that would help me bypass 
this problem and use the modules?
(Apache::Cookie fails to load too)

Any help would be appreciated.
Thanks in advance.


Re: mod_perl on windows

2002-03-22 Thread [EMAIL PROTECTED]

Great!
It worked now thanks!
I only had to install --force libapreq and it worked.

- Original Message - 
From: Randy Kobes [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 12:35 AM
Subject: Re: mod_perl on windows


 On Fri, 22 Mar 2002, [EMAIL PROTECTED] wrote:
 
  Hi.
  my $erver: Apache/1.3.22 (Win32) PHP/4.0.6 mod_perl/1.26_01-dev
  perl v5.6.1
  Consider this sample script:
 
  use Apache::Request;
  use strict;
  use warnings;
 
  my $r=Apache-request;
  my $apr = Apache::Request-new($r);
  $r-send_http_header('text/html');
 
  The first time i run the script the error is:
   Can't locate loadable object for module Apache::Request in @INC 
 
  Any trials after that would give:
   Can't locate object method new via package Apache::Request  
 
  I saw some other guy in the list had a similar program but in
  his case installing the libapreq pragma solved his problem.My
  problem is that the pragma seems already installed using ppm
  (!) but can't be installed using perl -MCPAN -e shell because
  it needs me to build mod_perl first.. However I've installed
  the BINARY mod_perl version using the ppm method described in
  the mod_perl cookbook listing 1.2 so the second method fails.
 
 Did you install the libapreq ppm package from ActiveState's
 repository, or from the repository at
 http://theoryx5.uwinnipeg.ca/ppmpackages/? If it was
 from Activestate's, maybe try the latter.
 
 best regards,
 randy kobes
 
 




Re: Net::LDAP::Extension

2002-02-27 Thread [EMAIL PROTECTED]

hi,
  Have you looked at CPAN ? once you have untarred then do a 
less *.pm . Read code assimulate. Read README.. Read INSTALL
Search Engines. Try tests. Analyse tests .. done.
Hope that helps.

Best Regards,
[EMAIL PROTECTED]

On Wed, Feb 27, 2002 at 04:37:05AM -0700, Murugan K wrote:
 Hi
  Can please  you direct me to the   Net::LDAP::Extension 
 Documentation. 
 
 Thanks in advance.
 
 Regards
 K.Murugan

-- 

/*  Security is a work in progress - dreamwvr */
# 
# Note: To begin Journey type man afterboot,man help,man hier[.]  
# 
// Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]




Re: choice of mod_perl technology for news site

2002-02-07 Thread Ian Kallen [EMAIL PROTECTED]


I'm not really involved with the project but it looks to me that bricolage
is heading towards content generation abstraction (there's support for
Mason and HTML::Template). Therefore, I would imagine that if you wanted
to use AxKit as a content generator, you could.

On Thu, 7 Feb 2002, Matt Sergeant wrote:
 On Wed, 6 Feb 2002, Drew Taylor wrote:
 
  You should take a look at Bricolage (http://bricolage.thepirtgroup.com/).
  It's a relatively new, but comprehensive, CMS that is based on Mason 
  mod_perl. I think it supports most of the things you mentioned below, but
  you should ask the developers to be sure.
 
  If you talk w/ Matt, he'll be sure to hawk AxKit. But then that's Matt. And
  AxKit really is cool stuff. :-)
 
 Well I'd rather recommend whatever works for people. Bricolage certainly
 seems full featured, and it looks easy enough to add XSLT support to it,
 though I haven't had chance to download and try that yet.
 
 As far as AxKit based CMS's go, well I was writing one but it died in the
 dot-bomb as I became an Anti Spam and Virus Technologist (which is
 actually a really nice change from web hacking). As far as other CMS's,
 Robin has already mentioned XIMS and his Tesserra, but forgot about this
 one: http://www.callistocms.com/ which simply blew my mind looking at the
 graphics. I guess I'm easily pleased ;-) I don't know if that one is going
 to be free or not though.
 
 

cheers,
-Ian

-- 
Ian Kallen [EMAIL PROTECTED] | AIM/yahoo: iankallen




Re: How to Use Apache as a FTP server

2001-12-19 Thread [EMAIL PROTECTED]

hi,
While if i were to take you literally it will 
not work.  HTTP and FTP behave comepletely differently.
However you can simulate it .. eg
ftp://ftp.myserver.pre 
As well as browsers tend to do passive ftp .. for 
downloads .. Hope that helps a little.

Regards,
[EMAIL PROTECTED]

/*  Security is a work in progress - dreamwvr */
// Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]




chroot .. jail2 || other .pm ?

2001-12-11 Thread [EMAIL PROTECTED]

hi,
  Was digging around CPAN looking for a module that would 
allow the following..

user is authenticated .. via web.. ok got that..
If they are successful that are 
chroot or jailed or caged in a specific 
directory which becomes their root..
eg ..
$HOME/public_html
which is ln || lndir to 
/var/www/htdocs/userdomain

That way they get only very limited access to their account..
They can see their html .. js .. etc files and upload them
and that is it.. They can't see anything below /var/www/userdomain
I hope i have been clear and this is the right list to ask modperl
questions apache related. 

TIA 

Best Regards




Re: Defeating mod_perl Persistence

2001-12-11 Thread [EMAIL PROTECTED]

should one not unlink() after the close?

  When using Mail::Sender only the first email is sent on my mod_perl
 server.
  When I investigated, I realised that the socket to the SMTP server was
  staying open after the completion of that first email (presumably mod_perl
  is responsible for this persistence).
 
  Is there any way to defeat the persistence on the socket while running my
  script under mod_perl, or do such scripts always need to be mod_cgi?
 
 You're probably storing it in a global so it never gets cleaned up.  Don't
 do that.
 - Perrin
 



have a memory leaking

2001-12-06 Thread [EMAIL PROTECTED]

Hello All,

I have a problem with configuring Apache from mod_perl.

Descriptions of all virtual host i've got from MySQL DB.

And in cycle wrote:

$VirtualHost{$row[0]:80} = {
ServerName = $row[0], 
DocumentRoot = $root/www, 
ErrorLog = $root/logs/error_log, 
CustomLog = $root/logs/access_log combined, 
ServerAdmin = '[EMAIL PROTECTED]', 
ScriptAlias = { 
'/cgi-bin/' = /home/alexis/sd/kuban.com/cgi-bin/, 
}, 
AddHandler = { 
'cgi-script' = '.cgi', 
}, 
Directory = { 
$root/www = { 
Options = 'ExecCGI', 
AllowOverride = 'None', 
Order = 'deny,allow', 
Deny = 'from all', 
Allow = 'from 195.161.243.16/255.255.255.240', 
SetHandler = 'perl-script', 
PerlHandler = 'SD', 
PerlSendHeader = 'On', 
  }, 
$root/cgi-bin = { 
AllowOverride = 'None', 
Options = 'ExecCGI', 
SetHandler = 'perl-script', 
PerlFixupHandler = 'SD::Trans', 
PerlHandler = 'SD', 
PerlSendHeader = 'On', 
}, 
}, 
}; 

And all well (all works!), but when rebooting an apache (apachectl restart) size,
occupied by each process, increases (as a rule on 2Mb).

Where rake, but?

Platform - FreeBSD 4.3-RELEASE
Apache/1.3.20 (Unix) mod_perl/1.26 mod_ssl/2.8.4 OpenSSL/0.9.6 PHP/4.0.6 rus/PL30.5
  

-- 
Best regards,
 alexis  mailto:[EMAIL PROTECTED]




location directive

2001-11-27 Thread [EMAIL PROTECTED]

Hi

I have put mod_perl handler inside a virtual host section

then inside the virtualhost section, i also put location
directives to override overall modperl handler in some
situations, with sethandler default-handler.

for instance

Alias /icons/ d:/Apache/icons/
location /icons/
SetHandler default-handler
/location


this works ok as soon as the uri is /icons/file

but modperl handler intercept if the uri is just
/icons/ which should otherwise show the directory index of the
location.


isn't it a sort of bug ?

everything works ok if i put modperl handler inside a
location, inside the virtual host but this is precisely what i
don't want to do.
















Ce message vous est envoyé par laposte.net - web : www.laposte.net/  minitel : 3615 
LAPOSTENET (0,84 F TTC la minute)/ téléphone : 08 92 68 13 50 (2,21 F TTC la minute)





DB_File needs compatible versions

2001-10-02 Thread [EMAIL PROTECTED]

Hi,

I just installed apache 1.3.20, mod_perl 1.26 on a Redhat 7.1
perl 5.6.0

When I go to start apache with my startup.pl file it fails and says

DB_File needs compatible versions of libdb  db.h
you have db.h version 3.1.17 and libdb version 2.4.14


Any pointers?

thanks in advance

Scott






Re: Limiting total bandwidth ... nicely

2001-09-28 Thread [EMAIL PROTECTED]

hi Brice,
It really depends what os your using which i presume is not 
m$ ;-P Anyhow..
BSD - ALTQ
Linux - QoS 
Hope that helps. Note that bandwidth throttling should be down 
further down..
Best Regards,
[EMAIL PROTECTED]
On Fri, Sep 28, 2001 at 11:07:42AM -0500, Brice D Ruth wrote:
   I'd like to limit the bandwidth a particular site uses on my managed 
 server (to not exceed my total monthly data transfer limit) - the server 
 is used for corporate sites, but I have monthly bandwidth to spare, so 
 I'd like to start mirroring some OSS centric sites.  I just don't want 
 to get a huge bill at the end of the month because my mirror got really 
 popular!!
 
 What modules are out there to do this type of thing?
 
 -Brice
 
 -- 
 WebProjkt, Inc.
 VP, Director of Internet Technology
 http://www.webprojkt.com/
 



Re: cgi-lib.pl

2001-07-24 Thread [EMAIL PROTECTED]

hi,
  Not really sure if this is useful info for you but your sub:object called
ReadParse is being called in welcome.pl @ line 7 without being defined
previously..  
 [Mon Jul 23 05:38:06 2001] [error] Undefined subroutine
 Apache::ROOTwww_2emy_2ddomain_2ecom::cgi_2dbin::pads::welcome_2epl::ReadPar
 se called at /driveb/usr/web/webroot/cgi-bin/pads/welcome.pl line 7.
 
 
 Any info would be appreciated!
 
 John



mod_perl on win2k: cannot load module

2001-07-03 Thread [EMAIL PROTECTED]

I am a currently trying to have Apache and mod_perl to run with win 2000. This is part 
of a review being currently undertaken by my company on what technical solution to use 
for our intranet web server.

I have installed Apache 1.20 downloaded from apache.org web site.
I have installed Perl from Activestate. The version installed is 
ActivePerl-5.6.1.626-MSWin32-x86-multi-thread.
I have downloaded mod_perl from ftp://theoryx5.uwinnipeg.ca, installed it using ppm. 
The version of the package I have installed is mod_perl-1_25_1_3_20-eapi.tar.gz

Unfortunately, I have trouble running mod_perl: when I start Apache, I get the 
following error message:
   Syntax error on line 204 of c:/apache/apache/conf/httpd.conf:
Cannot load c:/apache/apache/modules/mod_perl.so into server: (127) The specified 
procedure could not be found:

I have some questions. Thanks for any information that could be provided:
1) Would anyone know what causes this error message and what I could do to solve the 
issue?
2) What is the difference between the eapi and no eapi versions of mod_perl. I have 
tried both, without success. I get an error message complaining about API in the 
version of mod_perl that does not have eapi in its name.
3) In the mailing list and at other places on the net, reference is made of 
expat_win32.dll. What is this dll for? Do I need it?

Raphael
__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






Re: Getting the wrong URL

2001-06-01 Thread [EMAIL PROTECTED]

OK, I think I have solved this problem, but I would like to run my solution by
you folks, and see if it makes any sense. What we found, on a more thorough
code review, was that a number of the handlers were doing a redirect by calling
send_cgi_header, and then exit()'ing. It seemed to us that the exit would kill
the Perl interp, and the Apache child would then just keep serving whatever it
had in its buffer at the time. Does that make any sense? If so, will die() have
the same results? I started grepping for exit everywhere, and removed it, but
along the way I saw a number of places that we're calling die.

I expect that this is just a really stupid newbie problem - I've only been
doing mod_perl stuff for about 6 months or so. And, in fact, once it occurred
to me that this might be the problem, of course I found it in the FAQ.

-- 
Rich Bowen - Author - Apache Server Unleashed
http://www.apacheunleashed.com/





Attempt to free unreferenced scalar ...

2001-06-01 Thread [EMAIL PROTECTED]

I am frequently getting this message in my error log:

Attempt to free unreferenced scalar during global destruction.

I have been unable to trace it down to any one particular handler. It seems to
be happening, as the message suggests, when a child exits. Is this a familiar
message? Is there any particular thing that I should be looking for?

-- 
Director of Application Development
The Creative Group
http://products.cre8tivegroup.com/





Re: Getting the wrong URL

2001-05-29 Thread [EMAIL PROTECTED]


On Sat, 26 May 2001 22:41:11 +0800 (SGT), Stas Bekman said:

 On 25 May 2001, [EMAIL PROTECTED] wrote:
  
   Once one handler get  a server error, you'll get the last
   succssful content served by that child, repeatedly, forever. Note also that
   this not one handler with lots of different behaviors. It's about 20 handlers,
   based of some shared base modules, but performing rather different tasks.
  
  Can you send us a small handler that reproduces the problem?

No. Unfortunately, it's a pretty complex system, and so far we've been unable
to narrow it down to just one thing. We had a suspicion for a while that it was
related to handlers that were redirecting to other handlers when they were
done, but I've been unable to confirm this yet.
  
  Have you tried writing the data to the disk instead of/in addition to
  sending it down to the client? Do you see the data written to the disk
  (error_log seems to be the best) changing?

What I'm trying to verify now is which URL Apache is even seeing in the
request. However, it does not seem to be logging anything at all. Of course, I
can't reproduce the problem right now. Bah.

-- 
Have trouble remembering things? - http://www.idforgetmyhead.com/





Re: Getting the wrong URL

2001-05-25 Thread [EMAIL PROTECTED]


 On 24 May 2001, [EMAIL PROTECTED] wrote:
..
   I have a web site where *everything* is mod_perl handlers. The problem that I'm
   seeing is that I will go to the url http://hostname/foo and I get the content
   from http://hostname/bar
  
   This seems to be happening when there is a server error of some variety, and
   from then on, until a server restart, users are just getting whatever the last
   thing was that that Apache child served. I have not been able to completely
   verify this, but I am consistently getting the same (wrong) content from a
   particular child, so apparently the particular child just keeps giving me
   whatever it served the last time.

  On Fri, 25 May 2001 10:31:09 +0800 (SGT), Stas Bekman said:
  looks like
  http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret
  http://perl.apache.org/guide/porting.html#Sometimes_it_Works_Sometimes_it

We're not doing anything with Apache::Registry. Everything is with Perl
handlers. It always seemed to me that the problems described at those locations
were specific to Apache::Registry. So you're saying that if a Perl handler
module falls over for some reason, that child will continue serving the last
content it served, forever? This strikes me as a bad thing.

Anyways, all of the possible reasons listed there are not, as far as we can
tell, going on in our code. Everything is 100% OO, nothing is global or
exported, and everything uses strict and warnings. Perhaps I'm misunderstanding
when things actually pass out of scope in a mod_perl environment.

Since almost all of the availble documentation seems to be about using
Apache::Registry, rather than about writing handlers, it's not always clear
whether things like this necessarily translate to both.

-- 
Director of Application Development
The Creative Group
http://products.cre8tivegroup.com/





Re: Getting the wrong URL

2001-05-25 Thread [EMAIL PROTECTED]


On Fri, 25 May 2001 23:28:44 +0800 (SGT), Stas Bekman said:

   We're not doing anything with Apache::Registry. Everything is with Perl
   handlers. It always seemed to me that the problems described at those locations
   were specific to Apache::Registry. So you're saying that if a Perl handler
   module falls over for some reason, that child will continue serving the last
   content it served, forever? This strikes me as a bad thing.
  
  It's quite possible if you happen to create closures in your dispatch
  handler for example. It's a bad thing :)

I sort of had the impression that closures were a good way to leak memory, and
so avoided them.

   Anyways, all of the possible reasons listed there are not, as far as we can
   tell, going on in our code. Everything is 100% OO, nothing is global or
   exported, and everything uses strict and warnings. Perhaps I'm misunderstanding
   when things actually pass out of scope in a mod_perl environment.
  
   Since almost all of the availble documentation seems to be about using
   Apache::Registry, rather than about writing handlers, it's not always clear
   whether things like this necessarily translate to both.
  
  I'd switch to a single server mode first thing first. Do you see the same
  behavior with httpd -X?

Same behavior, yes. Once one handler get  a server error, you'll get the last
succssful content served by that child, repeatedly, forever. Note also that
this not one handler with lots of different behaviors. It's about 20 handlers,
based of some shared base modules, but performing rather different tasks.

-- 
Rich Bowen - Author - Apache Server Unleashed
http://www.apacheunleashed.com/





Getting the wrong URL

2001-05-24 Thread [EMAIL PROTECTED]

I'm having a recurring problem that I can't find comment about in the docs, and
I was wondering if anyone might have some insight on this.

I have a web site where *everything* is mod_perl handlers. The problem that I'm
seeing is that I will go to the url http://hostname/foo and I get the content
from http://hostname/bar

This is naturally very distressing me me as the developer, and very confusing
for the user. I suppose it's very likely a problem with my code, rather than
with mod_perl, but if anyone has seen this before and can suggest where I
should be looking.

This seems to be happening when there is a server error of some variety, and
from then on, until a server restart, users are just getting whatever the last
thing was that that Apache child served. I have not been able to completely
verify this, but I am consistently getting the same (wrong) content from a
particular child, so apparently the particular child just keeps giving me
whatever it served the last time.

-- 
The Creative Group Web Application Group
Moving your paper processes to your intranet site





Re: Can AxKit be used as a Template Engine?

2001-04-23 Thread Ian Kallen [EMAIL PROTECTED]


Mason and AxKit solve different but related problems.  The former a
code-aware component system with process semantics that lend itself to
easily scoping a component's applicability, the latter a transformation
engine.  It would be nice to see a framework published that uses the best
of both (sorry, I don't have time to do it myself :).  The Java world
suffers from the same disconnect, in fact I think it's worse there; JSP
and Cocoon don't play together (I've never seen a servlet chainging
example that shows them doing so).

On Mon, 23 Apr 2001, Matt Sergeant wrote:
 Having said that, it goes the other way too - currently building web
 applications is probably a lot easier with Mason than it is with AxKit,
 because that's what it was designed for. AxKit has a pretty cool
 technology called XSP, which gives you a cold-fusion like system of
 inserting tags into your XML for dynamic functionality. But in my opinion
 it doesn't scale well (in the development sense, not in the performance
 sense) to large applications, because it is inherently a page-based
 technology (like PHP, Cold Fusion, JSP, ASP, etc), and I don't think
 page-based web development systems scale well to larger applications. I
 prefer something that is turned inside-out from the page based view of
 things, like MVC.

cheers,
-Ian

--
Ian Kallen [EMAIL PROTECTED] | AIM: iankallen




Re: modperl/ASP and MVC design pattern

2001-04-20 Thread Ian Kallen [EMAIL PROTECTED]


You can (I have) accomplish this with mod_perl and HTML::Mason, Mason's
root level autohandler can play the role of the JSP model 2
"controller servlet": dispatching logic processing to Perl objects (er,
beans) and "forwarding" to a view (with the Mason $m-call_next or
$m-comp mechanisms).  I think the Apache::Dispatch stuff can also
perform this role (haven't played with it to say for certain).  I'll
qualify this by saying MVC is not a end in itself, there are a lot of
modern requirements for flexible branding, client form factor appropriate
and locale specific presentations that require the view/controller part to
be a lot smarter than the traditional concepts of MVC that I've seen call
for.  I've been referring to these needs in my own engineering discussions
as (yikes) MVC++  :)

On Fri, 20 Apr 2001, Francesco Pasqualini wrote:
 an interesting feature of JSP is the possibility to use the MVC design pattern 
(INPUT/OUTPUT/LOGIC separation)
 This is obtained  with the "forward" instruction.
 How the MVC design pattern can be implemented in the mod_perl (and specifically 
Apache::ASP) architecture ?

cheers,
-Ian

--
Ian Kallen [EMAIL PROTECTED] | AIM: iankallen




apache::asp

2001-02-25 Thread [EMAIL PROTECTED]

Hello

I was wondering if the support for asp in apache also includes ODBC access from a asp 
script to a MS Access database or other ODBC source.
Like it is posible in a MS Web server?

Kind regards

Jacques