RE: stdout from scripts goes to apache logs

2024-05-13 Thread David Cook via modperl
on't know if I'd choose mod_perl for a new project, but I still use it for some older ones and it's pretty good. David Cook Senior Software Engineer Prosentient Systems -Original Message- From: Steven Haigh via modperl Sent: Tuesday, 14 May 2024 2:45 PM To: modperl@perl.apach

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
On 14/5/24 14:18, Ed Sabol wrote: On May 13, 2024, at 11:00 PM, Steven Haigh via modperl wrote: If I was to guess, it seems like an interaction with open3 and modperl. https://perldoc.perl.org/IPC::Open3 Yes, this is a known problem with IPC::Open3 that is commonly seen with mod_perl

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
The apache config for modperl is as follows: ## Load mod_perl LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlOptions +Parent PerlSwitches -Mlib=/var/www/includes DirectoryIndex index.pl index.html

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
gs); while ( my $output = ) { print $output; <-- This never outputs anything. } print "Speed test complete."; <-- appears in the HTML output. waitpid $pid,0; If I was to guess, it seems like an interaction with open3 and modperl. https:

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
:53 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of s

unsubscribe

2024-05-13 Thread Will, John via modperl
unsubscribe [KBR] John Will KBR | HST Mission Information Systems Team (MIST) Goddard Space Flight Center, B3/S38H Office: 301.286.4527 | Mobile: 240.374.9647

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
oad PerlOptions +Parent PerlSwitches -Mlib=/var/www/includes DirectoryIndex index.pl index.html AddHandler perl-script .pl PerlResponseHandler ModPerl::Registry Options Indexes FollowSymLinks ExecCGI Require all granted This has the same symptoms however

stdout from scripts goes to apache logs

2024-05-12 Thread Steven Haigh via modperl
Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of scripts ends up in the apache logs. The following configuration works, and the output of shelled scripts works

unsubscribe

2024-05-06 Thread Will, John via modperl

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 10:41:02 +0800, demerphq wrote: On Fri, 27 Jan 2023, 10:35 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins mailto:phark...@gmail.com>> wrote: Maybe you haven't committed some man

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins wrote: Maybe you haven't committed some manual change on the server, so it isn't visible to other connections. I thought about this - but surely, restarting *everything* (db + apache + entire VM) would cause this to fall out. Also, w

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 09:50:42 +0800, demerphq wrote: On Fri, 27 Jan 2023, 09:43 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting th

Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting the results into a dataset to display via the web page. When I do the query directly on the SQL server, I see: SELECT COUNT(*) FROM printers; 30 When I do the same in code via

'make test' of mod_perl2 r533441 fails if "LoadModule dav_svn_module/authz_svn_module" is enabled in httpd.conf

2007-04-30 Thread snowcrash+modperl
files ulimit -c unlimited; /usr/local/bin/perl /home/build/modperl-svn/t/TEST -clean APACHE_TEST_GROUP=devtest APACHE_TEST_HTTPD=/usr/local/sbin/httpd APACHE_TEST_PORT=8529 APACHE_TEST_USER=devtest APACHE_TEST_APXS=/usr/local/sbin/apxs \ /usr/local/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -bugrepo

modifying request on the fly

2006-01-27 Thread alex-lists-modperl
Hi, I need to add a unique variable to every GET request processed by the application without issuing a redirect. Is there a way to cleanly accomplish it in MP2? The following is the illustration: Request that looks like /app?m=someparams received by the browser should become /app?m=someparams&

[dbi] how many connections should i see?]

2006-01-13 Thread alex-lists-modperl
I am using Apache/mod_perl/ApacheDBI/DBI combination with connect_on_init() to provide child processes (prefork model) with connections had had been already established. On database backend, I currently see 77 connections established. netstat on the front end indicates 77 active connections. How

Mod_Perl based chat service in Apache

2005-08-10 Thread modperl
Please allow me introduce a mod_perl based chat service at http://www.waterlet.com/b/public/e/room Use Apache, Mod_Perl and Javascript only, no Java, yet no "refresh" or "reload" of the page. New messages will be polled using Javascrip and be inserted smoothly into the chat window. So far, I

Re: [mp2] threaded applications inside of mod_perl

2005-02-04 Thread bob-modperl
On Thu, 3 Feb 2005, Stas Bekman wrote: where is the modperl confguration? As far as you've shown there is no mod_perl involved in serving any requests. (Hint: show us Directory/Location/etc container responsible for a request that has triggered the segfault) SetHandler

Re: [mp2] threaded applications inside of mod_perl

2005-02-03 Thread bob-modperl
On Thu, 3 Feb 2005, Stas Bekman wrote: Almost there. What this report lacks is: 1) the explanation of how this script was invoked. Is it running under ModPerl::Registry or else? Please show us the relevant httpd.conf bits. 2) backtrace. Please read: http://perl.apache.org/docs/2.0/user/help

[mp2] threaded applications inside of mod_perl

2005-02-03 Thread bob-modperl
uest: - CGI: 3.05 LWP: 5.79 mod_perl : 1.999021, 1.999021 3. This is the core dump trace: (if you get a core dump): [CORE TRACE COMES HERE] This report was generated by /usr/bin/mp2bug on Thu Feb 3 02:55:12 2005 GMT. -8<-- End Bug Report --8<-- Note: Complete the rest of the details and post this bug report to modperl perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED]

frank@wiles.org

2004-11-30 Thread modperl
Frank: /server-status tells the concurrent users. What did you get? On the other hand, serving 255 concurrent connections means a daily unique IP of about 100,000. I think there are other reasons to use dual-setup. Check Stas' info page. -- Auth

Re: mod_perl marketing

2004-11-30 Thread modperl
Sites which get number of concurent connections of 200 or more have to use dual-Apache setup (you can't serve such number of connections with a single mod_perl server with a few G's memory.) - Author: Frank Wiles <[EMAIL PROTECTED]> D

Re: mod_perl marketing

2004-11-30 Thread modperl
Please let me raise a question. In practice, people who can program in other phases usually can 1) program directly in C module; and 2) find that C provides much better a solution. For example, the authz phase in the dual-Apache setup. Here the static files are served by the light Apache. A C au

Re: Getting the "pre rewrite rules" uri

2004-11-27 Thread modperl
On Sat, 27 Nov 2004, Torsten Foertsch wrote: $r->the_request() is read only and returns the request line. Perfect. Thank you very much. -- Digital photo printing: http://www.fotoserve.com/?affiliate_id=1093871459 -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.or

Getting the "pre rewrite rules" uri

2004-11-27 Thread modperl
Hi, Using MP1 and I have a really small niggling problem that I can't seem to find the answer for. We've written our own content handler. There are several rewrite rules in the format of the following example in the apache config: RewriteRule ^/page_(.+).html$ /page.pl?page_id=$1 [passthrough]

mod_perl 2 & Sessions

2004-10-28 Thread xpnospam-modperl
Hi,   I have a question I'm sure some of you know the answer to.   I cannot find any explaination on how to use sessions with mod_perl 2. Can any of you send a little sample code?   I would like to be able to store information like the username and password in session variables to retrieve them on

How to use, after install...

2004-07-29 Thread ModPerl List
How do I actually use mod_perl once I install it? If I put a perl file written for mod_perl in the public_html/perl directory, it does not execute it, it just shows the "code".   Is there a part I must put in the httpd.conf file for it to tell mod_perl to execute in the "perl" directory?   Th

Re: Error upon install

2004-06-29 Thread ModPerl List
I created a new email, as I did not recieve this one, and I found my OS... subject is "Error Installing"   Sorry. Richard - Original Message - From: Richard To: [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 3:45 AM Subject: Error upon install I am trying to

Error installing

2004-06-29 Thread ModPerl List
I am trying to install mod_perl on Red Hat 8.0, which is running cPanel 9.4.1_C63 and WHM 9.4.0   Here are the installation instructions I have:   Quote:   How to Install mod_perl Sometime back I had mod_perl installed on my server, and I was given the install instructions. I wanted to pass

[OT] Re: Why I use mod_perl (PR stuff)

2004-06-09 Thread modperl
[EMAIL PROTECTED] wrote: > I'm not sure I understand how XHTML can replace TT, H::T, or Mason. > Could you provide an example? My understanding is that XHTML is just > an XML-ized version of HTML, so it retains all the form controls from > HTML; an tag in HTML is just an element in XHTML. > He

Re: Why I use mod_perl (PR stuff)

2004-06-09 Thread modperl
James G Smith <[EMAIL PROTECTED]> wrote: > > For many applications, you are correct. However, some situations > require support of the most basic systems. > > Part of the problem with XHTML is that it is a page description > language instead of a semantic markup language. We need

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-09 Thread modperl
> folks, there is no need to quote 22K of text you don't quite use anyway :( > > Please quote only parts of the text you reply to, or don't quote at all. > > Thanks. > > -- > __ > Stas BekmanJAm_pH --> Just Another

Re: Why I use mod_perl (PR stuff)

2004-06-09 Thread modperl
James G Smith <[EMAIL PROTECTED]> wrote: ... > > The conclusion seems to be that PHP is nice for small systems and > applications, but for larger, more complex projects, mod_perl is the > only one of the two that can compete with the expectations coming > from the Java side (which, as much as w

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-09 Thread modperl
of ISPs on the mod_perl site, but how actively do they really support mod_perl? Do they support it? Or does it come by default along with PHP with every single shared user www account someone gets for the going rate of 9.99$/month? Another issue... has anyone gone to the following URLs:

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-08 Thread modperl
Geoffrey Young <[EMAIL PROTECTED]> wrote: >.. > while I realize I'm in the minority with this view (and perrin and I have > had this discussion/friendly disagreement before :) what _I_ like about > mod_perl cannot be satisfied by anything other than mod_perl - I like the > Apache API, and I w

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-08 Thread modperl
> --- [EMAIL PROTECTED] wrote: > > BTW, I programmed a mod_perl based BBS system for a site. It got > > almost 200,000 (!) unique IP hits every day with the dual set-up > > (plain apache + mod_perl). This might be an example where others > > such as php and java servlet can't compete. Right? > > N

Re: Fw: Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-08 Thread modperl
It depends how to define "programming language". It seems more properly a comparison between php and Mason because mod_perl itself is the Apache API in Perl language. For newbies, this API is indeed hard to program with. My 2 cents is that mod_perl lacks an "established" application server/tookit

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-08 Thread modperl
27;t want to waste time on mod_perl 1, and started directly with mod_perl 2. For me, speed and usability always come on the first place, so I directly started with writing my own handlers using the modperl handler type. With this background, I found the documentation on mod_perl 2 difficult for a new

Re: cleanup handlers and persistent connections

2004-05-10 Thread modperl
I have a related question. I am using IPC::MM to pass shared information between children in mod_perl, Apache 1.3, which is recommended by e.g. Perrin several times on the list. The memory can be cleaned up or re-use under a normal Perl program by mm_destroy($mm). In mod_perl, is there a way to

Re: Howto use emacs and perldb to debug mod_perl?

2004-05-08 Thread pdupreez-modperl
This works for me. Thanks! I have some suggestions for the pod: > =head2 Preparing httpd.conf > > Now you need to make sure that the SLAVE_EMACS environment variable makes > it to the perl code that runs inside Apache. Fortunately this is easy: > > PerlPassEnv SLAVE_EMACS =head2 Preparing

Re: Howto use emacs and perldb to debug mod_perl?

2004-05-08 Thread pdupreez-modperl
This works for me. Thanks! I have some suggestions for the pod: > =head2 Preparing httpd.conf > > Now you need to make sure that the SLAVE_EMACS environment variable makes > it to the perl code that runs inside Apache. Fortunately this is easy: > > PerlPassEnv SLAVE_EMACS =head2 Preparing

Re: MPM worker and ithreads

2004-02-23 Thread modperl
Somehow a high volume site for your reference: System: P4 1.6G, 1G memory, Linux 7.2, Perl 5.6, customized kernel. Front-end plain apache, and backend mod_perl, + a local mysql database(!). The system currently handles 130K unique IP per day. At the peak time, the proxy serves typically 500 clie

Re: howto get a http request body only?

2003-12-03 Thread modperl
On 3 Dec 2003 at 14:26, Stas Bekman wrote: Hi Stas and Ged Many thanks for your great support! READLINE works perfectly! regards, Josi Ender > Ged Haywood wrote: > > Hi Stas, > > > > On Wed, 3 Dec 2003, Stas Bekman wrote: > > > > > >>{ local $/; my $post_data = ; } # [snip] > > BTW, that l

howto get a http request body only?

2003-12-03 Thread modperl
I search for a module for getting a http request body (without header stuff etc.). Apache::Request seems to have this functionality but only in the new dev-version: libapreq2-2.01_03-dev see: http://search.cpan.org/src/JOESUF/libapreq2-2.01_03-dev/docs/html/group__XS__Request.html#body I'm not s

Re: Can't locate object method "new" via package "Apache"

2003-12-03 Thread modperl
On 1 Dec 2003 at 10:30, Randy Kobes wrote: Hello Randy magic! I catched all the information for you, played around again with my script and now it works! Looks like the problem was in my script. Many thanks for your help! regards, Josi Ender > On Mon, 1 Dec 2003 [EMAIL PROTECTED] wrote: > >

Can't locate object method "new" via package "Apache"

2003-12-01 Thread modperl
Hi All I'm trying to get the whole http request body with something like: use Apache (); my $r = Apache->request; also tried: use Apache::Request; my $apr = Apache::Request->new($r); but failed with the following in the error log: Can't locate object method "new" via package "Apache" (perhaps