Re: Creating a proxy using mod_perl
On Fri, 15 Mar 2002, Igor Sysoev wrote: On Fri, 15 Mar 2002, Marius Kjeldahl wrote: Any other ways of accomplishing the same without the added overhead of my perl module? You can use 1. mod_proxy: ProxyPass /images/http://image.site/image/ I'd go for this, perhaps with mod_rewrite or a PerlTransHandler since you'll want to proxy for more than one company's site. -- steven 1;
Re: parsing an apache-like conf-file
On Wed, 31 Jan 2001, Matt Sergeant wrote: On Wed, 31 Jan 2001, Jonas Nordstrm wrote: I have a proxy-application that I want to make as generic as possible by using configure files. Looks like a job for XML::Simple. Or Config::General::Extended. -- steven 1;
Re: Recompiling modperl ?
On Wed, 13 Dec 2000, Petter Larsson wrote: Hi, Is it possible to recompile mod_perl to add features (for example PERL_AUTHEN=1) without having to recompile apache itself ? Only if you load mod_perl via DSO. -- steven 1;
mod_perl IPC under Solaris 7
Hi, Anyone here any good with debugging IPC "No space left on device" errors? I can't find anything on the web or in deja, and am basically at a loss. Using Storable 0.703 and ShareLite 0.08 I'm getting a lot of the above errors when I have around 40 httpd children. Has anyone else used IPC under mod_perl and had the same errors? I can't even seem to find out what it is I'm running out of .. Thanks, -- steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_perl IPC under Solaris 7
Well, I ended up trussing the processes: semop(0, 0xFF0C4E70, 3) Err#28 ENOSPC man semop produces: ENOSPCThe limit on the number of individual processes requesting an SEM_UNDO would be exceeded. So, I thought changing the shminfo_semmnu to a higher value would solve it, since I have more than 30 httpd processes (semmnu default). No, error persists. This isn't a mod_perl problem anymore so will be my last post, but if anyone has any ideas they're greatfully received. Cheers, -- steven 1; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_perl IPC under Solaris 7
On Fri, 8 Dec 2000, Mark Doyle wrote: I suppose the first place to look is to use the Solaris commands ipcs and ipcrm... Also, I believe you have to update the kernerl parameters for shared memory. The default is pretty skimpy. Look at adding things like: to /etc/system. Yes, I have made some changes there. I have: set shmsys:shminfo_shmmax = 8388608 set shmsys:shminfo_shmmni = 10240 set shmsys:shminfo_shmseg = 512 The man page for shmget says that for ENOSPC a shared memory identifier is to be created but the system imposed limit on the maximum number of allowed identifiers would be exceeded. I have set shmmni to 102400 and had the same error. Can I actually see how many identifiers I have at one time, and which processes are creating them? Thanks, -- steven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing vars across httpds
On Mon, 6 Nov 2000, Differentiated Software Solutions Pvt. Ltd wrote: Hi, We want to share a variable across different httpd processes. Our requirement is as follows : Look at the IPC::* modules, IPC::ShareLite will do exactly what you need. -- steven
Re: IPC::Shareable (was Re: Perl module - LWP)
On Sat, 21 Oct 2000, Alexander Farber (EED) wrote: Is anybody successfully using it under Solaris or OpenBSD? "make test" hangs for me on these platforms and the module author is unreachable :-( What version of Perl are you using? I had some problems with make test, one of the tests doesn't return and I got a few munged shared memory segment errors, I was attempting to install under Solaris 7 and Perl 5.6.0. If not IPC::Shareable, what module do you use for fast communication between Apache-children? I started with IPC::SharedCache since it did most of what I wanted, but took Sam Tregars advice and went with IPC::ShareLite (and serialised all data myself with Storables freeze thaw methods) and it works a dream. One thing I couldn't seem to do was delete() tied IPC::Shareable hash elements without getting the aforementioned "munged shared memory segment" errors, which I can do with IPC::ShareLite. -- steven
IPC::Shareable problems
Hi, I've been having some problems delete()'ing elements from a tied IPC::Shareable hash. The example from the pod works fine (but that's not running under mod_perl) so I'm wondering if there are any lifetime/scope issues with using IPC::Shareable 0.51 under mod_perl 1.24. Has anyone had any "Munged shared memory segment (size exceeded?)" errors when trying to access (I'm using `exists()') a previously deleted hash element? I see no examples in the Eagle of deleting tied and shared hash elements (only under Apache::Registry), and Deja and various newsgroups and web searches haven't turned up anything. I'm running Apache 1.3.12 and Perl 5.6.0. Thanks, -- Steven Cotton [EMAIL PROTECTED]