Re: Fw: Re: [OT] ApacheCon BOF
I'd like to officially vote for Maude Pearl, the 1920's Bettie Paige-ish dominatrix-esque mod_perl mascot. Put a woman in black fishnets on a t-shirt with the word 'perl' on it and you won't be able to fit enough of them into the convention to meet the demand. :) -- Blue Langhttp://www.gator.net/~blue 2315 McMullan Circle, Raleigh, North Carolina, USA 919 835 1540
Re: make trouble
On Fri, 16 Feb 2001, Paul Lombardo wrote: Current working directory /export/home/apache/apache_1.3.6/src/modules/perl *** Error code 1 random guess: do you have write permission to the apache src directories? -- Blue Langhttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540
Re: Problems make'ing mod_perl-1.25 under HPUX 11.00
On Thu, 15 Feb 2001, Corey Hart wrote: cc: "/usr/include/dlfcn.h", line 17: error 1681: Must use +e or -Ae for long long in ANSI mode. *** Error exit code 1 try %prompt: CFLAGS='-Ae' perl Makefile.pl extra flags -- Blue Langhttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540
Re: Performance Tuning -- How do I determine the correct value forRLimitMEM?
On Wed, 14 Feb 2001, Franco Finstad wrote: The problem is that at server startup I immediately have a bunch of apache process that are already using swap, but I have 4GB of RAM. What's going on?? i'm not an engineer, but i've run several sites on what i assume it roughly the same equipment. It looks like the apache processes are not using all the available memory. you don't want _anything_ using all available memory. period. you don't want it coming over 60 or 70% total use, if possible. you must allow for spikes. From top, RES gets lower than SIZE, why? Should I adjust RLimitMEM, and if so, how to I determine the correct value? res is always lower than size. size is the amount of virtual mem allocated, res is the amount of physical ram in use. 393 oracle 1 580 374M 347M sleep 0:01 0.02% oracle this is nuts.. 350MB oracle proccesses? what's your SGA set at? how many instances are you running? you need to get the web servers off of this box, or figure out what is up with oracle. try running ps -el to see what's actually been swapped. (the 'F' flag will be set to 20, i think) -- Blue Lang, Unix Voodoo Priesthttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "A computer is a state machine. Threads are for people who can't program state machines." - Alan Cox, From Larry McVoy's quote page
Re: Repost: Anyone using virtual server for mod_perl hosts?
On Tue, 30 Jan 2001, Martin Langhoff wrote: There are companies (Verio at least) offering a 'virtual machine' running a virtualized OS. Verio is offering NetBSD and Solaris. They have a seriouly large iron where many virtual machines run, each virtual machine gets a share of CPU, HD and RAM resources, an at least an IP address. Woah.. I had never heard of this. Have you actually been on a box? I'm calling them to see if a demo is available. My guess would be that no matter how well they slice it, you're still sharing hardware, and if some guy is running 100 java servlets on the 'real' box that you're sharing, you're gonna have to fight for time. It's only an extra $60 or so to get a 'real' machine somewhere.. It depends, like everything else, on your needs. I'll let you know if they let me on a box. :) -- Blue Lang, Unix Voodoo Priesthttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "A computer is a state machine. Threads are for people who can't program state machines." - Alan Cox, From Larry McVoy's quote page
Re: slightly off-topic
On Tue, 30 Jan 2001, Wyman Eric Miles wrote: I hate to post this here because it's clearly the wrong forum, but I haven't been able to find adequate documentation elsewhere on suEXEC. http://httpd.apache.org/docs/suexec.html also, have you looked at cgiwrap? we used it when i worked for an ISP, and it worked out pretty well. -- Blue Lang, Unix Voodoo Priesthttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "A computer is a state machine. Threads are for people who can't program state machines." - Alan Cox, From Larry McVoy's quote page
Re: Debugging information sent to browser
On Fri, 12 Jan 2001, J. J. Horner wrote: Is something available to allow debugging information to be sent to a browser based on the UID of the user or IP address of the client? This sounds like a hack job for Carp.. I assume you mean uid of the cgi-wrapped user? I'm also toying with the idea of allowing each script to have a DEBUG=1 option enabled in a handler so that as long as it is the script owner, verified by uid, trying to set the DEBUG=1 parameter in a URL, the full debug information is sent to a browser Erm.. I'm not sure how you're going to verify the uid of a remote user, unless you mean mapping an IP to each cgi-wrapped UID. Either way, you've got a lot of moving targets. I might hijack the custom error page handler in Apache and send a default error page unless the remote user is somehow authenticated.. But I don't think remote uid or IP are gonna be reliable. -- Blue Lang, Unix Voodoo Priesthttp://www.gator.net/~blue 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "Hey angel, fly over and bless me.." - Jawbox, Savory
E-COMMERCE-SITE-DESIGN-HOWTO [was: Re: Specific limiting examples(was RE: Apache::SizeLimit for unshared RAM ???)]
On Thu, 11 Jan 2001, Rob Bloodgood wrote: RB Alright, then to you and the mod_perl community in general, since RB I never saw a worthwhile resolution to the thread "the edge of RB chaos," (Warning, sweeping generalizations for the sake of illustration below.) Hi Rob. Here's how you design an e-commerce site: Figure out how many users you want to service. Figure out how much juice it takes to service each user. Multiply. Add 50%. Build. You simply cannot come forward and say, "look, I've got this big-assed linux box, why is my site sucking?" We don't know, and it's neither our job nor our business to know. I saw many very, very good explanations on the 'edge of chaos' thread, a couple of which actually led me to make some tweaks on my own site. I'll try to recap it: You should never be anywhere near any fine line - the risk is just too great. Swap kills web sites. Queueing kills web sites. People looking for 'graceful degradation' in a production web architecture are looking for the wrong answer. Unix is not designed to degrade gracefully - Linux even less so. They are both designed to go balls-out as long as they have CPU and RAM space to do so, and that's what they do. The very, very best minds in production architecture out there will pine over how much accessing data from RAM sucks - they want all cache, all the time. There is not a linear falloff in performance from cache - RAM - disk, and you should not expect one from the applications which rely on those things. The httpd.conf file is extremely well documented. There is a program in $APACHE/bin called 'ab,' and will give you a decent baseline from which to provision for your site, and etc. If you have a specific problem, and ask a specific question, you will get, usually, an outstanding answer, with as much technicial depth as you care to probe for. If your question is "I'm really, really smart, why should I have to learn all of this stuff," well, I don't think this is the list for ya. Hope that helps, -- Blue Lang, Unix Voodoo Priest 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "I was born in a city of sharks and sailors!" - June of 44
Re: perl calendar application
On Sun, 7 Jan 2001 [EMAIL PROTECTED] wrote: I'm not going to get sucked into a language advocacy debate. But at least in my case, your comments are quite off base. Oh. D) (And I think this is the most important point of all.) There are good reasons for deciding on a language and sticking with it if your hope is to build something large. (Trying to build a garden with three different In that case, have a poke at http://prospector.sourceforge.net/ or http://www.gallanttech.com/resources/documentation/calendar/ Both very cute little mod_perl calendar apps, GPLed and in a mature code state. HTH - -- Blue Lang, Unix Voodoo Priest 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "I was born in a city of sharks and sailors!" - June of 44
Re: perl calendar application
On Sat, 6 Jan 2001 [EMAIL PROTECTED] wrote: On Fri, 5 Jan 2001, Jim Serio wrote: Why not just write one to suite your needs? If you want one I'd really like to hack on a freeware version, but it'd be nice to start with one that at least had some decent sheduling features so I could use Eh, I'm prepared to take my lynching, but I'd just like to remind everyone that there's nothing at all wrong with using PHP for things like this. You'll never be a worse person for learning something new, and the overheard required to manage a php+perl enabled apache is only minimally more than managing one or the other. IMHO, it's just lame to rewrite something for which there exists dozens of good apps just because of the language im which it is written. You might as well be arguing about GPL/BSD/Artistic at that point. Just my two cents, and all that. -- Blue Lang, Unix Voodoo Priest 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "I was born in a city of sharks and sailors!" - June of 44
[bordering on OT] Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl
On Thu, 4 Jan 2001, Roger Espel Llima wrote: JR Mayberry [EMAIL PROTECTED] wrote: Linux does serious injustice to mod_perl. Anyone who uses Linux knows how horrible it is on SMP, I think some tests showed it uses as litle as 25% of the second processor.. A simple benchmark with 'ab' shows the number of requests per second almost double when the concurrency is increased from 1 to 2. With a concurrency of 4, the number of requests per second increases to about 3.2 times the original, which is not bad at all considering that these are dynamic requests with DB queries. Eh, ab isn't really made as anything other than the most coarsely-grained of benchmarks. Concurrency testing is useless because it will measure the ratio of requests/second/processor, not the scalability of requests from single to multiple processors. IOW, you would see almost exactly that same increase in req/second on a single processor, most likely, unless you have a really slow machine. You'd have to tune your load to give you one req/second/processor and then go from there for it to mean anything. Of course the original poster's statement on linux using only 25% of a second CPU is a fuddy and false generalization, but that's a different story. :P -- Blue Lang, Unix Voodoo Priest 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 "I was born in a city of sharks and sailors!" - June of 44
Re: [OT] Will a cookie traverse ports in the same domain?
On Thu, 19 Oct 2000, martin langhoff wrote: hi, this HTTP protocol (definition and actual implementation) question is making me mad. Will (and should) a cookie be valid withing the same host/domain/subdirectory when changing PORT numbers? well.. by my reading of the RFC, and I might be wrong, but it looks like port should be ignored in cases where the hostname is used in the uri. http://www.cis.ohio-state.edu/htbin/rfc/rfc2109.html The terms request-host and request-URI refer to the values the client would send to the server as, respectively, the host (but not port) and abs_path portions of the absoluteURI (http_URL) of the HTTP request line. Note that request-host must be a FQHN. ... The user agent keeps separate track of state information that arrives via Set-Cookie response headers from each origin server (as distinguished by name or IP address and port). The user agent applies these defaults for optional attributes that are missing: Am I reading this incorrectly? -- Blue Lang, Unix Voodoo Priest 202 Ashe Ave, Apt 3, Raleigh, NC. 919 835 1540 ".. where a child can walk in and have their heart turn dark as a result of being on the Internet.." - George W Bush, for Joseph Conrad
[ot] Re: how to check for ssl.
On Fri, 4 Aug 2000 [EMAIL PROTECTED] wrote: There is more then one section that needs to be secure and its not quite as blank and white as folder /secure needs to be secure. for example. folder /ecom/checkout needs to be secure. folder /ecom/showcart doesn't it is really starting to sound like the site design itself could use a revamp. i believe the hopping back and forth between http/https is going to generate a lot of silly warning on the user's browser, as well. why not just set the up for https as soon as they need it and then leave them there? Scott On 4 Aug 2000, at 10:16, David Mitchell wrote: VirtualHost _default_:80 . Redirect /secure https://www.mysite.com/secure /VirtualHost -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
itanium builds
i just posted this question to new-httpd as well, so, no, you didn't get it twice. :) has anyone tried compiling mod_perl on the itanium? sourceforge has a buncha leenux boxen with them, and they are open to being played with. -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: Help needed building mod_perl
On Wed, 26 Jul 2000, Christian Jaeger wrote: Can't locate loadable object for module Apache::Log in @INC (@INC contains: /usr/lib/perl5/5.00503/ppc-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/ppc-linux /usr/lib/perl5/site_perl/5.005 . /usr/ /usr/lib/perl) at /usr/lib/perl5/site_perl/5.005/ppc-linux/mod_perl.pm line 65535 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.005/ppc-linux/AxKit.pm line 9. do ya have Apache::log installed? -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: Perl as DSO...whats wrong with it, specifically?
On Tue, 25 Jul 2000, Michael Nachbaur wrote: I'm working with IBM (sorry! Its not my choice!) to try to get mod_perl compiled into their custom version of Apache, and their techs want to know why I can't run mod_perl as a DSO. So, I need to know, whats specifically wrong with it? Like, what are the repurcussions of it? This is going to be run under a lot of load as well. is this the continuation of a thread, or a new question? this has come up a lot in the mailing list.. have you checked the archives? -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: why would I use mod_perl instead of Perl ?
On Thu, 20 Jul 2000, Vivek Khera wrote: o "hard"). Is there a compelling reason to switch to mod_perl ? It depends on how often your perl is called. if it is very infrequently, then it is not worht it, but if perl is used often, you will get a big win. never forget the infamous 'perl creep' effect on web sites. if you have one perl script, it will multiply until you are faced with a tribble-like plethora of perl scripts. best to code them with mod_perl early on so you're prepared for it in the future. :) -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: [OT] Anyone know a good perl mailing list?
On Wed, 19 Jul 2000, Jon Wyatt wrote: Is there *not* a list? ~sigh~ Could you not use deja or Remarq. deja just plain sucks. i am willing to set up a mailing list, if anyone is interested. i also have no patience with usenet. -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: Cannot 'make' apache or mod_perl
On Tue, 18 Jul 2000, Richard M. Lemanski wrote: I am stuck on make. Make is missing from my system. WHAT DO I DO NOW??? Step 1) Deep breath. Step 2) install make via rpm. it should be in your rpms directory on your install CD. good luck. -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: Apache/mod_perl
On Fri, 7 Jul 2000, Paul wrote: Stronghold would give you professional tech support, but if all you want is SSL, check out Ralph Engelschall's mod_ssl (www.modssl.org) based on the OpenSSL protocol (www.openssl.org). It works well with vanilla Apache, and it's *free* -- thanks again, Ralph. =o) Let me echo all of the above - I just installed mod_ssl'ed apache on linux and solaris with no problems, and it works great. Thanks Ralph, and everyone else involved. --- Pramod Sokke [EMAIL PROTECTED] wrote: Has anybody used stronghold? I'm considering using stronghold for SSL support since ours is a commercial application. Would mod_perl and all related modules work as fine with Stronghold as with plain Apache? Thanks, Pramod At 10:24 AM 7/7/00 -0400, Vivek Khera wrote: "PS" == Pramod Sokke [EMAIL PROTECTED] writes: PS We are running Netscape Enterprise server with cgis written in perl and C. PS I'm looking at moving over to Apache and start using mod_perl. How [ .. ] PS over to Apache/mod_perl going to be a simple plug-in or would it involve PS re-writing lots of stuff? The C stuff will probably not be worth rewriting, but that depends on what it does. The perl stuff will need to be "cleaned" if it is sloppy code. That is, if it is clean running in Perl under "-w" and "use strict" you're most likely going to have little difficulty with them. But what you should do is use the two-server performance enhancement (using mod_proxy and mod_rewrite) and have your legacy apps run on the front-end server, and then migrate your perl to the mod_perl backend one at a time. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.Khera Communications, Inc. Internet: [EMAIL PROTECTED] Rockville, MD +1-301-545-6996 GPG MIME spoken herehttp://www.khera.org/~vivek/ = "Seize the wildness of the moment, Feel the movement of the moon -- Swans fly with wings wide open to the sky." -- B-52's - Real friends are those whom, when you inconvenience them, it bothers you more than them. -- me. =o) - "There are trivial truths and there are great Truths. The opposite of a trival truth is obviously false. The opposite of a great Truth is also true." -- Neils Bohr - TEMPVS PECVDEM COLLARE EST - It's time to thin the herd. - [http://www.catfishforbreakfast.com/letgod.html] - __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: MaxChildRequests and modperl - issue
On Thu, 22 Jun 2000, Justin wrote: Hi Justin, I set MaxChildRequests to 500, to effectively clean house every now and again, as is recommended.. I have about 12 backend modperl servers, and that handles the load fine. (about 250 front ends). What is MaxClients set to? Also, do you have keepalives on, and if so, what is the timeout on them set to? Also, what version of Apache are you using? -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: PerlAuthenHandler and browsers
On Wed, 21 Jun 2000, J. J. Horner wrote: For that reason, my handler can't rely on browsers to behave during the Authentication phase. I am going to have to find a way to force a user to input his password into the browser not using standard HTTP response codes. Could you elaborate on that a little more, please? What is a reliable way to return a CGI script, and doing something with that response, before returning the page requested by the user? JJ -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: Exec Format Error
On Tue, 20 Jun 2000, Ravi Pandey wrote: I am in process of moving all my CGI scripts to mod-perl. I get the following error from a CGI script when executed in mod-perl environment. I am using Apache 1.3.12 and mod-perl 1.24. /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2 /usr/lib/dld.sl: Exec format error When you say 'moving,' do you perhaps mean 'moving' to a new platform, or a new version of perl? [Tue Jun 20 15:20:30 2000] [error] install_driver(Oracle) failed: Can't load '/opt/perl5/lib/site_perl/5.005/PA-RISC2.0/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.00503/PA-RISC2.0/DynaLoader.pm line 169. long story short - it doesn't think your shared lib is a shared lib, and gives up. -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
RE: Apache children hanging
On Mon, 12 Jun 2000, Ken Williams wrote: [EMAIL PROTECTED] (Blue) wrote: there is a procedure in the mod_peril SUPPORT document that works if you Uh-oh - is mod_peril a Microsoft product or something? =) Perhaps the DSO version of mod_perl should be called mod_peril. sorry, it's a joke wrt mod_perl + perl 5.6. :) ------ Ken Williams Last Bastion of Euclidity [EMAIL PROTECTED]The Math Forum -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: problem with apache-1.3.12, perl-5.6, and mod-perl-1.22 DSO
On Fri, 9 Jun 2000, Jeff Garner wrote: hi folks, Hi Jeff, i'm having what i'm sure is a simple problem. when i build mod_perl for use with dso, apache will start and then end. a truss doesn't indicate any easily identified problems. are you tailing your error log? that will tell you why it is exiting. i have been having similar problems, with apache seg faulting on every request, etc. bad mojo. :) good luck, -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
Re: stack dump
On Fri, 9 Jun 2000, Doug MacEachern wrote: On Thu, 8 Jun 2000, Blue wrote: Apache 1.3.12, mod_perl 1.24 (USE_EVERYTHING=1), perl 5.6, linux 2.2.12 assuming you built mod_perl as a dso (apxs?), Makefile.PL should have warned you to choose one of: did all that.. compiled perl with large files, rebuilt mod_perl and apache, and it got even worse - every file i served crashed apache. -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
stack dump
Apache 1.3.12, mod_perl 1.24 (USE_EVERYTHING=1), perl 5.6, linux 2.2.12 #0 0x4030d130 in XS_Apache_content_type () from /usr/local/apache/libexec/libperl.so #1 0x4030d104 in XS_Apache_content_type () from /usr/local/apache/libexec/libperl.so #2 0x806b9e4 in run_method () #3 0x806bae8 in ap_header_parse () #4 0x807f049 in process_request_internal () #5 0x807f3fc in ap_process_request () #6 0x8076c9e in child_main () #7 0x8076e2c in make_child () #8 0x8076f89 in startup_children () #9 0x80775b6 in standalone_main () #10 0x8077d43 in main () #11 0x4007f9cb in __libc_start_main (main=0x80779fc main, argc=2, argv=0xbb74, init=0x804ebf4 _init, fini=0x80ac03c _fini, rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbb6c) at ../sysdeps/generic/libc-start.c:92 happens every time i try to load the web page. if there is any more info i can give, please let me know. thanks, -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015