I checked) so I build it
by hand myself - with no dramas these days.
Carl
Hello,
With the following server environment: SERVER_SOFTWARE = "Apache/2.0.47
(Win32) mod_perl/1.99_10-dev Perl/v5.8.0 PHP/4.3.2",
and libapreq2 installed via PPM, I am not able to load Apache::Cookie.
I would appreciate hearing about any success with this configuration.
Thanks,
Randy Kobes wrote:
On Mon, 1 Mar 2004, Carl Holm wrote:
Hello,
With the following server environment: SERVER_SOFTWARE =
"Apache/2.0.47 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0
PHP/4.3.2", and libapreq2 installed via PPM, I am not able
to load Apache::Cookie. I would apprecia
Randy Kobes wrote:
On Mon, 1 Mar 2004, Carl Holm wrote:
[ ... ]
Thanks for the suggestions. Mod-perl2 works OK. No complaints from
Apache::Request. I added the appropriate LoadFile directive, and now get
the following error stack:
[Mon Mar 01 18:05:33 2004] [error] [client 127.0.0.1] Can
I must be spoilt by apache2 :)
RedHat Linux 7.3 on i386, trying to build mod_perl and
mod_ssl into apache 1.3.31. Here's what I'm doing :
tar -xzf ../apache_1.3.31.tar.gz
tar -xzf ../mod_ssl-2.8.19-1.3.31.tar.gz
tar -xzf ../mod_perl-1.29.tar.gz
cd mod_ssl-2.8.19-1.3.31/
./configure --with-apache=
Stas Bekman wrote:
Carl, can you build Apache w/o mod_perl w/ the rest of the things?
Yes, it's just the mod_perl stuff that's barfing. It looks like
the mod_perl make install isn't putting the header files into
src/includes/.
A
quick google shows a bunch of relevant hits:
http:
I've just done a bit of an overhaul of my mp2 install
on apache 2.0.50/perl 5.8.5/mp2-current, NetBSD 1.6.2, and
am having a few problems.
the most critical one is that I can't find apache::server
anymore.
My old startup.pl scripts had
use Apache::Server ();
Has this been done away with?
I not
Stas Bekman wrote:
Carl Brewer wrote:
I've just done a bit of an overhaul of my mp2 install
on apache 2.0.50/perl 5.8.5/mp2-current, NetBSD 1.6.2, and
am having a few problems.
the most critical one is that I can't find apache::server
anymore.
My old startup.pl scripts had
use Apac
Stas et all,
Here's the code that I was using to grab POSTed values and
put them into a hash 0 sorry for the verbosity of this post,
I won't pretend to fully understand this code, Stas wrote
the majority of it way back when libapreq wouldn't compile
on NetBSD, and I've been using it ever since.
If
Stas Bekman wrote:
I'm thinking that it might be beneficial to implement it in C.
Would I be better served by switching to using libapreq? Isn't this
what it's for? I recall you sent me that code a long time ago
as the libapreq stuff wouldn't compile cleanly on NetBSD.
I'd prefer not to have to
e installs would fix whatever's not
looking for the library in the right place, but to no avail.
Any suggestions?
thanks!
Carl
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Stas Bekman wrote:
Carl, remember to always file a proper bug report and save yourself and
us time. The report includes the info we need. Other than that, please
send us the output of:
I would, except I don't think it's a bug report, it's probably a
stuff-up at my end :)
ldd
Please send the output of mp2bug as requested before.
Done.
I just pulled the latest CVS down, same problem.
-8<-- Start Bug Report 8<--
1. Problem Description:
[DESCRIBE THE PROBLEM HERE]
2. Used Components and their Configuration:
*** mod_perl version 1.
I'd suggest to completely nuke /usr/local/apache2, install Apache from
scratch and chances are that everything will work fine. You have too
many old libs there.
I'll give that a go tonight or tomorrow when I get a few spare hours,
thanks!
--
Report problems: http://perl.apache.org/bugs/
Mail
nd it was all ok
again.
I've also moved my code to using apreq2, instead of the Stas &
Carl hack job I was running :) (I cheated and used a wrapper change,
so I didn't have to do wholesale changes to my code).
Out of curiosity, is anyone working on docs for apreq2 for
people in a hurry?
Before I take the plunge and write my own, has anyone
here written, or know of, any web forum s/w that runs
under mp2 without using compat? I know web forums are
kinda evil, but I've got a genuine use for one where I
need to be able to control access to it.
thanks!
Carl
--
Report problems:
Markus Wichitill wrote:
Carl Brewer wrote:
Before I take the plunge and write my own, has anyone
here written, or know of, any web forum s/w that runs
under mp2 without using compat?
http://www.mwforum.org/
I've played with installing this today, I'm seeing
the following in my error l
Markus Wichitill wrote:
Carl Brewer wrote:
I've played with installing this today, I'm seeing
the following in my error logs :
[Thu Sep 02 13:52:41 2004] [error] Can't locate object method
"cleanup_register" via package "APR::Pool" at
/data/www/aboc/perl/mwf/M
Stas Bekman wrote:
that seems to be a MakeMaker bug on some BSDs. Please see:
http://rt.cpan.org/NoAuth/Bug.html?id=7417
The solution seems to be to use gmake. At least it worked for Carl on
NetBSD.
It works for me with gmake, yes.
There's another problem I haven't had time yet to rep
[EMAIL PROTECTED] wrote:
but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod
WrapXS/APR/ThreadMutex/ThreadMutex.pm
/usr/home/mgorb/mp-test
Stas Bekman wrote:
Carl Brewer wrote:
[EMAIL PROTECTED] wrote:
but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod
WrapXS/APR/ThreadMutex
Joe Orton wrote:
Oh well, having found a NetBSD box to testd this myself, the NetBSD
fcntl() is being economical with the truth. It doesn't return
O_NONBLOCK yet the socket really is non-blocking. I'll put in the
suggested apr_hints.m4 change. fun fun
This may be worth bringing to the attention o
Hello Stas et al,
Just a quick question; how far off a feature-freeze is MP2?
ie: if I wanted to write a moderatly serious e-commerce app
in mp, is it safe to use mp2 and apreq2?
thanks!
Carl
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist
Philippe M. Chiasson wrote:
a release candidate for mod_perl 1.99_17 is now available for testing.
Compiled & works like a charm on NetBSD 1.6.2/i386
with normal (BSD) make even. mp2bug can't find the
httpd binaryu though, but that's pretty minor.
steel1: {15} perl mp2bug
-8<--
Philippe M. Chiasson wrote:
Could you post your /data/src/modperl-2.0/bin/../lib/Apache/BuildConfig.pm
in it's entirety ?
steel1: {23} cat /data/src/modperl-2.0/bin/../lib/Apache/BuildConfig.pm
#
# /*
# * *** WARNING **
# * This file generated by Apache::Build/0.01
# * Any c
Hello,
I'm fiddling with Mason on apache2 (NetBSD 1.6.2 & 2.0RC's)
and I'd like to use mp2 in native mode, not compat.
I found :
http://www.masonhq.com/?ApacheModPerl2
And the hack in there I haven't yet tried, but does anyone
know of any plans to make this a bit neate
Philippe M. Chiasson wrote:
Carl Brewer wrote:
I believe there is a CPAN module that makes it a bit cleaner and
less hack-ish:
MasonX::Apache2Handler
http://search.cpan.org/dist/MasonX-Apache2Handler
Thanks Philippe, I've found that now and built a NetBSD pkg for it.
But, I'm having tro
unless File::Spec->file_name_is_absolute($def);
=
Thanks Randy,
Has this been submitted to Beau Cox by you or anyone?
Carl
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
unless File::Spec->file_name_is_absolute($def);
=
That works, btw. Thankyou. Now if Beau can update
the Apache2Handler, it'll all be good!
Carl
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
);
print STDERR $upload->filename();
}
It starts to work, but I don't understand why I need to declare $req
again here? I want to keep my form parsing image stuff seperate,
as not all my pages will have images to load, am I doing this the
'best' way?
thanks!
Carl
Tom Schindl wrote:
Carl Brewer wrote:
sub get_uploaded_image {
my ($name, $max_size, $r) = @_;
use Apache::Upload;
my $req = Apache::Request->new($r);
my $upload = $req->upload($name);
I've got that in my subroutine and it works, but I'm concerned
that I'm dipping
':common';
1;
Do I need to put something in my script and library
to tell Apache/mod_perl to watch them?
This is in my library :
# tell Apache we're volatile, watch for changes ...
use Apache::Reload;
Does that also need to be in my calling script for it to
be noticed?
thanks!
Carl
Perrin Harkins wrote:
On Thu, 2004-10-28 at 11:53, Geoffrey Young wrote:
I'm sure others can point out additional tools as well.
Apache::SessionManager is a good place for newbies to start with
sessions under mod_perl:
http://search.cpan.org/~enrys/Apache-SessionManager-1.02/
Further to that, "Ses
Stas Bekman wrote:
If you are eager to start testing you can start doing so right now with
the latest cvs. I'm doing some last testing and will post the 1.99_10
release candidate in about 10 hours.
steel1: {8} perl mp2bug
-8<-- Start Bug Report 8<--
1. P
Carl Brewer wrote:
> report from NetBSD 1.6.1
*doh*
Should have gone to dev .. Mea Culpa
Carl
.conf
t/TEST
replace YOURHOSTNAME with your hostname ;) may be localhost will do, I
haven't played on Ipv6 system yet.
Localhost didn't work :)
cheers
Carl
lems (or similar).
Stas, do you want to have a play on the box to see if you can
figure it out?
Carl
or all your work with mp2 and
answering my clueless questions :)
Carl
ookie_new and ap_make_array?
Carl
Program received signal SIGSEGV, Segmentation fault.
0x000c56f0 in ap_palloc (a=0x1380938, reqsize=20) at alloc.c:700
700 char *first_avail = blok->h.first_avail;
(gdb) bt
#0 0x000c56f0 in ap_palloc (a=0x1380938, reqsize=20) at alloc.c:700
#1 0x000c5d84 in
ision based on your real-world situation.
Carl
XS_Apache__Cookie_parse() is OK:
c = ApacheCookie_new(r, NULL);
I'm using gcc 3.3.2. Will leave a build of gcc 3.4.3 running overnight and
try rebuilding apache with that sometime tomorrow.
Carl
lates the build tools from being part of the problem.
Carl
Out of curiosity, what does `perl -V` say?
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos g-web1 5.8 generic_108528-19 sun4u sparc sunw,ultra-4
solaris '
config_args='-ds -e -DDEBUGGING -D
and there are SSI's involved which would explain the
different request records, although the record in frame 2 doesn't seem
right.
Shall continue next week...
Thanks
Carl
>
> SetHandler server-status
> Order deny,allow
> Deny from all
> Allow from env=admin_ip
>
>
> I still get
>
> [client 127.0.0.1] client denied by server configuration
Put the access rules in the front-end (non-mod_perl) apache rather than the
back-end.
Carl
:Registry in that it uses the built-in perl interpreter but it
reloads the script on every request. This means that it doesn't give the
same performance benefit that Apache::Registry does, but on the other hand
it's immune to some of the problems.
Hope this answers your question.
Carl
ou can try running your script through Apache::Registry with
http://www.mydomain.com/perl/myscript.cgi if that doesn't work then
http://www.mydomain.com/perl-cgi/myscript.cgi for Apache::PerlRun. Failing
any of those revert back to CGI with
http://www.mydomain.com/cgi-bin/myscipt.cgi.
Carl
pachectl restart
else
echo "ERROR in apache config"
fi
fi
--
Carl
is the thing I want to make safe. I'm already
doing this to it later :
my $safe_uploaded_filename = uri_escape($uploaded_filename);
which is from URI::Escape, but I don't think that will
save me :) I know I need to check the return codes from copy etc.
Any belts with a cluestick? I'm not really sure what to google
for here.
thanks
Carl
t are slow when establishing connections it can make a
considerable speed difference.
Carl
nything.
If you're going to run beta or pre-release code - you've got to accept the
risks that go with that.
Carl
ype: text/html
without a character set in the header?
You've probably got
AddDefaultCharset 8859-1
in your apache config, ("On" == "iso-8859-1")change it to:
AddDefaultCharset Off
See:
http://httpd.apache.org/docs-2.0/mod/core.html#adddefaultcharset
Carl
that the & has not been changed into a HTML
entity - so what you should do is:
http://example.com/foo.pl?foo=bar®=foobar";> ...
Carl
of submitting a form because the browsers have to get that right. It
is also not a problem when typing URLs directly into the address bar of the
browser.
Reference:
http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2
---
Carl
- save for some
pretty hairy stuff in glue/perl/t/apreq/cgi.t, but isn't
apreq supposed to hide all that bucket brigade stuff? I
just want the params from my POST and GET requests!
Can anyone suggest what simple change I need to make to the
above to get it working with mp2.0.0/libapreq-2.05-dev?
thanks!
Carl
Carl Brewer wrote:
If I'd looked in :
docs/html/group__apreq__xs__request.html
I'd have seen that all I needed to do was to
change
use Apache::Request;
to
use Apache2::Request;
and
my $req = Apache::Request->new($r);
to
my $req = Apache2::Request->new($r);
and it would
Message>>>>>
I'm having trouble getting the request object from mod_perl. Here is the
original attempt:
<<<<<
Have you simply tried:
my $r = shift;
at the beginning of your handler? If you're using Apache::Registry, then
your whole file is a handler so you can do that at the top.
Carl
backports, so didn't realise that somebody had done the pacakge till it was
mentioned on here recently.
Carl
7;s some backported stuff available (linked from the catalyst site) but
I've found that it's incomplete.
I don't expect the situation would get any better for a while yet - catalyst
still seems to be under large amounts of development...
Carl
rray. So in effect you're doing:
$r->pnotes('KEY' => number_of_elements_in_array );
Your other snippit looks OK to me.
Carl
also point out that even if you catch redirects, you've still
potentially got broken HTML etc etc to "fix".
Carl
ate/anon column shows the amount of memory exclusive to the process.
Carl
with
a query string a=b it was then impossible to submit a=B without clearing
your browser history as IE automatically "corrected" the case of your
request based the entry in it's history...
Carl
> Philippe M. Chiasson wrote:
> > 2 possible avenues to investigate:
> > - Change your code to not use an array-ref as mx_dsns argument but some
string (comma delimited, etc)
> > - Look at changing Apache::DBI to not use the ref as part of the dsn
cache key, but use the contents of the array
> >
ensure
that you only ever define that array once, then the reference to it won't
ever change.
Or *if* you do need to change the DSN list without restarting mod_perl you
need to do something that's a bit more of a work-around.
Carl
#!/usr/bin/perl
use Compress::Zlib;
.
print Compress::Zlib::memGzip($htmlstr);
<<<<<<<<<<<<<<<<<<<<
This one is best practise - and is a requirement when you want to import
functions into your own scripts name space.
Carl
losing
connections. Remember that in most situations you're going to serve a page,
followed by some images and stylesheets.
So if you have a front-end/back-end setup the best config is:
KeepAlive Off
in the back-end mod_perl servers, and On in the front-end static/proxy
servers.
Carl
h a good
review yet...
Carl
ooks out in the wild yet?
Is anybody working on anything?
In particular do O'Reilly have plans to update any of the books?
Carl
Connected to www.verizonnoticias.com.
Escape character is '^]'.
GET /Home/index.ad2 HTTP/1.1
Host: www.verizonnoticias.com
...
Carl
> In fact I'm not actually getting *any* headers back:
Checking your server ident you're running modperl 1.
Sure you're calling
$r->send_http_headers()
?
Carl
er_out
Yet enabling "PerlSendHeader On" and doing:
print "Location: $newurl\n\n";
works fine.
I'd prefer to get the first way working - any ideas?
Carl
: chunked
Content-Type: text/plain; charset=utf-8
0
Connection closed by foreign host.
<<<<<
Carl
ate()
(assuming your using pre-fork). The currently running child exits at the end
of the request freeing any memory it's allocated, and the main apache server
process will fork a new child to replace it if needed.
Carl
r example you need to restart
server to introduce code changes.
Carl
But having said that, I find Apache2::Reload very handy for easy and quick
development.
Me too!
Although I find that occasionally I have to restart apache on the
development box before it'll work correctly. Hence I wouldn't run it on a
production server.
Carl
another 100MB, it's just not available at the OS level or for
other processes.
This isn't completely bad as long as your OS has good memory management. The
unused memory in the perl process will just be swapped out to disk and left
there until that process uses it again or exits.
Carl
your favourite
templating system.
Whole lot - couple of dozen lines of code?
Carl
mething in the middle, ideally with perl starting
post-config with "apachectl configtest" also checking that perl can start.
As far as I can see from the docs that isn't an option.
Am I missing anything, or has anybody got any suggestions?
Thanks
Carl
entation, we're also
looking for client-side/JavaScript developers.
http://www.gmgjobsnorth.co.uk/digital/client_side_developers.html
Finally there's a little more blurb here:
http://www.gmgjobsnorth.co.uk/digital/
Carl
erved from proxy cache rather than hitting the end servers again.
Carl
really need to compile a separate version of perl itself as the Redhat is
multi-thread by default and offers relatively poor performance.
Carl
2.0.2, perl 5.8.8 and apache 2.2.3 so it's
*nearly* up to date!
Anybody tried RHEL5 and like to comment on whether the perl performance is
better than with RHEL4?
Carl
own rpms than to find some suitable!
Carl
So for mp1 that's Apache::Log, and Apache2::Log for mp2. I can't see
there being any options outside what those modules already provide.
Carl
sections which
means you'll have to list all your subdirs - or maybe see if you can
dynamically configure them via a section.
Carl
* cache in memory anyway through buffers etc. So a disk
-based cache can frequently be as fast as shared memory.
So you'll probably find that Perrin's BDB suggestion is the quickest -
easy to implement solution.
Carl
http://httpd.apache.org/docs/1.3/
Carl
I'd be able to turn off logging at the back-end. However the user_id
isn't available.
Is there any easy way to pass the user_id from the back-end in such a way
the front-end could log it? Or is there another option?
Carl
k.
All you can do is use the public IP you are receiving, and leave it to your
clients to figure out which internal user it was from their own internal
proxy logs.
The only time it would be safe to use X-Forwarded-For would be when there
*always* is a proxy server that you control (for example a reverse proxy).
Carl
My Google alert sent this to me today:
http://whitepapers.zdnet.com/abstract.aspx?docid=257555
Is it me, or does that just link through to here:
http://www.oreillynet.com/digitalmedia/blog/2002/05/perl_success_story_termiumplus.html
which doesn't require registration?
Carl
Looks like somebody has managed to subscribe one of the PayPal support email
addresses to the list...
Carl
- Original Message -
From: "PayPal Customer Service 1" <[EMAIL PROTECTED]>
To: "Carl Johnstone" <[EMAIL PROTECTED]>
Sent: Saturday, Octo
your templating language isn't up to it then
you end up inter-mingling code and HTML.
Another vote here for Catalyst, we're running web sites for around 18
regional UK newspapers using it. Amongst the models we use DBIx::Class for
DB access, and for view TT.
Carl
ur machine with Ubuntu linux and use that instead. It'll save you a lot
of
time and headaches.
We use a VM linux server, then setup file shares between the desktop and VM.
Allows the developer to use their favourite Windows editor, but the site
runs on the same platform as on live.
Carl
nge in subject.
Or:
2. Pay up for VMWare Workstation.
We use the free VMWare server, and just use smbmount. Obviously needs a
little more linux knowledge to setup.
Carl
neral advice for mod_perl is to simply load as much as you can before
apache forks. Beyond that you're getting into the realm of poking into
perl's guts which is probably a bad idea if you want to maintain your code
base in the longer term.
Carl
5 seconds
could take a massive load of the servers.
Carl
Michael Peters wrote:
mod_auth_tkt. You can set the authorization ticket with mod_perl and then just
let mod_auth_tkt handle it on the non-mod_perl apache. It's extremely light
weight and really fast.
Got this on my "to implement soon" list - any tips/caveats?
Carl
ve missed in the
documentation?
(I've fixed my problem for now by loading the module in the startup.pl)
Carl
og and the devs can check there.
Carl
1 - 100 of 129 matches
Mail list logo