Re: rewriterule, location, and perlhandler

2009-07-22 Thread Eric Lease Morgan
On Jul 22, 2009, at 10:27 AM, Torsten Foertsch wrote: If you want, it's actually possible to take this even further and remove rewrite completely. SetHandler perl-script PerlHandler Apache2::Alex::SemanticWeb Then alter your handler's code to parse $r->uri and extract everything after

Re: rewriterule, location, and perlhandler

2009-07-22 Thread Torsten Foertsch
On Wed 22 Jul 2009, Adam Prime wrote: > Eric Lease Morgan wrote: > > On Jul 22, 2009, at 12:05 AM, Adam Prime wrote: > > > > By first changing my Location directive to the following: > > > > > >SetHandler perl-script > >PerlHandler Apache2::Alex::SemanticWeb > > > > > > And then changin

Re: rewriterule, location, and perlhandler

2009-07-22 Thread Adam Prime
Eric Lease Morgan wrote: On Jul 22, 2009, at 12:05 AM, Adam Prime wrote: By first changing my Location directive to the following: SetHandler perl-script PerlHandler Apache2::Alex::SemanticWeb And then changing my RewriteRule to this: RewriteRule ^/etexts/id/(.*) /sandbox/semanti

Re: rewriterule, location, and perlhandler

2009-07-22 Thread Eric Lease Morgan
On Jul 22, 2009, at 12:05 AM, Adam Prime wrote: SetHandler perl-script PerlHandler Apache2::Alex::SemanticWeb What am I doing wrong? Does an actual file need to exist in order for mod_perl to find it? No. I didn't think so, but what sort of configuration do I need to do so m

Re: Linux::Smaps on RHEL

2009-07-22 Thread Torsten Foertsch
On Wed 22 Jul 2009, Jonathan Swartz wrote: > I'm running into the problem using Linux::Smaps on RHEL with an > Apache   server on port 80. Namely, that the httpd child doesn't have > permissions to look at the smaps file. > >       Linux::Smaps: Cannot open /proc/20074/smaps: Permission denied >  

Re: Linux::Smaps on RHEL

2009-07-22 Thread hans
Jonathan, I've tested on Redhat Nahant (RHEL4, i don't like it but my situation is similar to yours), an effectively the permissions are very tight, 600 for the smaps file. Let's look at the smaps of the current process (bash in this case): [h...@led ~]$ ls -l /proc/$$/smaps -r 1 hans