[libapreq] unknown content-type: `application/octet-stream'

2011-08-11 Thread silent
hi, list I'm using a javascript ajax file uploader, but get this error with mod_perl1. the js code is like: var xhr = new XMLHttpRequest(); xhr.open("POST", queryString, true); xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhr.setRequestHeader("X-Fi

Re: Ubuntu and mod_perl

2011-05-17 Thread silent
you have compiled and installed one apache, and you made it start at boot time, you must disable it or remove it ( do not let it start at boot time ) 2011/5/18 Tom Kane : > I tried to incorporate suggestions I've received. After restarting apache2, > this is what happened: > > > tomkane@sfq:~$ /e

Re: How to troubleshoot blank pages

2007-12-06 Thread Silent
are you using "SetHandler modperl" in apache config file? if so, please try "SetHandler perl-script" 2007/12/7, Evan Chaney <[EMAIL PROTECTED]>: > > Hello. > > I am using mod_perl for the first time. When I run my wiki software > without mod_perl enabled it loads fine. When I load it with mod_per

Re: mp1 internal_redirect question

2007-12-06 Thread Silent
ied: Fri, 07 Dec 2007 01:14:40 GMT Client-Date: Fri, 07 Dec 2007 01:22:13 GMT Client-Peer: 192.168.1.217:80 Client-Response-Num: 1 2007/12/7, Perrin Harkins <[EMAIL PROTECTED]>: > > On Dec 5, 2007 11:15 PM, Silent <[EMAIL PROTECTED]> wrote: > > I tryed mod_rewrite to re

Re: mp1 internal_redirect question

2007-12-05 Thread Silent
I tryed mod_rewrite to redirect base on user_agent, it works very fine! but I still want to know how to do it in mod_perl. 2007/12/2, Silent <[EMAIL PROTECTED]>: > > Hi, > > I want to develop a script like this: > > the script randomly send a html page or mp3 file,

Re: mp1 internal_redirect question

2007-12-01 Thread Silent
> > question 2: > with mod_perl2, internal_redirect seems can access system file, such as > /etc/*, but mod_perl1 seems can only access files under apache documentroot > right ? > sorry, the second question not correct, the mod_perl2 "sendfile" can access system file, and I have another server ha

Re: Apache2::Request install

2007-06-13 Thread Silent
2007/6/13, Jeff Pang <[EMAIL PROTECTED]>: hello, When I installed Apache2::Request (without make test) and rut it I got the errors: [EMAIL PROTECTED] libapreq2-2.08]# perl -MApache2::Request -e '' Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/APR/APR.so' for module AP

答复: missing modules

2007-01-10 Thread silent
Hi, I made a test with your code, yes it works, But I have other things to ask: Script1: package PrintIp; #use mod_perl2 (); use Apache2::Const qw(:common); #use Apache2::Request (); use Apache2::RequestRec (); sub handler { my $r= shift; #my $apr= Apache2::Requ

答复: why can't I get data from DBM in m od_perl

2006-11-26 Thread silent
Thanks all, after I chown it to apache user and group it works! And I also made operator precedences mistake in my script. Thanks! -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 发送时间: Friday, November 24, 2006 6:27 PM 收件人: silent 抄送: modperl@perl.apache.org 主题: Re: why can&#

why can't I get data from DBM in mod_perl

2006-11-24 Thread silent
Hi all, I need help with mod_perl: My ENV is redhat ES4 + apache2.0.59 + mod_perl2. I wrote a small script: package myconf; use strict; use warnings; use DB_File; use Fcntl; use Apache2::Const -compile => qw(:common); use Apache2::Request (); use Apache2::Connection (); use