Re: mod-perl, modules and initializations
I'm trying to populate select boxes(or other input types)for my HTML pages. An example would be a drop down list of states and/or provinces. A large number of these are populated from lookup tables in the dba and are relatively static. I understand there is no form data at that time, however, when the server is up and running (and I am accessing it as a client) is when I am having the problem of extracting the data. Hope this is clearer Dave Perrin Harkins wrote: > > > By load stage I mean BEGIN blocks, anonymous > > subroutines in packages loaded at startup, or even named > > subroutines called from startup.pl > > All of those things happen during server startup, before any request has > been submitted. There is no form data at that time. > > Maybe if you could explain what you're trying to accomplish by calling > CGI methods during initialization, someone could suggest an alternative > way to do it. > > - Perrin -- Dave Morgan [EMAIL PROTECTED] 403 399 2442
Re: mod-perl, modules and initializations
Hi All, Thanks to Perrin's help I have been able to isolate all my current problems down to whenever I make a call to CGI::scrolling_list(...); in a piece of code that is executed in the load stage of mod_perl I am unable to extract any values from my forms using CGI::param("field_name "); in my cgi scripts. By load stage I mean BEGIN blocks, anonymous subroutines in packages loaded at startup, or even named subroutines called from startup.pl If I remove the call from the load stage I can issue the scrolling_list call from any cgi (or packaged sub called from a script) and everything works fine. Versions: perl 5.6.1, mod-perl 1.26, CGI 2.78 Any ideas? other than go bug the CGI.pm people, I'm already on my way :) Perrin Harkins wrote: snip .. > It looks to me like you are confused about "our" and BEGIN. If you change > the "our" to a "use vars" I think it will fix your problems. This is not > mod_perl-specific. snip... I was able to get BEGIN blocks to work with "our", after I changed everything to the "use vars" syntax, and back. No idea what changed, don't really care, just happy :) Both the mod_perl docs and perl 5.6.1 docs are pushing the use of "our" Dave -- Dave Morgan [EMAIL PROTECTED] 403 399 2442 I cut perl the way I cut C, badly.
mod-perl, modules and initializations
Hi All, My environment is Apache, mod-perl, Apache::DBI, oracle backend, everything works fine. The problem is always MY code :) I'm trying to figure out the correct/efficient way to initialize constants in a module. What I need to do is initialize various constants when Apache is started, whether hard coded, read in from a file or extracted from a database. I have managed to thoroughly confuse myself and have the following questions. What is the difference between how a BEGIN block and an anonymous block in a module loaded into mod_perl? At different times I understand, though I probably don't understand the implications of that in a mod-perl environment. The reason I ask is: as a begin block my initializations do not take effect yet as an anonymous block they do. Or is this based in my lack of understanding of perl? Are anonymous blocks in a module only read and executed when mod-perl first loads them, ie once? Another problem is when I try to build a SELECT HTML element with a call to the CGI module. In my anonymous block all of a sudden the HTML form variables are no longer available with the CGI::param call. Yet I can build the select element later in the cgi scripts using the same variables without a problem. Huh? Did I mention I'm confused and my head hurts :} In a simpler line, should I have a use DBI() in startup.pl as well as the PerlModule Apache::DBI in httpd.conf? I will summarize and post responses. TIA Dave Code snippets # from httpd.conf AddModule mod_perl.c PerlSetEnv ORACLE_HOME /opt/oracle PerlSetEnv DSOURCE dbi:Oracle:IMG PerlSetEnv DATACLERK public_tst PerlSetEnv PSSWD opentoall PerlModule Apache::Registry PerlModule Apache::DBI PerlWarn On PerlTaintCheck On PerlRequire /opt/apache/conf/startup.pl # #all of startup.pl use CGI (); use COMMON (); use WSERVICES (); Apache::DBI->connect_on_init($ENV{"DSOURCE"}, $ENV{"DATACLERK"}, $ENV{"PSSWD"}, { PrintError => 1, #warn() on errors RaiseError => 0, # don't die on error AutoCommit => 1, # commit executes immediately } ); ### # WSERVICES.pm package WSERVICES; require Exporter; use strict; use COMMON; # wrapper for basic file and db manipulation use DBD::Oracle qw(:ora_types); use CGI qw/:html :cgi :form/; our(@DB_NAMES $FILE_NAME $NUMPERPAGE $GEOCODED_LIST $LOCATION); our @ISA= qw(Exporter); our @EXPORT = qw(@DB_NAMES $FILE_NAME $NUMPERPAGE, $GEOCODED_LIST $LOCATION example_sub); # As a begin block none of the following initializations occur # all subs in COMMON.pm { $NUMPERPAGE = 12; $FILE_NAME = &Readfile('file.txt'); #see COMMON.pm &Create_DB_Connection; @DB_NAMES = @{&Get_Select_List()}; &Destroy_DB_Connection; #following code destroys variables passed through CGI param sub # yet exact same call will work if called in cgi script or subroutine $GEOCODED_LIST = scrolling_list(-name=>'CITY_LOC', -default=>$LOCATION, -values=>\@DB_NAMES, -size=> 1); } sub examplesub{return 43;} 1; ## -- Dave Morgan [EMAIL PROTECTED] 403 399 2442 "perl Makefile.PL; make install;" is just way too convenient
Re: Fast template system
On Sun, 30 Dec 2001, Ryan Thompson wrote: > Any thoughts? There's quite a number of HTML template systems on CPAN which have been under development for years and are well supported. Use one of those and save yourself the hassle. I like Mason (but then again, I'm one of the developers ;) but also check out Embperl, HTML::Template, Apache::ASP, and Template Toolkit. Those are, IMHO, the major players in the text templating space, and are the most widely used. -dave
Re: Fast template system
Ryan Thompson <[EMAIL PROTECTED]> writes: > Any thoughts? You really have to ask?!!! * _Dave thinks: Template Toolit. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: irc
Thomas Eibner <[EMAIL PROTECTED]> writes: > On Sat, Dec 22, 2001 at 07:21:00AM -0800, brian moseley wrote: > > > > i can't believe i never thought to ask this in 4 years, but: > > do any of you hang out on irc anywhere in particular? > > shouldn't there be a #mod_perl somewhere, if there isn't > > already? > > We used to hang on #Take23 on Openprojects for a while, but it kinda > died out.. > > You have any suggestions? #london.pm on irc.rhizomatic.net Very warm and fuzzy. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: What phase am I in?
On 21 Dec 2001, Vivek Khera wrote: > >>>>> "DR" == Dave Rolsky <[EMAIL PROTECTED]> writes: > > >> It's called current_callback(). > > DR> Grr, its not documented when I do 'perldoc Apache'. > > There's a lot of stuff not so documented. The mod_perl book has much > more complete docs. Which is nice for ORA and the books authors, but fairly irritating for folks like myself. Hell, I have the book but I don't always have it with me. I'd submit patches for this but I'm figuring 1.2x will be out of date soon enough with 2.0 in the works. Hopefully that will be better documented and if not, I can always help out. -dave
Re: What phase am I in?
On Thu, 20 Dec 2001, Perrin Harkins wrote: > > I've looked through the mod_perl docs and guide and am unable to find > > something that I can use in a handler to figure out what the current phase > > is. This seems like such an obvious thing that I can't believe it doesn't > > exist. Therefore I will conclude that I'm completely blind. Anyone care > > to open my eyes? > > http://mathforum.org/epigone/modperl/liphortwa/Pine.LNX.4.10.9909211217510.5 > [EMAIL PROTECTED] > > It's called current_callback(). Grr, its not documented when I do 'perldoc Apache'. -dave /*== www.urth.org We await the New Sun ==*/
What phase am I in?
I've looked through the mod_perl docs and guide and am unable to find something that I can use in a handler to figure out what the current phase is. This seems like such an obvious thing that I can't believe it doesn't exist. Therefore I will conclude that I'm completely blind. Anyone care to open my eyes? -dave /*== www.urth.org We await the New Sun ==*/
Re: mod_perl site challenge: proposal to use ASF site design
On Mon, 17 Dec 2001, David Harris wrote: > (a) See if others also think that the three alternatives for a mod_perl site > are not very desirable. If you agree, please speak up and say that you > agree. I thought Thomas' was fine but I think I actually prefer the ASF one. > (b) See if others also think that using the ASF generic site design (even > though it's not "cool and distinctive") would be a good idea. If you agree, > please speak up and say that you agree. I agree. > Also, lets keep in mind something that Stas pointed out to me: most anything > is a step up from our existing site design. So, if we go with one of the > three existing options it's still a step up. Damn straight. -dave /*== www.urth.org We await the New Sun ==*/
Re: mod_perl vs. C for high performance Apache modules
Toni Andjelkovic <[EMAIL PROTECTED]> writes: > > 2.x linux kernels too. > > that was an issue with 2.0.x, since 2.2.x > you can do it with That was what I meant...decimal point in the wrong place... :-) -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
RE: mod_perl vs. C for high performance Apache modules
On Fri, 14 Dec 2001, Thomas Moore wrote: > I spoke to the technical lead at Yahoo who said mod_perl will not scale as > well as c++ when you get to their level of traffic, but for a large > ecommerce site mod_perl is fine. Well, Yahoo is _extremely_ atypical. And they do a lot of stuff that involves custom coded Apache modules (in C, I think, not C++, though maybe both). Amazon reportedly uses a similar approach. Jeremy Zawodny is a frequent contributor on the MySQL list and a Perl guy so if you're really curious you could probably email him a polite question for more details. He's a nice guy. -dave /*== www.urth.org We await the New Sun ==*/
Re: Comparison of different caching schemes
On Fri, 14 Dec 2001, Perrin Harkins wrote: > The thing you were missing is that on an OS with an aggressively caching > filesystem (like Linux), frequently read files will end up cached in RAM > anyway. The kernel can usually do a better job of managing an efficient > cache than your program can. Plus for some reason IPC overhead seems to seriously degrade as the size of the overall shared memory segment increases. I'm not sure why this is but I think the docs for IPC::Shareable mention this. Maybe for _very_ small amounts of data, shared memory might still be a win. -dave /*== www.urth.org We await the New Sun ==*/
Re: mod_perl vs. C for high performance Apache modules
"Perrin Harkins" <[EMAIL PROTECTED]> writes: > > I spoke to the technical lead at Yahoo who said mod_perl will not scale as > > well as c++ when you get to their level of traffic, but for a large > > ecommerce site mod_perl is fine. > > According to something I once read by David Filo, Yahoo also had to tweak > the FreeBSD code because they had trouble scaling *TCP/IP*! I would say > their experience is not typical. Increasing the number of file handles, I'd wager. That was an issue on 2.x linux kernels too. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: mod_perl vs. C for high performance Apache modules
Jeff Yoak <[EMAIL PROTECTED]> writes: > Hi All, > > Recently I did a substantial project for a client in using > mod_perl. That client is happy with the work, but an > investor with their company is very angry because of what a > horrible choice mod_perl is for high-load web applications > compared with Apache modules and even CGI programs, written > in C. If anyone on this list could forward any resources > that do comparisons along these lines, or even analysis of > mod_perl's handling of high-load web traffic, I would be very > grateful. Kill the investors. Really. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: load balancing on apache
"Perrin Harkins" <[EMAIL PROTECTED]> writes: > > I am planning to host an application and its size is going to be big one , > > so expect the concurrent number of connection s to be around 2200. > > To combat the same , want to perform load sharing on 3-4 servers. > > If you really expect 2200 concurrent connections, you should buy dedicated > load-balancing hardware like Big/IP or Cisco LocalDirector. Aside from the fact I _really_ wouldn't expect that manny actual, live TCP connections at one time...that many users, maybe... I _really_ hate so-called dedicated boxes. They're closed, nasty, inflexible and often don't work in _your_ situation. Doing smart session-based redirection can be hard with these boxes. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: load balancing on apache
"Hemant Singh" <[EMAIL PROTECTED]> writes: > Hi All > > > > I am planning to host an application and its size is going to be big one , so > expect the concurrent number of connection s to be around 2200.To combat the > same , want to perform load sharing on 3-4 servers.So the ide is to put one > machine on external IP and this machine , after receiving the requests would > forward them to any of the other three machines having the application > deployed and running on the same environment.Pls suggest how can i achieve > this on apache. Depends how much session persistence you're keeping on the middle tier. You can do things smarter than pure round robin with a few mod_rewrite rules on the front. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: ASP.NET Linux equivalent?
Medi Montaseri <[EMAIL PROTECTED]> writes: > You can also use the tie() feature of Perl to abstract read/write to > database. In fact you can write a pretty flexible module to figure out > many things, such as table name, col name, etc... I'm a HUGE fan of Tie::DBI for dealing with little lookup tables. Works especially well with GGI.pm's widgets for creating drop downs and radio lists. Whatever happened to the widget subproject that span out of the modperl list a few months ago? -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: ASP.NET Linux equivalent?
Kee Hinckley <[EMAIL PROTECTED]> writes: > At 6:55 PM -0500 12/3/01, Vsevolod Ilyushchenko wrote: > >Hi, > > > >Is anyone aware of a Linux product equivalent to ASP.NET from MS? Its most > >attractive feature is the GUI construction of Web forms and the automatic > >connection of their fields to a database. Since I am getting sick and tired > >of writing over and over the code to process user input and store it in the > >database, a similar product would be a huge help. (PHPLens does something > > The combo of Embperl and DBIx::Recordset will come pretty close to > automating the fetch and store of database records into a form > (perhaps four or five lines of embedded Perl for each). Designing > the form is not there though. I did an auto-form generator-from-schema thing once. Too many exceptions and meta-data involved to actually make it really worthwhile. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: [modperl site design challenge] please vote
Stas Bekman <[EMAIL PROTECTED]> writes: > Thanks to Eric Cholet for providing this voting script and hosting it. HTTP/1.1 200 OK Date: Tue, 04 Dec 2001 09:39:28 GMT Server: Apache/1.3.23-dev (Unix) PHP/4.0.6 mod_perl/1.26_01-dev Connection: close Content-Type: text/html; charset=iso-8859-1 Expires: Tue, 04 Dec 2001 09:39:28 GMT Double header issue? -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: [OT] Re: Vhosts + mod_perl
--82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 02, 2001 at 04:19:28PM -, Jonathan M. Hollin wrote: > :: Everytime I make a new document root for a different website, say the > :: subdomain loco on trains.ath.cx, do I need to update the DNS? > :: > :: For foo.trains.ath.cx and bar.trains.ath.cx do I need to make new DNS > :: entries for foo and bar subdomains? Surely I don't? Because browsers > :: will ask for it, and get directed to trains.ath.cx, and my apache will > :: take are of the rest from the HTTP 1.1 Host: field? >=20 > If you are adding sub-domains then, of course, you need to update your DN= S. > Without a corresponding DNS entry, how could "foo.trains.ath.cx" ever be > resolved? > Actually, it's possible to create a wildcard domain so that *.trains.ath.cx will resolve identically. =20 If you choose to do this you no longer have to update DNS for new hosts but run the risk of people getting inappropriate errors when using a hostname that shouldn't exist. Instead of getting 'no such host' they'll end up with a valid IP and will hit your web server which then has to decide how to handle it. As an example, your zone file can look just as follows - I've split www and vhosts onto separate IP addresses but this isn't required, as you can mix named and wildcard entries fairly freely. If you use tools such as dnslint you may need to append a comment on the end of your wildcard line to indicate to dnslint that the wildcard is intentional. (header fluff) ;; 'real' host www IN A 123.123.123.1 vhost IN A 123.123.123.2 ftp CNAME www.trains.ath.cx. ;; everything else. * CNAME vhost.trains.ath.cx. (footer fluff) Dave --=20 - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8C5mSDdRR1de8pV0RAuEdAJ0bbe0lT0ydp1dVyMNLOKhTLYiK3QCgtEdx IJx5OkyMuKKWDjOYq4UMKiM= =DBLt -END PGP SIGNATURE- --82I3+IH0IqGh5yIs--
Re: [OT] log analyzing programs
Bill Moseley <[EMAIL PROTECTED]> writes: > Any suggestions for favorite ones? wusage seems to require a lot of > resources -- maybe that's not unusual? It runs once a week. Here's a > about six days worth of requests. Doesn't see like that many. analog - but _do_ read the words that go with it, know what you're analysing. i have a stats redux note on my site too. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: [OT] A couple of dubious network problems...
Mark Maunder <[EMAIL PROTECTED]> writes: > Dave Hodgkinson wrote: > > > 1. On a RH6.0 (yes, ick) box without persistent DBI connections, the > > server side of the DBD::mysql connection was successfully closed > > (netstat shows nothing), but the client side shows a TIME_WAIT state, > > which hangs around for 30 seconds or so before > > disappearing. Obviously, using Apache::DBI makes this go away, but > > it's disturbing nonetheless. Does this ring any bells? > > Dunno about number 2, but 1 is perfectly normal. TIME_WAIT is a condition > the OS puts a closed socket into to prevent another app from using the > socket, just in case the peer host has any more packets to send to that > port. The host that closes the socket will put the old socket into > TIME_WAIT. BSD IP stack implementations keep sockets in time_wait for > about 30 seconds, others go up to 2 minutes. The duration is called 2MSL > (2 * max_segment_lifetime). Don't worry about it and dont mess with it > (unless you're consuming 64000+ sockets per 30 seconds, in which case you > have other problems to deal with ;-) Does SO_REUSEADDR make this go away? -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
[OT] A couple of dubious network problems...
Chaps, Can I pick the wisdom of the hive here please? I witnessed a couple of mod_perl related network problems yesterday which are kind of mod_perl related: 1. On a RH6.0 (yes, ick) box without persistent DBI connections, the server side of the DBD::mysql connection was successfully closed (netstat shows nothing), but the client side shows a TIME_WAIT state, which hangs around for 30 seconds or so before disappearing. Obviously, using Apache::DBI makes this go away, but it's disturbing nonetheless. Does this ring any bells? 2. On both RH6 (in the office) and Solaris (at the co-lo) with a middling-recent Apache and mod_perl, some pages were getting truncated when sent to the browser. This happens on a variety of browsers and a variety of pages. Once it happens on a particular combination of page and browser it's reproducible. Now, the page is definitely being completely sent to $r-print(), but it's not making it to the browser (or at least that's what tcpdump shows). Again, any bells ringing? Thanks, Dave
Re: [OT] Re: Seeking Legal help
On Thu, 22 Nov 2001, Rodent of Unusual Size wrote: > Um, no, it's spelt "waylaid". :-) As you and everybody else has pointed out (mostly in private email). I was so eager and excited to give Matt some shit that I somehow incorporated part of his mistake. Oh well, that's what I get for teasing. -dave /*== www.urth.org We await the New Sun ==*/
Re: [OT] Re: Seeking Legal help
On Wed, 21 Nov 2001, Matt Sergeant wrote: > Maybe they weighlayed your invoice. Or don't have the money just yet but ^^^??? You folks may have invented the language but its still spelled waylayed! > Step three: Once you've given them 90 days after date of invoice, get a > solicitor (not a barrister) to draft a threatening letter. It'll cost you > about $100. I'm afraid you'll have to give them another 30 days at this > point. We just have lawyers. There's no distinction between solicitors and barristers. Actually, I'd start by seeing a lawyer since you want this as expedited as possible. A lawyer might tell you that you only have to wait 30 days after the invoice (or something like that). You never know. It won't cost all that much to simply make an appointment and talk to a lawyer for an hour or so (probably $100-200) and it'll be probably be worth it to talk to something with contract law experience in your state. -dave /*== www.urth.org We await the New Sun ==*/
Re: [DBI] DBI->install_driver fails
Ged Haywood <[EMAIL PROTECTED]> writes: > Hi there, > > On Sat, 17 Nov 2001, Dau Hee wrote: > > [snip,snip] > > I also use up2date to upgraded my glibc to 2.2.4 from 2.2.2. > > Why? If it ain't broke, don't mend it. Because RedHat will have fixed stuff. For some values of fixed. I normally roll my own mod_perl Apaches, but I recently put RH7.1 on my desktop and so far, the out-of-the box install and complete up2date has been sweet. My recommendation to our friend would be to make sure ALL the RPMs are up to date - perl included. It might be a large update, but at least everything will be in step. When are we going for that beer, Ged? ;-) -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: Doing Authorization using mod_perl from a programmers perspective
"Jonathan E. Paton" <[EMAIL PROTECTED]> writes: > Please don't flame me, I'll go away... honest :P I wonder if you're trying to do too much too soon? If you're concerned about hosting then *gulp* PHP might server you better. I rent a dedicated server because I want absolute control and the ability to run my own handler. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
RE: AxKit Shutdown
> As I've said to everyone of these offers: mirroring isn't the problem right > now - the web site is up at http://217.158.50.178/, it just doesn't have the > domain name. We don't really get the sort of traffic that requires a mirror > for bandwidth problems, and I've yet to get a complaint that it's down. > Not that big a deal, but I'd have complained [1] long ago if the MX records were working. dave [1] though, of course, I'd have used the word 'mention'
Re: [OT] pdf creation
> Does anyone have success/horror stories generating pdf files under > mod_perl? > Recommendations? > No horror stories except trying to go about it the wrong way a few times and ended up with multi-hundred megabyte TIFF files as intermediate steps. I ended up using htmldoc (http://www.easysw.com) which does html->pdf in a breeze (as well as html->ps). Handy if you want to pdfify something that you've already rendered into HTML for online display. Dave -- - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
Re: Excellent article on Apache/mod_perl at eToys
Nathan Torkington <[EMAIL PROTECTED]> writes: > Leon Brocard writes: > > > Perhaps a port of JMS is in order. > > > > Interestingly, I've been thinking along the same lines. Spread > > (http://www.spread.org/) can be used for the publish/subscribe > > messaging domain but queueing seems to be important too. Straying a > > bit offtopic perhaps, but I wonder what would be involved... > > I like the idea of P2EE. If the goal is to provide the same features > as Java, why not just implement the Java messaging, transactions, > etc. APIs in Perl? That is, endeavour to have the same classes and > methods as Java, to the greatest extent possible. That'll also make > it possible for Java programmers to become Perl programmers, bwahaha. That's P5EE Is there a nice graphicy map of what actually constitutes J2EE onto which we can overlay the relevant perl bitz? -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: Excellent article on Apache/mod_perl at eToys
On Tue, 23 Oct 2001, Nathan Torkington wrote: > Of course, we couldn't call it a Java bean. They'd have to be Camel > droppings. :-) Perl Jewels (Joules?) -dave /*== www.urth.org We await the New Sun ==*/
Re: Mod_perl component based architecture
On Wed, 17 Oct 2001, Gunther Birznieks wrote: > I would venture to say that some of the mod_perl-only toolkits have some > cases of being better designed than ours, but they are mostly mod_perl > only. In fact, I don't know if I know any other toolkits than ours that > are not mod_perl only of the ones that were advertised on the list. I don't know if Mason counts as a full toolkit (its not really an app server) but you can certainly run Mason as a vanilla CGI, and if you can do that I'm sure you can run it in FastCGI and whatnot. -dave /*== www.urth.org We await the New Sun ==*/
Re: Mod_perl component based architecture
Gargi Bodke <[EMAIL PROTECTED]> writes: > hi > i have been asked to suggest an architecture to seperate the business > logic from the html. > how is this done in modperl? i guess by using functions for the business > logic. > is there any other way? By using one of the many available templaters, my preference being the Template Toolkit. you can fake up a pretty decent Model-View-Controller patterm from that. > > also does modperl support object oriented programming? As much as perl does. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: Programmer Wanted
"BuildReferrals.com" <[EMAIL PROTECTED]> writes: >Hello, You need a decent client side programmer too...all the stupid popups, scripting and crap killed my netscape. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: ANN/RFC: Apache::Session::Generate variants
On Thu, 11 Oct 2001, Jeffrey W. Baker wrote: > Well, you guys are touchy lot! My releases are no less frequent than > releases of DBI or even mod_perl. So just chill out, I sometimes have > other things on my mind. I don't know about touchy so much as frustrated. Apache::Session is very widely used but it doesn't feel well supported. Comparing it to DBI or mod_perl seems a bit silly. It is not as widely used as either and is far less complex. My big concern is that there is a fatal error in Apache::Session::Flex that makes it completely unusable. You've known about this for at least 9-12 months but you haven't bothered to release a simple bugfix release for it. Its a 3-4 line change! The only way around it is to constantly patch my local copies or use a hack work-around code which subclasses Flex to fix the populate method. This is stupid. I don't really want to reinvent the wheel or tell people not to use Apache::Session, but its getter harder to avoid either. If you have other things on your mind, that's fine. That's why I suggested you should consider letting someone else maintain it. I know I'm not the only person frustrated by the current state of affairs. -dave /*== www.urth.org We await the New Sun ==*/
Re: Off-topic - Apache Config - Load crises
Rafiq Ismail <[EMAIL PROTECTED]> writes: >iv) Something else? Two tier Apache. Increase shareability. Read the guide. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: [VERY OT] What hourly rate to charge for programming?
Chris Devers <[EMAIL PROTECTED]> writes: > Ahh, you have Budweiser in Australia too, then? ;) Worse: Fosters. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: [VERY OT] What hourly rate to charge for programming?
Gunther Birznieks <[EMAIL PROTECTED]> writes: > America is richer than Australia. Yeah, but the food's better in Oz. Still, the beer sucks in both ;-) -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com All the Purple Family Tree news http://www.slashrock.com Interim Technical Director, Web Architecture Consultant for hire
Re: ANN/RFC: Apache::Session::Generate variants
On Thu, 11 Oct 2001, Tatsuhiko Miyagawa wrote: > Wow, I did almost half a year ago :-) > http://aspn.activestate.com/ASPN/Mail/Message/modperl/532294 Yeah, and I think I sent one a year ago, at least. Jeff, if you're still maintaining this package it'd be nice to put out a new release. If not, it'd be good to give it to someone else. Hell, I'll volunteer if no one more interested comes along. I don't have any big plans for it but I can at least integrate patches and such. Apache::Session is in use in a lot of places and it would be good to have an active maintainer. -dave /*== www.urth.org We await the New Sun ==*/
Re: Apache::Cookie bug with value => undef
On Mon, 8 Oct 2001, Ged Haywood wrote: > Have you tried doing > > Apache::Cookie->new( $r, >-name => 'foo', >-value => { wont_break => '1', not_at_all_borked => '' } )->bake; > > instead? I can hardly control the order in which values are written out to the cookie via a hash! Unless instead of an anonymous hash, I passed in a reference to a tied hash or something. > > I tried to fix it but I am a C gimp and don't know WTF I am doing. > > Please don't modify the function ap_getword() in src/main/util.c as > that will probably break all sorts of things. No, I was trying to fix it in apache_cookie.c It could simply check if the next char was '&' before calling ap_getword. > I'd leave this new function in the same file (util.c) for a quick hack > but if you leave it like that then ten to one you'll forget it's in > there and have to do it all over again next time you upgrade Apache. > > It's still better to find a way around the problem than to do > something nasty like this. I was trying to patch Apache::Cookie, not Apache. Apache is doing what it says, and is therefore correct. Its simply not desirable to use that function in that particular place in the apache_cookie.c file. -dave /*== www.urth.org We await the New Sun ==*/
Apache::Cookie bug with value => undef
If I do this: Apache::Cookie->new( $r, -name => 'foo', -value => { will_break => '', completely_borked => 1 } )->bake; and then I later try to read the cookie in and do this: my %c = Apache::Cookie->fetch; my %cookie = $c{foo}->value; print $cookie{will_break}; It will print 'completely_borked'! The cookie's value looks something like this when sent to the browser: will_break&&completely_borked&1 The problem is here in apache_cookie.c while (*pair && (val = ap_getword(r->pool, &pair, '&'))) { ap_unescape_url((char *)val); ApacheCookieAdd(c, val); } Here's a line from the ap_getword docs. Copies everything from line up to stop to a new string. line is updated to point to the first character after stop. Multiple occurrences of stop are skipped if present. It's that multiple occurrences are skipped bit that's causing the trouble. I tried to fix it but I am a C gimp and don't know WTF I am doing. -dave /*== www.urth.org We await the New Sun ==*/
Location directive on a network drive
I'm attempting to run some code off a mounted drive on RH Linux 7.1 (Apache 1.3.2, modperl-1.26), but for some reason, my Location directive is ignored (code is executed from the local drive instead) I'm pointing to /mnt/qa_load_www/cgi-shl, but code is instead executed from /apache/cgi-shl. The mounted drive is available for read, etc (if I su nobody, I can see it, etc). I've read http://perl.apache.org/guide/config.html#Alias_Configurations several times, and everything looks correct... Ideas/suggestions welcome Dave /apache/conf/httpd.conf [pertinent parts only] # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # Alias /cgi-shl/ /mnt/qa_load_www/cgi-shl/ # # "/apache/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # PerlModule Apache::Registry #Enable mod_perl SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI
For hire...
I've got some availability at the moment so if anyone needs anything from a couple of hours sorting out performance issues (and therefore avoiding that costly upgrade!) up to planning and implementing major rearchitectures, let me know. Check my site for recent projects, references supplied from ecstatic clients on request. Thanks, Dave -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Interim Technical Director, Web Architecture Consultant for hire -- chmod a+x /bin/laden --
Re: keeping client images private
will trillich <[EMAIL PROTECTED]> writes: > i'm sure there's more than one way to do this -- and before i > take the likely-to-be-most-circuituitous route, i thought i'd > cull advice from the clever minds on this list... Take a look at the mod_rewrite cookbook...there's some neat stuff in there. -- David Hodgkinson, Wizard for Hirehttp://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim Technical Director, Web Architecture Consultant for hire
Re: FW: AuthCookie Woes!
"Chris Lavin" <[EMAIL PROTECTED]> writes: > I have used a sniffer and no cookie is being sent! Man this is frustrating! Are you positive the cookie domain is being set properly? -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Do virtual hosts need their own servers?
On Thu, Aug 16, 2001 at 12:13:37PM -0600, Jonathan Edwards wrote: > Related to this topic, I have a question about multiple instances of Apache. > We run two mod_perl enabled sites on two separate IPs. These sites rely on > mod_perl heavily. Each site has a unique perl script that handles just about > everything. Currently, we only have one instance of Apache running, and I've > noticed that the httpd child processes are quite large (up to 32megs!). > We've upgraded the RAM on our server twice and now we're at 512, but it > seems to be using all of that without a problem. Are these httpd processes > so large because they include copies of both perl scripts? Would it be more > efficient to set up two instances of Apache, one for each site/IP, and that > way each child httpd would only contain one of the two perl scripts? > Compare the memory requirement two sets of perl scripts against the memory requirement of doubling the total number of apache processes. My personal opinion is that the latter will be a lot more expensive in resources. You might do better do work to optimize/minimize the total number of mod_perl instances (separate, lightweight server for images and static content; turn off keep_alive unless it's definately giving positive results; etc). How many apache children do you normally have running at any given time? Dave p.s. The processes could also be large because of suboptimal coding, or (if they grow over time) memory leaks p.p.p.s. love the palm pilot cases ... -- - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
Re: Do virtual hosts need their own servers?
On Thu, Aug 16, 2001 at 06:47:23PM +0100, Ged Haywood wrote: > Hi there, > > On Wed, 15 Aug 2001, Philip Mak wrote: > > > When I have multiple virtual hosts running Apache::ASP (mod_perl), do they > > need to run their own instance of Apache? > > If one Apache is listening to port 80 then no others can. This is why > you will get an error message when you try to start an Apache when > there is already one listening on the port(s) that the newly starting > Apache tries to bind to. If you want to run more than one Apache > server instance then they all have to listen on different ports. So > you could for example do some URL-based redirecting with a proxy > listening on 80 and handing requests to other instances which are > listening on other ports, or something like that - a bit like having a > light/heavy server pair (see the Guide) but for different reasons. > Only one instance of apache can bind to the same port *on the same IP*. By having one server answer to multiple IP addresses (on one or many network interface cards) you can have as many apache instances as you have IP addresses (not forgetting 127.0.0.1 if you're so inclined). Depending on the O/S you may also consider (I have and have dismissed it as too troublesome) running apache on different ports and using transparent port mapping such that --> IP address 1 : 80 --> local port 8000 --> IP address 2 : 80 --> local port 8001 --> IP address 3 : 80 --> local port 8002 Dave -- - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
Re: [ADMIN] can we have a reply-to header?
On Wed, Aug 15, 2001 at 04:30:05PM -0500, Dave Rolsky wrote: > On Wed, 15 Aug 2001, John D Groenveld wrote: > > > http://www.unicom.com/pw/reply-to-harmful.html > > NOOO!!! Make it stop. I swear to god that if this > argument starts on this list (and I think its already been had) I will go > to your homes and stuff chili peppers up your nose. > If not for it's violently offtopic nature, I would respectfully offer: http://www.devbrain.com/reply-to-non-harmful.html Dave -- - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ - GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
Re: [ADMIN] can we have a reply-to header?
On Wed, 15 Aug 2001, John D Groenveld wrote: > http://www.unicom.com/pw/reply-to-harmful.html NOOO!!! Make it stop. I swear to god that if this argument starts on this list (and I think its already been had) I will go to your homes and stuff chili peppers up your nose. -dave /*== www.urth.org We await the New Sun ==*/
Re: my() [very off topic]
On Tue, 14 Aug 2001, swade wrote: > Much thanks! What do the knowledgable programmers do? Do they my() thier > variables, etc at the beginning of thier subroutines? Or do they do it as > they come to it? or is it really just personal prefence? > This is rather off topic for mod_perl and should (imho) belong on a perl list instead. Can I request any followups be taken to private mail or a more suitable list? Thanks, Dave
Re: modperl 2.0
On Sun, 12 Aug 2001, The Doctor wrote: > On Sun, Aug 12, 2001 at 05:51:22PM -0400, Barrie Slaymaker wrote: > > On Sun, Aug 12, 2001 at 03:47:09PM -0600, The Doctor wrote: > > > > > > perl 5.6.1 calling itself perl 5.6.0 > > > > > > Come off of it! > > > > I don't know where you got that idea. > > > When I ran perl 5.6.1 it was identifying itself as perl 5.6.0 . > > Identity crisis?? A) This is fairly OT at this point. B) You have a broken Perl installation. This is neither the fault of Perl nor mod_perl. It _may_ be the fault of the BSD packaging folks, or someone may have simply screwed up your install on the machine you're using. The easiest thing might be to download the 5.6.1 tarball and install from scratch. Or you could continue being obnoxious on an unrelated list and giving Barrie shit when he's just trying to help you. -dave /*== www.urth.org We await the New Sun ==*/
Re: compiling troubles on Solaris 8
>> As an aside, Solaris 8 comes with prebuilt versions of Apache >> and mod_perl, >does anyone familiar with HP-UX, AIX, or IRIX know whether this is true of >these platforms as well? >Whether they are DSO mod_perl or not would also be helpful. HP-UX doesn't consider Perl a supportable piece of software, nor Apache. Needless to say, it doesn't come prebuilt. The compiler that comes w/the os isn't ansii compliant and is only good for rebuilding the kernel (but hey, you can buy HP's ansii c compiler for only a few thousand dollars!). We ended up building a gnu development environment in order to build mod_Perl. We could not get it to work as a DSO :(. Once we got everything up and running, it's a decent enough platform. Regards, Dave Homsher
Re: Just while we are so nicely [OT]: SQL Search Results in pages
On Thu, 2 Aug 2001, Perrin Harkins wrote: > I've had great success with "Select and cache only the row keys, fetch full > rows as needed". We were also caching the individual records (in > BerkeleyDB), so some pages never needed to hit Oracle at all after the > initial query. A good way to go, if your data is not too volatile. This is more or less how Alzabo works (but you can tweak it). When it fetches row objects, its really just fetching primary keys that match your query. As you request other columns they are fetched and cached. You can also specify some columns to be fetched with the primary key and specify that others should be considered a group (when A is fetched, get B & C too). Actually, I stole a lot of this from Michael Schwern's Class::DBI and got some more ideas from your talk at ApacheCon, Perrin. So if people are interested in implementing this, they may want to just consider using Alazbo (or you can rip out the caching code and use that separately if you want). -dave /*== www.urth.org We await the New Sun ==*/
Re: [OT] Inspired by closing comments from the UBB thread.
On Thu, 2 Aug 2001, Tim Bunce wrote: > I think DBIx::AnyDBD is a pretty good compromise. Well, I worked with Matt on the project for which it was developed (WebBoard for Unix) and I still felt like there was just way too much stuff to deal with. Just too much SQL. I wanted a more abstract way to do things like outer joins, which are different in syntax across multiple platforms. It's definitely better than nothing, but I think for a larger project you'll still end up with a huge amount of very similar SQL statements in your modules. I guess that's why I've been working on Alzabo (though I had actually started that well before working on WBUX). -dave /*== www.urth.org We await the New Sun ==*/
Re: [OT] Inspired by closing comments from the UBB thread.
On Wed, 1 Aug 2001, Kyle Dawkins wrote: > I've taken a look at many of them (Tangram? a few others) and haven't been > impressed with any of them. I think part of the problem is that they're all > being developed in a bit of a vacuum. But let's capitalise on the interest > that this thread has generated to start a push for something that we can all > use. I think even the dudes who embed their SQL in perl could be made to > realise the benefits if we all started using a common framework. Thoughts? Well, people are starting to use my tool, Alzabo (alzabo.sourceforge.net) and I'm getting feedback. More feedback about what people want it always welcome. FWIW, Alzabo gives you a reasonable amount of control over the SQL that is generated, if you need it. It doesn't yet allow optimizer hints but that will change in a future version. OTOH, if you really _need_ to get into the nitty gritty details of SQL its hard to imagine that any abstraction layer would ever be satisfactory. -dave /*== www.urth.org We await the New Sun ==*/
Re: [OT] Inspired by closing comments from the UBB thread.
On Wed, 1 Aug 2001, Ray Zimmerman wrote: > One of the tools that is not mentioned in Dave's write-up (probably > because it didn't exist then) is SPOPS, mentioned earlier in this > thread. No, I just hadn't had a chance to get around to it yet. I really need to finish that thing someday. Of course, if people want to write up their favorite system (along the lines of the ones I've already done) I could just use that and it'd be done much quicker ;) -dave /*== www.urth.org We await the New Sun ==*/
Re: Not embedding SQL in perl
>> >>It would be interesting to know how other people have solved >> >>that problem. >> >>Currently, we are essentially using embedded SQL in our apps. >> >> I have found that stored procedures + perl module wrapper >>around the >>procs. >> is a nice, balanced approach. >> >Definitely; stored procedures are hit-and-miss in a lot of >environments. >Remember that a large number of people in the mod_perl world >can't use 'em >because they (we) use MySQL. If one wanted to emulate this >behavior with >MySQL, you would essentially clone the functionality of your stored >procedures using Perl + DBI inside your persistence layer. That is a >perfectly viable approach too, but a lot less efficient than stored >procedures (many roundtrips versus one). Interesting, I will be working w/MySQL in a few days on a side project of my own. We'll see how my outlook changes ;) Any recommendations? Regards, Dave "Language shapes the way we think, and determines what we can think about." -- B. L. Whorf
Apache 2.0 / mod_perl 2.0 / Win NT/2000 ? pipe dream ?
Hi all, We currently use (close to) the latest Apache / mod_perl environment on HP/UX. Our holding company is forcing a move to Win2k :/, but they still want to use our mod_perl apps :). I was looking for more information on mod_perl 2.0 today but didn't come up w/much. I have several questions. If you can answer or point to docs, I would be most appreciative. 1) Is moving to mod_perl 2.0 going to require large code changes (even on a *nix system)? 1a) Are there any web sites detailing the types of changes that will be required? 2) I am aware that Apache 2.0 should see a performance increase on NT. Will I be a able to run my current modules in this environment? 2a)Will it be a "production level" environment? 2b) What will be the performance repercussions (if it will be possible at all)? 3) Is there any commercial company that would provide tech support contracts in this environment (not that I've needed it so far, but the uppers like the safety net)? 4) Is the code base stable enough that I can compile and test this out (I really can't even find a site that deals w/ mod_perl 2 in any detail - probably looking in the wrong places - I would think that perl.apache.org would mention something? - am I blind? ) Thanks for any assistance you can provide. Best Regards, Dave Webmaster MACtac IT "Language shapes the way we think, and determines what we can think about." -- B. L. Whorf
RE: Not embedding SQL in perl
Joe Breeden queried: >>It would be interesting to know how other people have solved >>that problem. >>Currently, we are essentially using embedded SQL in our apps. I have found that stored procedures + perl module wrapper around the procs. is a nice, balanced approach. The procs. give a nice performance boost as they are precompiled into the server (we use Sybase). I believe that they are more secure, in that you aren't dynamically generating sql that might be 'hijack-able'. You are providing a discrete amount of functionality. Placing the stored procedure execution code in a perl module makes for easy/clean perl access from the rest of the app. Moving to a new db isn't too terribly difficult in that the proc names will probably remain as well as the parameters that you pass. Also, how often do you move to another database in the life of a web app anyway (at least in our corporate environment)? Regards, Dave "Language shapes the way we think, and determines what we can think about." -- B. L. Whorf
Re: Ultimate Bulletin Board? Jezuz.
On Wed, 1 Aug 2001, Kyle Dawkins wrote: > having said all that, it's much cheaper than UBB, far superior in overall > design, and DB-driven... and it works beautifully, so i can't complain too > much. :-) And has at least one major security hole (at least the 3.51 version did, which was the last free version). Do a search at Security Focus for details. Patching it is relatively easy. -dave /*== www.urth.org We await the New Sun ==*/
Re: OT: Re: ApacheCon Dublin Cancelled?
Nathan Torkington <[EMAIL PROTECTED]> writes: > Are there any requests other than price for next year? Have it in London. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
duplicate libperl.so causes problems on Tru64
Hi, I am using mod_perl-1.25_01 on Tru64 unix with apxs. The default packaging creates the DSO mod_perl as libperl.so. This causes problems on Tru64 unix as the loader cannot differentiate between libperl.so which is part of the PERL distribution and libperl.so which is the Apache DSO. I found the replacing libperl in apaci/Makefile with mod_perl (4 places) solved this issue. Given that Apache seems to use mod_*.so for library names. why not with mod_perl ? If that does not make sense, how about adding a variable that could e used with Makefile.PL ? regards, Dave Hill -- +-oOO--(_)--OOo+ |Dave Hill(0 0)Unix Software Group | |Mailstop: ZKO3-2/W17 \//\/| |Digital Equipment Corp. (603 )884-2985 | |110 Spitbrook Road /\//\enet: [EMAIL PROTECTED]| |Nashua, NH 03062-2698(0_0)| +-oOO--(_)--OOo+
Re: CGI module or Apache
Paul <[EMAIL PROTECTED]> writes: > Just use it in your handlers normally. It'll only be included once per > process, . . . right? Put it in startup.pl and it'll get mostly shared too! -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: i use linux+apache. how to create a cgi-bin directory for VirtualHost?
--LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > by the way,i need create many virtual host,so i must do dynamic > creating like above. There are many ways of specifying virtual hosts. A couple of alternatives are to use mod_macro, or a mod_perl block to loop over your list of domains. I have been known to use this in the past, even though it's clunky... --- snippet from httpd.conf foreach (qw/host1.com host2.com host3.com host4.com host5.com/) { $PerlConfig .=3D < ServerName $_ ServerAlias www.$_ DocumentRoot /wherever/it/is/$_/ CustomLog/var/log/apache/multihosts_access_log vcommon EOF } --- end snippet By adding a script_alias here you can get what you need. Dave --=20 - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7I3zyDdRR1de8pV0RAoE+AKC6o7v8KA6SEX2Ijh85YXVYQjZHPACgmUp/ zpTm/daGWz75UQ97jmoab1I= =jJCo -END PGP SIGNATURE- --LyciRD1jyfeSSjG0--
unsubscribe remove
unsubscribe remove Dave Black, Engineer FlexFeed Corporation 1-301-317-9264 (office) mailto:[EMAIL PROTECTED] http://www.flexfeed.com/ http://corpsearchusa.com/
Job: Chief Wizard for Hire
All the current projects are done and dusted and the T-shirts are at the printers (really!). I'm looking for the next round of excellent clients to work with. Take a look at my site at http://www.hodgkinson.org/ to see what I'm up to. Thanks, Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: [Mason] Apache::Session not storing changes to hashref
--sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 22, 2001 at 03:59:52PM -0400, Chris Thompson wrote: > I'm at wits end, I'm hoping someone can tell me what's wrong. [snip] This is documented (Apache::Session doesn't recurse into the data structure to look for changes) somewhere ... I use this whenever changing the session to force it to always get written back to the database: tied(%session)->make_modified; Dave --=20 - Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/ GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7CujhDdRR1de8pV0RAqs9AJ9kk7njnzmOxBxxHil5gzKcwH0btACgiOi1 +UT3Yah27RAff02JB486JD0= =SNvV -END PGP SIGNATURE- --sm4nu43k4a2Rpi4c--
DB_File::Lock and the STOP button
I have a question about DB_File::Lock with a database and users hitting the STOP button. We have recently converted a database from an ASCII flat file to db file. The ASCII flat file used flock() to lock the files. Now that we have switched to DB_File, we have adopted DB_File::Lock as our locking mechanism What we have essentially is: my($strDBFilename) = "msglist.db"; my($locking)="write"; tie(%msglistdb, 'DB_File::Lock', $strDBFilename,O_CREAT|O_RDWR, 0644,$DB_HASH,$locking) [...critical stuff...] untie(%msglistdb); If everything goes normally, this will provide a locked fence file that will be unlocked when the file is closed during the untie. If I have read the mod_perl guide correctly, when a user hits the STOP button on a browser while the "critical stuff" is being processed, the script will abort and the files will be closed and the fence file unlocked because we magically go out of scope at the point of the abort. Is this a correct reading? Will the lock be removed when the user hits the STOP button? If so, for my own erudition, can someone explain to me why we go out of scope in this case and why/how the files are closed when we go out of scope? Thanks in advance, Dave
Re: Object - RDBMS mapping tools and mod_perl
On Fri, 11 May 2001, Chris Winters wrote: > > Anyone (including Chris) done a comparison of the two (SPOPS and > > Tangram) and willing to comment on strengths, weaknesses, > > differences, etc? > > That is an excellent idea and would be quite useful. I'll see what I > can do in the (relatively) near future. I started working on such a thing (comparing various persistence solutions for Perl) a long time ago. You can see where I was at if you look at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/poop/documents/poop-comparison.pod?rev=1.2&content-type=text/vnd.viewcvs-markup If you want to help it'd be much appreciated. The goal is to finish it, turn it into HTML and stick it somewhere that people will see it (poop.perl.org?) -dave /*== www.urth.org We await the New Sun ==*/
Re: [Mason] Object - RDBMS mapping tools and mod_perl
On Thu, 10 May 2001, Ray Zimmerman wrote: > I'm aware of Tangram, Alzabo and SPOPS (not sure all these do what I > need) ... are there any others? Any particular reasons why any of > these may not play with with mod_perl/Mason? Well, I wrote Alzabo and it plays just fine with mod_perl and Mason. In fact, the schema creation interface is a set of Mason components. The caching/syncing architecture was specifically created to allow syncing of objects between multiple processes (ala mod_perl) and I will be creating a syncing module sometime that sync between multiple machines as well. I think the author of SPOPS is also a mod_perl user (I'm pretty sure he's posted to the mod_perl list in the past) so I'd expect it to play nice. Tangram I don't know much about in relation to mod_perl. However, these are all fairly different systems. I often descrive Alzabo as the opposite of Tangram, for instance. Alzabo is an RDBMS-OO mapper and Tangram is an OO-RDBMS mapper. Tangram is aimed at letting you have transparent OO persistence in an RDBMS without worrying about the schema too much. Alzabo is about taking an RDBMS and giving you access to it through convenient object methods. I'm not sure exactly what the goal of SPOPS is, so I'll let the author speak for himself. -dave /*== www.urth.org We await the New Sun ==*/
Re: mod_perl and 700k files...
Morbus Iff <[EMAIL PROTECTED]> writes: > Well, it's a big deal if you've no "in" with the place you're webhosting > with, sure... No one wants to be told that some lowly customer wants to > restart the server that's running 200 other vhosts... > > Granted, I work at the damn webhost, but it's gotten to the point where all > the gizmo's and crap I've added have slowly been dipping the "stop touching > the server, you feature freak" - I'd rather not stress the relationship. Sounds like you need to start running multiple Apaches. Get to know the architecture sections of the guide, get familiar with mod_rewrite and start dividing up your servers. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Is this startup.pl ok?
Philip Mak <[EMAIL PROTECTED]> writes: > I thought it was shared, because under top, "SHARE" was almost as big as > "RSS". Before Stas starts laying into me for misleading inaccuracy, take a look at the guide: http://perl.apache.org/guide/ There's LOTS of good stuff in there on shareabiliy. If your processes start at 10M, then grow to 80M, that memory is probably _not_ shared. Unless you're mapping in some shared memory or something. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Is this startup.pl ok?
Philip Mak <[EMAIL PROTECTED]> writes: > My Apache with modperl is acting weird with respect to memory usage. > > When it first starts up, each process uses 10 MB of memory. > > As time goes on, these processes' memory usage grows and grows. Right now > they're 20 MB (uptime 2 days). When I rebooted the machine two days ago, > they were using 80 MB each (shared memory, though). MaxRequestsPerChild is > set to 200. What operating system? I'd be inclined to stuff a lot more of the generic modules you use (CGI, Template Toolkit, URI, Date modules) into startup.pl. The more the merrier. If a process starts at 10M and grows to 80M that's 70M per process, _unshared_ for sure. Not good. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Loading Index.pl as the Root File
"Jeffrey W. Baker" <[EMAIL PROTECTED]> writes: > On Mon, 23 Apr 2001, Al Morgan wrote: > > > I've been studying Slash to better understand mod_perl. I think I > > understand everything that happens in the config file, except for this: > > That is probably the single worst way to learn about mod_perl. Slash is > the only program that makes me physically ill. It is the single worst > piece of programming ever released upon the world. No, that would be Matt's Script Archive. Have you seen Slash 2.0? Even uses the Template Toolkit. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Must restart Apache when any .pm changes?
On Sat, 21 Apr 2001, Steve Leibel wrote: > I believe the way this works is that the first time any Apache child > process sees "use Foo" that is the version of Foo.pm that will be > used by that process. No subsequent "use Foo" within components will > have any effect during the life of that Apache process. > > Am I understanding this correctly? Yes, mostly. Check out the Apache::Reload module though. It does what I think you want. -dave /*== www.urth.org We await the New Sun ==*/
Re: mod_perl and low physical memory?
Davin Flatten <[EMAIL PROTECTED]> writes: > Hello all! > > I am writing a web based mapping application in Perl > using Apache, Mod_Perl, MySQL and such. I am writing > it at home on an old machine that has very little > memory. 32 Megs to be exact. I have found that when > I run my script under mod_perl it seems to follow this > pattern: Ok, 1..2..3: http://perl.apache.org/guide/ !!! -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Web forum engine
"Per Einar" <[EMAIL PROTECTED]> writes: > Hi, > > I am looking around for a web forum engine like > wwwthreads(URL:http://www.wwwthreads.com/) which is GPL'ed(or atleast Open > Source) and runs under mod_perl. I know wwwthreads was GPL before, and I > think there have been someone who has taken up the project under a different > name, if anyone knows about this, please tell me. mwforum, and a Template Toolkit version may well be in the pipeline. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Fast DB access
clayton cottingham <[EMAIL PROTECTED]> writes: > Matthew Kennedy wrote: > > > > On 17 Apr 2001 18:24:43 -0700, clayton wrote: > > > > > > i wanted a good benchmark for postgres and mysql > > > {i hope to transpose the sql properly!} > > > > > > > This is a good comparison of MySQL and PostgreSQL 7.0: > > > > "Open Source Databases: As The Tables Turn" -- > > http://www.phpbuilder.com/columns/tim20001112.php3 > > > very nice not all the info i was looking for but some solid answers Do go through all the answers since there were some extreme flaws in the tests (as always!) and there were issues in MySQL that were fixed. I don't know if the tests were eventually run against MySQL 3.23. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Apache growing.
Michael Bacarella <[EMAIL PROTECTED]> writes: > (I'm not sure this is even a code problem. Maybe perl is just bad at keeping > a single consistent working set and the copy-on write from the parent Apache > kicks in and keeps increasing unique per process memory consumption). There's lots of good stuff in the mod_perl guide on tracking down leaks. Both perl and mod_perl have both been extensively tested . It's worthwhile to have done this at least once so you know how to do it when you really need to do it. In addition, profiling your code is a Good Thing to do :-) -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
AuthenHandler Problems
I am having some serious problems with a custom AuthenHandler. Basically, it looks up users/passwords/groups in a database. The problem is whenever I encounter a bad password/username, I want the dialog box to reappear asking for them. Instead, the 401 error page is being displayed. Below is the config and most of the code: Options Indexes ExecCGI PerlAuthenHandler Apache::AuthDir AuthType Basic AuthName "show.gleim.com" require valid-user package Apache::AuthDir; use Apache::Constants qw(:common); use DBI; $dbh = DBI->connect('DBI:mysql:SGC'); sub handler { $req = shift; return OK unless $req->is_initial_req; my( $res, $passwd ) = $req->get_basic_auth_pw(); return $res if $res != OK; my $user = $req->connection->user; my $uri = $req->uri; my $subr = $req->lookup_uri($uri); my $filename = $subr->filename; # Matches /php/show.gleim.com/(oranges/) $uri =~ /^\/php\/show.gleim.com\/(.*)$/; $dir = $1; #$req->server->log_error("$dir - $user - $passwd"); # check user and password if ( ! checkPassword($user, $passwd) ) { $req->note_basic_auth_failure; return AUTH_REQUIRED; } if (-d $filename) { # Remove any trailing / $dir =~ s/\/$//; # check user and directory if (! checkDirectory($user, $dir) ) { #$req->server->log_error("$user tried to access $dir but couldnt"); return FORBIDDEN; } } if (-f $filename) { if (! checkFile($user, $file) ) { #$req->server->log_error("$user tried to access $file but couldnt"); return FORBIDDEN; } } # Else they are OK $req->connection->auth_type('Basic'); $req->connection->user($user); return OK; } Dave Greco [EMAIL PROTECTED] Network Administrator Gleim Publications, Inc. (800) 87-GLEIM x312 http://www.gleim.com
Build problems on Mandrake
I'm trying to build mod_perl on my Mandrake 7.2 laptop, apache 1.3.19, mod_perl 1.25 and perl 5.6.0 and I'm getting: cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `./apaci`\ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt -rdynamic -Wl,-rpath,/usr/lib/perl5/5.6.0/i386-linux/CORE -L/usr/local/lib -L/usr/lib/perl5/5.6.0/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt modules/perl/libperl.a(perlxsi.o): In function `xs_init': perlxsi.o(.text+0xdb): undefined reference to `boot_DynaLoader' collect2: ld returned 1 exit status make[3]: *** [target_static] Error 1 Am I missing something? Is it a perl issue? TIA, Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Apachecon folks
Anyone here want to get together? I'm in room 945 and bored. I think matt Sergeant is here too but I couldn't find him at the bar. -dave /*== www.urth.org We await the New Sun ==*/
RE: mod_perl BOF
On Wed, 28 Mar 2001, Geoffrey Young wrote: > Absolutely. I've CC'd the ApacheCon planners so hopefully they can step in > and fix things. Doh, I should've done this in the first place. I ended up mailing Stewart Quealy separately. Sorry for everyone who's seeing this multiple times. -dave /*== www.urth.org We await the New Sun ==*/
mod_perl BOF
Why was this scheduled during Matt Sergeant's AxKit presentation? Why not during a time slot when there are no mod_perl presentations? This is not rocket science here. -dave /*== www.urth.org We await the New Sun ==*/
Re: [DIGEST] mod_perl digest 03/24/01
"G.W. Haywood" <[EMAIL PROTECTED]> wrote: > On Tue, 27 Mar 2001, Gunther Birznieks wrote: > > > > Is Perl 5.6 really the "stable" release? > > According to the Perl developers it is. Odd minor version numbers > now indicate development versions, so the next "stable" release should > be 5.8.x Perl 5.6.1 should be out in a couple of weeks or so. perl-5.6.1-TRIAL3.tar.gz is currently available on CPAN if you're feeling keen. 5.6.0 has a couple of nasty bugs for which patches are available - see the list archives. One (IIRC) concerns scalars getting the wrong values when concatenated after being evaluated in both numeric and string contexts; the other causes coredumps when doing backtraces, which broke HTML::Mason. After adding these patches, I've been using 5.6.0 in production for about 9 months now. * Dave Mitchell, Senior Technical Consultant * Fretwell-Downing Informatics Ltd, UK. [EMAIL PROTECTED] * Tel: +44 114 281 6113.The usual disclaimers * * Standards (n). Battle insignia or tribal totems
Charset?
Is there a mod_perl way to set the character set besides doing: $r->content_type('text/html; charset=foo'); ??? That'd be handy for a future version. I can't find anything in the Apache.pm docs (1.24) or the guide for this. -dave /*== www.urth.org We await the New Sun ==*/
(new idea) RE: [OT] ApacheCon BOF
How about a picture of a card game; on the table are a 9 of diamonds, Jack of Clubs, and King of spades. The dealer is about to play the Ace of perl. The caption reads, "mod_perl does the trick". Also in the dealer's hand are cards that say, IIS iPlanet Servertec Xitami ... The cards on the table are arbitrary. Perhaps some clever individual can code a secret message into the card selection. I'm also not sure what the 'Ace of perl' should look like, but we all know what the 'A' stands for. You can also pick your favorite competition, for cards still in the dealer's hand.
Re: Renegotiate Language
Joachim Zobel <[EMAIL PROTECTED]> writes: > Hi. > > I want to use content negotiation to choose a starting language and return > appropriate content. I know how to do that with mod_negotiate. What I would > like to add is the possibility for the user to add a language. Therefore I > want the server to renegotiate the language with different preferences. How > can I do this. Look at the HTTP_ACCEPT_LANGUAGE environment variable? I've done this and actually got resistance from Brazilians who preferred the Engligh content. You might be better off with a user preference. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
RE: [OT] ApacheCon BOF
[extensive snippage] How about a bunch of white shirts? One magic marker per shirt and everyone can draw their own picture of a computer. alternatively, "No-one could decide on an image so all we got was this lousy sentence." Dave
RE: [OT] ApacheCon BOF
On Tue, 20 Mar 2001, Geoffrey Young wrote: > > If you get a really good artist, put the lamp/bottle into the hands of > > a well-built Native American figure (a warrior-type is great, but an > > "indian princess" has subliminal appealok, ok, but think about it, > > lol!) > > I think the graphics house we'll be using is pretty capable :) I for one would appreciate a design that doesn't fetishize a culture and people that have already had enough abuse at the hands of 'American' people. Can we please keep the design more focused on technology and geekiness? -dave /*== www.urth.org We await the New Sun ==*/
Re: book recommendations?
Paul Evad <[EMAIL PROTECTED]> writes: > I know a lot of the good O'Rielly books are showing some age (1999 > publishing date). Anyone out there have a copy of "Writing Apache > Modules with Perl and C", is it still relevant enough with the > current apache mod_perl distro's to be worthwhile getting? Absolutely. > > Suggestions on good reference books to get? (I have most of the Perl > library already). Effective Perl Damian Conway's Object Oriented Perl Data Munging in Perl -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
[OT] ApacheCon BOF shirts
So as not to be a total spoilsport, I would like to point out that I thought Randal's idea (Mcmod_perl?) was rather clever and I think it'd be cool (though I don't know if there are trademark issues). -dave /*== www.urth.org We await the New Sun ==*/
ApacheCon session handouts
Oops, deleted the message but someone just asked if the session notes would be available via the web. I don't know of the official ApacheCon plan but I can say that mine (for my Intro to Mason presentation) will be available somewhere. -dave /*== www.urth.org We await the New Sun ==*/
Re: perl5.6 (was: Shared variables, inner subs and "our")
On Fri, 16 Mar 2001, Bogomolnyi Constantin wrote: > You should probably try 5.7.0 witch is much more stable than 5.6.0 (you > should not try unicode stuff , whitch is quite buggy) > > I use 5.7.0 on all my production servers without any problems . 5.7.0 may have fixed some of the bugs of 5.6.0 but it is a dev release (anything where the subversion is odd is a dev release). I don't think anyone working on the Perl core would recommend the use of a dev release in production unless you absolutely need a piece of functionality present in that particular dev release. I'd suggest using 5.00503 until 5.6.1 comes out, which should fix lots of bugs. -dave /*== www.urth.org We await the New Sun ==*/
RE: mod_perl and Apache::SIG "User pressed Stop button" Case
> -Original Message- > From: Stas Bekman [SMTP:[EMAIL PROTECTED]] > Sent: Saturday, March 10, 2001 11:17 PM > To: Raphael Arlitt > Cc: [EMAIL PROTECTED] > Subject: Re: mod_perl and Apache::SIG "User pressed Stop button" Case > > On 11 Mar 2001, Raphael Arlitt wrote: > > > Hi, > > I need to get modperl scripts get stopped by apache when > > the user hits the Stop button in its browser. > > There is a section at > > > http://www.perldoc.com/cpan/Apache/Example.html#Handling%20the%20'User%20p > ressed%20Stop%20button'%20case > > where exactly this is explained. Hm - they mention the > > following script which does an infinite loop. It does not > > stop in my environment. Where in httpd.conf does the > > PerlFixupHandler Apache::SIG go? Does anybody has a snippet > > from his/hers httpd.conf for me? > > > > httpd/cgi-bin > cat stopping_detector2.pl > > my $r = shift; > > $r->send_http_header('text/plain'); > > > > print "PID = $$\n"; > > $r->rflush; > > > > while(1){ > > $r->print("\0"); > > $r->rflush; > > > > last if $r->connection->aborted; > > > > $i++; > > sleep 1; > > } > > I don't know what version of the guide they store on perldoc.com. I > suppose they convert it automatically from the sources on CPAN, which > explains broken links and incorrectly interpreted tags. You should read > http://perl.apache.org/guide/ instead. > > As for your question, you don't need Apache::SIG, when you use > > last if $r->connection->aborted; > > However I don't know about Win32, may be Apache works differently there. > It works on Unix. > Above script works on Win32 also. Apache/1.3.14 (Win32) mod_perl/1.24_02-dev running... > > Please reply also by email.. > > > > Help is appreciated :-) > > > > Here is my installation data: > > > > Apache/1.3.14 (Unix) (SuSE/Linux) > > mod_perl/1.24 > > > > By the way - I read at www.perldoc.com that mod_perl is considered alpha > at > > win32... I am in the need of setting it up on win2000 with industrial > > strength. Is that feasible? > > > > Raphael > > My experience w/ mod_perl on Win32 (NT 4.0) is quite recent, and only for development purposes. I can't make a recommendation for or against.
Re: Apache thrashing my swap...
"Jason Terry" <[EMAIL PROTECTED]> writes: > I know this isn't really a mod_perl problem... but I also know that this list is >probably the most likely to have other people who > have exactly this issue on their machines I wonder if putting a thin apache on the front of a very limited fat apache would at least get you somewhere near where you want to be. If someone hits stop before something gets passed to the fat apache, will it get tossed completely? Having a maxclients limit on the fat apache will keep memory and CPU usage sane. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire -
RE: [OT] Re: Search Engine Theory
You can also try http://perlfect.com/freescripts/search/; uses perl and DB_File. > -Original Message- > From: T.J. Mather [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, February 27, 2001 10:41 PM > To: Modperl > Subject: [OT] Re: Search Engine Theory > > You might want to look at DBIx::FullTextSearch, a perl module for indexing > documents using MySQL as a backend. It supports different frontends and > backends, and has a nice modular design (IMHO). > > http://cpan2.org/Asset/display?dist=DBIx-FullTextSearch > > On Tue, 27 Feb 2001, Jamie Krasnoo wrote: > > > Can anyone point me to any documents on search engine theory and > programming > > search engines with perl? > > > > Jamie Krasnoo > > www.MyEBoard.com > > [EMAIL PROTECTED] > > > > > > _ > T.J. Mather http://tjmather.com > http://cpan2.org/ New CPAN Search Engine > http://www.anidea.com/Digital Asset Management > http://www.theinnkeeper.com/ Bed and Breakfast Directory
Re: Process Running Even after timeout
"Kiran Kumar.M" <[EMAIL PROTECTED]> writes: > I have a program that fetches data from mysql database,since the = > database is huge the user gets a time-out(this has been taken care now = > :-)) , but when i see the process list the mysqld process for that = > request is still running , Dosent apache close the database connection = > after it sends a timeout ??? Yes, but mysql is busy doing your query. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire -
Re: newbie mess
matt <[EMAIL PROTECTED]> writes: > but that is half-ass. from what i read i have to compile suexec > appropiately. but i am not sure about that either. man suexec: /usr/man/man8/suexec.8 /usr/local/src/apache_perl/apache_1.3.14/src/support/suexec.8 Read the INSTALL options for what to do on build... Cheers, Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire -