Re: how to take advantage of mod_perl and analize effectiveness ofefforts?

2003-03-08 Thread Perrin Harkins
On Fri, 2003-03-07 at 18:21, Charlie Smith wrote: What is being cached by the mod_perl? You should definitely read the mod_perl documentation that another poster pointed you to. However, let me address your core question about what is being cached with mod_perl. Technically, mod_perl doesn't

Re: Optimising cache performance

2003-03-08 Thread Perrin Harkins
Clinton Gormley wrote: For now it's not a distributed system, and I have been using Cache::FileCache. But that still means freezing and thawing objects - which I'm trying to minimise. Other things (IPC::MM, MLDBM::Sync, Cache::Mmap, BerkeleyDB) are significantly faster than Cache::FileCache.

Re: Optimising cache performance

2003-03-07 Thread Perrin Harkins
Clinton Gormley wrote: I'd appreciate some feedback on my logic to optimise my cache (under mod_perl 1) First, I'm assuming this is for a distributed system running on multiple servers. If not, you should just download one of the cache modules from CPAN. They're good. I'm planning a two

Re: Optimising cache performance

2003-03-07 Thread Perrin Harkins
Cory 'G' Watson wrote: I'm not sure if my way would fit in with your objects Clinton, but I have some code in the commit() method of all my objects which, when it is called, removes any cached copies of the object. That's how I stay up to date. Why wouldn't it simply update the version in the

Re: [mp2] integration with apache threads

2003-03-06 Thread Perrin Harkins
Pavel Hlavnicka wrote: Is there some relation between Perl threads and Apache threads? What I mean: If Apache fires a new thread, what happens in mod_perl? Are perl structures copied from the parent thread interpreter to the new one? ... or is the new perl environment clean? Have you read this?

Re: [mp2] integration with apache threads

2003-03-06 Thread Perrin Harkins
[ Please keep posts on the list. I am not the most knowledgeable person here about threads, mp2, or XS code. ] Pavel Hlavnicka wrote: Thanks again, I'm solving following problem: generally may happen, that somebody has an instance of XML::Sablotron (and of few more packages) allocated in the

Re: Spell Checkers and EMail

2003-03-06 Thread Perrin Harkins
Philip M. Gollucci wrote: We send a good deal of templated based E-Mail with the option to edit right before sending. The editing is done via webpage running under mod_perl/Apache or PerlEx/IIS with Oracle and MSSQL backends respectively. Anyone know of any good modules to add a spellchecker

Re: Help - Can Apache 2 Filters be implemented in Apache 1.3.x viamod_perl

2003-03-06 Thread Perrin Harkins
On Thu, 2003-03-06 at 23:13, David Culp wrote: Can Apache 2 Filters be implemented in Apache 1.3.x via mod_perl [1.x]? No. However, there are a couple of method for doing this in 1.x. See Apache::Filter or Apache::OutputChain. - Perrin

Re: Reading an array from perl script

2003-03-05 Thread Perrin Harkins
Stas Bekman wrote: As suggested by Mark, IPC::Shareable might work if the data set is small. If it's big you can use a simple dbm to store the data in and with proper locking read/write to/from it without disturbing each other. Yes, and the MLDBM::Sync module would handle that for you behind the

Re: Apache::DBI on mp2

2003-03-05 Thread Perrin Harkins
Stas Bekman wrote: FWIW, we are discussing the internal DBI pooling mechanism at the dbi-dev list and having already a sort-of-working prototype. So hopefully there will be no need for Apache::DBI in the near future, as DBI will be able to handle pooling internally. However it may take some

Re: Transparent front-end proxying for many VirtualHosts

2003-03-05 Thread Perrin Harkins
On Wed, 2003-03-05 at 18:30, Andrew Ho wrote: I want to simplify my configuration in two ways. I'd prefer not to maintain two sets of VirtualHost configuration data, and I'd like it if the block that proxies .pl files to the backend proxy not be replicated per VirtualHost. As others pointed

Re: prompting for secure data during startup.pl

2003-03-03 Thread Perrin Harkins
Aaron J Mackey wrote: I need to make some secure data available to mod_perl handlers, without having it physically stored in a file, database, or named shared memory (since if someone can read the handlers' code, then they could read the sensitive data as well). So I need to prompt for it during

Re: mod_perl headers

2003-03-03 Thread Perrin Harkins
Cure wrote: Does Apache submit headers when a error occurs ? No. You sent the headers with your send_http_header command. Mason doesn't have this issue because it waits and builds up the entire output in a string before it sends any headers out. You can do the same in your script if you want

Re: mod_perl headers

2003-03-03 Thread Perrin Harkins
Cure wrote: I know -- I submit the headers but why does it show the headers on the browser, doesn't that mean the headers wre submitted twice ? Why don't you take a look at the raw output (with LWP's GET script or something) and see? I misread your question before -- apache does send a

Re: Problems installing Apache (./configure)

2003-03-02 Thread Perrin Harkins
mel awaisi wrote: Error: could not find any of these C compilers anywhere in your PATH: gcc cc acc c89 Well, you need to install a compiler. You must have chosen a set of packages that does not include development tools when you installed Red Hat. Look for their RPM of gcc and install it. -

Re: [error] Insecure dependency in unlink while running with -Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line106

2003-02-28 Thread Perrin Harkins
On Fri, 2003-02-28 at 08:47, Martin Moss wrote: Is Apache::Session::DB_type Faster than Apache::Session::File? It depends on your disk, OS, and filesystem. It stores all the files in one directory, which is quite slow on some systems and not a problem on others. I already use a lot of DB

Re: [error] Insecure dependency in unlink while running with-Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pmline106

2003-02-28 Thread Perrin Harkins
On Fri, 2003-02-28 at 09:10, Martin Moss wrote: I can't use Apache::DBI. I have multiple database connections.which are authenticated for different users. You're pretty much screwed then on the database front. I just wanted to reduce the database lookups. If you just want to cache data,

Re: Apache is exiting....

2003-02-28 Thread Perrin Harkins
Paolo Campanella wrote: I'm sure: [EMAIL PROTECTED] /root]# ps axf [...] 1212 ?S 0:00 httpd-modperl -f /etc/httpd/conf/httpd-modperl.conf 1215 ?S 0:00 \_ httpd-modperl -f /etc/httpd/conf/httpd-modperl.conf 1216 ?S 0:00 \_ httpd-modperl -f

Re: Apache is exiting....

2003-02-27 Thread Perrin Harkins
On Thu, 2003-02-27 at 08:42, Paolo Campanella wrote: Pretend for a moment that you have no specific knowledge of the library which causes this problem: is there any black box approach to stopping some library's complaints from shutting down my web server? No. The library is executing C code

Re: Apache is exiting....

2003-02-27 Thread Perrin Harkins
On Thu, 2003-02-27 at 11:06, Paolo Campanella wrote: Just one thing though: when the process dies, it really does take the main server process down with it: [Thu Feb 27 17:55:04 2003] [alert] Child 8592 returned a Fatal error... Apache is exiting! Are you certain? Have you actually

Re: Authorization question

2003-02-27 Thread Perrin Harkins
Jean-Michel Hiver wrote: Yes, but you're then making the authorization layer inseparable from your applicative layer, and hence you loose the interest of using separate handlers. It's pretty hard to truly separate these things. Nobody wants to use basic auth, which means there is a need for

Re: Authorization question

2003-02-27 Thread Perrin Harkins
Jean-Michel Hiver wrote: It's pretty hard to truly separate these things. Nobody wants to use basic auth, which means there is a need for forms and handlers. How do you mean, 'nobody'? Users certainly don't mind! Sure they do. They want a nice HTML login screen, and features like remember

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread Perrin Harkins
md wrote: --- md [EMAIL PROTECTED] wrote: Is it possible to have row-level locking (as opposed to table-level or null locker) with MySQL 4.x and Apache::Session? You effectively have that already, since the MySQL locker only locks an individual session. Check the code. Looks like I get that

Re: Scripts and HTML docs in the same directory (+ modperl newbieexperiences)

2003-02-26 Thread Perrin Harkins
On Wed, 2003-02-26 at 23:16, Mark James wrote: One question: Prior to using mod_perl I was able to have unsuffixed scripts and .html files residing together in the server root directory by using Apache's Files directive to force the scripts to be executed: e.g. Files db

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread Perrin Harkins
md wrote: Also, we'll soon be adding a substantial number of users to our system and I wonder if it would be wise to move away from the table locking that is currently being used with Apache::Session::MySQL. It would be. Frankly, there is no value to the kind of mutual exclusion that the

Re: mod_perl examples

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 00:14, Christopher Hahn wrote: The examples from the O'Reilly book Writing Apache Modules with Perl and C do not compile because of a missing Apache::Src module. I am using Apache 2.0 + mod_perl-1.99_08 and can only find docs on this module under the 1.0 section of

Re: Apache::Session and Postgres

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 07:09, Grant McLean wrote: I get this error: Can't locate object method get_lock_manager via package Apache::Session::Postgres And indeed, that method does not seem to be defined in any of the modules which Apache::Session::Postgres inherits from. I don't see

RE: child-parent memory access / mod_perl / shared mem/inter-proccess communication , etc..

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 05:40, Jim Morrison [Mailing-Lists] wrote: Hmm.. Yes, it sounds pretty sketchy to me too! Immediately what I am playing with is the idea of keeping parsed XML (XML::LibXML)in memory between requests. Is this a completely barmy idea? Caching is a good idea, but it's not

Re: child-parent memory access / mod_perl / shared mem / inter-proccesscommunication , etc..

2003-02-24 Thread Perrin Harkins
Jim Morrison [Mailing-Lists] wrote: Sniff.. I've kind of got something working... Enough such that one httpd can request an XYZ, and if a second httpd comes along a little later and requests the same XYZ then it will get it from shared memory. I hope you used one of the modules I suggested rather

Re: child-parent memory access / mod_perl / shared mem / inter-proccesscommunication , etc..

2003-02-24 Thread Perrin Harkins
Matt already answered most of your questions. Jim Morrison [Mailing-Lists] wrote: And I'm getting some mileage out of experimenting with this anyhow - if it doesn't work for LibXML it looks like it could be very useful for other stuff, and if it ever works bug-free(-ish) I'd like to give

Re: Apache module

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 19:49, Carl Holm wrote: Does anyone know where to find the Apache module mentioned (use Apache;) in the tracking users with cookies code example code found in the Apache::Session manpage? It's part of mod_perl. If you have installed mod_perl 1.x, you have it.

Re: Apache module

2003-02-24 Thread Perrin Harkins
[please keep it on the list] Carl Holm wrote: I'm running mod_perl2 The examples in the documentation of Apache::Session are for mod_perl 1.x. If you want to run them under mod_perl 2, you have to port them or use the backward compatibility functions. Documentation is on the perl.apache.org

Re: child-parent memory access / mod_perl / shared mem /inter-proccess communication , etc..

2003-02-23 Thread Perrin Harkins
On Sun, 2003-02-23 at 10:46, Jim Morrison [Mailing-Lists] wrote: Having spent the w/e getting to grips with startup.pl's and the such I'm beginning to discover that it's only possible to share read-only memory and as soon as you write to memory it splits off.. .. The situation with forked

Re: mp2: any recommendations for template systems yet?

2003-02-21 Thread Perrin Harkins
On Fri, 2003-02-21 at 16:10, Udlei Nattis wrote: you can use Ananke::Template is one version of template::toolkit but very very very very fast I wouldn't really call it a version of Template Toolkit. It's much more like HTML::Template: a very streamlined templating tool with an intentionally

Re: Apache::TicketAccess

2003-02-20 Thread Perrin Harkins
Scott Alexander wrote: I'm trying to use the example from the Eagle book on page 309 - 314 using the TicketAccess, TicketMaster, TicketTool handlers. In TicketMaster in sub go_to_uri it sets the a cookie with the $ticket. I can print $ticket to error log to see what it contains. But for some

Re: mp2: any recommendations for template systems yet?

2003-02-20 Thread Perrin Harkins
On Thu, 2003-02-20 at 22:27, Carl Brewer wrote: Do any of you have any recommendations for template systems with mp2? Not of the religious kind (!) but more on the lines of what's working with mp2 at the moment? Everything that doesn't make mod_perl API calls should work without changes.

Re: help with Apache::DB

2003-02-19 Thread Perrin Harkins
On Tue, 2003-02-18 at 08:07, giorgos zervas wrote: i am using Apache::DB to debug my mod_perl handlers and altough the debugger seems to be working fine it won't display the source code next to the current line being debugged. That's because you are compiling that code before you activate

Re: mod_perl 2 apache::session and or die

2003-02-19 Thread Perrin Harkins
Chris Faust wrote: All works well except when there is any kind of problem in the script where the condition will die.. [...] When this happens everything to do with that script is unresponsive - I know that is a little vague but that is the best way I can describe it. What happens is the error

Re: Please wait Handler

2003-02-14 Thread Perrin Harkins
Martin Moss wrote: I was wondering if it is possible to Create a Handler that points a user at a page with an animated gif saying something like Please wait, and then when my other handlers have finished display the page results I want from my mod perl handlers. The classic answer to this

Re: Please wait Handler

2003-02-14 Thread Perrin Harkins
Andrew Ho wrote: Make an HTML page which does a form submit to pleasewait.pl. pleasewait.pl just displays an HTML page with an animated please wait image on it, and its headers include the following header: Refresh: 1; url=http://www.example.com/getresults.pl?args... That's what Randal

Re: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-13 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: No it hasn't. Need to use CGI::Cookie for the time being. Apache::Cookie and Apache::Request I believe are both either provided by or dependent on libapreq, which is still a work in progress for apache2/mod_perl2. That's the biggest reason I'm still using Apache 1.3.x

Re: Apache::Registry incompatible with CGI ?

2003-02-04 Thread Perrin Harkins
Rob Lambden wrote: sub SetupPageArguments() { my ($DB, $nLoop, @Query, $Key, $Value); $DB=shift; @{$DB-{Page}-{'.parameters'}}=$DB-{ApacheReq}-param(); for($nLoop=0; $nLoop=$#{$DB-{Page}-{'.parameters'}}; $nLoop++) {

Re: Use DBI in http.conf

2003-02-03 Thread Perrin Harkins
Wes Cravens wrote: I have a number of PerlModule Library::Module Location '/Module' SetHandler Perl-Script PerlHandler Library::Module /Location Type configs. I can very easily extract this information from a database. Or you could use Apache::Dispatch, or you could put them in a

Re: $^T

2003-02-03 Thread Perrin Harkins
H Jayakumar wrote: In windows mod_perl-beta2 print $^T; returns the same value again and again That is correct behavior. The $^T variable contains the time that the current program (i.e. apache) started running. If you want the current time, use time() instead. -

Re: libgtop gone?

2003-01-29 Thread Perrin Harkins
http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libgtop-2.0.0.tar.gz Thanks to both of you for pointing out that it's on the Gnome FTP site. I'll send Doug a documentation patch to point to this location. - Perrin

Re: [OT] Gkrellm (was: RE: libgtop gone?)

2003-01-29 Thread Perrin Harkins
Narins, Josh wrote: Um, can someone provide a link as to what libgtop is supposed to do? Is it just a graphical /usr/local/bin/top? There is a graphical top built on it, but libgtop is just a library that measures memory usage, CPU, etc. GTop.pm is a module which provides a Perl interface to

Re: DBM ties within Apache under Mod Perl

2003-01-29 Thread Perrin Harkins
Jim Morrison [Mailinglists] wrote: One of the things I understood mod_perl allowed you to do is to tie a Hash/DBM to the top apache process, so that it's always available throughout the other apache processes? You can only do that for read-only dbms. For read/write, use MLDBM::Sync. PS. Do

Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)

2003-01-29 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: I'm not sure whether the company that's hosting my web site will want to install any non-critical module (They ahve done me a favor allowing me to run mod_perl ... ) So I want to see if I have any options installing it under my directory tree. Okay. You need to

Re: do as temp solution for require problem ?

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: This is working fine although a mysql database connection in a subroutine in an external file doesn't always work. Please explain. It shouldn't ne a problem to run code that makes a database connection in a separate module. - Perrin

Re: Newbie Q on Apache::Include

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Can someone direct me to a good tutorial for Apache::Include? What are you trying to do? All it does is add one extra directive to mod_include, allowing you to call a Perl script in-line. If that script is run under Apache::Registry, you don't even need to do that;

Re: do as temp solution for require problem ?

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: If you look at the previous mentioned site, you can see there is only one file, but it contains a lot of includes. - a random function for the banners on top - a file for the navigation on the left which includes a file for the date and a file for the counter (mysql

Re: Newbie Q on Apache::Include

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: My personal web site has both static and dynamic files. The static files have a kind a look template maintained by using XSSI. For the dynamic files I wanted to somehow be able to do the same thing using the same files so that I don't need to maintain 2 sets of files.

Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Tks that way worked except for the #config sizefmt of mod_include That should work fine. What's broken with it? From the documentation of the Apache::Include I couldn't make out whether it handled other features like set which I am using. It does not implement

libgtop gone?

2003-01-28 Thread Perrin Harkins
I pointed someone at some mod_perl documentation that suggested installing GTop to measure shared memory, but he was unable to find libgtop for download at the URL in that module. I investigated and I don't see it anywhere! Is libgtop gone? Did it get replaced with something else? Any

Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: !--#config sizefmt=Mb -- works with mod_include Got a [an error occurred while processing this directive] (well actually the errmsg that I had set) with CGI::SSI. As I said I didn't really follow-up to see if this is a prob. Oh, sorry, I missed the part about

Re: libgtop gone?

2003-01-28 Thread Perrin Harkins
Stas Bekman wrote: It's integrated into the gnome project and doesn't really exist as a standalone thing. At least I couldn't find it. When you install the gnome desktop, you get libgtop as well. So if you are on linux, simply check your distro for this package. e.g. use:

Re: [mp2] Connection pool with Apache::DBI and Oracle

2003-01-27 Thread Perrin Harkins
Georg Botorog wrote: I don't understand. The Apache server I am using has 50 ThreadsPerChild If you want help with mod_perl 2, you need to say so. Otherwise it is assumed you are using 1.x. Put [mp2] in your subject line. Thus, Apache is able to handle quite a few requests simultaneously.

Re: [mp2] Connection pool with Apache::DBI and Oracle

2003-01-27 Thread Perrin Harkins
Georg Botorog wrote: Actuallly, I had no idea I am using mp2. I have downloaded some time ago a bundle with Perl, Apache, etc. (for NT), and I'm still using it today. Ah, okay NT is another key piece of information. Sorry, I don't use apache on NT so I thought that was a mp2 directive. So,

Re: Connection pool with Apache::DBI and Oracle

2003-01-24 Thread Perrin Harkins
Georg Botorog wrote: More precisely, I am using Apache::DBI to create and cache the connection to the DB. As this connection uses a single Oracle session, it is obvious that it becomes a bottleneck. Apache::DBI uses one connection per process. There is no bottleneck there. Each process only

Re: mysql question

2003-01-23 Thread Perrin Harkins
Calm down folks. Anyone can make a mistake. This is a diverse list with many different levels of Internet experience represented, and one off-topic post is not a big enough problem to merit banning people. General list etiquette is discussed here:

Re: mysql password encryption

2003-01-22 Thread Perrin Harkins
Martin Moss wrote: the problem I have is that I store the password in the database as a Password field. However when I wish to use DBI to connect to another mysql database I cannot use the Password stored in the database as it comes out encrypted. I really don't want to store the unencrypted

Re: server startup shutdown

2003-01-22 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: I have XML file and don`t want parse/serialize on each request how implement this: 1) XML parsed on startup 2) All modules work whith same object It doesn't look to me like you can share objects across threads effectively at this time. You can share a hash ref, but

Re: Configuration in module vs in apacheconfig...

2003-01-22 Thread Perrin Harkins
Marcin Kasperski wrote: After some initial consideration I found, that moving config from MyConfig.pm to myapp.conf does not seem to be reasonable. Imagine PerlSetVar'ing arrays and hashes which can refer one to another... If you can do it in a module, you can do it in myapp.conf. Perl package

Re: [mp2] e-Commerce

2003-01-21 Thread Perrin Harkins
Nick Tonkin wrote: Hmm, I think it all depends on the application. It's true that hardware costs have declined since The Days, but you still don't have unlimited RAM. True, there is an upper limit on per-machine scalability with a multi-process server and thttpd would do better there if the

Re: [mp2] e-Commerce

2003-01-21 Thread Perrin Harkins
Stas Bekman wrote: Where did you see the benchmarks showing that Apache 2.0 has a better performance than 1.3? All over! Joshua's numbers from this list: http://marc.theaimsgroup.com/?l=apache-modperlm=103238123915307w=2 Some good graphs, including thttpd:

Re: Testing

2003-01-21 Thread Perrin Harkins
Michael Hyman wrote: I am interested in how people setup their Apache 1.3.x servers to run mod_perl'able code. Not, how to get mod_perl to run something, we do that with rewrite rules. I am more interested in config settings that control for performance and stability. There is lots of

Re: [mp2] e-Commerce

2003-01-20 Thread Perrin Harkins
Eric Frazier wrote: On that note, how about just using Apache2 for the proxy front end, and mod_perl /apache 1.x for the back end? I have wanted to try to avoid the thttpd stuff for images and from what I have heard about apache2 it can handle static pages a lot faster than the 1.x did. You

Re: Apache::Session::File hangs

2003-01-19 Thread Perrin Harkins
Axel Huizinga wrote: The following code hangs after reloading and the try to tie again the previously created session! WHY? ... use vars qw( $id $sID $lockDir %session $sessionDir ); The session variable has to go out of scope for the lock to be released. I know

Re: using ALRM signal in mod_perl script

2003-01-17 Thread Perrin Harkins
Plamen Stojanov wrote: is it save to use ALRM signal in my mod_perl script. I hook a handler there, to unlock my semaphores in emeregency. It should work, but you'd be better off with a cleanup handler. - Perrin

Re: crazy problem

2003-01-17 Thread Perrin Harkins
Ray Zimmerman wrote: I have a bizarre problem and I've run out of ideas ... Here's the gist ... when I run some code which looks like ... my result = `/usr/local/bin/matlab input_file.m`; ... from a perl CGI, then matlab (a commercial math package) segfaults. However, when I run it from

Re: Determining when a cached item is out of date

2003-01-16 Thread Perrin Harkins
them out of date. This is only feasible if you have total control over the update mechanism and can calculate all the dependencies quickly. One more thing. Perrin Harkins' eToys case study casually mentions a a means of removing files from the mod_proxy cache directory so that mod_proxy had

Re: Determining when a cached item is out of date

2003-01-16 Thread Perrin Harkins
Christopher L. Everett wrote: I see where one could combine polling and invalidation, for instance by having empty files representing a page that get touched when the data for them go out of date. More commonly you would combine TTL with invalidation. You use invalidation for the simple

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: But meanwhile, we're still open to alternatives. Surprisingly, there don't seem to be many (software) options. (A hardware load balancer is not an option at his time, but I'll also take any suggestions in that area :) I've always used hardware ones. I believe big/ip does

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: The mod_rewrite solutions lack dead server detection, and that's something I'd rather not try to roll on my own, especially after seeing how well (or not, actually) existing software solutions do. But I've added it to the list. ... It's kind of disappointing to hear that

Re: Load balancers

2003-01-13 Thread Perrin Harkins
John Siracusa wrote: But in a full-fledged mod_perl solution, I could back out gracefully and retry another server if I happened to initially choose a dead server before my dead server detection code caught it. That sounds cool, but how important is it really? I'm not sure any of these

Re: Shared memory 'copy-on-write' issue

2003-01-10 Thread Perrin Harkins
Anton Permyakov wrote: reading http://perl.apache.org/docs/1.0/api/Apache/SizeLimit.html#Shared_Memory_Opti ons i am seeing that link about memory sharing by copy-on-write points to http://perl.apache.org/docs/1.0/guide/index.html and 'META: change link when site is live' stands after it. Site

Re: OSCON ideas

2003-01-09 Thread Perrin Harkins
Larry Leszczynski wrote: On Wed, 8 Jan 2003, Perrin Harkins wrote: 2) The Perl Pet Store This would be a discussion of porting the J2EE Pet Store reference application to Perl. It would cover Perl equivalents for various J2EE features, and talk about what was easier or harder to do in Perl

Re: Anyone ever have Apache::Session::File files getting corrupted?

2003-01-09 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Anyway, my question for now is whether anyone has seen corruption like this with Apache::Session::File in your typical multi-user mod_perl web app environment? I think most people don't use Apache::Session::File in production. It's more of a testing thing. In your

Re: Query

2003-01-08 Thread Perrin Harkins
George Valpak wrote: Sounds like you need 2 apaches, on separate physical servers - I agree, the proxy approach is your best choice, and it gives other performance benefits as well, described in the documentation. - Perrin

Re: Sticky pnotes conclusion

2003-01-08 Thread Perrin Harkins
John Heitmann wrote: That example makes us look pretty dumb, let me explain how it happened since it may affect you too. We do inter-request caching of $dbh in pnotes. We rely on the destructor of DBI to disconnect; we don't use disconnect() anywhere in our code. We do however use

OSCON ideas

2003-01-08 Thread Perrin Harkins
As many of you probably know, the call for participation in this year's Open Source Conference has gone out (http://conferences.oreillynet.com/cs/os2003/create/e_sess). I'm thinking about possible talks to submit and I want a little feedback on what people are most interested in. Here are

Re: Query

2003-01-07 Thread Perrin Harkins
Chandrasekhar R S wrote: I am having a requirement as follows : I need to execute/interpret the perl requests away from mod_perl. Can you explain why you want to do this? Your stated requirement is already met by CGI, FastCGI, SpeedyCGI, and a bunch of other things, but we can't really

Re: Apache::DBI

2003-01-06 Thread Perrin Harkins
Paul Simon wrote: I wasn't sure if Apache::DBI was screwing with ORACLE, especially with persistent connections... The Apache::DBI code is really short and easy to read. Basically, it just doesn't close connections when you call disconnect. It also does automatic rollbacks at the end of

Re: mod_perl invokation valid?

2003-01-06 Thread Perrin Harkins
Charlie Smith wrote: Question: Even though I have PERL 5.8 installed, we wish to get mod_perl installed to make use of caching. Currently, a listing of the %ENV hash indicates that we're running mod_perl/1.25. Okay, so you have mod_perl installed and now you want to use it. Take a look at

Re: Sticky pnotes with Apache::Registry

2003-01-05 Thread Perrin Harkins
David Kaufman wrote: John Heitmann [EMAIL PROTECTED] wrote ... in fact, i've avoided using pnotes after seeing similar inconsistencies and reading reports of others having them, too. that was a while back, though. I've used pnotes extensively for exactly this sort of thing and have found it to

Re: Modules Executed Twice

2002-12-30 Thread Perrin Harkins
Explanations and other suggested approaches to handling this problem will be most welcome. My suggestion in the past has been to PerlRequire a startup.pl that does a use on your modules, instead of pulling them in with PerlModule. Of course, if you turn PerlFreshRestart on then this is the

Re: Apache::Session::MySQL

2002-12-28 Thread Perrin Harkins
So by user nobody, you mean in the httpd.conf file in the virtualhost tags the user and group? I have it set to user username and group username for each account, since all of our boxes use SuExec. Okay, that may be an issue because SuExec does not work with mod_perl. Each apache daemon can

Re: Fw: OT - Santa uses PERL

2002-12-20 Thread Perrin Harkins
Robert Landrum wrote: On Fri, Dec 20, 2002 at 10:35:18AM -0800, Bill Moseley wrote: That sounds a lot like Perrin's story. Didn't he save Christmas one year? I wouldn't go that far. There were actually a lot of warehouse problems that led to disappointed customers, but I don't dwell on

Re: [OT] mod_proxy, mod_perl, php

2002-12-19 Thread Perrin Harkins
Scott Alexander wrote: No mod_perl doesn't serve the documents. I'm just using a PerlTranshandler to change the uri. Okay, that should work then. So if I add php support to the mod_perl server. How much extra load/memory usage strain will it add to the mod_perl server. I don't know; that's

Re: [OT] mod_proxy, mod_perl, php

2002-12-18 Thread Perrin Harkins
Scott Alexander wrote: At the moment I have a front_end server with no php support. Backend is mod_perl. I'm planning to extend our document management system to serve www pages. The html documents are on the mod_perl machine. What happens if users add php code to their html documents?

Re: [OT] Ideas for limiting form submissions

2002-12-18 Thread Perrin Harkins
Bill Moseley wrote: what would you recommend for caching the md5 strings. Cache::Cache or DBM? I suppose a Cache::Cache file cache would be the easiest. In order of speed: IPC::MM BerkeleyDB (with built-in locking) Cache::Mmap Cache::FileBackend (from Cache::Cache -- no need to use

Re: Double execution of PerlRequire statement

2002-12-18 Thread Perrin Harkins
Kyle Oppenheim wrote: This behavior is documented in the guide... http://perl.apache.org/docs/1.0/guide/config.html#Apache_Restarts_Twice_On_S tart This is true, although technically it shouldn't require the same file twice unless you have PerlFreshRestart on (which is a bad idea). - Perrin

Re: When perl is not quite fast enough

2002-12-17 Thread Perrin Harkins
Jeff AA wrote: I have two questions: 1) In this list, I have seen folks asking general Perlish questions told to take their discussions elsewhere, along with the useless recommendation that they browse lists.perl.org - I have done this several times and joined a few of the lists, but

Re: AUTOLOAD in mod_perl (was Re: When perl is not quite fast enough)

2002-12-17 Thread Perrin Harkins
Christopher Grau wrote: I may be veering off-topic, but I've started doing similar things in my own code (generating accessor methods via AUTOLOAD). I ended up writing `Class::Autoload,' which I intend to upload to CPAN when I'm done with documentation and testing. Mine was very simple and

Re: SSI Not Working Apache

2002-12-16 Thread Perrin Harkins
Martin Kuria wrote: mod_include is not included please do advice what do I need to have ssi to work please do help Hi Martin, This list is not for general Apache configuration questions. Please see http://httpd.apache.org/lists.html to find a more appropriate list to ask your question on.

Re: Apache::Session and user sessions

2002-12-09 Thread Perrin Harkins
md wrote: My question is with regards to whether I need or should put the submitted data into the session as the user navigates the forms (to create an account). The user will be taken through three forms to create an account. So for instance, form one will ask the user to create a username,

Re: Apache::Session and user sessions

2002-12-09 Thread Perrin Harkins
Rafiq Ismail (ADMIN) wrote: I'm not sure how often a user will attempt to complete one form through multiple browsers. To be honest I'm not sure that he/she should. There are all kind of forms. An obvious example would be a search. Users often open up multiple windows when browsing a site

Re: Resetting cache Apache::Registry

2002-12-03 Thread Perrin Harkins
Justin Luster wrote: I know that when you “require” or “use” helper files in a Perl Script, and you are using Apache::Registry, when changes are made to the helper files they are not recognized until you restart Apache. In the documentation it says that you can change the Apache configuration

Re: General interest question: PDF contents handling in PostgreSQL.

2002-11-26 Thread Perrin Harkins
Fabián R. Breschi wrote: I wonder if using ModPerl and PostgreSQL there's any possibility to resemble what in Oracle is called 'Intermedia', in this particular case parsing/indexing content of PDF files inside PostgreSQL as a LOB or alternatively as a flat OS file with metadata

Re: [SOT] Strange browser behavior

2002-11-21 Thread Perrin Harkins
Nick Challoner wrote: My questions are, is there some IE anomaly or some anomalous way of configuring or using IE that can cause it to all of a sudden do a GET instead of a POST (anything short of manually entering the url)? User bookmarking the page (well, adding to favourites considering

<    1   2   3   4   5   6   7   8   9   10   >