How do I STOP Apache::CodeRed sending me messages
I configured Apache::CodeRed to send me messages with each email and so on - How do I stop it from doikn that? I changed the CodeRed.pm file, but it's being ignored? Thanks Robert
Re: How do I STOP Apache::CodeRed sending me messages
On Sun, 19 Aug 2001, Robert wrote: Hi, I configured Apache::CodeRed to send me messages with each email and so on - How do I stop it from doikn that? I changed the CodeRed.pm file, but it's being ignored? Have you reloaded the code ? Since it is a module it will not be reloaded until your apache restarts/reloads, unless you used Apachje::Reload for this... Otherwise, use procmail :-) Thanks Robert Bye, Remco
Using CGI.pm in handlers 2
(offline mode: enter name=value pairs on standard input) I have understood that I get theses messages because it is a Fixup Handler and the enviroment is not yet initialized. But I still don't know what to do about them. Thanx, Joachim -- ... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen.- Bertolt Brecht - Leben des Galilei
[OT] compilers for c Appache modules
I know it's offtopic, please direct me to correct data source, can't find it... For the first time I need to compile a module (mod_throttle_access) for Apache on Win32. I have the free Borland 5.5 C++ command line compiler. What settings etc ? (Have the Eagle book, can't find it there). thanks. Rod === This email message may contain the Ebola virus. The sender is not responsible for any death, destruction, reflux or tinitis that may result from reading this message. The sender's lawyer forces him to write this crap.
Re: Path Issue mod_perl vs cgi-bin?
At 09:20 AM 8/17/2001 -0500, Purcell, Scott wrote: Hello, I am running Apache w/mod_perl on a NT box. Location = D:/Apache I have created some modules and put the modules in a folder D:/Apache/vb_modules I set my PATH on the NT box to look in D:/Apache/vb_modules and all is good when I use those modules under mod_perl folder. But today, I have the need to write some normal non-mod_perl files so I put a file in cgi-bin D:/Apache/cgi-bin and did a require module; But for some unknown reason, it says it cannot locate my modules? Why is it that the mod_perl folder has no issues and the cgi-bin directory cannot find my modules I have never seen anything like this. Does anyone have any ideas? Is there some config I need to set up in the cgi-bin directory? I don't think so. Note that Apache recognizes the first line of the script and will attempt to resolve Perl in that location. eg #!/usr/bin/perl is resolved by default ( I think ) to c:\usr\bin\perl.exe So you may wish to be truly explicit and use #!c:\perl\bin\perl.exe Instead... (You may have to escape the \ but I forget). Thanks, Scott Purcell __ Gunther Birznieks ([EMAIL PROTECTED]) eXtropia - The Open Web Technology Company http://www.eXtropia.com/
Re: Why do RaQ4is run mod_perl so slowly?
On Saturday 18 August 2001 02:36 pm, Philip Mak wrote: I have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl httpd processes running concurrently, then the system's load average goes up over 10.0 and CPU usage is 100%. The machine has RAM to spare, so swapping is not the problem. Is that the norm for a 450MHz server, or is there something I can do to make it work better? That's not normal; something is wrong. Most mod_perl machines tend to have low load (1) because they aren't doing anything CPU intensive. High loads like yours are generally associated with swapping. If you're sure there's no memory problem, then you should try to figure out where all that work is going. Maybe your app thrashes the disk and you need a faster one. Maybe you have runaway processes. Or maybe you just have that very rare thing: a CPU-intensive web app. Doing some research with Devel::DProf and Time::HiRes is probably your next step. You need to find out where all that work is going. - Perrin
[OT] Reference to a method using a scaler?
I have a Perl scalar ($mystr) that holds a string. I want to use the scalar to form a hash reference to a method after the Perl code is compiled. For example, when I know the method name before compile time, I can say: use strict; %Hashref=( Entry1={meth1=\method1, do='something'},); and then later execute method1 by using: $Hashref{Entry1}{meth1}($a,$b,$c); How can I assign the hash method reference using the contents of the scalar $mystr, in such a way, that I can use the same syntax to execute the method name stored in $mystr. NOTE: I have already used the following, but would prefer to use method references for both: $Hashref{Entry1}{meth1}=$mystr; ... if(ref($Hashref{Entry1}{meth1}) eq 'CODE') { $retval =$Hashref{Entry1}{meth1}($a,$b,$c); } else { no strict 'refs'; $retval={$Hashref{Entry1}{meth1}}($a,$b,$c); use strict 'refs'; } Thanks in advance.
Re: Why do RaQ4is run mod_perl so slowly?
Philip, PMI have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl PMhttpd processes running concurrently, then the system's load average goes PMup over 10.0 and CPU usage is 100%. The machine has RAM to spare, so PMswapping is not the problem. If you have top installed, try top -o cpu -b (list of processes sorted by CPU usage). You should see several httpd processes using up lots of CPU if your mod_perl processes are indeed at fault. Then check mod_status to see what requests those corresponding httpd processes are processing. If all of them are running a certain script, it's likely that script has an infinite loop or other resource-sucking problem in it. If ALL your httpd processes are sucking up lots of CPU, then it's like something else altogether, perhaps a bad global configuration or TransHandler. Humbly, Andrew -- Andrew Ho http://www.tellme.com/ [EMAIL PROTECTED] Engineer [EMAIL PROTECTED] Voice 650-930-9062 Tellme Networks, Inc. 1-800-555-TELLFax 650-930-9101 --
Re: [OT] compilers for c Appache modules
I've never done it, but you may want to look for instructions on compiling mod_perl in general on win32. Likely however your mod_perl was compiled is a reasonable way to compile another C module on Apache for Win32. At 10:49 PM 8/19/2001 +1000, Rod Butcher wrote: I know it's offtopic, please direct me to correct data source, can't find it... For the first time I need to compile a module (mod_throttle_access) for Apache on Win32. I have the free Borland 5.5 C++ command line compiler. What settings etc ? (Have the Eagle book, can't find it there). thanks. Rod === This email message may contain the Ebola virus. The sender is not responsible for any death, destruction, reflux or tinitis that may result from reading this message. The sender's lawyer forces him to write this crap. __ Gunther Birznieks ([EMAIL PROTECTED]) eXtropia - The Open Web Technology Company http://www.eXtropia.com/
Re: [OT] Reference to a method using a scaler?
Hello, GSI have a Perl scalar ($mystr) that holds a string. I want to use the GSscalar to form a hash reference to a method after the Perl code is GScompiled. I'm not sure exactly what you're trying to do with this, but here's two things that can help you. Perl allows you to delay resolution of a method until run-time: $method = 'foo'; $object-$method($a, $b, $c) Perl also allows you to form closures that encapsulate a method of an existing object instance: $method_sub = sub { $object-foo(@_) }; In your case it sounds like you want to combine the two. $method = $foo; $method_sub = sub { $object-$method(@_) }; return $method_sub; Hope that helps. Humbly, Andrew -- Andrew Ho http://www.tellme.com/ [EMAIL PROTECTED] Engineer [EMAIL PROTECTED] Voice 650-930-9062 Tellme Networks, Inc. 1-800-555-TELLFax 650-930-9101 --
Re: How do I STOP Apache::CodeRed sending me messages
On Sun, 19 Aug 2001 18:56:37 +1000 Robert [EMAIL PROTECTED] wrote: I configured Apache::CodeRed to send me messages with each email and so on - How do I stop it from doikn that? I changed the CodeRed.pm file, but it's being ignored? Configuration variables for Apache::CodeRed seem to be hardwired in CodeRed.pm itself. Reuven, why not kick out these variables as those defined by PerlSetVar in http.conf file? For instance, PerlSetVar CodeRedFromAddress [EMAIL PROTECTED] You can get this variable via my $fromaddr = $r-dir_config('CodeRedFromAddress'); -- Tatsuhiko Miyagawa [EMAIL PROTECTED]
Re: Do virtual hosts need their own servers?
On Thu, 16 Aug 2001, Andy Turner wrote: On Wed, Aug 15, 2001 at 12:54:58PM -0400, Philip Mak wrote: When I have multiple virtual hosts running Apache::ASP (mod_perl), do they need to run their own instance of Apache? I would think so, but that doesn't seem to be you seem to have figured that out... what you're really asking about is how much partitioning can be provided between the two... I've read through http://perl.apache.org/guide/multiuser.html and this is what I've gathered: 1. A hacker with access to a virtual host on a mod_perl Apache can steal the Apache::DBI database handles of the other virtual hosts on that Apache. suexec/cgiwrap won't work in mod_perl. The simplest answer is to just not use Apache::DBI. Just use DBI normally. The only draw back is that you don't cache database handles this way. But in many configurations that isn't an issue. Huh? You can read anything from the memory once you are running in the same process, be it Apache::DBI, DBI or your own raw access module. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://localhost/ http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
cvs commit: modperl-2.0/lib/Apache ParseSource.pm
dougm 01/08/19 09:29:44 Modified:lib/Apache ParseSource.pm Log: skip ssl headers Revision ChangesPath 1.22 +2 -1 modperl-2.0/lib/Apache/ParseSource.pm Index: ParseSource.pm === RCS file: /home/cvs/modperl-2.0/lib/Apache/ParseSource.pm,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- ParseSource.pm2001/08/01 02:03:50 1.21 +++ ParseSource.pm2001/08/19 16:29:44 1.22 @@ -88,7 +88,8 @@ my @includes; my $unwanted = join '|', qw(ap_listen internal version -apr_optional mod_include); +apr_optional mod_include +mod_ssl ssl_); for my $dir (@dirs) { File::Find::finddepth({
cvs commit: modperl-2.0/src/modules/perl modperl_bucket.c mod_perl.h
dougm 01/08/19 10:22:55 Modified:src/modules/perl modperl_bucket.c mod_perl.h Log: modperl_bucket.h needs to be in mod_perl.h for source_scan.pl Revision ChangesPath 1.4 +0 -1 modperl-2.0/src/modules/perl/modperl_bucket.c Index: modperl_bucket.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_bucket.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- modperl_bucket.c 2001/08/09 16:52:51 1.3 +++ modperl_bucket.c 2001/08/19 17:22:55 1.4 @@ -1,5 +1,4 @@ #include mod_perl.h -#include modperl_bucket.h /* * modperl_bucket_sv code derived from mod_snake's ModSnakePyBucket 1.35 +1 -0 modperl-2.0/src/modules/perl/mod_perl.h Index: mod_perl.h === RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- mod_perl.h2001/05/08 18:55:42 1.34 +++ mod_perl.h2001/08/19 17:22:55 1.35 @@ -28,6 +28,7 @@ #include modperl_directives.h #include modperl_io.h #include modperl_filter.h +#include modperl_bucket.h #include modperl_pcw.h #include modperl_mgv.h #include modperl_global.h
cvs commit: modperl-2.0/xs/tables/current/Apache ConstantsTable.pm
dougm 01/08/19 11:51:42 Modified:xs/tables/current/Apache ConstantsTable.pm Log: sync Revision ChangesPath 1.12 +28 -1 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.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- ConstantsTable.pm 2001/08/01 02:04:46 1.11 +++ ConstantsTable.pm 2001/08/19 18:51:42 1.12 @@ -2,7 +2,7 @@ # !! # ! WARNING: generated by Apache::ParseSource/0.02 -# ! Tue Jul 31 19:02:56 2001 +# ! Sun Aug 19 11:43:53 2001 # ! do NOT edit, any changes will be lost ! # !! @@ -161,6 +161,33 @@ ] }, 'APR' = { +'uri' = [ + 'APR_URI_FTP_DEFAULT_PORT', + 'APR_URI_SSH_DEFAULT_PORT', + 'APR_URI_TELNET_DEFAULT_PORT', + 'APR_URI_GOPHER_DEFAULT_PORT', + 'APR_URI_HTTP_DEFAULT_PORT', + 'APR_URI_POP_DEFAULT_PORT', + 'APR_URI_NNTP_DEFAULT_PORT', + 'APR_URI_IMAP_DEFAULT_PORT', + 'APR_URI_PROSPERO_DEFAULT_PORT', + 'APR_URI_WAIS_DEFAULT_PORT', + 'APR_URI_LDAP_DEFAULT_PORT', + 'APR_URI_HTTPS_DEFAULT_PORT', + 'APR_URI_RTSP_DEFAULT_PORT', + 'APR_URI_SNEWS_DEFAULT_PORT', + 'APR_URI_ACAP_DEFAULT_PORT', + 'APR_URI_NFS_DEFAULT_PORT', + 'APR_URI_TIP_DEFAULT_PORT', + 'APR_URI_SIP_DEFAULT_PORT', + 'APR_URI_UNP_OMITSITEPART', + 'APR_URI_UNP_OMITUSER', + 'APR_URI_UNP_OMITPASSWORD', + 'APR_URI_UNP_OMITUSERINFO', + 'APR_URI_UNP_REVEALPASSWORD', + 'APR_URI_UNP_OMITPATHINFO', + 'APR_URI_UNP_OMITQUERY' +], 'socket' = [ 'APR_SO_LINGER', 'APR_SO_KEEPALIVE',