Re: mod_perl/apache mysql memory usage
On Wed, 7 Feb 2001, rene mendoza wrote: Hi, i have a question regarding mod_perl/apache mysql memory usage I have a Linux box running Red Hat 6.1, Apache 1.3.14, compiled statically with mod_perl 1.24_01, mod_ssl, and Open SSL, mod_dav and mod_gzip running as DSO's, MYSQL is mysql-3.23.28-gamma-pc-linux-gnu-i686 (binary) im using Apache DBI and Apache Session Mysql the linux box has an Intel celeron processor @400mhz, 96 Mb of RAM (graphics video share at 4MB i think) and a hard drive of 4GB this is a development offline server so i running things like X, and, vnc and kde but im very concerned with the usage of memory im connecting via ethernet from a windows box with Internet Explorer and with Netscape, after a few requests httpd memory usage grows to 80MB, and mysqld to over 20MB it still feels fast but im wondering if its normal??? It's normal because perl (mod_perl as a part) is not freeing memory at cleanup phase of request serving. It'll cure by changing in httpd.conf MaxClientsPerChild from 0 to 25 - 100. i m not familiar linux memory usage under linux , i know that probably this question should be sent to other list any suggestions to where?? anybody please could tell me where to look (my mason components, handler.pl, httpd.conf, or somewhere else) i guess that the same mysql database handle isnt being used by the components am i right? im using Mason 0.896 On startup this is the output of top -b: 3:43pm up 14 min, 1 user, load average: 0.09, 0.12, 0.09 58 processes: 57 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 2.1% user, 6.7% system, 0.0% nice, 91.1% idle Mem: 87364K av, 85236K used, 2128K free, 77048K shrd, 5944K buff Swap: 128512K av, 3492K used, 125020K free 50264K cached PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND 726 root 18 0 4204 4204 2948 S 0 4.9 4.8 0:31 gtop 680 root 9 0 4076 4076 1168 S 0 1.5 4.6 0:24 Xvnc 756 root 5 0 4268 4268 3080 S 0 1.1 4.8 0:04 ktop 770 root 9 0 1032 1032 824 R 0 0.9 1.1 0:00 top 3 root 1 0 00 0 SW 0 0.1 0.0 0:00 kupdate 1 root 0 0 460 460 388 S 0 0.0 0.5 0:04 init 2 root 0 0 00 0 SW 0 0.0 0.0 0:00 kflushd 4 root 0 0 00 0 SW 0 0.0 0.0 0:00 kpiod 5 root 0 0 00 0 SW 0 0.0 0.0 0:00 kswapd 6 root -20 -20 00 0 SW 0 0.0 0.0 0:00 mdrecoveryd 291 bin0 0 308 288 228 S 0 0.0 0.3 0:00 portmap 307 root 0 0 392 380 328 S 0 0.0 0.4 0:00 apmd 360 root 0 0 516 508 420 S 0 0.0 0.5 0:00 syslogd 371 root 0 0 668 656 316 S 0 0.0 0.7 0:00 klogd 387 daemon 0 0 312 296 232 S 0 0.0 0.3 0:00 atd 403 root 0 0 548 540 452 S 0 0.0 0.6 0:00 crond 423 root 0 0 444 436 368 S 0 0.0 0.4 0:00 inetd 439 root 0 0 448 436 368 S 0 0.0 0.4 0:00 lpd 462 root 0 0 868 868 672 S 0 0.0 0.9 0:00 in.telnetd 463 root 0 0 1116 1116 868 S 0 0.0 1.2 0:00 login 464 jaimeren 0 0 956 956 768 S 0 0.0 1.0 0:00 bash 478 root 0 0 1064 1064 704 S 0 0.0 1.2 0:00 su 479 root 5 0 988 988 756 S 0 0.0 1.1 0:00 bash 505 root 0 0 808 664 516 S 0 0.0 0.7 0:00 sendmail 522 root 0 0 340 312 268 S 0 0.0 0.3 0:00 gpm 539 xfs0 0 1088 1080 584 S 0 0.0 1.2 0:00 xfs 590 root 0 0 392 332 252 S 0 0.0 0.3 0:00 S99local 592 root 0 0 840 840 688 S 0 0.0 0.9 0:00 safe_mysqld 621 root 0 0 1632 1632 988 S 0 0.0 1.8 0:00 mysqld 623 root 0 0 596 512 408 S 0 0.0 0.5 0:00 smbd 634 root 0 0 756 708 572 S 0 0.0 0.8 0:00 nmbd 639 root 0 0 1632 1632 988 S 0 0.0 1.8 0:00 mysqld 640 root 0 0 1632 1632 988 S 0 0.0 1.8 0:00 mysqld 641 root 0 0 1200 656 452 S 0 0.0 0.7 0:00 named 643 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 644 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 645 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 646 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 647 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 648 root 0 0 384 384 316 S 0 0.0 0.4 0:00 mingetty 649 root 0 0
Re: Reading email with mod_perl
Hi Check MIME::Parser ( recent version to avoid error with bad use of date.pm instead of Date.pm ) Jason Terry wrote: Does anybody have an information on how to read a MIME encoded email attachment with mod_perl? -- Don't be irreplaceable, if you can't be replaced, you can't be promoted.
Antwort: Re: Problem with $r-register_cleanup()
There are no other handlers besides my own (content and auth) and the core apache... Also, I'd think that every reload of a page (that get's served by the same Apache child) should execute the same code and handlers with the same result---but here's the register_cleanup sometimes gets called and sometimes not. I press Reload, Reload, Reload... and get the result as below... Michael Datum: 07.02.2001 23:37 An:Michael Jacob/EXT/GAD@GAD Kopie: [EMAIL PROTECTED] Betreff: Re: Problem with $r-register_cleanup() Nachrichtentext: Is it possible that another handler (such as CGI, or parsed-html) is taking over before yours and exiting or returning OK. Rob Hi, I just ran into a problem with $r-register_cleanup() only sometime beeing called. This is mod_perl 1.24_01, perl 5.6.0, apache 1.3.14 compiled with gcc 5.6.0 on AIX 4.3.3. Here's a sample code (snippet): sub handler { # PerlTransHandler my $r = shift; $r-register_cleanup(\clean1); $r-push_handlers(PerlCleanupHandler = \clean2); $r-pnotes('cleanup', bless {} ); print STDERR 'in "; return DECLINE; } sub clean1 { print STDERR "register_cleanup "; } sub clean2 { print STDERR "push_handlers "; } sub DESTROY { print STDERR "DESTROY\n"; } And that's the error_log: in register_cleanup push_handlers DESTROY in register_cleanup push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in register_cleanup push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in push_handlers DESTROY in register_cleanup push_handlers DESTROY in push_handlers DESTROY The pushed handler only get's called about a third or less of the time. :-( Any idea, bug? Michael Jacob PS: Yes I did some tests with -x... Robert L. Landrum Senior Programmer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "It's working correctly. It's simply working in contrast to what you have perceived to be correct."
Re: Best GCC compiler options for Intel (perl apache)
Last week I asked... On Thu, Feb 01, 2001 at 01:51:56PM +, Tim Bunce wrote: Can anyone recommend extra gcc options to squeeze the last ounce of performance out of code (perl and apache in this case) on Intel? I don't mind tying the code down to one cpu type or loosing the ability to debug etc. We're already doing -O6 and are looking for more. I recall Malcom Beattie (CC'd, Hi Malcolm!) experimenting in this area, something about not wasting a register for the frame pointer. I'm using gcc 2.95.2, is that the latest/best? It's on FreeBSD 4.1 and 4.2. I've appended a summary (with some additional notes after my reading of the GCC 2.95.2 docs in square brackets). Many thanks to all who contributed. I'm off to play with these options now. I'll report back later. Tim. From: Greg Cope [EMAIL PROTECTED] I've used this, but have had a few unresolved segfaults on buzy machines: -O6 -mcpu=pentium -march=pentium -fomit-frame-pointer [-march=pentium implies -mcpu=pentium] From: Owen Williams [EMAIL PROTECTED] I saw these on a site somewhere for compiling the linux kernel: -mcpu=pentiumpro -mpentium -ffast-math -O5 -fthread-jumps [-mpentium is deprecated synonym for -mcpu=pentium. -O enables -fthread-jumps] Use them on anything that is pentiumpro and above. I get a good speed increase. From: Vivek Khera [EMAIL PROTECTED] There were some important compiler fixes in FreeBSD 4.x that went in early in January. If you can, I'd recommend updating to the latest 4.2-STABLE version for the most stable compiler environment. Most important if you're compiling threaded apps in C++ (eg, MySQL). Personally, I use these options with good effect: -O2 -pipe -march=i586 -ffast-math -mfancy-math-387 Anything beyond that is bound to tickle gcc bugs. From: Steve Fink [EMAIL PROTECTED] I recall Malcom Beattie (CC'd, Hi Malcolm!) experimenting in this area, something about not wasting a register for the frame pointer. That particular option would be gcc -fomit-frame-pointer. You might try -ffast-math -fexpensive-optimizations (never played with the latter, though, and it's probably on with -O6 anyway). If you really want to go crazy, you could try -fbranch-probabilities (requires more than just turning it on; read the gcc man page.) I doubt it's worth the trouble. And you'd probably want -march=i686 (or whatever CPU you're using). I don't know the state of pentium-specific optimizations, but does Cygnus's Code Fusion still have a gcc with Pentium-specific optimizations that aren't in the main tree? I just remember the numbers saying that they'd slightly overtaken Intel's compiler, but that was a year and a half ago. From: nick [EMAIL PROTECTED] And you'd probably want -march=i686 (or whatever CPU you're using). Not necessarily. gcc and ia32 is weird that way. I would use whatever Linus co. decided to use for the kernel on that arch in question. From: James W Walden [EMAIL PROTECTED] I use '-march=i686 -mcpu=i686' to improve performance with gcc. The percentage improvement varies greatly between applications but is often around 10%. If you're willing to use a commercial compiler instead of gcc, I get a 20-40% improvement with Intel's proton C compiler (which I think is only available commercially for Windows so far) over gcc and have found other commercial compilers to produce similar gains. From: Mark Mielke [EMAIL PROTECTED] Try the pgcc patch. I don't even think -O6 does anything for gcc 2.95.x, although my memory is faint. I think it only goes to -O3. To re-order the instructions for a pentium: gcc -O3 -mpentium -march=pentium ... If you apply the pgcc patch, it will actually use the new instructions available only on the pentium, and not on the 386/486, where desirable. From: "Redford, John" [EMAIL PROTECTED] Why for me is that -O3 (and presumably -O6) performs optimizations that are "unsafe". I have had critical bugs caused by compiling Perl with -O3, (which used to be habitual). Now I only use -O2. (Or possibly the optimizations were simply buggy in GCC; definitely this was with GCC of years long ago, I haven't tried to push my luck again). From: Perrin Harkins [EMAIL PROTECTED] It's a bit old, but there's this page: http://www.google.com/search?q=cache:members.nbci.com/Alex_Maranda/gnuintel/GNUintel.htmhl=enlr=lang_en He comes out in favor of using PGCC. [Summary: http://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC10 http://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC31 http://members.nbci.com/Alex_Maranda/gnuintel/GNUintel.htm gcc -O3 -malign-double -ffast-math -funroll-all-loops -fno-rtti -fno-exceptions pgcc -O6 -malign-double -ffast-math -funroll-all-loops -fno-rtti -mcpu=pentiumpro Using -mcpu=pentiumpro doesn't stop code running on old 386 so is probably a good idea as a default for Perl Apache on Intel. To use pentiumpro specific instructions (won't run on i386) use: -march=pentiumpro (which also implies
Send a cookie, AND a redirect ?
Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison.
Re: Send a cookie, AND a redirect ?
I believe you want to use 'err_header_out' rather than 'header_out' if you're returning a status other than OK. HTH, Steve On Thu, 8 Feb 2001, Harrison wrote: Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison. =-=-=-=-=-=-=-=-=-=- My God! What have I done? -=-=-=-=-=-=-=-=-=-= Steve Reppucci [EMAIL PROTECTED] | Logical Choice Software http://logsoft.com/ |
Re: Need alittle help with something
Kevin Dabson ([EMAIL PROTECTED]) said something to this effect on 02/08/2001: Date: Thu, 8 Feb 2001 11:04:35 + (GMT) From: Kevin Dabson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Need alittle help with something Hello, I am trying to integrate a whois type tool that allows you to search domains into my own website. But i want it so it's transparent to the user (Were all ISP boys!) I have seen whois tools and places like oznic/netsol but i want that on my website. Basically the end user can buy a domain and not submit DNS etc - i take care of that. They never see the DNS side. Need some perl scripts to automate it all. I am trying to automate my entire backend - around 12 server files with mod_perl. If anyone can help or do it for money. Anyway, assistance apreciatted. Kevin Take a look at Net::Whois (http://cpan2.org/Asset/display?dist=Net-Whois). Here is an example: bash$ perl -MData::Dumper -MNet::Whois my $d = Net::Whois::Domain-new('perl.org'); print Dumper($d); ^D $VAR1 = bless( [ { "CONTACTS" = { "ADMINISTRATIVE" = [ "Hockenhull, Benjamin R (BRH11) benh\@WEBSTER.EDU", "Webster University", "470 E Lockwood", "St. Louis, MO 63119", "314-961-2660 Ext 7643 (FAX) 314-968-7112" ], "BILLING" = [ "foy, brian d (BDF11) brian\@SRI.NET", "Smith Renaud, Inc.", "875 Avenue of the Americas 2510", "New York, NY 10001", "212 239 8985 (FAX) 718 398 3625" ], "TECHNICAL" = [] }, "ADDRESS" = [ "4470 SW Hall Suite 107", "Beaverton, OR 97005-2122" ], "NAME" = "Stonehenge Consulting Services", "DOMAIN" = "perl.org", "MATCH" = 1, "COUNTRY" = "US", "TAG" = "PERL2-DOM", "SERVERS" = [ [ "happyfunball.pm.org", "166.84.5.165" ], [ "ns1.webster.edu", "198.246.0.4" ], [ "maestro.sri.net", "166.84.185.2" ] ], "RECORD_UPDATED" = "25-Jul-2000", "RECORD_CREATED" = "31-May-1995" } ], 'Net::Whois::Domain' ); $VAR1-[0]{"CONTACTS"}{"TECHNICAL"} = $VAR1-[0]{"CONTACTS"}{"ADMINISTRATIVE"}; Here is a non-existant example: bash$ perl -MData::Dumper -MNet::Whois my $d = Net::Whois::Domain-new('ss.com'); print Dumper($d); ^D $VAR1 = bless( [ {} ], 'Net::Whois::Domain' ); You should be able to get something working based on this. (darren) -- You can put a man through school, but you cannot make him think. -- Ben Harper
AW: Send a cookie, AND a redirect ?
Hallo Harrison, Maybe You can try this one which i read somewhere: $r-header_out('Set-Cookie' =$cookie); my $query = new CGI ; $r-print($query-redirect("$the_url")) ; return OK ; # maybe "return REDIRECT" is o.k., too Cheers, Yen-Ying Chen -- Von: Harrison[SMTP:[EMAIL PROTECTED]] Gesendet: Donnerstag, 8. Februar 2001 13:30 An: [EMAIL PROTECTED] Betreff: Send a cookie, AND a redirect ? Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison.
Re: Send a cookie, AND a redirect ?
Read the POD docs for Apache under the heading 'Setting up the response'; --Jeff On Thu, 8 Feb 2001, Harrison wrote: Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison. -- Jeff Beard _ Web:www.cyberxape.com Email: jeff at cyberxape dot com Earth: Boulder, CO, USA
Using Filter Module under mod_perl
Hi, I'm having trouble trying to use the Filter module under mod_perl. The attached script + module correctly outputs "Goodbye, world." under Apache/CGI, but says "Hello, world." under Apache/mod_perl (with Apache::Registry), i.e. the filter is not being applied. I looked into this once before, but got nowhere with it. Doug MacEachern had a *very* quick look last time and suggested maybe: "... the filter mechanism is tied into the perl_parse() and/or perl_run() functions, which are only called once by the perl (command line) binary, and only once by mod_perl. So it could be the case that Apache::Registry is simply too late in the game to use Perl filters." I e-mailed the module's author (Paul Marquess) recently. He is not familiar with the internals of mod_perl (neither am I), but he said: "If mod_perl calls perl_parse, I'm not sure why the filters aren't working. The filters hooks all live in yylex, which get called indirectly by perl_parse." Is there anyone familiar with both Filter and mod_perl who could shed any more light on what's going on here? Thanks, Steve Hay Hello2Goodbye.pm filtertest.pl
Re: Send a cookie, AND a redirect ?
On Thu, 8 Feb 2001, Harrison wrote: Date: Thu, 8 Feb 2001 12:30:31 - From: Harrison [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Send a cookie, AND a redirect ? Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison. I've had good luck using Apache::Cookie. Like so: sub handler { my $apr = shift; my $cookie = Apache::Cookie-new($apr, -name= 'foo', -value = 'bar', -expires = '+30m', -domain = 'baz.com', -path= '/'); $cookie-bake; $apr-method_number(M_GET); $apr-method('GET'); $apr-headers_in-unset('Content-length'); $apr-headers_out-add('Location' = 'index.html'); $apr-status(REDIRECT); $apr-send_http_header; return DONE; } ky
Re: Send a cookie, AND a redirect ?
The problem is that Apache does not put the "Set-Cookie" before the "Location" when generating headers. To fix this, you need to build the header yourself. I've found that this works with Netscape and IE, but with IE, the place where you redirect to does not have access to the cookie that you just set. All subsequent pages are able to read the cookie... It's a bug in IE. my $cookie = Apache::Cookie-new($r, -name = "MYCOOKIE", -value = "VALUE", -path = "/some/cookie/path" ); my %headers = ( "Location" = "/some/redirect/location", "Set-Cookie" = $cookie-as_string ); my $header = "Status: 302 Moved\n"; for my $h (qw(Set-Cookie Location)) { $header .= $h.": ".$headers{$h}."\n"; } $header .= "\n"; $r-send_cgi_header($header); return(REDIRECT); I think this might also only work for local redirects. I think I tried a remote redirect once and had it not work... I not certain of that. Rob At 12:30 PM + 2/8/01, Harrison wrote: Dear All. I can set a cooke fine using: $r-content_type('text/html'); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; And i can also send a redirect fine using: $r-content_type('text/html'); $r-header_out('Location'=$the_url); return REDIRECT; BUT! how do i do both? if i use my redirect code, and add an extra header_out , the cookie is not sent (because i have not called send_http_header ? ). If i add send_http_header, i see the full sent http_header in my browser. My idea was to have something like $r-content_type('text/html'); $r-header_out('Location'=$the_url); $r-header_out('Set-Cookie' =$cookie); $r-send_http_header; return REDIRECT; Which does not work. Thinking about it whilst typing this email, does header_out have a field where i can set the REDIRECT status? Thanks in advance, Richard Harrison. Robert L. Landrum Senior Programmer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "It's working correctly. It's simply working in contrast to what you have perceived to be correct."
[RESEND] seg fault with Apache::URI ... weird
Hi all, No response on this so here it is again, any clues appreciated: I am encountering a weird problem with Apache::URI ... consider, please, this test handler: package WM::Test; use strict; sub handler { my $r = shift; my $uri = Apache::URI-parse($r, $r-uri); $uri-hostname($r-get_server_name); $uri-port($r-get_server_port); print $uri-unparse; } 1; __END__ As written, this causes a seg fault every time. Commenting out _either_ the $uri-hostname assignment _or_ the $uri-port assignment solves the problem, or even changing the call to one or other of the methods from an assignment to a read. But when both methods are assigned new values, seg fault. This code has worked fine for two years or more on my FreeBSD boxes; this is on Linux RedHat 7 ... dunno if that makes a difference. apache etc.: [Sun Feb 4 10:53:11 2001] [notice] Apache/1.3.17 (Unix) mod_perl/1.25 mod_ssl/2.8.0 OpenSSL/0.9.6 configured -- resuming normal operations perl: wm@wm ~/wm/perl/WMperl -V Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=linux, osvers=2.2.16-22, archname=i686-linux uname='linux wm 2.2.16-22 #1 tue aug 22 16:49:06 edt 2000 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='gcc', optimize='-O2', gccversion=2.96 2731 (Red Hat Linux 7.0) cppflags='-fno-strict-aliasing' ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 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='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldl -lm -lc -lcrypt libc=/lib/libc-2.1.92.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 Jan 30 2001 10:41:19 @INC: /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl . Thanks, Nick ~~~ Nick Tonkin
Debug perl package in Apache
Hi, I build an Apache with Mod_Perl under DSO in Solaris. Apache seems works fine. But I now have a problem when AuthenNISPlus.pm get called and was not be able to get password table(I think). I have the following setting in httpd.conf Location /web AuthName "[Web for Unix Users]" AuthType Basic PerlSetVar NISPlus_Passwd_Table passwd.org_dir PerlSetVar NISPlus_Group_Table group.org_dir PerlSetVar NISPlus_DEBUG 1 PerlAuthenHandler Apache::AuthenNISPlus require group devusers sysadmin Order deny,allow Deny from all Allow from all /Location But AuthenNISPlus.pm exited with "Not an ARRAY reference at line 58 look at this program from line 57 are foreach ($pwd_table-list()){ if(@{$_}[0] eq $name){ $pwd = @{$_}[1]; $group = @{$_}[3]; last; Any body has any ideals? Also How can I debug an perl package under this environment? Appreciated for any help Thanks, PC
Re: object not being destroyed in a TemplateToolkit-based handler
"PH" == Perrin Harkins [EMAIL PROTECTED] writes: PH Okay, I just tried the code you posted under mod_perl and it worked fine. PH I changed a couple of lines having to do with locations and package names, Ok... Upgrade to "Apache/1.3.17 (Unix) mod_perl/1.25_01-dev" fixed the object destroy issue. Yay! Old versions were Apache 1.3.14 and mod_perl 1.24_02-dev. Why that fixes it, I dunno. (Nor do I care at this point ;-) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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/
Re: ANNOUNCE: OpenInteract Web Application Server
On Thu, 8 Feb 2001, Stephane Bortzmeyer wrote: On Tuesday 6 February 2001, at 21 h 57, the keyboard of Chris Winters [EMAIL PROTECTED] wrote: I'm jazzed to announce the public release of OpenInteract, an extensible web application framework using mod_perl and the Template Toolkit as its core technologies. Anyone compared it to Zope http://www.zope.org/? I'm hesitating. Zope has a built-in concept of folders that allows you to use it as a sort of lame content management thing out of the box, i.e. you can edit pages and site structure through a web browser. (And there are other protocols like FTP that are supposed to work, although I haven't tried them.) OpenInteract doesn't seem to have an equivalent. Zope provides its own file-based database and indexer, while OpenInteract expects you to use an external database of some kind. OpenInteract has pretty solid-looking documentation. The Zope docs are a disaster, although a forthcoming book may improve that situation. Some of Zope's most interesting ideas - like Z Classes, a way to define object types at runtime through a web interface - seem cumbersome to work with or have odd restrictions. OpenInteract has no equivalent that I could see. In short, Zope wants to be more, but currently is difficult to figure out. That could be just my Perl experience, but I understood more of OpenInteract in half an hour than I did with Zope after several tries over the last few years. - Perrin
Re: [Templates] Re: object not being destroyed in a TemplateToolkit-basedhandler
On Thu, 8 Feb 2001, Vivek Khera wrote: Ok... Upgrade to "Apache/1.3.17 (Unix) mod_perl/1.25_01-dev" fixed the object destroy issue. Yay! Old versions were Apache 1.3.14 and mod_perl 1.24_02-dev. Well, that is odd since I'm running 1.3.12 and 1.24_01, but you never know what evils might be fixed by a clean install. - Perrin
Re: Send a cookie, AND a redirect ? [resolved]
Using err_header_out worked :) $r-content_type('text/html'); $r-err_header_out('Set-Cookie' = $cookie); $r-err_header_out('Location' = $the_url); return REDIRECT;
Redirection Location MUST be absolute (was Re: Send a cookie, ANDa redirect ?)
On Thu, 8 Feb 2001, Robert Landrum wrote: The problem is that Apache does not put the "Set-Cookie" before the "Location" when generating headers. To fix this, you need to build the header yourself. I've found that this works with Netscape and IE, but with IE, the place where you redirect to does not have access to the cookie that you just set. All subsequent pages are able to read the cookie... It's a bug in IE. my $cookie = Apache::Cookie-new($r, -name = "MYCOOKIE", -value = "VALUE", -path = "/some/cookie/path" ); my %headers = ( "Location" = "/some/redirect/location", I'd like to mention that the Location header MUST be absolute, NEVER relative. Absolute means that it must include the scheme! http://www.w3.org/Protocols/rfc2068/rfc2068 14.30 Location The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URL for automatic redirection to the resource. The field value consists of a single absolute URL. Location = "Location" ":" absoluteURI An example is Location: http://www.w3.org/pub/WWW/People.html -jwb
Re: Redirection Location MUST be absolute (was Re: Send a cookie,AND a redirect ?)
If all browsers followed the W3 standards the world would be a better place... They say "...field value consists of a single absolute URL." ^^^ I think they mean URI because the example says "absoluteURI", not URL. An absolute URI is /some/location But so is http://www.somehost.com/some/location Both are valid URIs and both absolute. One is more qualified than the other. A relative URI is some/location which is incorrect, and not what I meant in my message. Which brings us to the next point... By using relative *URLs* such as /some/location, you avoid changing the location field in the browser window, which is often desired. If you use an absolute *URL*, the location field changes to the absolute URL. You can try it with a simple perl script CGI. #!/usr/bin/perl print "Location: /some/location/\n\n"; or #!/usr/bin/perl print "Location: http://somehost.com/some/location/\n\n"; Robert Landrum On Thu, 8 Feb 2001, Robert Landrum wrote: The problem is that Apache does not put the "Set-Cookie" before the "Location" when generating headers. To fix this, you need to build the header yourself. I've found that this works with Netscape and IE, but with IE, the place where you redirect to does not have access to the cookie that you just set. All subsequent pages are able to read the cookie... It's a bug in IE. my $cookie = Apache::Cookie-new($r, -name = "MYCOOKIE", -value = "VALUE", -path = "/some/cookie/path" ); my %headers = ( "Location" = "/some/redirect/location", I'd like to mention that the Location header MUST be absolute, NEVER relative. Absolute means that it must include the scheme! http://www.w3.org/Protocols/rfc2068/rfc2068 14.30 Location The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URL for automatic redirection to the resource. The field value consists of a single absolute URL. Location = "Location" ":" absoluteURI An example is Location: http://www.w3.org/pub/WWW/People.html -jwb Robert L. Landrum Senior Programmer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UNIX was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things. --- Doug Gwyn
Re: Redirection Location MUST be absolute (was Re: Send a cookie,AND a redirect ?)
On Thu, 8 Feb 2001, Robert Landrum wrote: If all browsers followed the W3 standards the world would be a better place... They say "...field value consists of a single absolute URL." ^^^ I think they mean URI because the example says "absoluteURI", not URL. An absolute URI is /some/location No, that is not an absolute URI. absoluteURI is defined unabiguously in RFC 2068: absoluteURI= scheme ":" *( uchar | reserved ) So, you see, an absoluteURI MUST contain the scheme. But so is http://www.somehost.com/some/location Both are valid URIs and both absolute. One is more qualified than the other. No. A relative URI is some/location which is incorrect, and not what I meant in my message. Which brings us to the next point... By using relative *URLs* such as /some/location, you avoid changing the location field in the browser window, which is often desired. If you use an absolute *URL*, the location field changes to the absolute URL. This is the desired behavior. You can try it with a simple perl script CGI. #!/usr/bin/perl print "Location: /some/location/\n\n"; or #!/usr/bin/perl print "Location: http://somehost.com/some/location/\n\n"; -jwb
Newbie question to mod_perl and Apache::DBI
Hi there, I am new to mod_perl and currently trying to make use of Apache::DBI. This is my enviroment: Suse Linux 6.3, Apache 1.3.12, mod_perl 1.24 and Oracle 8i. I am using HTML:Mason as well, as a templating system. Everything works. Apache::DBI is loaded via httpd.conf by Apache properly and I can make use of it in my scripts, when reading data. With my other script, updating data, I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. and the script does not get to connect the database and dies with a timeout. I think, I should add, that in both scripts, the one who is reading and the one who is updating, I open and close a $dbh (connect / disconnect). Anybody having an idea, what I am doing wrong ? Or where to find help ? Thanks for the help. Caro -- -- Caroline Kliegl Neustadt - Germany Sent through GMX FreeMail - http://www.gmx.net
BSDI 4.1 libperl.so problem
Hi there. I am having a HELL of a time trying to get mod_perl compiled into apache 1_3.17. I built it using APXS and I really have tried everything I can think of. It makes, and builds without a problem. When I try to do a configtest (after installing the new LoadModule and such into the httpd.conf file) I get this: % apachectl configtest Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libperl.so into server: File not found % % ls -l /usr/local/apache/libexec/libperl.so -rwxr-xr-x 1 root wheel 210522 Feb 8 13:49 /usr/local/apache/libexec/libperl .so % As you can see the file is there. I am running BSDI 4.1 and Apache 1_3.17 trying to compile mod_perl 1.25 HELP :) Aaron Schlesinger __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: [RESEND] seg fault with Apache::URI ... weird
Hi there, On Thu, 8 Feb 2001, Nick Tonkin wrote: No response on this so here it is again, any clues appreciated: This code has worked fine for two years or more on my FreeBSD boxes; this is on Linux RedHat 7 ... dunno if that makes a difference. [snip] config_args='' This seems strange. cc='gcc', optimize='-O2', gccversion=2.96 2731 (Red Hat Linux 7.0) And wasn't there a problem with the compiler on RH7? I think there's something in the List archies. 73, Ged.
Re: Debug perl package in Apache
Hi there, On Thu, 8 Feb 2001, Wang, Pin-Chieh wrote: But AuthenNISPlus.pm exited with "Not an ARRAY reference at line 58 look at this program from line 57 are foreach ($pwd_table-list()){ print STDERR "Argument list = [", $_, "]\n"; if(@{$_}[0] eq $name){ $pwd = @{$_}[1]; $group = @{$_}[3]; last; Any body has any ideals? Also How can I debug an perl package under this environment? http://perl/apache.org/guide HTH 73, Ged.
Re: Sessions on win 32
I havent tried it, but does it use file session management? Do i have to use ASP to use it? Because I am only using mod_perl for speed. Haris Victor Michael Blancas wrote: have u tried Apache::ASP by Joshua Chamas. It has a nice Session and Application state management. On Wed, 7 Feb 2001, harilaos wrote: Hello, I have searched everywhere but there is documentation on how to implement Apache::Session on windows. Has anyone done this? Please point me to relevent docs if you know any. I have read about Apache::Session::Win32 but the package is removed and obsolete from the latest Apache::Session module. Thanks -- Mike
Re: Sessions on win 32
Thanks for the hint but i have already done this. I ask this group in case people have got experience i what i am asking and not to get vague answers. Why don't i do a search on google? I have emailed the author of the module but i don't think i will get a reply. Sparce documentention , and this is why PHP is gaining ground on Perl.PHP comes preconfigured with session management too, but i want to use perl. Not because i don't know how to,(because I have already did the session management myself with files on the server) but because i wanted to implement a system that can switch from file to cookie to DB session management anmd from windows to linux. Maybe if i hot perldoc again that will help. Haris Gunther Birznieks wrote: Have you tried doing a perldoc on the modules themselves? At 02:35 PM 2/7/2001 +, harilaos wrote: Hello, I have searched everywhere but there is documentation on how to implement Apache::Session on windows. Has anyone done this? Please point me to relevent docs if you know any. I have read about Apache::Session::Win32 but the package is removed and obsolete from the latest Apache::Session module. Thanks __ Gunther Birznieks ([EMAIL PROTECTED]) eXtropia - The Web Technology Company http://www.extropia.com/
Re: object not being destroyed in a TemplateToolkit-based handler
At 13:24 08/02/2001 -0500, Vivek Khera wrote: Ok... Upgrade to "Apache/1.3.17 (Unix) mod_perl/1.25_01-dev" fixed the object destroy issue. Yay! Old versions were Apache 1.3.14 and mod_perl 1.24_02-dev. Why that fixes it, I dunno. (Nor do I care at this point ;-) I'm glad your problem is soved, but does anyone have any idea what triggered that problem ? I'm running 1.3.14/1.24_01 and though I'm not seeing any serious leakage, I'd rather know what can cause it as I probably won't be upgrading my production server too soon. -- robin b. "Windows may be pretty. And easy. But it has no depth or soul. It's like the one-night stand of operating systems. You feel cheap after using it." -- Steph, in User Friendly
Re: ANNOUNCE: OpenInteract Web Application Server
On Tuesday 6 February 2001, at 21 h 57, the keyboard of Chris Winters [EMAIL PROTECTED] wrote: I'm jazzed to announce the public release of OpenInteract, an extensible web application framework using mod_perl and the Template Toolkit as its core technologies. Anyone compared it to Zope http://www.zope.org/? I'm hesitating. So does OpenInteract have a web site??? [EMAIL PROTECTED]
Newbie question to mod_perl and Apache::DBI
Hi there, I am new to mod_perl and currently trying to make use of Apache::DBI. This is my enviroment: Suse Linux 6.3, Apache 1.3.12, mod_perl 1.24 and Oracle 8i. I am using HTML:Mason as well, as a templating system. Everything works. Apache::DBI is loaded via httpd.conf by Apache properly and I can make use of it in my scripts, when reading data. With my other script, updating data, I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. and the script does not get to connect the database and dies with a timeout. I think, I should add, that in both scripts, the one who is reading and the one who is updating, I open and close a $dbh (connect / disconnect). Anybody having an idea, what I am doing wrong ? Or where to find help ? Thanks for the help. Caro -- -- Caroline Kliegl Neustadt - Germany Sent through GMX FreeMail - http://www.gmx.net
Re: Content management tools
On Thu, 8 Feb 2001, Michael wrote: Could someone recommend a content management tool that is oriented toward the end user who is not necessarily very technically adept or html savvy. Don't really care about the developer tools, the developers can fend for themselves. The application is to provide the website owner with the ability to manage new content on their page but not have to know a lot technically. There appear to be many choices and evaluating each for this set of qualities is not going very well since the documentation is written with the administrator/developer in mind. Thats a huge question, and the requirements of "I need a CMS" don't give much to go on. As yet there is only one publicly available mod_perl "CMS", though I don't think it fits your bill, and its the Mason one. Depending on your budget the market for CMS' is pretty huge, so its hard to recommend anything particular. -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\// //\\ // \\
Re: Debug perl package in Apache
On Thu, 8 Feb 2001, Wang, Pin-Chieh wrote: Any body has any ideals? Also How can I debug an perl package under this environment? Appreciated for any help Check out this useful article written by Dough MacEachern for PerlMonth. http://www.perlmonth.com/features/mod_perl/mod_perl.html?issue=2 Cheers, -- Sander van Zoest [[EMAIL PROTECTED]] Covalent Technologies, Inc. http://www.covalent.net/ (415) 536-5218 http://www.vanzoest.com/sander/
Re: ANNOUNCE: OpenInteract Web Application Server
On Thu, 8 Feb 2001, Perrin Harkins wrote: In short, Zope wants to be more, but currently is difficult to figure out. That could be just my Perl experience, but I understood more of OpenInteract in half an hour than I did with Zope after several tries over the last few years. Of course that may have a lot to do with your background. Zope isn't a tech tool like what we have coming out for mod_perl at the moment - its a much higher level. This is both good and bad, of course. Personally I think CMS' are very important, but then I would: http://axkit.com/products/axkit-cms/ :-) -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\// //\\ // \\
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
That's what the RFC says... But that's not the way that a browser handles it. I don't know why browsers don't support the "standards," but that's not exactly the topic. Every browser I've ever tested with, including LWP, lynx and AOL, have supported relative Location headers. If the W3 wants to document it incorrectly or change the unofficial standard, then they are wasting their time. Rob On Thu, 8 Feb 2001, Robert Landrum wrote: If all browsers followed the W3 standards the world would be a better place... They say "...field value consists of a single absolute URL." ^^^ I think they mean URI because the example says "absoluteURI", not URL. An absolute URI is /some/location No, that is not an absolute URI. absoluteURI is defined unabiguously in RFC 2068: absoluteURI= scheme ":" *( uchar | reserved ) So, you see, an absoluteURI MUST contain the scheme. But so is http://www.somehost.com/some/location Both are valid URIs and both absolute. One is more qualified than the other. No. A relative URI is some/location which is incorrect, and not what I meant in my message. Which brings us to the next point... By using relative *URLs* such as /some/location, you avoid changing the location field in the browser window, which is often desired. If you use an absolute *URL*, the location field changes to the absolute URL. This is the desired behavior. You can try it with a simple perl script CGI. #!/usr/bin/perl print "Location: /some/location/\n\n"; or #!/usr/bin/perl print "Location: http://somehost.com/some/location/\n\n"; -jwb Robert L. Landrum Senior Programmer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UNIX was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things. --- Doug Gwyn
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
"Robert" == Robert Landrum [EMAIL PROTECTED] writes: Robert By using relative *URLs* such as /some/location, you avoid changing Robert the location field in the browser window, which is often desired. If Robert you use an absolute *URL*, the location field changes to the absolute Robert URL. Actually, I'll disagree with that. NEVER use internal redirects (which you call "relative URLs" but that's another story) unless you are fully understanding about WHY *I* say *NEVER*, in my strongest language. As a hint... are you willing to be responsible for how all the relative URLs in the resulting document are treated, including all documents called from there? The problem is that the browser still thinks it got "/foo/bar/fred.html", so if an internal redirect was performed to "/abc/def/ghi.html" and it had a relative link to "../xyz.html", the browser will fetch "/foo/xyz.html", not to the correct "/abc/xyz.html", since the browser had no visibility to the /abc part of that equation. NEVER use internal redirects. At least not until you understand why I say "NEVER". -- 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!
Re: Newbie question to mod_perl and Apache::DBI
On Thu, Feb 08, 2001 at 11:57:50PM +0100, Caroline Kliegl wrote: [..] With my other script, updating data, I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. [..] You need to compile mod_perl with PERL_STACKED_HANDLERS = 1. See following for details: http://perl.apache.org/guide/databases.html#Apache_DBI_does_not_work Ajit
mod_ssl: Init: Failed to generate temporary 512 bit RSA private key
Hi, all. I've been trying to add a couple of modules to my Apache, and just can't seem to get it to do it's thing. Forgive me if I tell you too much, but I'm just trying to be thorough. STEP 1: === perl Makefile.PL USE_APACI=1 USE_DSO=0 EVERYTHING=1 \ DO_HTTPD=1 SSL_BASE=/usr/local/ssl \ APACHE_SRC=../apache_1.3.12/src\ APACI_ARGS=--enable-module=ssl,--enable-module=auth_dbm,--enable-modul e=info,--enable-module=rewrite,--enable-module=usertrack This runs smoothly. STEP 2: make This, too, runs smoothly. == STEP 3: make test Here's the problem. It runs fine till t/TEST tries to spawn a server and hit it. The server fails at init because it can't generate a temporary 512 bit RSA private key. I've moved to the apache directory and run "make certificate" before the "make test", but it doesn't help. If I'm not mistaken, I had this problem when I was first installing the server, and ended up skipping the test. It installed and has been working fine. I'd just rather have a clean test before I try installing and using the new binary now that it's in production. Anybody got a suggestion? [ROOT] /dart26/mod_perl-1.23: uname -a HP-UX uap5 B.10.20 C 9000/891 373319211 32-user license [ROOT] /dart26/mod_perl-1.23: ../apache_1.3.12/src/httpd -V Server version: Apache/1.3.12 (Unix) Server built: Feb 8 2001 16:04:39 Server's Module Magic Number: 19990320:7 Server compiled with -D EAPI -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_FCNTL_SERIALIZED_ACCEPT -D HTTPD_ROOT="/usr/local/apache" -D SUEXEC_BIN="/usr/local/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard" -D DEFAULT_LOCKFILE="logs/httpd.lock" -D DEFAULT_XFERLOG="logs/access_log" -D DEFAULT_ERRORLOG="logs/error_log" -D TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -D ACCESS_CONFIG_FILE="conf/access.conf" -D RESOURCE_CONFIG_FILE="conf/srm.conf" [ROOT] /dart26/mod_perl-1.23: ../apache_1.3.12/src/httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_info.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_rewrite.c mod_access.c mod_auth.c mod_auth_dbm.c mod_usertrack.c mod_setenvif.c mod_ssl.c mod_perl.c suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec (Also, anybody got an idea why this suexec message? is it something to worry about?) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: Sessions on win 32
I have used apache::session on windows with great success. I downloaded the modules pre-built along with the modperl DSO from : ftp://theoryx5.uwinnipeg.ca/pub/ They seem to work well. I even installed on top of OpenSA ( www.opensa.org ) and obtained SSL features. I did have to do some oddities to get Session::DBI working properly but it did work in the end. I installed this on top of the latest ActivePerl with no problems. HTML::Mason worked like a champ as well. I believe this is all available in the archives linked to from perl.apache.org. Yes, the perl community does ask its users to sometimes be a bit more 'independent' but its nothing to get testy about. Some of us on the list are actually really really really busy and like to wait it out and see if someone else will pop in with an answer. John- On Thu, 8 Feb 2001, harilaos wrote: Thanks for the hint but i have already done this. I ask this group in case people have got experience i what i am asking and not to get vague answers. Why don't i do a search on google? I have emailed the author of the module but i don't think i will get a reply. Sparce documentention , and this is why PHP is gaining ground on Perl.PHP comes preconfigured with session management too, but i want to use perl. Not because i don't know how to,(because I have already did the session management myself with files on the server) but because i wanted to implement a system that can switch from file to cookie to DB session management anmd from windows to linux. Maybe if i hot perldoc again that will help. Haris Gunther Birznieks wrote: Have you tried doing a perldoc on the modules themselves? At 02:35 PM 2/7/2001 +, harilaos wrote: Hello, I have searched everywhere but there is documentation on how to implement Apache::Session on windows. Has anyone done this? Please point me to relevent docs if you know any. I have read about Apache::Session::Win32 but the package is removed and obsolete from the latest Apache::Session module. Thanks __ Gunther Birznieks ([EMAIL PROTECTED]) eXtropia - The Web Technology Company http://www.extropia.com/
Re: Content management tools
Look at a combination of Interwoven and ArborText. Thanks At 11:19 AM 2/8/01 -0800, Michael wrote: Could someone recommend a content management tool that is oriented toward the end user who is not necessarily very technically adept or html savvy. Don't really care about the developer tools, the developers can fend for themselves. The application is to provide the website owner with the ability to manage new content on their page but not have to know a lot technically. There appear to be many choices and evaluating each for this set of qualities is not going very well since the documentation is written with the administrator/developer in mind. Thank in advance for your comments. Michael [EMAIL PROTECTED] - Will Wiley Sr. Web Technologist Wind River Systems, Platform Engineering Tel : +1(510)749-2476 Fax : +1(510)749-2010 mailto:[EMAIL PROTECTED] http://www.windriver.com
Re: ANNOUNCE: OpenInteract Web Application Server
At 23:01 08/02/2001 +, Matt Sergeant wrote: Personally I think CMS' are very important, but then I would: http://axkit.com/products/axkit-cms/ :-) I've been more or less following the AxKit CVS and saw a few things about AxKit-CMS. Nice looking new site. Would you care to expand on what your plans are ? It seems as if you haven'y really launched yet, but it's been looking as if you've been having something in the back of your mind for months :) -- robin b. Suicidal twin kills sister by mistake!
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
Robert Landrum writes: Every browser I've ever tested with, including LWP, lynx and AOL, have supported relative Location headers. I've made the mistake of using relative (i.e. without the scheme) URLs in Location headers, and although it worked most of the time there were situations where it broke (I now forget what that was - it was some time ago). Michael -- Michael Peppler - Data Migrations Inc. - [EMAIL PROTECTED] http://www.mbay.net/~mpeppler - [EMAIL PROTECTED] International Sybase User Group - http://www.isug.com Sybase on Linux mailing list: [EMAIL PROTECTED]
Re: ANNOUNCE: OpenInteract Web Application Server
On Fri, 9 Feb 2001, Robin Berjon wrote: At 23:01 08/02/2001 +, Matt Sergeant wrote: Personally I think CMS' are very important, but then I would: http://axkit.com/products/axkit-cms/ :-) I've been more or less following the AxKit CVS and saw a few things about AxKit-CMS. Nice looking new site. Would you care to expand on what your plans are ? It seems as if you haven'y really launched yet, but it's been looking as if you've been having something in the back of your mind for months :) Its slowly coming along, so I put up the page to see if there was interest. I guess I'll see if I get commercial enquiries or not. I'm still unsure about the whole open source "Make money off consultancy/support" model of business, since its a headcount game, and I may just commercialise it, but I don't want to if I can help it. As for the spec/plans, well most of the details are on the site, I'll reveal more as time goes by. :-) Expect it to develop pretty rapidly from here on out. -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\// //\\ // \\
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
At 18:19 08/02/2001 -0500, Robert Landrum wrote: Every browser I've ever tested with, including LWP, lynx and AOL, have supported relative Location headers. Lynx will likely give you a warning on that (though admittedly it'll work). A good number of Netscape servers will react to it in an interestingly varied array of ways, ranging from returning a 5xx (not always the same one) to completely crashing, or going into what looks like an endless loop consuming lots of cpu and memory. You probably don't care if you're running modperl, but as is often the case with many standard vs broken implementation problem, you're usually better off sticking to the standard. -- robin b. Earth is a beta site.
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
you are supposed to be able to use: base href="/foo/bar/fred.html" which changes the base of the document. if u really wanted to use internal redirects, you would have to insure that all documents contained this tag, or filter the page and include it yourself. of course this is just a spec, determining which browsers properly use it, is beyond me. -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ "Randal L. Schwartz" wrote: "Robert" == Robert Landrum [EMAIL PROTECTED] writes: Robert By using relative *URLs* such as /some/location, you avoid changing Robert the location field in the browser window, which is often desired. If Robert you use an absolute *URL*, the location field changes to the absolute Robert URL. Actually, I'll disagree with that. NEVER use internal redirects (which you call "relative URLs" but that's another story) unless you are fully understanding about WHY *I* say *NEVER*, in my strongest language. As a hint... are you willing to be responsible for how all the relative URLs in the resulting document are treated, including all documents called from there? The problem is that the browser still thinks it got "/foo/bar/fred.html", so if an internal redirect was performed to "/abc/def/ghi.html" and it had a relative link to "../xyz.html", the browser will fetch "/foo/xyz.html", not to the correct "/abc/xyz.html", since the browser had no visibility to the /abc part of that equation. NEVER use internal redirects. At least not until you understand why I say "NEVER".
Re: Newbie question to mod_perl and Apache::DBI
Hi there, On Thu, 8 Feb 2001, Caroline Kliegl wrote: I am new to mod_perl and currently trying to make use of Apache::DBI. I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. I think it wants you to rebuild with -DPERL_STACKED_HANDLERS. http:perl.apache.org/guide - see the section on configuration. 73, Ged.
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
___cliff rayman___ wrote: you are supposed to be able to use: base href="/foo/bar/fred.html" make that: base href="http://host.mydomain.net/foo/bar/fred.html" which changes the base of the document. if u really wanted to use internal redirects, you would have to insure that all documents contained this tag, or filter the page and include it yourself. of course this is just a spec, determining which browsers properly use it, is beyond me. -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ "Randal L. Schwartz" wrote: "Robert" == Robert Landrum [EMAIL PROTECTED] writes: Robert By using relative *URLs* such as /some/location, you avoid changing Robert the location field in the browser window, which is often desired. If Robert you use an absolute *URL*, the location field changes to the absolute Robert URL. Actually, I'll disagree with that. NEVER use internal redirects (which you call "relative URLs" but that's another story) unless you are fully understanding about WHY *I* say *NEVER*, in my strongest language. As a hint... are you willing to be responsible for how all the relative URLs in the resulting document are treated, including all documents called from there? The problem is that the browser still thinks it got "/foo/bar/fred.html", so if an internal redirect was performed to "/abc/def/ghi.html" and it had a relative link to "../xyz.html", the browser will fetch "/foo/xyz.html", not to the correct "/abc/xyz.html", since the browser had no visibility to the /abc part of that equation. NEVER use internal redirects. At least not until you understand why I say "NEVER". -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/
Re: Redirection Location MUST be absolute (was Re: Send a cookie,AND a redirect ?)
We only use absolute URLs /images/some.gif. When dealing with apache, it's often neccesary to see the previous requests environment (error pages, etc.) so that you can show that information to the user and email it to the webmaster. That's only possible with an internal redirect. As in ErrorDocument 503 /error.pl Using a full path there causes you to lose all of that valuable information that was stored in the Environment. ErrorDocument 503 http://www.somehost.com/error.pl I almost always use external redirects, except when I don't want the page I'm redirecting to bookmarked. But I definitly understand why you say *NEVER*. Rob "Robert" == Robert Landrum [EMAIL PROTECTED] writes: Robert By using relative *URLs* such as /some/location, you avoid changing Robert the location field in the browser window, which is often desired. If Robert you use an absolute *URL*, the location field changes to the absolute Robert URL. Actually, I'll disagree with that. NEVER use internal redirects (which you call "relative URLs" but that's another story) unless you are fully understanding about WHY *I* say *NEVER*, in my strongest language. As a hint... are you willing to be responsible for how all the relative URLs in the resulting document are treated, including all documents called from there? The problem is that the browser still thinks it got "/foo/bar/fred.html", so if an internal redirect was performed to "/abc/def/ghi.html" and it had a relative link to "../xyz.html", the browser will fetch "/foo/xyz.html", not to the correct "/abc/xyz.html", since the browser had no visibility to the /abc part of that equation. NEVER use internal redirects. At least not until you understand why I say "NEVER". -- 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! Robert L. Landrum Senior Programmer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UNIX was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things. --- Doug Gwyn
Re: BSDI 4.1 libperl.so problem
Hi there, On Thu, 8 Feb 2001, Aaron Schlesinger wrote: % apachectl configtest Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libperl.so into server: File not found % ls -l /usr/local/apache/libexec/libperl.so -rwxr-xr-x 1 root wheel 210522 Feb 8 13:49 /usr/local/apache/libexec/libperl.so As you can see the file is there. Well some of it is... c2h5oh:/usr/local/apache/libexec$ ls -l libperl.so -rwxr-xr-x 1 root root 1160538 Sep 14 16:02 libperl.so* c2h5oh:/usr/local/apache/libexec$ (I take it you've checked the permissions on all the directories in the path?:) 73, Ged.
RE: Newbie question to mod_perl and Apache::DBI
Apache::DBI will call push_handlers on to issue a rollback if AutoCommit=0 in your connect string... but the problem may not be with you... looks like a bug (somewhere): if(!$Rollback{$Idx} and $needCleanup and Apache-can('push_handlers'){ ... } looks like calling Apache-can('push_handlers') is returning true even though you didn't activate PERL_STACKED_HANDLERS. I wonder if somehow can() isn't correctly capturing the build-time arguments (something to look into...) at any rate, the quickest way to fix this is to rebuild mod_perl with EVERYTHING=1 or PERL_STACKED_HANDLERS=1 (or don't set AutoCommit=0 in your connect string if you can't rebuild it now...) try these and see if they make a difference... HTH --Geoff -Original Message- From: Caroline Kliegl To: [EMAIL PROTECTED] Sent: 2/8/01 5:57 PM Subject: Newbie question to mod_perl and Apache::DBI Hi there, I am new to mod_perl and currently trying to make use of Apache::DBI. This is my enviroment: Suse Linux 6.3, Apache 1.3.12, mod_perl 1.24 and Oracle 8i. I am using HTML:Mason as well, as a templating system. Everything works. Apache::DBI is loaded via httpd.conf by Apache properly and I can make use of it in my scripts, when reading data. With my other script, updating data, I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. and the script does not get to connect the database and dies with a timeout. I think, I should add, that in both scripts, the one who is reading and the one who is updating, I open and close a $dbh (connect / disconnect). Anybody having an idea, what I am doing wrong ? Or where to find help ? Thanks for the help. Caro -- -- Caroline Kliegl Neustadt - Germany Sent through GMX FreeMail - http://www.gmx.net
Re: Redirection Location MUST be absolute (was Re: Send a cookie, AND a redirect ?)
Hi guys, Do you think you could take this off-list now? 73, Ged.
Re: ANNOUNCE: OpenInteract Web Application Server
At 00:22 09/02/2001 +, Matt Sergeant wrote: I've been more or less following the AxKit CVS and saw a few things about AxKit-CMS. Nice looking new site. Would you care to expand on what your plans are ? It seems as if you haven'y really launched yet, but it's been looking as if you've been having something in the back of your mind for months :) Its slowly coming along, so I put up the page to see if there was interest. I guess I'll see if I get commercial enquiries or not. I'm still unsure about the whole open source "Make money off consultancy/support" model of business, since its a headcount game, and I may just commercialise it, but I don't want to if I can help it. I nearly sent an enquiry then I remembered that I was on the because of something I read on the list so I thought I'd post here. I guess you could count that as one :) The open source + consultancy model is tricky, and I think that the devil's in the details. My company's been providing mostly open source solutions (the "mostly" is because over time we've developped stuff that hasn't been released, but will be as I progressively un-ad hoc it) for four years and we're doing well. In those four years it happened a few times that some customers decided that it would be a better investment for them if they employed their own techs to build upon what we'd made for them instead of turning to us for that but we've found that to be a marginal case, and even then those customers still turn to us for the bits they don't think their techs can handle as well. It's a different model (we customize and integrate more than we actually produce) but it bears a relationship. We certainly never felt we had to try to encrypt the code we provided to our customers or to documentation-starve them in order to force them to stay with us. I think there's a line between support and consultancy that can make a difference. If the product you supply is very end-user orientated then you'll need to supply more support than consultancy, and that will cost you a lot in customer service if you want to do it in a way that will satisfy your consumers. Support can be sold only for so much, so you'll need to be sure that your product will be used by many people for it to be profitable. That angle only works imho for very generic and widespread tools (eg linux). For those products, either giving up the idea of making money from the project entirely or going shareware and assimilated is probably best. If on the other it is a less used product that will more likely be bought by IT departments instead of simple end users, then consulting + open source works imho. The way to see it I think is that open source has a value which IT people will try to gauge against the value (in terms of money) at which another closed source project in the same sector is selling. If you try to go commercial in such areas, you'll have basically two levels of pricing. The first one is more or less as high as the big players in your field, in which case you'll need to have all the sales and marketing and advertising people to go with it. Possible, but it's a bet and it would take some serious VC. Or target the lower end pricing. In that case you'll have to deal with the fact that people instictively think cheaper = lesser, which is always a problem. And where people think beyond that (which is rare) you'll face the buy this commercial software and that's it vs use this open source software and invest the money in some consulting conundrum, the outcome of which at that price level is often to go for the latter (in my experience). If you're not going to go the big CMS player route straight away, then I think Open Source + consulting is a more viable model than pure commercial (ie it'll be more successful and make more money). I've talked for longer than I expected. This brings up something I've been thinking of for some time. I've been wondering a while if some sort of "modperl for professionals" (very bad name, I know) list would be of interest to the community. I know that most people on the list that use modperl are "professionals" (hence the fact that it is a bad name) but some of us use it internally (to produce a project that is a company project) while others sell modperl based solutions to others (creating the dynamic backend for someone else's project). That latter group could have things to share that are not technical and not just advocacy (or are too specific for it). Maybe I'm not the only one wondering which is the best way to sell a modperl solution based 100% on open source stuff to a company. On the other hand, yet another mailing list might not be the solution. -- robin b. Forty two.
RE: Newbie question to mod_perl and Apache::DBI
yup, it's a bug... #!/usr/bin/perl use Apache::MyConfig; my $r = shift; $r-send_http_header('text/plain'); print "can push_handlers\n" if Apache-can('push_handlers'); print "but PERL_STACKED_HANDLERS: ", $Apache::MyConfig::Setup{PERL_STACKED_HANDLERS}; basically Apache-can('push_handlers') returns true even if PERL_STACKED_HANDLERS=0 at build time... I guess that at some point this worked correctly, otherwise Edmund wouldn't have coded it that way? --Geoff -Original Message- From: Geoffrey Young To: 'Caroline Kliegl ' Cc: '[EMAIL PROTECTED]' Sent: 2/8/01 7:52 PM Subject: RE: Newbie question to mod_perl and Apache::DBI Apache::DBI will call push_handlers on to issue a rollback if AutoCommit=0 in your connect string... but the problem may not be with you... looks like a bug (somewhere): if(!$Rollback{$Idx} and $needCleanup and Apache-can('push_handlers'){ ... } looks like calling Apache-can('push_handlers') is returning true even though you didn't activate PERL_STACKED_HANDLERS. I wonder if somehow can() isn't correctly capturing the build-time arguments (something to look into...) at any rate, the quickest way to fix this is to rebuild mod_perl with EVERYTHING=1 or PERL_STACKED_HANDLERS=1 (or don't set AutoCommit=0 in your connect string if you can't rebuild it now...) try these and see if they make a difference... HTH --Geoff -Original Message- From: Caroline Kliegl To: [EMAIL PROTECTED] Sent: 2/8/01 5:57 PM Subject: Newbie question to mod_perl and Apache::DBI Hi there, I am new to mod_perl and currently trying to make use of Apache::DBI. This is my enviroment: Suse Linux 6.3, Apache 1.3.12, mod_perl 1.24 and Oracle 8i. I am using HTML:Mason as well, as a templating system. Everything works. Apache::DBI is loaded via httpd.conf by Apache properly and I can make use of it in my scripts, when reading data. With my other script, updating data, I get the following error : Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 93. and the script does not get to connect the database and dies with a timeout. I think, I should add, that in both scripts, the one who is reading and the one who is updating, I open and close a $dbh (connect / disconnect). Anybody having an idea, what I am doing wrong ? Or where to find help ? Thanks for the help. Caro -- -- Caroline Kliegl Neustadt - Germany Sent through GMX FreeMail - http://www.gmx.net
Re: [Templates] Re: ANNOUNCE: OpenInteract Web Application Server
From: "Matt Sergeant" [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 03:01 PM On Thu, 8 Feb 2001, Perrin Harkins wrote: In short, Zope wants to be more, but currently is difficult to figure out. That could be just my Perl experience, but I understood more of OpenInteract in half an hour than I did with Zope after several tries over the last few years. Of course that may have a lot to do with your background. Zope isn't a tech tool like what we have coming out for mod_perl at the moment - its a much higher level. This is both good and bad, of course. Personally I think CMS' are very important, but then I would: http://axkit.com/products/axkit-cms/ :-) Zope has a very cool concept behind it, an object oriented web, where every resource behind every URL is an instantiation of a class. Every URL resource is both content and active component. The idea is that there is intelligence behind each piece of content, particular to that piece of content. A PDF object is not just a PDF file, it's also an interface to index the PDF, provide a summary of itself to an RSS file producer for example. Folders in the path to a piece of content can affect that content, so a particular piece of content can take on a different character depending upon where it is placed. It's more than just a CMS system, it's object orientation as applied to web resources. Whereas in OpenInteract, every piece of content is managed by a central component and one of its methods. Like /BasicPage/edit?id=2345. This is more like a procedural model than Zope's OO model. I'm still digging into OpenInteract, having just installed it a few nights ago. Still don't have much else to say about OI, though it looks pretty neato keen. Anyway, as for the complexity of Zope: If I understand the architecture correctly, is that Zope is the combination of what used to be three separate systems. I know one was persistence, the other was an ORB exposing object methods to web calls, not sure of the third. Maybe the templating system? But to me, it seems that they've been joined together in a Frankenstein kinda way. I mean you see things like "bobobase_modification_time" as the standard object property, and a jumble of other non-intuitively named properties, API calls. Not to mention that the DTML language doesn't resemble any other templating language I've seen, nor does it seem to have an easily graspable rhyme or reason for things. And, one of my pet peeves, they're trying to make it "XML compliant". Which to me means that it's looking more and more like the HTML I'm templating, and that's bad. I would like my template language to look distinct enough from what I'm templating, like Template Toolkit's [% %] default construct. So add on top of that a sparse patch of docs, and it's hard to wrap one's brain around. Now, if only I could get back to un-mothballing Iaijutsu/Iaido and do Zope the right way under perl... :) -- Leslie Michael Orchard [EMAIL PROTECTED] ICQ Home: 492905 / ICQ Work: 11082089
Re: ANNOUNCE: OpenInteract Web Application Server
* Stephane Bortzmeyer ([EMAIL PROTECTED]) [010208 08:28]: On Tuesday 6 February 2001, at 21 h 57, the keyboard of Chris Winters [EMAIL PROTECTED] wrote: I'm jazzed to announce the public release of OpenInteract, an extensible web application framework using mod_perl and the Template Toolkit as its core technologies. Anyone compared it to Zope http://www.zope.org/? I'm hesitating. Hi Stephane, Sorry I missed the conversation earlier. Rotten time for the power to go out on my mail server... Well, everyone who has worked on OpenInteract would certainly be flattered by such a comparison. I think a lot of people have been inspired (and even made a little jealous) by Zope and the attention its drawn to Python. Competition is a healthy thing. :-) To be honest, I don't know as much about Zope as I probably should. However, after tooling around with it for a bit there were a number of lessons I've drawn. * Make it easy to develop custom modules. Like Zope, OpenInteract makes it pretty simple to write a self-contained module that implements some functionality, package it all up and send it to someone else to install on their server. * Make installation easy. Zope has an easier time of this because it's more self-contained, but it's extremely important for people to install the server without going through painful contortions. My experience with many other software packages has been this -- if I can get something running quickly, it's worth my while to look into it further. * Be consistent. In Zope, everything is (or is supposed to be) an object. We try to do the same thing. This makes certain tasks (like object/task security or relating entirely disparate things) possible and even pretty easy. Once you've got the mindset it also opens up interesting possibilities :-) * Even awkward browser-based tools can work. Using TEXTAREA boxes to create templates and pages is clunky but amazingly handy. And for most people it's all they need. People who know what they're doing can import templates to the database in their sleep, but don't design everything around them. I'm sure there are more similiarities and differences. (Along with strengths and weaknesses, but we can do that on the openinteract-dev mailing list. :-) I'd be interested in what people who know more about Zope think are its strengths and weaknesses. Chris -- Chris Winters ([EMAIL PROTECTED]) Building enterprise-capable snack solutions since 1988.
[phil@fifi.org: Bug#85328: New method $req-allowed() for libapache-mod-perl]
[please maintain the CC's] I just received the following bug report on the Debian bug tracking system. The patch seems to apply to 1.25; is it a good idea? Dan /\ /\ | Daniel Jacobowitz|__|SCS Class of 2002 | | Debian GNU/Linux Developer__Carnegie Mellon University | | [EMAIL PROTECTED] | | [EMAIL PROTECTED] | \/ \/ Package: libapache-mod-perl Version: 1.21.2309-1 Severity: wishlist Tags: patch Here is enclosed a patch to libapache-mod-perl to expose a missing feature of the Apache API. This feature is needed to answer correctly to HTTP 1.1 requests. The patch is pretty much trivial and self-explanatory. Although it was done on the libapache-mod-perl from potato, it applies (with some offset) to the woody package. Please send upstream too... Phil. diff -ru ../x/libapache-mod-perl-1.21.2309/Apache/Apache.pm ./Apache/Apache.pm --- ../x/libapache-mod-perl-1.21.2309/Apache/Apache.pm Mon Mar 6 18:52:06 2000 +++ ./Apache/Apache.pm Thu Feb 8 18:04:16 2001 @@ -271,6 +271,18 @@ Returns true if the current request is the first internal request, returns false if the request is a sub-request or internal redirect. +=item $r-allowed($bitmask) + +Get or set the allowed methods bitmask. This allowed bitmask should be +set whenever a 405 (method not allowed) or 501 (method not implemented) +answer is returned. The bit corresponding to the method number should be +et. + + unless ($r-method_number == M_GET) { + $r-allowed($r-allowed | (1M_GET) | (1M_HEAD) | (1M_OPTIONS)); + return HTTP_METHOD_NOT_ALLOWED; + } + =back =head1 SUB REQUESTS diff -ru ../x/libapache-mod-perl-1.21.2309/src/modules/perl/Apache.xs ./src/modules/perl/Apache.xs --- ../x/libapache-mod-perl-1.21.2309/src/modules/perl/Apache.xs Sun Mar 5 16:54:10 2000 +++ ./src/modules/perl/Apache.xs Thu Feb 8 17:57:28 2001 @@ -1359,6 +1359,16 @@ OUTPUT: RETVAL +int +allowed(r, ...) +Apache r + +CODE: +get_set_IV(r-allowed); + +OUTPUT: +RETVAL + time_t request_time(r) Apache r
RE: Newbie question to mod_perl and Apache::DBI
Hi everybody, I have just removed RaiseError = 1, AutoCommit = 0 out of my DBI-connect. No more errors, ORA works! Next, I will recompile mod_perl with PERL_STACKED_HANDLERS = 1. Will come up with the result today. Thanks a lot, everybody! Caro -- -- Caroline Kliegl Neustadt - Germany Sent through GMX FreeMail - http://www.gmx.net
cvs commit: modperl-2.0/lib/Apache Build.pm
dougm 01/02/08 11:30:56 Modified:lib/Apache Build.pm Log: version has moved to ap_release.h Revision ChangesPath 1.30 +1 -1 modperl-2.0/lib/Apache/Build.pm Index: Build.pm === RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- Build.pm 2001/02/08 19:20:18 1.29 +++ Build.pm 2001/02/08 19:30:44 1.30 @@ -534,7 +534,7 @@ return $v; } -open my $fh, "$dir/httpd.h" or return undef; +open my $fh, "$dir/ap_release.h" or return undef; my $version; while($fh) {
cvs commit: modperl-2.0/src/modules/perl modperl_callback.c modperl_config.c modperl_filter.c modperl_gtop.c modperl_interp.c
dougm 01/02/08 11:42:31 Modified:src/modules/perl modperl_callback.c modperl_config.c modperl_filter.c modperl_gtop.c modperl_interp.c Log: adjust to recent apr name changes Revision ChangesPath 1.16 +2 -2 modperl-2.0/src/modules/perl/modperl_callback.c Index: modperl_callback.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_callback.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- modperl_callback.c2001/01/02 06:40:19 1.15 +++ modperl_callback.c2001/02/08 19:42:02 1.16 @@ -30,8 +30,8 @@ break; }; -apr_register_cleanup(p, (void*)handler, - modperl_handler_cleanup, apr_null_cleanup); +apr_pool_cleanup_register(p, (void*)handler, + modperl_handler_cleanup, apr_pool_cleanup_null); return handler; } 1.17 +4 -4 modperl-2.0/src/modules/perl/modperl_config.c Index: modperl_config.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_config.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- modperl_config.c 2001/01/18 18:44:00 1.16 +++ modperl_config.c 2001/02/08 19:42:05 1.17 @@ -6,13 +6,13 @@ modperl_handler_t *h = modperl_handler_new(p, (void*)name, MP_HANDLER_TYPE_CHAR); if (!*handlers) { -*handlers = apr_make_array(p, 1, sizeof(modperl_handler_t *)); +*handlers = apr_array_make(p, 1, sizeof(modperl_handler_t *)); MP_TRACE_d(MP_FUNC, "created handler stack\n"); } /* XXX parse_handler if Perl is running */ -*(modperl_handler_t **)apr_push_array(*handlers) = h; +*(modperl_handler_t **)apr_array_push(*handlers) = h; MP_TRACE_d(MP_FUNC, "pushed handler: %s\n", h-name); return NULL; @@ -50,7 +50,7 @@ } #define scfg_push_argv(arg) \ -*(const char **)apr_push_array(scfg-argv) = arg +*(const char **)apr_array_push(scfg-argv) = arg modperl_srv_config_t *modperl_srv_config_new(apr_pool_t *p) { @@ -61,7 +61,7 @@ MpSrvENABLED_On(scfg); /* mod_perl enabled by default */ MpSrvHOOKS_ALL_On(scfg); /* all hooks enabled by default */ -scfg-argv = apr_make_array(p, 2, sizeof(char *)); +scfg-argv = apr_array_make(p, 2, sizeof(char *)); scfg_push_argv((char *)ap_server_argv0); 1.4 +2 -2 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.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- modperl_filter.c 2001/01/20 21:19:08 1.3 +++ modperl_filter.c 2001/02/08 19:42:08 1.4 @@ -6,7 +6,7 @@ const char *buf, apr_ssize_t len) { apr_bucket_brigade *bb = apr_brigade_create(wb-pool); -apr_bucket *bucket = apr_bucket_create_transient(buf, len); +apr_bucket *bucket = apr_bucket_transient_create(buf, len); APR_BRIGADE_INSERT_TAIL(bb, bucket); return ap_pass_brigade(wb-filters, bb); } @@ -133,7 +133,7 @@ MP_INLINE static apr_status_t send_eos(ap_filter_t *f) { apr_bucket_brigade *bb = apr_brigade_create(f-r-pool); -apr_bucket *b = apr_bucket_create_eos(); +apr_bucket *b = apr_bucket_eos_create(); APR_BRIGADE_INSERT_TAIL(bb, b); return ap_pass_brigade(f-next, bb); } 1.5 +2 -2 modperl-2.0/src/modules/perl/modperl_gtop.c Index: modperl_gtop.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_gtop.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- modperl_gtop.c2000/08/14 03:10:45 1.4 +++ modperl_gtop.c2001/02/08 19:42:11 1.5 @@ -42,8 +42,8 @@ gtop-pid = getpid(); glibtop_init(); -apr_register_cleanup(p, NULL, - modperl_gtop_exit, apr_null_cleanup); +apr_pool_cleanup_register(p, NULL, + modperl_gtop_exit, apr_pool_cleanup_null); return gtop; } 1.17 +10 -9 modperl-2.0/src/modules/perl/modperl_interp.c Index: modperl_interp.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_interp.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- modperl_interp.c 2000/08/14 03:10:45 1.16 +++ modperl_interp.c 2001/02/08
sourcegarden (fwd)
-- Forwarded message -- Date: Thu, 1 Feb 2001 18:52:02 +0100 From: Emmanuel Pierre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: sourcegarden hi doug, I have a forbidden on this site pointed by perl.apache.org http://modperl.sourcegarden.org/ Cordialement, Emmanuel PIERRE Directeur Informatique et dveloppements _ APR-Job www.jobscout24.fr - Meet your future _ HumanLine France SAS 9, rue de Lens 92000 Nanterre tel: +33 1 47 81 02 41 fax: +33 1 46 49 05 26 [EMAIL PROTECTED]