Re: Apache - mod_perl - Windows

2001-11-28 Thread Ron Savage

Folks

See below.

Cheers
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html

 :: My question is:
 :: 1. is there a way to get a precompiled windows version running (I don't
 :: want to reset my Apache server to some ancient version!)
 
 I have set up several Windows / Apache / mod_perl servers without any
 problems whatsoever.  I would recommend the following (in order):

Alternately: http://savage.net.au/Perl.html#Configuring-Apache





RE: Apache - mod_perl - Windows

2001-11-28 Thread Jonathan M. Hollin


::  I have set up several Windows / Apache / mod_perl servers without any
::  problems whatsoever.  I would recommend the following (in order):
:: 
:: Alternately: http://savage.net.au/Perl.html#Configuring-Apache

Nice one Ron.  That's excellent documentation.  Cheers.

Jonathan M. Hollin - WYPUG Co-ordinator
West Yorkshire Perl User Group
http://wypug.pm.org/ 



Re: [OT] A couple of dubious network problems...

2001-11-28 Thread Dave Hodgkinson

Mark Maunder [EMAIL PROTECTED] writes:

 Dave Hodgkinson wrote:
 
  1. On a RH6.0 (yes, ick) box without persistent DBI connections, the
  server side of the DBD::mysql connection was successfully closed
  (netstat shows nothing), but the client side shows a TIME_WAIT state,
  which hangs around for 30 seconds or so before
  disappearing. Obviously, using Apache::DBI makes this go away, but
  it's disturbing nonetheless. Does this ring any bells?
 
 Dunno about number 2, but 1 is perfectly normal. TIME_WAIT is a condition
 the OS puts a closed socket into to prevent another app from using the
 socket, just in case the peer host has any more packets to send to that
 port. The host that closes the socket will put the old socket into
 TIME_WAIT. BSD IP stack implementations keep sockets in time_wait for
 about 30 seconds, others go up to 2 minutes. The duration is called 2MSL
 (2 * max_segment_lifetime). Don't worry about it and dont mess with it
 (unless you're consuming 64000+ sockets per 30 seconds, in which case you
 have other problems to deal with ;-)

Does SO_REUSEADDR make this go away?

-- 
David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com
Editor-in-chief, The Highway Star   http://www.deep-purple.com
Deep Purple Family Tree news  http://www.slashrock.com
   Interim Technical Director, Web Architecture Consultant for hire



[modperl site design challenge] update

2001-11-28 Thread Stas Bekman

The deadline is over now, but if you didn't have enough time till now 
and want to submit your design or improve the one that you've submitted, 
please email me and we will wait for you. If you do that, please give me 
a completion time estimate. The deadline was set in order to make things 
happen, not to leave out a few good designs because people were busy, so 
things are flexible here.

So far I've three designs submitted to me and I wait for an update from 
one of the designers. Eric Cholet has set up a voting poll already and 
I'll advertise it as soon as I know that nobody else planning on 
submitting their design or an update.

Please email me in private to keep the list less cluttered.

_
Stas Bekman JAm_pH  --   Just Another mod_perl Hacker
http://stason.org/  mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Apache::Fake

2001-11-28 Thread Geoffrey Young

FWIW, just saw this recent CPAN upload on use.perl.org and haven't seen it
announced here.  I breezed through the code and it looks pretty complete...

http://search.cpan.org/search?dist=Apache-Fake-0.9

--Geoff



OT: Converting a ASP request to CGI?

2001-11-28 Thread Alessandro Forghieri

Greetings.
I realize this is an Off-Topic with serious flamage potential, so I'll keep
it very short.
Is anybody aware of any module capable of doing for the ASP environment what
Apache::Registry does for mod_perl? (i.e. making an asp request look and
feel as if it were an old plain  cgi-bin)

Cheers,
alf





Re: OT: Converting a ASP request to CGI?

2001-11-28 Thread James Buchanan

Write an ASP page which then calls a CGI script.

In file blah.asp:

Dim param1, param2
param1 = Request.QueryString(param1)
param2 = Request.QueryString(param2)

Response.Redirect somewhere.cgi?param1=  param1  param2=  param2

... and so on is one way to do it, if I understand what you are asking for.

:)

James


Alessandro Forghieri wrote:
 
 Greetings.
 I realize this is an Off-Topic with serious flamage potential, so I'll keep
 it very short.
 Is anybody aware of any module capable of doing for the ASP environment what
 Apache::Registry does for mod_perl? (i.e. making an asp request look and
 feel as if it were an old plain  cgi-bin)
 
 Cheers,
 alf



Re: location directive

2001-11-28 Thread Perrin Harkins

On Tue, 27 Nov 2001, [EMAIL PROTECTED] wrote:
 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 ?

No.  See if this post solves your problem:
[EMAIL PROTECTED]">http://mathforum.org/epigone/modperl/relskoxpee/[EMAIL PROTECTED]

- Perrin




RE: Apache::Session Problem -- Addendum

2001-11-28 Thread Perrin Harkins

On Thu, 22 Nov 2001, Jonathan M. Hollin wrote:
 My code now includes:
 
 35:  # Session handler...
 36:  my %session; undef my $session_id;
 37:  use Apache::Session::MySQL;
 38:  tie %session, 'Apache::Session::MySQL', $session_id,
 39:  { DataSource = 'dbi:mysql:sessions', UserName   = 'db_user', Password
 = 'secret' };
 40:  $session_id = session_id=$session{_session_id};;
 
 I am using Apache-Session v1.54.
 
 The above code generates the following error:
 
 [Thu Nov 22 10:31:38 2001] [error] PerlRun: `Can't connect(
 HASH(0xbdcf54)), no database driver specified and DBI_DSN env var not set at
 E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36 (in cleanup)
 Can't connect(   HASH(0x47e2f14)), no database driver specified and DBI_DSN
 env var not set at E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36'

You aren't following the documentation.  perldoc Apache::Session::MySQL.  
It says to pass in connection info for a lock connection.
- Perrin




Why libperl.so?

2001-11-28 Thread BeerBong

Hello!

It may be very stupid problem, but I stuck - hard day.

I installed Perl.
Perl 5.6.1 with all default options on Debian Linux 2.4.13  - btw, it is a
another problem, but 4 make test for Perl FAILED lib/dirhand and other, I
found that kernerl 2.4.x is responsible for it, but didn't find how to
resolve the problem.
Also, I decided to renew other soft.
upgrade kernel to 2.5.16.
mod_perl 1.5.26 and apache 1.3.22
String for mod_perl is the same as earlier
--
perl Makefile.PL APACHE_SRC=../apache_1.3.22/src \
 DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
--
when make
--
=== src/main
cc -c -I.. -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -I../os/unix -I../in
clude   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/loc
al/include  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`
gen_test_char.c
cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/i
nclude  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`   -o
gen_test_char gen_test_char.o  -lm -lcrypt -rdynamic  -L/usr/local/lib
/usr/local/lib/perl5/5.6.1/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lo
cal/lib/perl5/5.6.1/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcryp
t -lutil
./gen_test_char test_char.h
./gen_test_char: error in loading shared libraries: libperl.so: cannot open
shared object file: No such file or directory
make[4]: *** [test_char.h] Error 127
--
Why libperl.so ? I want statically linked mod_perl.

Perl ENV
--
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=linux, osvers=2.4.13, archname=i686-linux
uname='linux warzavod 2.4.13 #1 wed oct 31 18:17:06 samt 2001 i686
unknown '
config_args='-d'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='cc', ccflags
='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
ET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.2 2220 (Debian GNU/Linux)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 28 2001 11:57:27
  @INC:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
.
--

Thanx in advance...

 ---
Sergey BeerBong Polyakov
chief of WebZavod (http://www.webzavod.ru)





Re: Why libperl.so?

2001-11-28 Thread BeerBong

 Hello!

 It may be very stupid problem, but I stuck - hard day.

 I installed Perl.
 Perl 5.6.1 with all default options on Debian Linux 2.4.13  - btw, it is a
 another problem, but 4 make test for Perl FAILED lib/dirhand and other, I
 found that kernerl 2.4.x is responsible for it, but didn't find how to
 resolve the problem.
 Also, I decided to renew other soft.
 upgrade kernel to 2.5.16.

2.4.16 of course :)

 mod_perl 1.5.26 and apache 1.3.22
 String for mod_perl is the same as earlier
 --
 perl Makefile.PL APACHE_SRC=../apache_1.3.22/src \
  DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
 --
 when make
 --
 === src/main

cc -c -I.. -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -I../os/unix -I../in

clude   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/loc
 al/include  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`
 gen_test_char.c

cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/i
 nclude  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`   -o
 gen_test_char gen_test_char.o  -lm -lcrypt -rdynamic  -L/usr/local/lib

/usr/local/lib/perl5/5.6.1/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lo

cal/lib/perl5/5.6.1/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcryp
 t -lutil
 ./gen_test_char test_char.h
 ./gen_test_char: error in loading shared libraries: libperl.so: cannot
open
 shared object file: No such file or directory
 make[4]: *** [test_char.h] Error 127
 --
 Why libperl.so ? I want statically linked mod_perl.

 Perl ENV
 --
 Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
   Platform:
 osname=linux, osvers=2.4.13, archname=i686-linux
 uname='linux warzavod 2.4.13 #1 wed oct 31 18:17:06 samt 2001 i686
 unknown '
 config_args='-d'
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=undef use5005threads=undef useithreads=undef
 usemultiplicity=undef
 useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
 use64bitint=undef use64bitall=undef uselongdouble=undef
   Compiler:
 cc='cc', ccflags

='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
 ET_BITS=64',
 optimize='-O2',
 cppflags='-fno-strict-aliasing -I/usr/local/include'
 ccversion='', gccversion='2.95.2 2220 (Debian GNU/Linux)',
 gccosandvers=''
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
 lseeksize=8
 alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
 ld='cc', ldflags =' -L/usr/local/lib'
 libpth=/usr/local/lib /lib /usr/lib
 libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
 perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
 libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
 cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


 Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under linux
   Compiled at Nov 28 2001 11:57:27
   @INC:
 /usr/local/lib/perl5/5.6.1/i686-linux
 /usr/local/lib/perl5/5.6.1
 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
 /usr/local/lib/perl5/site_perl/5.6.1
 /usr/local/lib/perl5/site_perl
 .
 --

 Thanx in advance...

  ---
 Sergey BeerBong Polyakov
 chief of WebZavod (http://www.webzavod.ru)






RE: Why libperl.so?

2001-11-28 Thread William Rusch

try recompiling perl with
sh Configure -Duseshrplib

this will build the libperl.so file that apache needs

-Original Message-
From: BeerBong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 12:31 PM
To: mod-perl
Subject: Why libperl.so?


Hello!

It may be very stupid problem, but I stuck - hard day.

I installed Perl.
Perl 5.6.1 with all default options on Debian Linux 2.4.13  - btw, it is a
another problem, but 4 make test for Perl FAILED lib/dirhand and other, I
found that kernerl 2.4.x is responsible for it, but didn't find how to
resolve the problem.
Also, I decided to renew other soft.
upgrade kernel to 2.5.16.
mod_perl 1.5.26 and apache 1.3.22
String for mod_perl is the same as earlier
--
perl Makefile.PL APACHE_SRC=../apache_1.3.22/src \
 DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
--
when make
--
=== src/main
cc -c -I.. -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -I../os/unix -I../in
clude   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/loc
al/include  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`
gen_test_char.c
cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/i
nclude  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`   -o
gen_test_char gen_test_char.o  -lm -lcrypt -rdynamic  -L/usr/local/lib
/usr/local/lib/perl5/5.6.1/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lo
cal/lib/perl5/5.6.1/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcryp
t -lutil
./gen_test_char test_char.h
./gen_test_char: error in loading shared libraries: libperl.so: cannot open
shared object file: No such file or directory
make[4]: *** [test_char.h] Error 127
--
Why libperl.so ? I want statically linked mod_perl.

Perl ENV
--
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=linux, osvers=2.4.13, archname=i686-linux
uname='linux warzavod 2.4.13 #1 wed oct 31 18:17:06 samt 2001 i686
unknown '
config_args='-d'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='cc', ccflags
='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
ET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.2 2220 (Debian GNU/Linux)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 28 2001 11:57:27
  @INC:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
.
--

Thanx in advance...

 ---
Sergey BeerBong Polyakov
chief of WebZavod (http://www.webzavod.ru)







Re: DSO Issues

2001-11-28 Thread Vivek Khera

 JC == John Chia [EMAIL PROTECTED] writes:

JC On 27 November 2001 15:17 (-0500), Vivek Khera wrote:
 The *only* issue I encounter is a massive memory leak upon SIGHUP or
 SIGUSR to apache. 

JC Hm.  I only get memory leaks if PerlFreshRestart is enabled and I SIGHUP
JC it.

Perl 5.005_03 has the leaks no matter what.  And with DSO,
PerlFreshStart is a no-op, since you get a fresh perl no matter what.

One of these days I'll take the time to migrate to 5.6.1 and then
regression test my whole app, which ain't easy to do on a web-based
interactive system where you have hundreds of options to test in
combination.



Re: OT: Converting a ASP request to CGI?

2001-11-28 Thread Joshua Chamas

Alessandro Forghieri wrote:
 
 Greetings.
 I realize this is an Off-Topic with serious flamage potential, so I'll keep
 it very short.
 Is anybody aware of any module capable of doing for the ASP environment what
 Apache::Registry does for mod_perl? (i.e. making an asp request look and
 feel as if it were an old plain  cgi-bin)
 

If, you are talking about perl scripting ASP, then you can 
run that under Apache::ASP, check out http://www.apache-asp.org

If you are talking about VBScript ASP, check out Chilisoft or 
Halcyon's Instant ASP. 

If you are talking about CGI scripts under Apache::ASP, just
wrap them with % % and they should work.

If something else, please clarify what you mean.

-- Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



$ENV{'REMOTE_USER'} getting clobbered?

2001-11-28 Thread Kenny Smith

Hello,

I'm using mod_perl as a replacement for CGI. We are getting strange behavior
where $ENV{'REMOTE_USER'} isn't being set correctly.

The script is protected by an .htaccess type of authentication, so when I
log in as 'kenny', $ENV{'REMOTE_USER'} should be equal to 'kenny'. However,
every once in awhile, $ENV{'REMOTE_USER'} will be equal to someone else's
login name, even though I'm still logged in as 'kenny' when I execute the
script.  Does that make sense?

This system was working fine for 2 months or more, but recently the number
of users and the load on the machine has increased, and we have started
seeing the problem.

My theory is that %ENV is shared between requests and user 'bob' is
executing the script in the middle of my execution and $ENV{'REMOTE_USER'}
is getting overwritten in my execution with 'bob'. I believe the script is
taking longer to execute due to the load time which increases the window of
opportunity for REMOTE_USER to be clobbered.

Software involved:

apache 1.3.12
mod_perl 1.24
solaris 5.7
perl 5.005_03

Our sysadmins are working on building a new apache binary with up to date
versions, but I'd like to find out from the list if you have had this
problem before, and if you know why it is caused.

Kenny Smith




Pearl programmer needed

2001-11-28 Thread Hesso Bellem

Good morning,

I hope you can help us... We are an ad agency producing web sites for our
clients and are in need of someone with pearl scripting ability.

We would appreciate if you could forward our request to someone interested
in working with us. Our web site is  http://www.admethods.com 

you can contact us via e-mail or by phone 1-888-296-9932

Thank you 

Hesso Bellem


 




Apache ASP help not helpfull :(

2001-11-28 Thread alan matthews

After twenty years in hardware and real-time
programming,
I'm back at university getting into business
computing, so I'm very new to this server stuff and
I'm trying to learn.

I wanted to run a local server but Microsoft PWS
doesn't run on Win ME. Searching around I came across
this http://www.ricocheting.com/sever/index.html I
found it very helpful, albeit a bit out of date.
  
So, I've installed apache_1.3.22-win32-x86.msi onto
this Win ME machine as a localhost and it works fine.

I've installed ActivePerl, and it works fine too.

I want to run ASP, so I download Apache-ASP-2.29

Then as per the instructions I did
___
 shell prompt perl -MCPAN -e shell
 ...
 cpan install Bundle::Apache::ASP
___

A huge amount of text flowed down the screen which
ended with
___
Removing previously used
\.cpan\build\Apache-ASP-2.29\.
Couldn't find \.cpan\build\Apache-ASP-2.29\. at
C:/Perl/lib/CPAN.pm line 1972
___

I tried to run some of Perl's sample asp pages but
nothing worked. Clealy the phrase:-

'The easiest way to install Apache::ASP for the first
time from perl is to fire up the CPAN shell like:'

isn't quite as easy as it claims.

The rest of the information at
http://www.nodeworks.com/asp/install.html
is unitelligable to anyone who hasn't worked with
servers, and all the FAQ's seem to assume your an
expert, so I'm no better off.

The main confusion I'm getting is figuring which is
Perl stuff from Apache. Also links like:-
___
There are several other Perl modules that you might
wish to have installed, to take full advantage of
mod_perl functionality. Provided you have Andreas
König's CPAN.pm module, simply run:
___

is just a long list of meaningles files. 

So, is there any chance of an Idiot's guide to getting
this ASP to work?

Python

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com



Apache ASP help not helpful. I'm not alone

2001-11-28 Thread alan matthews

I've just seen a pile of posts on a Yahoo board full
of people with ASP problems.

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com



Re: [OT] search.cpan.org

2001-11-28 Thread Elaine -HFB- Ashton

*On Tue, 27 Nov 2001, Randy Kobes wrote:
*
*I think the load, and network connection, is the main reason; the
*search itself, if you were connected locally at a time when the
*machine isn't so busy, is pretty quick.

The difference is in the 2 boxes actually. There are 2, one is at
wustl.edu, the other at webster.edu...the one at webster has a failing hme
and getting an sbus hme replacement is proving somewhat difficult. When it
is not experiencing network problems it is acutally quite zippy.

I'm hoping to get a replacement within the next week so hopefully things
will improve noticably.

e.



Re: [OT] search.cpan.org

2001-11-28 Thread Elaine -HFB- Ashton


*Bill Moseley  wrote:
*
*Because it does a full text search of all the contents of the DB.
*
*Perhaps, but it's just overloaded.

Neither of these is completely true. The search does do a match but only
on certain fields that are determined by the type of search you choose. 

And, the boxes only occasionally get really busy, usually around 10am-2pm
CST on any given weekday. Weekends are pretty quiet. Right now one of the
boxes is just having a bit of a problem with a network card that
apparently is hard to obtain a replacement for.

*(Plus, all my CPAN.pm setups are now failing to work, too)

CPAN.pm shouldn't be configured to use search.cpan.org as your mirror. If
you are having problems reaching mirrors, that's a completely different
department and you can always choose new ones at http://mirror.cpan.org/

e.



Re: DSO Issues

2001-11-28 Thread Daniel Jacobowitz

On Wed, Nov 28, 2001 at 10:34:00AM -0500, Vivek Khera wrote:
  SR == Stephen Reppucci [EMAIL PROTECTED] writes:
 
 SR If we're collecting a list of things that don't work in a DSO
 SR build, add perl subs (via !--#perl sub=My::handler--).
 
 SR At least, they didn't work as of January of this year.
 
 Doubtful that they ever will, either, since that introduces a
 dependency on mod_perl into mod_include.  Both have to be linked
 together (ie, statically) for that to work.

Not really, you can do it with just module DT_NEEDED depends.  It does
mean you have to build them together and load in the right order.

-- 
Daniel Jacobowitz   Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer



Re: $ENV{'REMOTE_USER'} getting clobbered?

2001-11-28 Thread Daniel Jacobowitz

On Wed, Nov 28, 2001 at 04:31:07PM -0800, Kenny Smith wrote:
 Hello,
 
 I'm using mod_perl as a replacement for CGI. We are getting strange behavior
 where $ENV{'REMOTE_USER'} isn't being set correctly.
 
 The script is protected by an .htaccess type of authentication, so when I
 log in as 'kenny', $ENV{'REMOTE_USER'} should be equal to 'kenny'. However,
 every once in awhile, $ENV{'REMOTE_USER'} will be equal to someone else's
 login name, even though I'm still logged in as 'kenny' when I execute the
 script.  Does that make sense?
 
 This system was working fine for 2 months or more, but recently the number
 of users and the load on the machine has increased, and we have started
 seeing the problem.
 
 My theory is that %ENV is shared between requests and user 'bob' is
 executing the script in the middle of my execution and $ENV{'REMOTE_USER'}
 is getting overwritten in my execution with 'bob'. I believe the script is
 taking longer to execute due to the load time which increases the window of
 opportunity for REMOTE_USER to be clobbered.
 
 Software involved:
 
 apache 1.3.12
 mod_perl 1.24
 solaris 5.7
 perl 5.005_03

I believe that we fixed an environment corruption bug (at least for the
DSO case, possibly static) sometime right after 1.24 was released.

-- 
Daniel Jacobowitz   Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer



Re: Apache ASP help not helpful. I'm not alone

2001-11-28 Thread Randy Kobes

On Wed, 28 Nov 2001, alan matthews wrote:

 I've just seen a pile of posts on a Yahoo board full
 of people with ASP problems.

For Win32 ActivePerl users, if the CPAN.pm method of installing
Apache::ASP becomes confused, you may want to try ppm:

C:\ ppm
ppm set repository some_name
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer
ppm install Apache-ASP
ppm set save
ppm quit

where the 'set repository ...' command has been broken over
two lines for readability. This should install Apache::ASP
plus all its dependencies that you might not have - if it
doesn't, please let me know what it missed. After that, the
Apache::ASP docs and web site are very good at describing
the configuration and use.

See an earlier post today by Joshua Chamas about a way to disable
flock() on Win98 within Apache::ASP, which will be needed for
MLDBM::Sync.

best regards,
randy kobes




Re: Apache ASP help not helpfull :(

2001-11-28 Thread Joshua Chamas

alan matthews wrote:
 
 I wanted to run a local server but Microsoft PWS
 doesn't run on Win ME. Searching around I came across
 this http://www.ricocheting.com/sever/index.html I
 found it very helpful, albeit a bit out of date.
 
 So, I've installed apache_1.3.22-win32-x86.msi onto
 this Win ME machine as a localhost and it works fine.
 
 I've installed ActivePerl, and it works fine too.
 
 I want to run ASP, so I download Apache-ASP-2.29
 

[[ for Apache::ASP support, get on its mail list by emailing
   [EMAIL PROTECTED] ]]

For a quick start, I'd recommend installing the prebuilt 
win32 mod_perl / apache from:
  
  http://perl.apache.org/distributions.html

This page ends up referring you to:

  ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.7.exe

It comes fortunately with a working Apache::ASP.  You will 
still need to update the ./perl/lib/Config.pm to point to your
compiler installation if you want to build your own perl 
modules later.

This hint is provided here:
  http://www.apache-asp.org/install.html#Win32%20Instal93dbe80f

As a user going through these woes, it would be helpful if you could
suggest how I could make that part of the install help stand out more,
and content that would be more useful  accurate to you?

What is not in the help is a bug/workaround for WinME / Win9x users
that occurred recently in the 2.25 release of Apache::ASP.  The bug
is that MLDBM::Sync uses flock() which is not implemented on WinME.

The fix is to add this to you httpd.conf, preferrably

Perl
*CORE::GLOBAL::flock = sub { 1 };
/Perl

This fix is not necessary if you do not use $Session
or $Application though, which you can turn off with
the httpd.conf config:

  PerlSetVar NoState 1

 Then as per the instructions I did
 ___
  shell prompt perl -MCPAN -e shell
  ...
  cpan install Bundle::Apache::ASP
 ___
 
 A huge amount of text flowed down the screen which
 ended with
 ___
 Removing previously used
 \.cpan\build\Apache-ASP-2.29\.
 Couldn't find \.cpan\build\Apache-ASP-2.29\. at
 C:/Perl/lib/CPAN.pm line 1972
 ___
 

I will check out the bundle files and see how they can be improved
for the next release.

 I tried to run some of Perl's sample asp pages but
 nothing worked. Clealy the phrase:-
 
 'The easiest way to install Apache::ASP for the first
 time from perl is to fire up the CPAN shell like:'
 
 isn't quite as easy as it claims.
 
 The rest of the information at
 http://www.nodeworks.com/asp/install.html
 is unitelligable to anyone who hasn't worked with
 servers, and all the FAQ's seem to assume your an
 expert, so I'm no better off.
 

Apache::ASP isn't geared towards new users.  It makes a lot of
of assumptions like knowledge of perl, apache,  unix ( perl is
unix paradigm programming often, even on win32 platforms ).
I would like it to make it more user friendly, and I understand
the docs  site can help, so please send me your suggestions.

 So, is there any chance of an Idiot's guide to getting
 this ASP to work?

Not yet!  I have long considered writing a book on Apache::ASP,
which would probably have at least a chapter as the Idiot's guide.
I don't think it would be out in time for your needs though :(

-- Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Apache ASP help not helpful. I'm not alone

2001-11-28 Thread Joshua Chamas

alan matthews wrote:
 
 I've just seen a pile of posts on a Yahoo board full
 of people with ASP problems.
 

If these are Apache::ASP users, they need to get on the 
mail list for it at [EMAIL PROTECTED] ...

If they are using IIS / VBScript or PerlScript ASP, 
then they may be in the right place?

--Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Why libperl.so?

2001-11-28 Thread BeerBong

Sorry, it is necessary for mod_perl now ?
I want to compile statically as many modules as I can.
 ---
Sergey BeerBong Polyakov
chief of WebZavod (http://www.webzavod.ru)


 try recompiling perl with
 sh Configure -Duseshrplib

 this will build the libperl.so file that apache needs

 -Original Message-
 From: BeerBong [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 28, 2001 12:31 PM
 To: mod-perl
 Subject: Why libperl.so?


 Hello!

 It may be very stupid problem, but I stuck - hard day.

 I installed Perl.
 Perl 5.6.1 with all default options on Debian Linux 2.4.13  - btw, it is a
 another problem, but 4 make test for Perl FAILED lib/dirhand and other, I
 found that kernerl 2.4.x is responsible for it, but didn't find how to
 resolve the problem.
 Also, I decided to renew other soft.
 upgrade kernel to 2.5.16.
 mod_perl 1.5.26 and apache 1.3.22
 String for mod_perl is the same as earlier
 --
 perl Makefile.PL APACHE_SRC=../apache_1.3.22/src \
  DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1
 --
 when make
 --
 === src/main

cc -c -I.. -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -I../os/unix -I../in

clude   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/loc
 al/include  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`
 gen_test_char.c

cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/i
 nclude  -DUSE_HSREGEX -DNO_DL_NEEDED -DPERL_MARK_WHERE=1 `../apaci`   -o
 gen_test_char gen_test_char.o  -lm -lcrypt -rdynamic  -L/usr/local/lib

/usr/local/lib/perl5/5.6.1/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lo

cal/lib/perl5/5.6.1/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcryp
 t -lutil
 ./gen_test_char test_char.h
 ./gen_test_char: error in loading shared libraries: libperl.so: cannot
open
 shared object file: No such file or directory
 make[4]: *** [test_char.h] Error 127
 --
 Why libperl.so ? I want statically linked mod_perl.

 Perl ENV
 --
 Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
   Platform:
 osname=linux, osvers=2.4.13, archname=i686-linux
 uname='linux warzavod 2.4.13 #1 wed oct 31 18:17:06 samt 2001 i686
 unknown '
 config_args='-d'
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=undef use5005threads=undef useithreads=undef
 usemultiplicity=undef
 useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
 use64bitint=undef use64bitall=undef uselongdouble=undef
   Compiler:
 cc='cc', ccflags

='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
 ET_BITS=64',
 optimize='-O2',
 cppflags='-fno-strict-aliasing -I/usr/local/include'
 ccversion='', gccversion='2.95.2 2220 (Debian GNU/Linux)',
 gccosandvers=''
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
 lseeksize=8
 alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
 ld='cc', ldflags =' -L/usr/local/lib'
 libpth=/usr/local/lib /lib /usr/lib
 libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
 perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
 libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
 cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


 Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under linux
   Compiled at Nov 28 2001 11:57:27
   @INC:
 /usr/local/lib/perl5/5.6.1/i686-linux
 /usr/local/lib/perl5/5.6.1
 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
 /usr/local/lib/perl5/site_perl/5.6.1
 /usr/local/lib/perl5/site_perl
 .
 --

 Thanx in advance...

  ---
 Sergey BeerBong Polyakov
 chief of WebZavod (http://www.webzavod.ru)








Apache::MP3::Skin and PerlSetVar

2001-11-28 Thread Patrick Buckingham

I just install Apache::MP3 and it works fine but if I try to use ::Skin
I get these messages for PerlSetVar

PerlSetvar takes two arguments Perl config var and value This does
this with ::Sortlist also. But with the straight MP3 modules I can use
PerlSetVar 

  SetHandler perl-script
PerlHandler Apache::MP3::Skin
PerlSetVar  CacheDir   /usr/tmp/mp3_cache
PerlSetVar  SortFieldsAlbum,Title,-Duration
PerlSetVar HomePath /sounds   # optional
PerlSetVar DefaultSkin default.tmpl   # required

This is the config


Thanks,

Patrick



Re: Why libperl.so?

2001-11-28 Thread Ilya Martynov

 On Thu, 29 Nov 2001 09:02:35 +0400, BeerBong [EMAIL PROTECTED] said:

BB Sorry, it is necessary for mod_perl now ?
BB I want to compile statically as many modules as I can.

But why?

-- 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)  TIV.net (http://tiv.net/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Re: Apache::MP3::Skin and PerlSetVar

2001-11-28 Thread Jason Galea

Patrick Buckingham wrote:

 I just install Apache::MP3 and it works fine but if I try to use ::Skin
 I get these messages for PerlSetVar
 
 PerlSetvar takes two arguments Perl config var and value This does
 this with ::Sortlist also. But with the straight MP3 modules I can use
 PerlSetVar 
 
   SetHandler perl-script
   PerlHandler Apache::MP3::Skin
   PerlSetVar  CacheDir   /usr/tmp/mp3_cache
   PerlSetVar  SortFieldsAlbum,Title,-Duration
   PerlSetVar HomePath /sounds   # optional
   PerlSetVar DefaultSkin default.tmpl   # required
 
 This is the config
 
 
 Thanks,
 
   Patrick
 
 .
 
 


try taking out the comments, ie # optional  # required (or just 
move them to a separate line) - it's worked for me before.. I don't 
think PerlSetVar recognises the # as the start of a comment.



-- 
J
Web Developer

Eight Degrees Off Centre
http://www.eightdegrees.com.au/




Re: DSO Issues

2001-11-28 Thread Vivek Khera

 SR == Stephen Reppucci [EMAIL PROTECTED] writes:

SR If we're collecting a list of things that don't work in a DSO
SR build, add perl subs (via !--#perl sub=My::handler--).

SR At least, they didn't work as of January of this year.

Doubtful that they ever will, either, since that introduces a
dependency on mod_perl into mod_include.  Both have to be linked
together (ie, statically) for that to work.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/