RE: Simple configuration question

2002-03-09 Thread Ged Haywood

Hi again,

On Fri, 8 Mar 2002, Kirk Rogers wrote:

 if I add APACHE_PREFIX=/usr/local/apache_ssl it shouldn't even touch anything
 I have in my original installation at /usr/local/apache.  Is this correct?
 
 Then I can slowly migrate my configuration file over to the new installation
 directories?

Yes, and yes.

This is how you would for example set up the light/heavy server system
where you have two copies of Apache running at the same time: a
non-modperl server listening on port 80 serves requests for static
pages itself, while passing requests for dynamic pages to a modperl
server listening on a different port.  It's in the Guide:
http://perl.apache.org/guide.

Don't try to run both Apaches at the same time on the same socket!

73,
Ged.




Re: About Apache::DBI

2002-03-09 Thread Ged Haywood

On Sat, 9 Mar 2002, Axel Andersson wrote:

 Okay, so I read up on Apache::DBI, but I still have a question or two.
 
 Specifically, am I supposed to keep my use DBI, DBI-connect(), and
 everything DBI related and not change a single thing in my source

What did you read?  Here are the first six lines from 'perldoc Apache::DBI.pm':

   Apache::DBI - Initiate a persistent database connection

# Configuration in httpd.conf or startup.pl:

PerlModule Apache::DBI  # this comes before all other modules using DBI

   Do NOT change anything in your scripts. The usage of this
   module is absolutely transparent !

73,
Ged.




Re: Upload Meter with Apache::Request

2002-03-09 Thread Geoffrey Young



Michael Dwyer wrote:

 Hi, I'm sorry if this has been covered, but i've scoured the net and can't
 find any documentation on exactly how to use the upload hook of
 Apache::Request to create a meter, as it states in the Apache::Request
 documentation.  Just wondering if anyone can point me in the right direction
 to look for information on this.  Thanks in advance.


I haven't used it myself, but this module uses that hook

http://cpan.valueclick.com/modules/by-module/Apache/Apache-UploadMeter-0.22.tar.gz

--Geoff




Hi........

2002-03-09 Thread Balaji_Mahalingam

Dear All,

  I am new to this place.Can any one send me the installing and configuring
details of mod_perl-1.26

Thanks Regards
Balaji
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**



Re: Hi........

2002-03-09 Thread Mark Fowler

On Sat, 9 Mar 2002, Balaji_Mahalingam wrote:

   I am new to this place.

Greetings.  May I suggest a more informative subject line next time - I 
almost deleted it by mistake because that's how quite a lot of the spam I 
get starts ;-)

 Can any one send me the installing and configuring
 details of mod_perl-1.26

There's installation instructions in the Guide:
   http://perl.apache.org/guide/install.html

There's help in the mod_perl cookbook, chapter 1
   http://www.modperlcookbook.org/chapters.html.
   http://www.modperlcookbook.org/chapters/ch01.pdf
   (and in bookshops)

Feel free to ask for help if you've got any problems, just send details of 
any error messages, the nature of the problem and what systems you're 
trying to install it on (with what technique) and I (or others) will do 
our best to help you.

Later.

Mark.

-- 
s''  Mark Fowler London.pm   Bath.pm
 http://www.twoshortplanks.com/  [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t-Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t-Tgoto(cm,$_,$y). $w;select$k,$k,$k,.03}$y+=2}




SSL Installation Questions - Help

2002-03-09 Thread Kirk Rogers

Hi all,
So I went ahead and tried to install apache-ssl and am following the
instructions to the T.

I've acquired:
mod_perl-1.26.tar.gz
openssl-0.9.6c.tar.gz
apache_1.3.22.tar.gz
apache_1.3.22+ssl_1.47.tar.gz


I received no errors when installing openssl-0.9.6c.

The first problem comes up when I run ./FixPatch :


/home/me/downloads/apache_1.3.22/ ./FixPatch
Your version of patch is OK.
Searching for a usable OpenSSL installation or source directory
Looks like you are using OpenSSL, adjusting app name
OpenSSL sources were found in: /home/me/downloads/openssl-0.9.6c
OpenSSL needs updating to include a function to read a specified number of
bytes from EGD - if you haven't applied the patch already and are using
OpenSSL 0.9.5a, then it needs applying
Do you want me to apply the OpenSSL EGD patch for you? [n] n
OK, I won't apply the OpenSSL patch.
OpenSSL installation found in: /usr/local/ssl /usr
Using the source version of OpenSSL found in
/home/me/downloads/openssl-0.9.6c
If this is not what you want stop now and specify the path to OpenSSL
explicitly.

Do you want me to apply the fixed-up Apache-SSL patch for you? [n] y
patching file Makefile.tmpl
patching file configure
patching file src/Configuration
patching file src/Configuration.tmpl
patching file src/Configure
patching file src/Makefile.tmpl
patching file src/ap/Makefile.tmpl
patching file src/include/ap_config.h
patching file src/include/ap_mmn.h
patching file src/include/buff.h
patching file src/include/http_config.h
patching file src/include/http_main.h
patching file src/include/httpd.h
patching file src/main/Makefile.tmpl
patching file src/main/buff.c
patching file src/main/http_config.c
patching file src/main/http_log.c
patching file src/main/http_main.c
patching file src/main/util_script.c
patching file src/modules/standard/Makefile.tmpl
patching file src/modules/standard/mod_log_config.c
patching file src/modules/standard/mod_so.c
patching file src/os/unix/Makefile.tmpl
patching file src/support/ab.c
patching file src/support/apachectl
patching file src/support/suexec.c
me Sat Mar  9 10:11:07am
/home/me/downloads/apache_1.3.22/


Im assuming it was OK to skip the patch for openssl since my version is
later than what was suggested.  I then move forward to make and install
mod_perl and apache as directed:

perl Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 SSL_BASE=/usr/local/ssl
APACHE_SRC=../apache_1.3.22/src APACHE_PREFIX=/usr/local/apachessl

All on one line of course...and everything looks fine.  Then:

make  make install (the test has never passed on my system, and I've
installed the non ssl version which is currently up and running - for
months - without issue)

Then cd ../apache_... and:

make certificate

But my system responds with:

make: *** No rule to make target `certificate'.  Stop.

Hmmm.  What has gone wrong?  Also, when I check the httpsd.conf file, I see
no reference to SSL directives anywhere.  Are the SSL directives supposed to
be in the httpds.conf file or am I required to cut and paste them in from
the examples?

Thanks,
Kirk







eCap




Re: mod_perl training companies?

2002-03-09 Thread Gabor Szabo


On 2002.03.06 04:05 Stas Bekman wrote:
  
 I'm compiling a list of companies giving mod_perl training for our new
 mod_perl site. Currently I have only:

Stats and others,

I am keping a list of companies providing Perl training at
http://www.perltraining.org/ organized based on the home country of
the company. I'd be glad to add more companies and to mark those
that provide mod_perl training.

Rich,
I have already added CooperMcGregor but I can add more description
if you give me.

Specifically we also do provide mod_perl training
and we are based in Israel: http://www.pti.co.il/

regards
-- Gabor Szabo




Re: Hi........

2002-03-09 Thread Ged Haywood

Hi all,

On Sat, 9 Mar 2002, Mark Fowler wrote:

 On Sat, 9 Mar 2002, Balaji_Mahalingam wrote:
 
  Can any one send me the installing and configuring
  details of mod_perl-1.26
 
 There's installation instructions in the Guide:
http://perl.apache.org/guide/install.html

Not to mention in the tarball itself...

$ ls -l ~/mod_perl-1.25
total 552
drwxr-xr-x2 ged  ged  4096 Apr 24  2001 Apache
-rw-r--r--1 ged  ged 10894 Dec 22  1998 CREDITS
-rw-r--r--1 ged  ged133135 Jan 30  2001 Changes
drwxr-xr-x2 ged  ged  4096 Apr 24  2001 Connection
drwxr-xr-x2 ged  ged  4096 Apr 24  2001 Constants
drwxr-xr-x2 ged  ged  4096 Apr 24  2001 File
-rw-r--r--1 ged  ged 10776 Apr  3  2000 INSTALL
-rw-r--r--1 ged  ged 10332 Jan 26  2000 INSTALL.apaci
-rw-r--r--1 ged  ged  1658 Jul 10  2000 INSTALL.raven
-rw-r--r--1 ged  ged   456 Oct  1  1999 INSTALL.simple
-rw-r--r--1 ged  ged   681 Oct  1  1998 INSTALL.simple.mod_ssl
-rw-r--r--1 ged  ged   713 May 12  1998 INSTALL.simple.ssl
-rw-r--r--1 ged  ged   632 May 15  1998 INSTALL.simple.stronghold
-rw-r--r--1 ged  ged  4300 Dec 31  2000 INSTALL.win32
...
...

73,
Ged.




Re: [OT] eToys Jingle (was: Where was that success story?)

2002-03-09 Thread Ian Struble

And further still into OT land, Israel is a pretty popular Hawaiian
artist.  Too bad he does not get play on the mainland.

Ian

On Wed, 6 Mar 2002, Tom Servo wrote:

  What I really want to know is: what ever happened to that eToys jingle
  that was on the commercials? It was almost as good as the site. My
  children were all under 7 when the site folded, so those commercials and
  that jingle REALLY pulled the heart strings. 
  
 
 Heh, used to work there.   Song was:
 
 Somewhere Over the Rainbow/What a Wonderful World
 by Israel Kamakawiwo'ole
 on the album Facing Future
 
 Enjoy.
 
 Brian Nilsen
 
 
 
 




Deleting a cookie manually

2002-03-09 Thread Hans Poo

Hi

I need to delete directly a session cookie before begining some processing.

I need to clean directly the cookie from the cookie table for after 
processing

hans



Newbie install problems

2002-03-09 Thread Adam Garcia

Hello everyone,

I'm trying to install mod_perl so I can use scoop, but I can't get it
working. I followed the instructions at guide.kuro5hin.org to a tee.
I've tried to install it via the ports since I'm running FreeBSD 4.5
stable and receive this error:

===  Building for mod_perl-1.26
(cd ./apaci  PERL5LIB=/usr/ports/www/mod_perl/work/mod_perl-1.26/lib
make)
Perl lib version (5.00503) doesn't match executable version (5.006001)
at /usr/libdata/perl/5.00503/mach/Config.pm line 7.
Compilation failed in require at
/usr/libdata/perl/5.00503/ExtUtils/Install.pm line 9.
BEGIN failed--compilation aborted at
/usr/libdata/perl/5.00503/ExtUtils/Install.pm line 9.
Compilation failed in require.
BEGIN failed--compilation aborted.
*** Error code 255

Stop in /usr/ports/www/mod_perl/work/mod_perl-1.26.
*** Error code 1

Stop in /usr/ports/www/mod_perl.
*** Error code 1

Stop in /usr/ports/www/mod_perl.
*** Error code 1

When I download the tarball and tar zxf, run the Makefile.PL and then
make  make install it seems to work fine but I don't think it's
installing. I checked the httpd.conf file and mod_perl is not anywhere
in the file. What am I missing?

Thanks in advance




Re: Newbie install problems

2002-03-09 Thread Geoffrey Young

 
 ===  Building for mod_perl-1.26
 (cd ./apaci  PERL5LIB=/usr/ports/www/mod_perl/work/mod_perl-1.26/lib
 make)
 Perl lib version (5.00503) doesn't match executable version (5.006001)
 at /usr/libdata/perl/5.00503/mach/Config.pm line 7.

I saw this just this week at work - turned out that /usr/bin/perl wasn't 
symlinked to /usr/local/bin/perl, so the version of perl they were running with 
(due to the user's PATH) wasn't the same that make was picking up.

you should probably fix your system, since it's sometimes convenient to have 
/usr/bin/perl and /usr/local/bin/perl be the same.  in the meanwhile, you can 
always use the absolute path to the perl binary you want to use when buliding 
mod_perl

$ /path/to/perl-5.006 Makefile.PL \
   APACHE_PREFIX=/usr/local/apache \
   ...
$ make and friends

HTH

--Geoff




cvs commit: modperl-2.0/src/modules/perl mod_perl.c modperl_filter.c

2002-03-09 Thread dougm

dougm   02/03/09 16:09:52

  Modified:src/modules/perl mod_perl.c modperl_filter.c
  Log:
  Submitted by:   Philippe M. Chiasson [EMAIL PROTECTED]
  Reviewed by:  dougm
  sync with filter name changes
  
  Revision  ChangesPath
  1.109 +2 -2  modperl-2.0/src/modules/perl/mod_perl.c
  
  Index: mod_perl.c
  ===
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.c,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- mod_perl.c26 Feb 2002 19:01:38 -  1.108
  +++ mod_perl.c10 Mar 2002 00:09:52 -  1.109
  @@ -504,11 +504,11 @@
   
   ap_register_output_filter(MODPERL_OUTPUT_FILTER_NAME,
 modperl_output_filter_handler,
  -  AP_FTYPE_CONTENT);
  +  AP_FTYPE_CONTENT_SET);
   
   ap_register_input_filter(MODPERL_INPUT_FILTER_NAME,
modperl_input_filter_handler,
  - AP_FTYPE_CONTENT);
  + AP_FTYPE_CONTENT_SET);
   
   ap_hook_pre_connection(modperl_hook_pre_connection,
  NULL, NULL, APR_HOOK_FIRST);
  
  
  
  1.32  +1 -1  modperl-2.0/src/modules/perl/modperl_filter.c
  
  Index: modperl_filter.c
  ===
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_filter.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- modperl_filter.c  25 Jan 2002 04:04:22 -  1.31
  +++ modperl_filter.c  10 Mar 2002 00:09:52 -  1.32
  @@ -506,7 +506,7 @@
   
   ctx = (modperl_filter_ctx_t *)apr_pcalloc(r-pool, sizeof(*ctx));
   ctx-handler = handlers[i];
  -addfunc(name, (void*)ctx, r, NULL);
  +addfunc(name, (void*)ctx, r, r-connection);
   }
   
   return OK;
  
  
  



cvs commit: modperl-2.0/xs/maps apr_structures.map apr_types.map

2002-03-09 Thread dougm

dougm   02/03/09 16:11:50

  Modified:xs/maps  apr_structures.map apr_types.map
  Log:
  Submitted by: Philippe M. Chiasson [EMAIL PROTECTED]
  Reviewed by:  dougm
  adjust to apr_exploded_time_t = apr_time_exp_t rename
  
  Revision  ChangesPath
  1.7   +2 -2  modperl-2.0/xs/maps/apr_structures.map
  
  Index: apr_structures.map
  ===
  RCS file: /home/cvs/modperl-2.0/xs/maps/apr_structures.map,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- apr_structures.map10 Sep 2001 05:49:04 -  1.6
  +++ apr_structures.map10 Mar 2002 00:11:50 -  1.7
  @@ -67,7 +67,7 @@
  err
   /apr_proc_t
   
  -!apr_exploded_time_t
  +!apr_time_exp_t
  tm_usec
  tm_sec
  tm_min
  @@ -79,7 +79,7 @@
  tm_yday
  tm_isdst
  tm_gmtoff
  -/apr_exploded_time_t
  +/apr_time_exp_t
   
   #generic data structures
   
  
  
  
  1.12  +1 -1  modperl-2.0/xs/maps/apr_types.map
  
  Index: apr_types.map
  ===
  RCS file: /home/cvs/modperl-2.0/xs/maps/apr_types.map,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- apr_types.map 31 Dec 2001 12:11:48 -  1.11
  +++ apr_types.map 10 Mar 2002 00:11:50 -  1.12
  @@ -78,7 +78,7 @@
   apr_other_child_rec_t| UNDEFINED
   
   #time stuff
  -struct apr_exploded_time_t| APR::ExplodedTime
  +struct apr_time_exp_t| APR::ExplodedTime
   struct apr_os_exp_time_t  | UNDEFINED
   struct apr_os_imp_time_t  | NOTIMPL
   
  
  
  



cvs commit: modperl-2.0/xs/maps apache_functions.map

2002-03-09 Thread dougm

dougm   02/03/09 16:14:23

  Modified:xs/maps  apache_functions.map
  Log:
  Submitted by:   Philippe M. Chiasson [EMAIL PROTECTED]
  Reviewed by:  dougm
  fix $r-no_cache
  
  Revision  ChangesPath
  1.45  +0 -1  modperl-2.0/xs/maps/apache_functions.map
  
  Index: apache_functions.map
  ===
  RCS file: /home/cvs/modperl-2.0/xs/maps/apache_functions.map,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- apache_functions.map  26 Feb 2002 19:04:24 -  1.44
  +++ apache_functions.map  10 Mar 2002 00:14:23 -  1.45
  @@ -42,7 +42,6 @@
   !ap_content_type_tolower
ap_get_status_line
ap_is_initial_req
  - mpxs_Apache__RequestRec_no_cache
ap_method_register
   ap_method_registry_init
   ap_process_request_internal
  
  
  



cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2002-03-09 Thread dougm

dougm   02/03/09 16:17:05

  Modified:xs/tables/current/Apache ConstantsTable.pm FunctionTable.pm
StructureTable.pm
   xs/tables/current/ModPerl FunctionTable.pm
  Log:
  sync
  
  Revision  ChangesPath
  1.22  +4 -3  modperl-2.0/xs/tables/current/Apache/ConstantsTable.pm
  
  Index: ConstantsTable.pm
  ===
  RCS file: /home/cvs/modperl-2.0/xs/tables/current/Apache/ConstantsTable.pm,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ConstantsTable.pm 20 Jan 2002 18:35:26 -  1.21
  +++ ConstantsTable.pm 10 Mar 2002 00:17:05 -  1.22
   -2,7 +2,7 
   
   # !!
   # ! WARNING: generated by Apache::ParseSource/0.02
  -# !  Sun Jan 20 10:13:22 2002
  +# !  Sat Mar  9 16:13:55 2002
   # !  do NOT edit, any changes will be lost !
   # !!
   
   -133,8 +133,9 
 'HTTP_NOT_EXTENDED'
   ],
   'filter_type' = [
  -  'AP_FTYPE_CONTENT',
  -  'AP_FTYPE_HTTP_HEADER',
  +  'AP_FTYPE_RESOURCE',
  +  'AP_FTYPE_CONTENT_SET',
  +  'AP_FTYPE_PROTOCOL',
 'AP_FTYPE_TRANSCODE',
 'AP_FTYPE_CONNECTION',
 'AP_FTYPE_NETWORK'
  
  
  
  1.34  +334 -146  modperl-2.0/xs/tables/current/Apache/FunctionTable.pm
  
  Index: FunctionTable.pm
  ===
  RCS file: /home/cvs/modperl-2.0/xs/tables/current/Apache/FunctionTable.pm,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- FunctionTable.pm  30 Jan 2002 03:29:38 -  1.33
  +++ FunctionTable.pm  10 Mar 2002 00:17:05 -  1.34
   -2,7 +2,7 
   
   # !!
   # ! WARNING: generated by Apache::ParseSource/0.02
  -# !  Tue Jan 29 19:27:23 2002
  +# !  Sat Mar  9 16:14:02 2002
   # !  do NOT edit, any changes will be lost !
   # !!
   
   -848,7 +848,7 
   'name' = 'ap_explode_recent_gmt',
   'args' = [
 {
  -'type' = 'apr_exploded_time_t *',
  +'type' = 'apr_time_exp_t *',
   'name' = 'tm'
 },
 {
   -862,7 +862,7 
   'name' = 'ap_explode_recent_localtime',
   'args' = [
 {
  -'type' = 'apr_exploded_time_t *',
  +'type' = 'apr_time_exp_t *',
   'name' = 'tm'
 },
 {
   -1158,6 +1158,16 
   ]
 },
 {
  +'return_type' = 'ap_filter_rec_t *',
  +'name' = 'ap_get_input_filter_handle',
  +'args' = [
  +  {
  +'type' = 'const char *',
  +'name' = 'name'
  +  }
  +]
  +  },
  +  {
   'return_type' = 'apr_off_t',
   'name' = 'ap_get_limit_req_body',
   'args' = [
   -1202,6 +1212,16 
   ]
 },
 {
  +'return_type' = 'ap_filter_rec_t *',
  +'name' = 'ap_get_output_filter_handle',
  +'args' = [
  +  {
  +'type' = 'const char *',
  +'name' = 'name'
  +  }
  +]
  +  },
  +  {
   'return_type' = 'const char *',
   'name' = 'ap_get_remote_host',
   'args' = [
   -1505,11 +1525,6 
   ]
 },
 {
  -'return_type' = 'int',
  -'name' = 'ap_graceful_stop_signalled',
  -'args' = []
  -  },
  -  {
   'return_type' = 'void',
   'name' = 'ap_hook_access_checker',
   'args' = [
   -1599,6 +1614,28 
 },
 {
   'return_type' = 'void',
  +'name' = 'ap_hook_create_connection',
  +'args' = [
  +  {
  +'type' = 'ap_HOOK_create_connection_t *',
  +'name' = 'pf'
  +  },
  +  {
  +'type' = 'const char * const *',
  +'name' = 'aszPre'
  +  },
  +  {
  +'type' = 'const char * const *',
  +'name' = 'aszSucc'
  +  },
  +  {
  +'type' = 'int',
  +'name' = 'nOrder'
  +  }
  +]
  +  },
  +  {
  +'return_type' = 'void',
   'name' = 'ap_hook_create_request',
   'args' = [
 {
   -1707,6 +1744,11 
 },
 {
   'return_type' = 'apr_array_header_t *',
  +'name' = 'ap_hook_get_create_connection',
  +'args' = []
  +  },
  +  {
  +'return_type' = 'apr_array_header_t *',
   'name' = 'ap_hook_get_create_request',
   'args' = []
 },
   -1757,11 +1799,6 
 },
 {
   'return_type' = 'apr_array_header_t *',
  -'name' = 'ap_hook_get_install_transport_filters',
  -'args' = []
  -  },
  -  {
  -'return_type' = 'apr_array_header_t *',
   'name' = 'ap_hook_get_log_transaction',
   'args' = []
 },
   -1959,28 +1996,6 
 },
 {
   'return_type' = 'void',
  -'name' = 'ap_hook_install_transport_filters',
  -'args' = [
  -  {
  -'type' = 'ap_HOOK_install_transport_filters_t *',
  -'name'