Re: [mp1] .htaccess and mod_perl
Michael L. Artz wrote: I am stuck in an Ensim environment ugh. What is possible within an .htaccess file as far as perl configuration for mod_perl 1? just about anything. I use an Ensim installation, and am constantly frustrated by it. however, there are ways around just about anything. for instance, I couldn't install an ErrorDocument in a .htaccess file for some reason. fine, I just used PerlInitHandler 'sub { shift-custom_response(404, /notfound.html); return 0}' and problem solved :) you can use this approach for just about anything - I've also use $r-handler('default-handler') to force .cgi documents to be un-executed and shown as plain text (useful for code examples :). and it doesn't need to be from an anonymous sub either. What happens with PerlModule directives, i.e. does the module get loaded only once, the first time that apache processes the .htaccess, or every time apache hits the directory? it probably won't matter - like use(), perl will only use() the module once. Similarly, If I am developing a module in place and PerlModule it within an .htaccess, will it be reloaded whenever apache hits the directory, or only once? modules are only loaded once - the first time they are use()d per-child (or at server init) If its only once, can I force a reload of the module? use PerlInitHandler Apache::StatINC to reload them during development (I've also used this on ensim :) HTH --Geoff
Re: [mp1] .htaccess and mod_perl
Geoffrey Young wrote: [...] If its only once, can I force a reload of the module? use PerlInitHandler Apache::StatINC to reload them during development (I've also used this on ensim :) Apache::StatINC is R.I.P. Use Apache::Reload instead. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp1] .htaccess and mod_perl
Apache::StatINC is R.I.P. Use Apache::Reload instead. but Apache::StatINC comes with mp1 and Apache::Reload doesn't - it's difficult to install modules on these ensim boxes since you don't have root (and yes, there are other ways around it of course :) --Geoff
Re: [mp1] .htaccess and mod_perl
Geoffrey Young wrote: Apache::StatINC is R.I.P. Use Apache::Reload instead. but Apache::StatINC comes with mp1 and Apache::Reload doesn't - it's difficult to install modules on these ensim boxes since you don't have root (and yes, there are other ways around it of course :) We could bundle Apache::Reload with 1.28 I suppose. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp1] .htaccess and mod_perl
Apache::StatINC is R.I.P. Use Apache::Reload instead. but Apache::StatINC comes with mp1 and Apache::Reload doesn't - it's difficult to install modules on these ensim boxes since you don't have root (and yes, there are other ways around it of course :) Well, Apache::StatINC wasn't distributed with the install of mod_perl that I was using (1.24) or else it wasn't in the global @INC, so I just snapped up the source from cpan and put it (with an addition to @INC) locally in my ensim tree. I will try and get Apache::Reload working, since Stas says so :) I think that I can install any module that doesn't need a compiler, although the whole 'make test' thing might get me since I don't have access to the httpd binary. Who needs testing anyway? Thanks -Mike
Re: [mp1] .htaccess and mod_perl
Michael L. Artz wrote: Apache::StatINC is R.I.P. Use Apache::Reload instead. but Apache::StatINC comes with mp1 and Apache::Reload doesn't - it's difficult to install modules on these ensim boxes since you don't have root (and yes, there are other ways around it of course :) Well, Apache::StatINC wasn't distributed with the install of mod_perl that I was using (1.24) or else it wasn't in the global @INC, so I just snapped up the source from cpan and put it (with an addition to @INC) locally in my ensim tree. eh? It's been in the distro for the last 6 years or so. But Apache::Reload is a way to go. mp2 has only it. So it's better to get used to it. I will try and get Apache::Reload working, since Stas says so :) I think that I can install any module that doesn't need a compiler, although the whole 'make test' thing might get me since I don't have access to the httpd binary. Who needs testing anyway? I don't think it has a test suite anyways. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com