Re: privileged execution

2003-07-30 Thread Stas Bekman
Mike P. Mikhailov wrote: Hello Michael, Wednesday, July 30, 2003, 7:32:23 AM, you wrote: M I have a web application for that needs to execute a privileged M command on its host for administrative purposes. Can someone suggest a M good solution that will allow 'nobody' to execute the script

Re: Working directory of script is / !

2003-07-30 Thread ColinB
Don't mess with the cooker, try using a subclass, e.g.: # ModPerl/RegistryPrefork.pm package ModPerl::RegistryPrefork; use strict; use warnings FATAL = 'all'; our $VERSION = '0.01'; use base qw(ModPerl::Registry); use File::Basename (); sub handler : method { my $class

Re: Working directory of script is / !

2003-07-30 Thread Stas Bekman
This seems to work OK. Hopefully I should now be able to remove the mod_perl 1's Registry.pm file. Thanks everyone. Perfect. I've replaced the suggestion to use mp1's Apache::Registry with this better solution, which doesn't require mp1:

mp2 works on MacOSX 10.2.6

2003-07-30 Thread Stas Bekman
Eric Choler reports on the dev list that mp2 builds and passes all tests with prefork and worker mpms on MacOSX 10.2.6 with perl 5.8.0 w/ithreads. There was another success report a few weeks ago. Do people still have problems with MacOSX? If you do please post the output of t/REPORT here. I

Re: [mp2 ANNOUNCE] Apache-ParseFormData-0.06 (new module)

2003-07-30 Thread Henrique Dias
Thank's for yours comments. You are right, is not a replacement for Apache::Request, is a alternative implementation. On Wed, 30 Jul 2003, Stas Bekman wrote: Henrique Dias wrote: I'm pleased to announce the release of Apache-ParseFormData-0.06, a replace for Apache::Request (libapreq).

Re: [OT] About XML and Petal (was Re: templating system opinions (axkit?))

2003-07-30 Thread Eric Cholet
Le lundi, 28 juil 2003, à 21:27 Europe/Paris, Jean-Michel Hiver a écrit : Also, with TT you have to use the filter 'html' to XML encode your variables. Petal does it by default, and you need to use the TALES 'structure' keyword to NOT encode. You don't *have* to use the 'html' filter in TT. I

Re: Working directory of script is / !

2003-07-30 Thread ColinB
--- Stas Bekman [EMAIL PROTECTED] wrote: This seems to work OK. Hopefully I should now be able to remove the mod_perl 1's Registry.pm file. Thanks everyone. Perfect. I've replaced the suggestion to use mp1's Apache::Registry with this better solution, which doesn't require mp1:

Re: Working directory of script is / !

2003-07-30 Thread Stas Bekman
ColinB wrote: http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends I'm a little confused about the changes you've made here. You still mention using Apache::Registry, and then you added the text that describes ModPerl::RegistryPrefork but

Invalid command 'PerlLoadModule'

2003-07-30 Thread Martin Wickman
Hello On apache startup I get: Invalid command 'PerlLoadModule', perhaps mis-spelled or defined by a module not included in the server configuration This is with Apache/2.0.46 (Debian GNU/Linux) mod_perl/1.99_07-dev Perl/v5.8.0 Is my mod_perl to old or something? Btw, I have followed

Re: Invalid command 'PerlLoadModule'

2003-07-30 Thread Stas Bekman
Martin Wickman wrote: Hello On apache startup I get: Invalid command 'PerlLoadModule', perhaps mis-spelled or defined by a module not included in the server configuration This is with Apache/2.0.46 (Debian GNU/Linux) mod_perl/1.99_07-dev Perl/v5.8.0 Is my mod_perl to old or something? Btw,

Problems installing mp1 and apache-1.3.28

2003-07-30 Thread Thomas Schindl
Hi, I've a strange problem I've never encountered before when compiling my own apache. I simply run: 1) in mod_perl-1.28: /opt/perl/bin/perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFIX=/opt/apache make make test make install 2) If I know try to start my apache with a

HTML-Embperl : Read file problem

2003-07-30 Thread Radovan Petrík
Hi, sorry for my begginer question , i have this code in HTML-Embperl 1 open (F , 'my_file') or die ; 2 @lines = F; On line 2 embperl return error syntax error . Why ? And when I need open new file open (F , ' my_file') or die then embperl dont open new file. Thanks Rado.

Re: Problems installing mp1 and apache-1.3.28

2003-07-30 Thread Thomas Schindl
Oh found it my self. I forgot to add EVERYTHING=1 to perl-Makefile call because i simply copied it from INSTALL.simple where this is not mentionned. tom On Wed, 2003-07-30 at 14:20, Thomas Schindl wrote: Hi, I've a strange problem I've never encountered before when compiling my own apache.

Re: HTML-Embperl : Read file problem

2003-07-30 Thread Stas Bekman
Radovan Petrík wrote: Hi, sorry for my begginer question , i have this code in HTML-Embperl http://perl.apache.org/embperl/pod/doc/Embperl.-page-12-.htm __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker

PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
Hello, While I am not new to Perl, I am completely new to mod_perl. I have a client I am working on moving a project that runs under mod_perl. He does alot manipulation with the PerlTransHandler stuff. Well, even on a default mod_perl install, with a default Apache install, I can not get the

Re: PerlTransHandler headaches

2003-07-30 Thread Geoffrey Young
Glenn E. Bailey III wrote: Hello, While I am not new to Perl, I am completely new to mod_perl. check out the resources at http://perl.apache.org/ - there's lots of good information there :) sub handler { my $r = shift; return OK; } 1; And not matter what I always get a 404 with

RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: check out the resources at http://perl.apache.org/ - there's : lots of good : information there :) Heh, only found one document there concerning the TransHandler stuff .. : so, the general rule for PerlTransHandlers is to return : DECLINED unless you : set $r-filename. What I am trying

Re: PerlTransHandler headaches

2003-07-30 Thread Geoffrey Young
: so, the general rule for PerlTransHandlers is to return : DECLINED unless you : set $r-filename. What I am trying to do is just test, to make sure it is working ok. So what I did is wrote the following snippit: sub handler { my $r = shift; return DECLINED; } That should still

RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: don't forget, you can't just change handlers and expect them : to work - This is probably what has been messing me up. Doing a quick stop and restart of Apache after any change I made seems to have fixed my problems, do! Thanks for your help ;-) . Glenn E. Bailey III . Network Solutions

mod_perl and mod_fastcgi conflict

2003-07-30 Thread Collin Starkweather
I am having problems running both mod_perl and mod_fastcgi. I am using Apache::PageKit, which requires mod_perl, and Zope, which works best with FastCGI, for two different web sites. The build goes just fine, Apache doesn't so much as utter a peep of complaint, but when I try to get a web page,

need your help to test mod_perl with perl-5.8.1-RC3

2003-07-30 Thread Stas Bekman
Jarkko has just released perl-5.8.1-RC3. Quite a few things have changed since 5.8.0. So it's *very* important that you test your code with this release and immediatelly report to p5p if you have any problems, since Jarkko wants to release 5.8.1 any moment now. Any version of mod_perl 1.x

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-30 Thread Stas Bekman
Jarkko's original post had the links wrong: Here are the right links: http://www.iki.fi/jhi/perl-5.8.1-RC3.tar.bz http://www.iki.fi/jhi/perl-5.8.1-RC3.tar.gz or rsync -avz ftp.linux.activestate.com::perl-5.8.x perl-5.8.x You might also want to read the perldelta online:

Re: mod_perl and mod_fastcgi conflict

2003-07-30 Thread Collin Starkweather
On Wed, 2003-07-30 at 14:36, Perrin Harkins wrote: On Wed, 2003-07-30 at 13:34, Collin Starkweather wrote: The build goes just fine, Apache doesn't so much as utter a peep of complaint, but when I try to get a web page, it seems Apache isn't serving content correctly. In Mozilla, accessing

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-30 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jul 30, 2003 at 11:15:32PM +0200, Stas Bekman wrote: Jarkko has just released perl-5.8.1-RC3. Quite a few things have changed since 5.8.0. So it's *very* important that you test your code with this release and immediatelly report to p5p

Re: privileged execution

2003-07-30 Thread Michael
Mike P. Mikhailov wrote: Hello Michael, Wednesday, July 30, 2003, 7:32:23 AM, you wrote: M I have a web application for that needs to execute a privileged M command on its host for administrative purposes. Can someone suggest a M good solution that will allow 'nobody' to execute