On Tue, 2012-04-03 at 22:50 -0400, Jim Schueler wrote:
Hope this doesn't get trapped by too many spam filters.
Sad news. Just saw a blog
http://www.highscalability.com/
that reports YouPorn.com switched from Perl to PHP. Apparently there's a
reported 10% improvement in speed, but
Hiya
Not sure where to report this, but the http://svn.apache.org/snapshots
directory linked to on
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
no longer exists.
Any idea where to download SVN snapshots from now? (other than from the
svn repo itself)
Hi Niels
On Thu, 2011-07-14 at 20:09 +0200, Niels Larsen wrote:
Yes, CPAN has very, very useful things. I consider its biggest problems
1) too difficult to find things when not knowing what one wants, 2) a
huge undergrowth of modules that are either bad quality or unmaintained
or duplicated
On Wed, 2011-03-16 at 10:14 -0400, shant. wrote:
i dont want to use Apache2::Compat
mp 1 code
my $fh = Apache::File-new($self-{TicketSecret}) || return;
$self-{SECRET_KEY} = $fh;
i need to convert it into mp2
On Mon, 2011-02-07 at 17:55 -0800, Fred Moyer wrote:
mod_perl 2.0.5 is here!
Well done! and thanks
clint
On Mon, 2010-12-13 at 21:11 -0800, Fred Moyer wrote:
A release candidate for Apache-Test is now available at the following url:
http://people.apache.org/~phred/Apache-Test-1.34-rc1.tar.gz
On opensuse 11.3:
clin...@balrog:~/Desktop/t tar -xzf Apache-Test-1.34-rc1.tar.gz
On Fri, 2010-12-03 at 11:52 +, is...@apache.org wrote:
libapreq2-2.13 Released
Callooh Callay!
And now on to mod_perl 2.05!
http://www.gossamer-threads.com/lists/modperl/dev/102192
thanks for releasing
clint
Changes with libapreq2-2.13 (released December 3, 2010)
- HTTP Only Cookie
On Sat, 2010-11-13 at 14:15 +0100, Tosh Cooey wrote:
I'm not quite ready to declare victory, but I think installing DBD from
source and getting more recent versions of DBD was the problem, and it
seems there's a lot of little things going wrong with DBD.
What's going on there? When did
In an SQL server, you'd use a SEQUENCE:
SELECT NEXT VALUE FOR MY_BLA_SEQ FROM ...
Here's a good read about how Flickr manage their unique IDs using MySQL:
http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/
clint
On Tue, 2010-01-19 at 14:11 -0800, Randy J. Ray wrote:
I have some code that uses IPC::Open3, and I've discovered (the hard
way) that it doesn't work under MP2 and Apache 2.2.6. What is the
best practices way of doing this under MP2?
I use IPC::Run, which works in mod_perl and non-mod_perl
Hi all
I think that the behaviour of $r-no_cache(1) is buggy, when combined
with mod_expires.
I have:
ExpiresDefaultaccess plus 1 month
ExpiresActive On
then in my mod_perl code, I call $r-no_cache(1)
The headers that are returned are:
Pragma: no-cache
For example, I'd like to be able to have:
File 1: /usr/foo/.htaccess:
PerlInitHandler MyAuth::Authnz.pm
# We want this to load /modules/foo/MyAuth/Authnz.pm
File 2: /usr/bar/.htaccess:
PerlInitHandler MyAuth::Authnz.pm
# We want this to load /modules/bar/MyAuth/Authnz.pm
Think what
i. The total VIRT size of the process before was 119 Mb
ii. Before - the process shared 94 Mb with other processes
iii. After - shared has gone down and private dirty up - does this
mean that this process now 'owns' this memory and it can't be used by
other processes?
Correct
The other
Hi Justin
I'm wondering if anyone can advise me on how I could go about trying
to understand where this 90 Mbs is comming from? Some of it must be
the mod_perl and apache binaries - but how much should they be, and
apart from the 6mb in shared memory for my pre-loaded modules, where
is it
But at some point, several iterative fixes by the Apache crew had
succeeded such that 'apachectl graceful' worked better than my
'graceful' script in some way.
It was sufficiently long ago that I've forgotten in what way, but the
memory is clear enough that I think Messrs. Swartz and
If I don't ever plan to use graceful restarts, and I believe that
smaller restart times are an unqualified Good, is there any reason why
I shouldn't ALWAYS use a script like the above? And is there any way
to avoid PerlModule modules from being loaded twice?
I do something pretty
Hm. No compile errors would be bad. But I put an error in one of my
modules (that only gets loaded the second time) and started apache,
and got error log output. I wonder what we're doing differently?
Shut down apache, then do apachectl restart
Jon
On Tue, 2009-09-22 at 22:12 -0500, Igor Chudov wrote:
I have started collecting usertrack data, and would like to know what
tools exist to analyze this stuff for Linux.
My questions are, for example: for people coming to my home page from
a certain google query, how many leave right away,
On Thu, 2009-09-17 at 23:12 +0200, Torsten Foertsch wrote:
On Thu 17 Sep 2009, Kiran Kumar wrote:
There is also Padre (http://padre.perlide.org/) , You can write
plugins and customize to your needs, there are already lots of
plugins available
On Tue, 2009-09-15 at 14:29 -0500, David Nicol wrote:
I'm ignorant of internals specifics, but perl's full cleanup on exit
needs to be called, and is called at an orderly shutdown. It doesn't
get called at POSIX::exit, or when the process in which the
interpreter is embedded exits without
Dear Igor
On Mon, 2009-08-10 at 07:40 -0500, Igor Chudov wrote:
After looking at this mailing list and asking a question about
segfaults, and looking at recent posts, I am beginning to become
concerned that mod_perl is a dead project. I would like to hear
whether it has a long term future,
That won't be enough in all cases unless it actually replaces the
interpreter, like PerlFreshRestart used to.
I would do a graceful shutdown and restart.
I've had lots of problems with graceful restarts hanging indefinitely, I
think caused by issues with the mod_ssl module.
I'd also
On Mon, 2009-05-11 at 13:15 +0200, Idel Fuschini wrote:
Hi,
I want to read the user_agent i'm using this code:
my $f = shift;
my $user_agent=$f-headers_in-{'User-Agent'};
but apache logs this error:
Can't locate object method headers_in via package Apache2::Filter
Hiya
Under mod_perl 2, stderr for all virtual hosts seems to be opened to the
global Apache 2 error log (/var/log/apache2/error.log or similar). How
do I get stderr output to go to the ErrorLog that is defined for each
virtual host?
I was going to say that this is detailed here:
On Mon, 2009-02-23 at 15:32 +0100, Clinton Gormley wrote:
Hiya
I'm using PerlConfigRequire to load my Perl application, which also sets
up the VirtualHost's using $r-add_config()
The problem is, if one my modules has a compile time error, instead of
getting the real error message, I get
Is there any way I can:
- cause the error to be reported properly
- force apache not to start
eval {load_application(); 1} || do { warn $@; die };
Unfortunately, no. That still just dies with the obscure error message.
It seems that STDERR only gets flushed in a later stage of the
eval { load_application();1}
|| do {
warn $@;
force_apache_to_quit_startup_once_stderr_flushed();
}
Why don't you do that in a Perl block?
How is this different from doing it in the startup.pl file?
Be aware that this code is executed twice at startup.
Hiya
I'm using PerlConfigRequire to load my Perl application, which also sets
up the VirtualHost's using $r-add_config()
The problem is, if one my modules has a compile time error, instead of
getting the real error message, I get something like this:
With the following request body:
i1=drnk4basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aquan
tity=1basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aid=de9a792da0f5127d72d7c6a5f
6b2d4c5i2=clth12basket%3A_new_7acf9602cd6ab0ee86f77efeaaffefff%3Aquantity=1basket
Go forth and code! :)
Go, Perl! (surely) :)
On Sat, 2008-10-25 at 05:59 +0200, Michael Lackhoff wrote:
On 24.10.2008 15:03 Michael Peters wrote:
This is only true if those structures were created during run time and go
out of scope at run time.
If they are generated at compile time or attached to global variables or
package
This is probably a question better asked to the perl monks or similar,
but if there are any of them lurking around here, it would save me a
subscription.
it's a subscription worth having :) I've learnt more about Perl since
I've been there than in the preceding decade.
Now, my question
$r-set_handlers(PerlFixupHandler = \{$_[0]-handler('modperl')});
The funny thing is, the way I understand that code above is to mean :
take a reference to the piece of code between the curly brackets, and
pass that code reference as the 2d argument to $r-set_handlers().
But the error
Hi Gordon
Hi all,
I need to know how to convert PDF files to a text file using Perl.
This has nothing to do with mod_perl - a better place to look for
general Perl support is on http://www.perlmonks.org.
Here's a node on PM that may help:
http://www.perlmonks.org/index.pl?node_id=676954
Is this not a current-working-directory issue?
This isn't terribly well documented on the mod_perl site, but from
http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html
META: document that for now we don't chdir() into the script's
dir, because it affects the whole process
Try adding warn $msg statements (instead of printing to a file).
Perl's warn function prints to STDERR, which is usually appended to the web
server's errors log. To read the errors as they are printed, do the
following (provided you have shell access on your server, and it's running on
Hi all
For those of you who have struggled with various Devel::*Prof modules, I
thought I'd let you know about Devel::NYTProf version 2, which was
recently released.
Released by Tim Bunce (of DBI fame), this profiler is a major step
forward. It:
- profiles your code by line, sub or block
-
On Sun, 2008-07-13 at 06:35 +, John M. Dlugosz wrote:
Reading the docs, I'm a little confused. Is ModPerl::Registry
specifically for emulating the CGI environment, or should I do
something else if I plan to write to the API from scratch and don't
need the backward compatibility?
Hi all
There seems to be a bug in the mod_perl2/apache2 handling of character
sets for $r-custom_response(). I'm not sure which is at fault.
My pages are all in UTF8, but I can't find a way to set this character
set for custom generated error pages.
I've tried:
- $r-content_type('text/html;
For now, I plan to just entity escape anything that isn't in the ASCII
range, but is there a workaround? Should this be fixed?
For those looking for an easy workaround for this, this is what I've
used:
$output = Encode::encode('iso-8859-1',$output,Encode::FB_HTMLCREF);
To explain:
-
this isn't a mod_perl thing, it's an httpd thing. this is from 1.3:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg20549.html
it seems the same holds true in httpd 2.0, it seems. see
ap_send_error_response in
modules/http/http_protocol.c
try setting
Hi John
The underlying reason for this is that I have a reverse proxy in
front
of it, which proxies HTTP and HTTPS requests. The back-end needs to
create self-referencing URLs but cannot tell if it's HTTP or HTTPS, so I
decided to direct HTTP to port 81 and HTTPS to port 82. I'd prefer
PM, Clinton Gormley [EMAIL PROTECTED] wrote:
On Mon, 2008-03-24 at 15:25 +0800, J. Peng wrote:
hello list,
we have our own realserver called QHttpd.
This realserver doesn't support SSL protocal (https).
So I have to develop a proxy before QHttpd to get it be compatible
I'm not sure what you're suggesting. The first few pages of cache on
CPAN have some modules for caching data in memory and on disk and so
forth, but I don't see how they relate to my problem.
Which is that of notifying all of my application's perl processes when
an update has been
Really interesting mail - if you're on perl monks, please cross post it
to there - there are a few UTF gurus who could help you out there.
If you're not, drop me a line and I'll post it for you.
Clint
On Fri, 2007-12-07 at 10:10 -0800, Fred Moyer wrote:
Greetings mod_perl list,
I've been
Although, I would go for something like pound doing the proxying for
me, instead of mod_proxy
I can't agree more!
Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
configure, fast, stable, and makes the whole SSL and load balancing dead
easy.
Pound++
Clint
On Sun, 2007-10-21 at 23:34 -0500, Boysenberry Payne wrote:
I generate my Javascript on the fly, it can be different on every
request.
I find this very useful...
Hi bop
That is probably a very inefficient way of doing it. I would guess that
nearly all of the JS that you use on your site is
You obviously haven't built a JSON API yet :)
True
Each request will be JS and will be different.
And fair enough :)
Clint
On Tue, 2007-10-16 at 15:08 -0400, Perrin Harkins wrote:
On 10/16/07, Clinton Gormley [EMAIL PROTECTED] wrote:
Unless you have a really good reason to use worker, on linux, the
recommended MPM is worker.
I'm sure you meant to say prefork there.
Ahhh - the old replying after a few
Hi Mark
I don't know what the issue is, but do you really need to use threads?
Why not just use the prefork MPM? It is more efficient than the worker
MPM on linux, and may (may being a complete guess) be the source of
your troubles.
Unless you have a really good reason to use worker, on linux,
(Resent with smaller attachment - previous version refused because too large)
Linux::Smaps simply analyzes /proc/$PID/smaps. It was initially written on a
32bit system. Looking at your bug report I assume the hex() function doesn't
work for 64bit hex values. Can you show us the output of
Yes, I think so. The point is 64bit integers are not portable to 32bit perls.
Hence, even on a 64bit system with warnings enabled a non-portable warning is
issued:
Ahhh I get it - so it isn't warning you that there is a problem using
this on your system, just that the same input on a 32 bit
Sorry if this has been mentioned before or I'm teaching you to suck eggs,
but if you are running an old CGI script in mod_perl you need to not scope
with 'my'.
See
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#my___
_Scoped_Variable_in_Nested_Subroutines
This
On Wed, 2007-09-19 at 10:24 -0700, Graham TerMarsch wrote:
I've been working on some projects needing JS minification recently and
wanted
to ping others and find out if anyone else would find it useful to have a
mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...
You haven't given us any information about your setup, or the error that
you see, so it is very difficult to help you.
You will find an installation guide here:
http://perl.apache.org/docs/2.0/user/install/install.html
Clint
On Tue, 2007-08-21 at 16:59 +0530, usha rani wrote:
hi ,
i
On Tue, 2007-08-21 at 14:40 -0300, RGKärcher wrote:
Hi guys ,
Thanks Michael and Georg but none of the examples
works for me ...
I'm using Apache::Asp .
What could be the problem ?
Thanks in Advance
What error are you seeing? What does the HTML being sent to your
browser look
On Tue, 2007-08-21 at 14:21 -0400, Dan King wrote:
I am having issues running a web application, called OTRS, that uses
DBI and DBD::Oracle. When I insert special characters, such as é or â
they show up as question marks in the database when looking at them
from sqlplus or through the web
I wonder if for some reason apache is trying to execute your images like
a CGI script. (First time I've heard of this, so may be wrong)
Searching on that error message, I found a thread with the same problem.
Have you added the PerlRequestHandler outside a File or Location
directive?
On Fri, 2007-08-03 at 20:02 +0800, Jen mlists wrote:
No.Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
modperl can't.Is the %ENV hash not useful under modperl?
No it's not - mod_perl has access to all of that (plus a whole lot more)
via other means, so apache doesn't need to
On Mon, 2007-07-30 at 18:21 +0800, Ken Perl wrote:
I've configured the Apache::DBI in httpd.conf like this,
PerlModule Apache::DBI
I didn't have Apache::DBI-connect_on_init($data_source, $username,
$auth, \%attr) in startup.pl since we don't use startup.pl. and the
doc says to config it
I've managed to get php5.2.2, mod_perl 2.0.3, apache 2.2.4 and mysql
5.0.27 working on openSuSE 10.2 x86_64.
In summary:
- I install these MySQL packages:
MySQL-server-standard-5.0.27-0.rhel4.x86_64.rpm
MySQL-client-standard-5.0.27-0.rhel4.x86_64.rpm
You should not share connections between processes. You will end up
with segfaults.
The way Apache::DBI works is as follows:
- you connect and disconnect from the DBI as per normal
- Apache::DBI caches your connection and overrides disconnect
so that it doesn't actually disconnect
- when
On Tue, 2007-07-17 at 12:36 +0100, Anthony Gardner wrote:
Yes, I'm aware of all of that, but it's the 'you will only have one
connection per apache child'. So with 150 processes, that's 150
connections / DB instance. No?!
Correct
And the 'Oracle can handle this with ease.' Oracle can handle
On Wed, 2007-07-11 at 08:43 -0400, Scott Kaplan wrote:
Situation:
= User puts in username password into a form (uses POST to send
data) to log in.
= When the user is done, he/she logs out.
= When clicking back (a couple of time) the user eventually reaches
the page prompting for username
Wow. I never noticed it. In my app I have runmode that shows me %ENV and
@INC. At the first request my custom path was in there. And at the
second request it wasn't. But after a few more requests it's still
there. Weird behaviour?
All that means is that you're hitting a new child for the
$fp =~ /(.*)/;
This doesn't untaint $fp.
instead, you could do this:
( $fp )=( $fp =~ /(.*)/ );
To untaint a variable using this method, you need to assign the result
of a regex capture to the variable, not just do a regex check
Clint
After looking at the documentation/code I do not think I can use
Apache::DBI for that (but I'd love to be proven wrong!). Can anybody
point me towards a solution. I can obviously copy and modify
Apache::DBI, but it seems the kind of code that it's easy to get wrong
in very subtle ways, so
in my case, i need to do authorization. do i need
extra mod_perl front-end server to do this? how does
this perform?
the beauty of mod_perl is that you can step in and out of the process
wherever you need to. The down side is that mod_perl uses a lot of
memory, so you try to keep your
Following on from the thread questions on serving big file SQL
statement parsing, I have a related question:
Where do you store your uploads?
I can think of two approaches:
1) In the DB, store the name of the server to which your file has been
uploaded
2) Store your upload in a shared
- suggestions
welcome.
Also see my question at Perl Monks:
http://www.perlmonks.org/index.pl?node_id=624334
thanks
Clint
On Tue, 2007-06-26 at 16:34 +0200, Kjetil Kjernsmo wrote:
On Tuesday 26 June 2007 16:22, Clinton Gormley wrote:
- used to strip XSS scripting from user submitted HTML
Ooooh
On Tue, 2007-07-03 at 10:26 -0400, Perrin Harkins wrote:
On 7/3/07, Clinton Gormley [EMAIL PROTECTED] wrote:
1) In the DB, store the name of the server to which your file has been
uploaded
I try to avoid files in the DB. It always ends in tears.
Sorry - I meant, store this in the DB
On Tue, 2007-07-03 at 10:26 -0400, Michael Peters wrote:
Clinton Gormley wrote:
I can think of two approaches:
1) In the DB, store the name of the server to which your file has been
uploaded
Don't do that. The moment you put a file into the database you loose all
of the nice
On Tue, 2007-07-03 at 10:37 -0400, Perrin Harkins wrote:
On 7/3/07, Clinton Gormley [EMAIL PROTECTED] wrote:
However, the Perl code itself has
already been compiled into C and is fast.
It's not a very important distinction, but perl code is not compiled
into C. It gets compiled
Tony - There are lots of people using Registry successfully (in fact the
new Bugzilla uses Registry, if I remember correctly).
Thank you, Jonathan, for your more detailed explanation. I have to say, I am
extremely disappointed with my experience. I've used PHP for some years to
create
Apache::Registry already looks for changes to your scripts and
reloads
them as necessary. So you shouldn't need to use both of them.
Well, I agree it says that, but when I tried using Registry without
Reload,
it didn't seem to work, so I gave up, and used Reload, more-or-less
Disclaimer: I have never used Apache::Reload, but:
Apache::Registry already looks for changes to your scripts and reloads
them as necessary. So you shouldn't need to use both of them. However,
reading the docs for Apache2::Reload, it mentions using it at the same
time as Registry scripts, which
Hi Christian
Yes, it is intended behaviour.
Basically, by the time that your script dies, it is too late to send the
correct headers to indicate a server error.
What I do is keep all of my content in a single variable, and once
pretty much everything that could die has finished, I
Hi all
I've recently released two modules to CPAN which are of relevance to
mod_perl developers, one as the author and one as the maintainer.
I realise this is a blatant plug, but these modules have been useful to
me in my web-app work, and so there is a good chance that they will be
useful to
On Tue, 2007-06-26 at 11:02 -0400, Jonathan Vanasco wrote:
On Jun 26, 2007, at 10:22 AM, Clinton Gormley wrote:
HTML::StripScripts
thanks! I'm already a happy user.
excited to check out the changelog.
does the new version automagically do the anti-xss flash embed
extensions
Actually, something I would feel would be very useful is if it could
return an XML::LibXML::DocumentFragment object.
I tend to use XML::LibXML to parse user input and insert in the
document, which is then going through some XSLT, and since you've
allready parsed stuff, it seems like a
I've been looking at how you would add object and embed tags, and it
isn't trivial. They're not in there by default because of the nasty
things that they can do. But I could add them in, along with flags to
specify that you want to allow them, much like AllowHref
I'll get back to you.
Again,
Yeah I've seen some neat twisted stuff, POE might be a reasonable
alternative in the Perl space.
POE is pretty neat. I haven't played with it much, but i liked it.
I've done a lot of twisted stuff in the past , so its very natural to
me. I brought it up over POE though ,
you should write something into the first-line of the code that looks
to see if there's a job already running; and quits if there is.
Of course. My daemon wrapper code checks if that particular job is
already running, and if so skips it. If the job is still running after
the Nth skip, it
On Mon, 2007-06-18 at 16:51 +0100, John ORourke wrote:
Hi folks,
I'm wondering what modules people use for sending email? At the moment
I'm using MIME::Lite but I'm doing several things myself which a bigger
module might do for me:
- header encoding - I can't find any modules which
On Thu, 2007-06-14 at 14:23 +0800, Jen mlists wrote:
Hello members,
I would config/write a modperl module to do this thing.
When someone access a file which is located on special directory,say it was,
/download/test.flv
we would do some auth check.If his IP or request time were
Yes I know whether I would return an OK or a FORBIDDEN under different
conditions.
My questions is,when return OK,what should I do on next step?How can I
send the file to clients?Do I need a redirect?When using
redirect,clients may also get the real file path by guess,isn't it?
By using a
Sorry - typo on the constants
So:
- the user goes to: /path/file.xyz
- your access handler performs its checks
- Allowed?
- Y :
- return Apache2::Const::OK
- file served by standard apache means
- N :
- return Apache2::Const::FORBIDDEN
- apache sends a 403
On Thu, 2007-06-14 at 18:04 +0800, Foo JH wrote:
Clinton's approach may be better (with PerlAccessHandler). Try that
approach first...
Basically to return a file content over there's not much work to be done:
...although, from the problem set that has been described, there is no
reason to
mhh,I understood for your meanings.but my real question is how I can
send the file to clients after returning OK.here is my apache config
and modperl script,please give more helps.thanks!
from httpd.conf:
PerlModule DLAuth
Location /flv
SetHandler perl-script
PerlHandler
Thank you,would try for it.
I'm new to mp,so sorry that have asked this low-level question.
Anyway,thanks a lot.
Don't worry - we all started out knowing less than you know now.
If this is a new project in mod_perl, have you considered using Apache 2
and mod_perl 2?
mod_perl 1 is
Hi John
I've been using libapreq, which has a charset method:
http://search.cpan.org/~joesuf/libapreq2-2.08/glue/perl/xsbuilder/APR/Request/Param/Param.pod#charset
It is fairly limited, it recognises:
0 APREQ_CHARSET_ASCII (7-bit us-ascii)
1 APREQ_CHARSET_LATIN1 (8-bit iso-8859-1)
2
On Tue, 2007-06-05 at 22:43 +0530, abhishek jain wrote:
Hi friends,
I wish to create a scalable site made in PERL and seek guidance which
templating engine should i use which has less learnig curve also.
Names comming to my mind are:
1. Embperl
2. Template::Toolkit
3. Html::Mason
Check
On Tue, 2007-06-05 at 11:36 -0700, Michael Greenish wrote:
But I'm locked in to using HTML::Template because I know it, have
wrapper functions created and I don't have time to figure all that
stuff out again, plus redo old templates or re-write model classes to
spit data out in a different
On Thu, 2007-05-31 at 00:19 -0700, Alexander Burrows wrote:
That is perfect. exactly what I needed. Thank you very much =)
For future reference, look at the docs:
http://perl.apache.org/docs/2.0/index.html
On Tue, 2007-05-29 at 16:32 +0200, Alicia Amadoz wrote:
Hi,
How I should write a warn() statement in startup.pl? I am new to Perl
and I wrote 'warn;' and 'warn(use lib 'path');' but the errors where
like 'Warning: something's wrong'.
That means that it is being loaded - the something's
Ok, then I finally understand what is happening. But is there any other
option to use every script under mod_perl even calling it from php?
The only way I can think of would be to make a web request in PHP, so
the PHP program does an HTTP request to your web server, to call the
perl
Hi Alicia
The handling of the current working directory has changed from mod_perl
1 to mod_perl 2.
In mod_perl1, mod perl registry used to chdir into the script's
directory.
This no longer happens as mod_perl2 has to support threads, and chdir is
not thread safe - it would affect all other
On Mon, 2007-05-28 at 12:36 +0200, Alicia Amadoz wrote:
Hi,
I have tried with adding the directory where perl_functions.pl lives in
my startup.pl file. Again, the error is the following:
Can't locate perl_functions.pl in @INC
So you need to examine @INC to see what is missing.
just
Hi Tyler
I know next to nothing about reading backtraces, but it looks to me like
your segfault is occurring while your program is trying to parse the
headers.
Before doing any more, I would compile my own version of Apache2,
mod_perl2 and libapreq2, and see if it still occurs.
With regards
Clint,
I changed the header I sent from text/html to text/plain and the
segfaulting no longer occuring.
It's more likely to be the headers your server is receiving (eg cookie?)
than the headers it is sending.
1 - 100 of 187 matches
Mail list logo