RE: must I use mod-perl

2003-07-23 Thread Denis
that's the point - there is plenty of documentation. When you encounter some
problem you gotta search the docs until you find solution. Docs are pretty
long so it takes time.
Btw from what I read here it seems that it's just me who had problems with
installing mod_perl.
Oskar

-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:41 PM
To: Oskar
Cc: [EMAIL PROTECTED]
Subject: Re: must I use mod-perl


On Sun, 2003-07-13 at 16:53, Oskar wrote:
 Install it if you have a lot of time. It took me week to config it and
month
 for rewritting scripts.

Oskar,

Is there something specific that would have helped you get going
faster?  Did you find the documentation you needed?

- Perrin




AW: [OT] Perfomance tests, How?

2003-04-02 Thread Denis Banovic
Hi!

Here are the doc's:

Try ab or http_load.

http://perl.apache.org/docs/1.0/guide/performance.html


Best regards



Lust auf mehr? - http://maedls.at
---
NCM - NET COMMUNICATION MANAGEMENT GmbH
---[  Denis Banovic - CTO
mailto:[EMAIL PROTECTED]
---[  Mühlstrasse 4a
  AT - 5023 Salzburg
  Tel. 0662 / 644 688
---[  Fax: 0662 / 644 688 - 88 


-Ursprüngliche Nachricht-
Von: Ruslan U. Zakirov [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 2. April 2003 14:54
An: mod_perl list
Betreff: [OT] Perfomance tests, How?


Hello All!
  I need to test my project perfomance. Is there any OpenSource
projects like WebBench and other in the Internet?
 Best regards. Ruslan.


Adding / Modifing Response Headers on mp2

2003-04-02 Thread Denis Banovic
Hi!

I'm trying to figure out, how to Add / Modify the HTTP Headers like
Content Type, Cache aso...

on mod_perl 1 I've used:
 
$r-send_cgi_header($custom_headers);

but this won't work mod_perl 2...

I've searched in Apache::compat all I've found was the function header_out
that internally calls $r-headers_out()... 

Can somebody please tell me how to set the right headers???

Thanks a lot!


here is the code from Apache::compat


sub table_get_set {
my($r, $table) = (shift, shift);
my($key, $value) = @_;

if (1 == @_) {
return wantarray() 
?   ($table-get($key))
: scalar($table-get($key));
}
elsif (2 == @_) {
if (defined $value) {
return wantarray() 
?($table-set($key, $value))
:  scalar($table-set($key, $value));
}
else {
return wantarray() 
?   ($table-unset($key))
: scalar($table-unset($key));
}
}
elsif (0 == @_) {
return $table;
}
else {
my $name = (caller(1))[3];
warn Usage: \$r-$name([key [,val]]);
}
}

sub header_out {
my $r = shift;
return wantarray() 
?   ($r-table_get_set(scalar($r-headers_out), @_))
: scalar($r-table_get_set(scalar($r-headers_out), @_));
}


register_cleanup on mod_perl 2.0

2003-03-05 Thread Denis Banovic
Hi!

I've a script that looks like this:

if ($runnung_on_mod_perl) {
Apache-request-register_cleanup(\init_globals);
}

Under mod_perl 1.0 works fine with Apache::Registry.

Can someone give me an Example how to make a register_cleanup with mod_perl
2?

Thanks a lot

Denis 


register_cleanup

2003-02-28 Thread Denis Banovic

Hi!

I'm trying to migrate some stuff from mod_perl 1.
I've read the tutorial on perl.apache.org but it didn't help.

I've a perl script that looks like this:

if ($runnung_on_mod_perl) {
Apache-request-register_cleanup(\init_globals);
}

Under mod_perl 1.0 works fine with Apache::Registry.


But I can't find out how to port this to mod_perl 2.

I've tried to use

Apache::compat();  but then I got another error from an Module we are using
to cache the script's output:

ModPerl::Registry: anonymous handlers not (yet) supported at...

The code looks like this:
...

$self-{r} = Apache-request;
$self-{r}-push_handlers(PerlHandler = sub {$self-DESTROY});

...


1) How to do a register_cleanup with mod_perl 2.0 ?

2) How to fix the second error? googling didn't help.



Can someone please help me with it?


Thanks a lot


Denis Banovic



mac osx librapeq compiling problem

2003-02-26 Thread Lamotte Denis
LD_RUN_PATH= cc  -bundle -bundle_loader
/usr/bin/perl -lperl 
-L/System/Library/Perl/darwin/CORE Request.o  -o
../blib/arch/auto/Apache/Request/Request.bundle 
ld: Undefined symbols:
_ApacheRequest___parse
_ApacheRequest_expires
_ApacheRequest_new
_ApacheRequest_script_name
_ApacheRequest_tmpfile
_ApacheUpload_find
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
make[1]: ***
[../blib/arch/auto/Apache/Request/Request.bundle]
Error 1
make: *** [subdirs] Error 2

if somebody can help me, i post this 3 weeks ago
and i receive no help 

thanks

Lamotte Denis

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


mod perl libapreq make test problem

2003-02-26 Thread Lamotte Denis
make test
t/httpd -f `pwd`/t/httpd.conf
dyld: t/httpd Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_month_snames
_ap_null_cleanup
make: *** [start_httpd] Trace/BPT trap

i think ive successfully compile apache with mod perl
and mod php.
i'm working on Mac osx 10.2.4 with perl 5.8.0
apache 1.3.27
mod perl 1.27
php 4.3.0

as soon as i activate in any httpd.conf an mod_perl
like:
Appache::request or ::Registry or :Cookie

i've got the same problem.

so if any one can help ( already 2 weeks ok nightmare
:-) )

cordially

Lamotte Denis

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


Fwd: Re: mod perl libapreq make test problem

2003-02-17 Thread Lamotte Denis
 Remarque : message transféré en pièce jointe. 

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
---BeginMessage---
yes david i've followed your own article, the only
thing is that i have to modify the script BUILD.SH
with
glibtoolize --automake -c -f
aclocal
autoconf
automake -a -c

adding a g before libtoolize because the script cannot
find libtoolize on my computer.

i use the following steps:
Configure Apache.

  dlamotte% cd apache_x.x.xx
  dlamotte% ./configure

Build mod_perl:

  dlamotte% cd ../mod_perl-1.27
  dlamotte% perl Makefile.PL \
APACHE_SRC=../apache_1.3.27/src NO_HTTPD=1 \
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
  dlamotte% make

Build mod_php:

  dlamotte% cd ../php-4.3.0
  dlamotte% ./configure --with-apache=../apache_1.3.27
\
 --with-mysql --enable-track-vars
  dlamotte% make
  dlamotte% sudo make install

Reconfigure Apache to use mod_perl and PHP and build
it:

  dlamotte% cd ../apache_1.3.27
  dlamotte% ./configure \
 --activate-module=src/modules/perl/libperl.a \
 --activate-module=src/modules/php4/libphp4.a
 --with-layout=Darwin --server-uid=www \ 
 --server-gid=www --enable-module=most
  dlamotte% make

Test and install mod_perl

  dlamotte% cd ../mod_perl-1.27
  dlamotte% make test
  dlamotte% sudo make install.

Complete the Apache installation.

  dlamotte%  cd ../apache_1.3.27
  dlamotte% sudo make install

making the latest librapeq 1.1

dlamotte% cd ../httpd-apreq
dlamotte% sudo sh BUILD.sh
dlamotte%  ./configure
--with-apache-includes=/usr/include/httpd
dlamotte% make
dlamotte% sudo make install
dlamotte% perl Makefile.PL
dlamotte% make
dlamotte% make test - and the problems comes here :-(


Cordially

 --- David Wheeler [EMAIL PROTECTED] a écrit : 
On Sunday, February 16, 2003, at 09:37  AM, Lamotte
 Denis wrote:
 
  i think ive successfully compile apache with mod
 perl
  and mod php.
  i'm working on Mac osx 10.2.4 with perl 5.8.0
 
 Did you compile the libapreq C library before
 compiling 
 Apache::libapreq? See INSTALL.MacOSX in the libapreq
 distribution for 
 complete details. I've also published an update to
 may Build 
 Apache/mod_perl on Mac OS X article that covers
 this issue:
 
   

http://www.macdevcenter.com/pub/a/mac/2003/02/07/libapreq_update.html
 
 HTH,
 
 David
 
 -- 
 David Wheeler
 AIM: dwTheory
 [EMAIL PROTECTED] 
 ICQ: 15726394

 Yahoo!: dew7e

 Jabber: [EMAIL PROTECTED]
 Kineticode. Setting knowledge in motion.[sm]
  

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---End Message---


Fwd: mod perl libapreq make test problem

2003-02-17 Thread Lamotte Denis
I've found i nice url:
http://www.advogato.org/article/627.html
with this modification in config.pm :

What to do before attempting to compile ANY Perl
extensions
 more information: man 1 dyld
 The first thing you should do is change line 596 of
/System/Library/Perl/darwin/Config.pm to:
 lddlflags='-bundle -bundle_loader /usr/bin/perl
-lperl -L/System/Library/Perl/darwin/CORE'
 This causes perl extensions to be compiled with
two-level namespaces.  If you use flat namespaces, you
will have problems if two different dynamically
modules define the same symbol (the second one won't
import at all).  It has the added benefit that it lets
you know in advance if you're going to run into
undefined symbol problems, where undefined symbols are
suppressed in the flat namespace case.   

by doing this the problem goes worse in apperence
only!
the explanation of the error get clearer and appear
directly when doing the made command:
LD_RUN_PATH=/usr/local/src/httpd-apreq/Request/../blib/arch/auto/libapreq
cc  -bundle -bundle_loader /usr/bin/perl -lperl 
-L/System/Library/Perl/darwin/CORE Request.o  -o
../blib/arch/auto/Apache/Request/Request.bundle  
-L/usr/local/src/httpd-apreq/Request/../blib/arch/auto/libapreq
-lapreq  
ld: Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_find_path_info
_ap_get_client_block
_ap_getword
_ap_getword_conf
_ap_hard_timeout
_ap_ind
_ap_kill_timeout
_ap_log_rerror
_ap_make_array
_ap_make_dirstr_parent
_ap_make_table
_ap_month_snames
_ap_pfclose
_ap_pfdopen
_ap_popenf
_ap_psprintf
_ap_pstrcat
_ap_pstrdup
_ap_pstrndup
_ap_push_array
_ap_setup_client_block
_ap_should_client_block
_ap_table_do
_ap_unescape_url
make[1]: ***
[../blib/arch/auto/Apache/Request/Request.bundle]
Error 1
make: *** [subdirs] Error 2

i'm still in trouble so if you can help me

Cordially






=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



mod perl libapreq make test problem

2003-02-16 Thread Lamotte Denis
make test
t/httpd -f `pwd`/t/httpd.conf
dyld: t/httpd Undefined symbols:
_ap_null_cleanup
_ap_pcalloc
_ap_register_cleanup
_ap_table_add
_ap_table_get
_ap_table_set
_ap_table_unset
_hvrv2table
_mod_perl_tie_table
_perl_request_rec
_sv2request_rec
_ap_day_snames
_ap_month_snames
_ap_null_cleanup
make: *** [start_httpd] Trace/BPT trap

i think ive successfully compile apache with mod perl
and mod php.
i'm working on Mac osx 10.2.4 with perl 5.8.0
apache 1.3.27
mod perl 1.27
php 4.3.0

as soon as i activate in any httpd.conf an mod_perl
like:
Appache::request or ::Registry or :Cookie

i've got the same problem.

so if any one can help ( already 2 weeks ok nightmare
:-) )

cordially

Lamotte Denis

=
Lamotte Denis

+352021268760

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Help ! TCP stream kept open by mod_perl : possible ?

2002-01-01 Thread Denis Bucher


Hello !

I have a project with Apache mod_perl and I don't know it
it is able to do it. I am of course beginner and any help is
welcomed :-))

I want to do a simple webmail, where the program on the server side
KEEP a TCP stream permamently open to the mail server (POP3) for
each user/customer while he's using the webmail. (Closed after
timeout or at logoff)

Is this possible ? Thanks for any suggestion !

And happy new year 2002 to everyone !

Denis Bucher

P.S. More details and examples :

My webmail could be used like that :

At login :
- open TCP stream to pop3.horus.ch
- USER/PASS
- reading emails info (that would be put into an array)
- nothing more

http://.../webmail.pl?showmails;start=1;end=20
- display all mails between 1 and 20 based on array

http://.../webmail.pl?deletemail;uidl=hkjdfhskjh43879
- send DELE 34 on the TCP stream

This is easily possible with Java Servlets. If it isn't with
perl, it means that mod_perl isn't as powerful.


--

Denis Bucher,   /  [EMAIL PROTECTED]   Tél. +41-32-7254111   \  Internet
Horus Networks /  www.horus.infoFax: +41-32-7254112   \  Services
   /  USA: (206) 888-2335   US Fax: (508) 437-1261  \  Provider




unsuscribe

2000-12-15 Thread Jean-Denis Girard

unsuscribe


begin:vcard 
n:Girard;Jean-Denis
tel;work:(+689) 48 35 27
x-mozilla-html:FALSE
org:Essential Software
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Directeur associé
x-mozilla-cpt:;19808
fn:Jean-DenisGirard
end:vcard



Re: how to check for ssl.

2000-08-06 Thread Jean-Denis Girard

$r-server-port() returns 0
$r-parsed_uri-port() and $r-parsed_uri-fragment() return nothing !!!

___cliff rayman___ a écrit :

 try these and see what they return:

 $r-server-port();
 $r-parsed_uri-port();

 --
 ___cliff [EMAIL PROTECTED]http://www.genwax.com/
 Jean-Denis Girard wrote:

  For some reason (probably my error),  $r-get_server_port() always returns 80
 
  although my mod_perl backend only listen to 8080 and 8443 (I use Listen
  directives).
  I'm using (sockaddr_in($r-connection-local_addr))[0] to get the port
  instead.
  Though it works, I must load one more module (Socket), which I would like to
  avoid if
  possible...
 
  Any idea about my mistake ?
 
  My conf: apache-1.3.12 + mod_ssl-2.3.4  = apache-1.3.12 + mod_perl-1.24 on
  linux-2.2.14
 
  Jean-Denis Girard
  http://www.esoft.pf
 
  ___cliff rayman___ a écrit :
 
   $port=$r-get_server_port();
  
   [EMAIL PROTECTED] wrote:
  
Ok, so what is the PORT variable and how do i access it?
   
Scott
On 3 Aug 2000, at 22:08, Stas Bekman wrote:
 Not really, you can spoof both:
 http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e
 d_Connec.html

  
   --
   ___cliff [EMAIL PROTECTED]http://www.genwax.com/




Re: how to check for ssl.

2000-08-04 Thread Jean-Denis Girard

For some reason (probably my error),  $r-get_server_port() always returns 80

although my mod_perl backend only listen to 8080 and 8443 (I use Listen
directives).
I'm using (sockaddr_in($r-connection-local_addr))[0] to get the port
instead.
Though it works, I must load one more module (Socket), which I would like to
avoid if
possible...

Any idea about my mistake ?

My conf: apache-1.3.12 + mod_ssl-2.3.4  = apache-1.3.12 + mod_perl-1.24 on
linux-2.2.14

Jean-Denis Girard
http://www.esoft.pf


___cliff rayman___ a écrit :

 $port=$r-get_server_port();

 [EMAIL PROTECTED] wrote:

  Ok, so what is the PORT variable and how do i access it?
 
  Scott
  On 3 Aug 2000, at 22:08, Stas Bekman wrote:
   Not really, you can spoof both:
   http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e
   d_Connec.html
  

 --
 ___cliff [EMAIL PROTECTED]http://www.genwax.com/




[OT] Lotus Domino as Web server ?

2000-04-23 Thread Jean-Denis Girard

Hi dear modperlers,

We have a client here willing to use Domino to serve
his Web site.

The site should not be very busy (we expect about 15000
hits per day), but is relatively complex, with database
integration, visitors tracking, customers logins, SSL...

As anyone on the list already used this strange beast ?

What could I say to this client to make him change his
mind, apart from obvious reasons (price, closed and
proprietary solution, nobody uses it, less than 1% on
the Internet).

Thanks for any response.

Jean-Denis Girard
Essential Software