Sorry if this is already somewhere in the faq or just plain stupid, but I
couldn't find any satisfying answer or workaround to this. When I do
something like:
--
use IPC::Open2;
...
if($state->{pid} = open2(my $rx,my $tx,'/usr/bin/ispell','-S', '-a')) {
$state->{header} = scalar <$rx>;
| It occurs to me that there would be no overhead to speak of in using a
| sequence number, given that Apache::Registry already maintains a hash for
| its generated package names for mtime checks. Something like:
Why not use (stat($script))[0,1] device and inode numbers of the script
being compil
| Use the following config:
| Listen 81
| Port 80
| In the presence of a Listen directive, the Port directive acts like
| ServerName, i.e. it's what the server calls itself regardless of the
| name that other people use to get to it.
OK, thanks a lot, that does the trick. I tried that earlier tod
For what it is worth, I once again fixed my own problem by hacking
http_core.c on the backend:
[root@nobel src]# diff -U 6 ../build/apache_1.3.14/src/main/http_core.c
http_core_hack-1.3.14.c
--- ../build/apache_1.3.14/src/main/http_core.c Tue Oct 10 19:33:09 2000
+++ http_core_hack-1.3.14.c M
Hi,
I have a mod_perl backend listening on *:81 and a proxy in front of it
listening on *:80, both using mod_vhost_alias configured with
VirtualDocumentRoot /www/site/%0
i.e. www.mydomain.com will have /www/site/www.mydomain.com as it's document
root. The frontend has
RewriteEngine On
Hi,
Today I upgraded to Apache 1.3.14, mod_perl 1.24_01, Apache::ASP 1.27, which
seems to work just fine, except that for *each* mod_perl script being
executed I get something like
[Mon Nov 20 05:22:13 2000] [error] [client 192.168.31.31] need AuthName:
/site/gpsmap.plp
in my error.log, however
| Is there a way to tell the browser(s) not to make this same substitution
in
| the near future?
| Or, is there a better way to do a one time only redirect from within a
| dynamic page?
I don't expect IE to do anything by the rules, but maybe you can experiment
with sending an explicit Status: 30
| How do we make sure regular CGI scripts are using mod_perl???
| Is there a way to find out?
Check $ENV{MOD_PERL}, it should read something like "mod_perl/1.24".
Ime
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
| Incidentally, I'm very interested in that add-on that'll allow Apache::ASP
| to process VB scripts. Since I'm not too familiar with the field, I was
| just wondering who or what Ime is? If it is an institute of mechanical
| engineering, which university's is it?
It's just a single person who ha
| I can convert pseudo URI kinda /band/134/ to /band.asp?id=134 via
| mod_rewrite, but I want to configure this at runtime, without restarting
| Apache... I want to use Apache::ASP further and get this ability...
| Any advices ?
Consider changing your naming scheme to band.asp/134 and get your id
Hi,
I wonder if it's possible to somehow alter Apache's internal counter matched
against MaxRequestPerChild or schedule the launching of a new child from
withing mod_perl.
The reason I want to do this, is that in the administrator section of my
website, quite some stuff gets cached from the Post
| I would like to ask if I can use the print and printf perl commands in an
asp page.
| I tried to include these commands but it didn't work.
<% printf("hello world, unix time is %d now",time); %> is perfectly correct
syntax in Apache::ASP.
Ime
| ready to pull my hair outanother problem i have to deal with is
| that the banners have to go into different directories within the
| banner directory depending on what size they are. Can anyone give me
As for the size problem, check out Image::Size
NAME
Image::Size - read the dime
| I was under the impression that internet explorer dropped support for
| server push...
OK, didn't know that. We should probably lawsuit them for telling us
"Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" then ;)
Ime
| Plain old meta refreshes. Usually every 5 or 10 seconds or so. Perhaps
| configurable on a user and/or server basis.
You could make it even more smooth by doing a multipart document (aka server
push): finishing a HTML document but not closing the HTTP connection and
start a new document as soon
| Is there any perl package for using windows ini files ?
Yep, but you should have tried http://search.cpan.org first.
Ime
| Yes, perl doesn't reset the 'random generator initialized' status on
| fork, which it arguably should:
For normal perl I can agree that fork() doesn't do something magic with the
pseudo random generator and just makes an exact clone of everything. Most of
us will only do expicit fork() with a g
| Here's a snippet of the code:-
| <%@LANGUAGE="JAVASCRIPT"%>
Now, compare that with the name of this mailing list and you've got a clue
about what's going wrong.
Ime
| [Tue Sep 19 18:26:10 2000] [error] [asp] [1] [error] Can't modify
| concatenation (.) in
| scalar assignment at (eval 37) line 3, at EOF <--> ,
| /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 1740
| Looking at the above file, line 1740 is as indicated below:
For debug information
Hi,
OK, I have nailed down a second major headache I suffered from last week:
authentication keys for server generated emails which did appear to be not
as random as I hoped.
It seems that within Apache::ASP (probably mod_perl) the pseudo random
number generator (rand) is not reinitialized (sran
| > 8 Content-Length: 294
| > 8 Content-Length: 327
| How come that the sizes are different?
The images are dynamically generated png's with GD, but however the contents
may change every time you view a page, it's not necessary for the browser to
constantly get a fresh copy when doing a javascrip
OK, did it the hardway: after a lot of tcpdump -i -s 500, grepping and
stringing, I tackled it. Halfway.
IMHO, it boils down to both a IE bug and a somehow 'hidden' feature of
Apache. It seems that on script execution an extra header "Vary: Host" is
sent to the browser.
This is what the RFC's sa
| I saw your header, but couldn't tell that it was for tomorrow,
| with the GMT time zone info. I don't read GMT go figure ;)
Euhmmm... If I'm not mistaken, 19 october actually is next *month*, even in
your timezone ;)
| ... maybe IE is "smart" enough to see the .pl in the path and guess
| that
| In your Apache::ASP version, try setting Expires to tell IE
| to cache explicitly...
| $Response->{Expires} = 86400; # cache until tomorrow
I did that. And and also tried
$r->add_header('Expires',HTTP::Date::time2str(time+86400)); in a normal .pl
file. In fact, the first header dump in my pre
Hi,
I tried to nail this problem down for over 6 hours now. I use GD.pm to
dynamically generate images used in a dynamically generated Apache::ASP
page. Each image is given a name which is unique (in fact: a md5 on the
original name, width, height, color depth). Some of these images are used in
a
| <%
| Application.Lock
| Application("strDate") = Now
| Application("CountVisitors") = Application("CountVisitors") + 1
| Application.Unlock
| %>
That's VisualBasic script, Apache::ASP scripts are written in Perl:
<%
$Application->Lock();
$Application->{"strDate"} = time;
$Applicati
| I meant a different startup per virtual host, not per child process.
It's perfectly ok to specify a PerlRequire for each virtual host
or even in .htaccess, but I think that's a dirty habbit to get
into. As the complete perl namespace is shared between all
your virtual hosts there is really n
You should compose a multi-part mime message in that case. I'm not sure if
there are modules around to do that in perl, but the quick and dirty thing I
once did is just compose a message with inline images and stuff in Netscape
or Outlook, send it to myself, copy and paste the message source inclu
| No, it doesn't seem to be going forward at the moment. Ime Smits says he
has something put
| together that's _almost_ usable, but needs help building perl equivalents
of all the VBScript
| functions. I'm still waiting on his initiative to get going...
| Note to Ime: This is
| Anyway, now I get
| --
| [Sun Aug 6 00:17:55 2000] [error] Undefined subroutine
&Apache::ASP::handle
| r called.
|
| Any ideas where that is coming from? There really is a handler subroutine
| in ../Apach
| [root@dilitium Apache-ASP-2.03]# perl Makefile.PL
| Checking for the prerequisite modules...
| !!! you need the module: HTTP::Date
| WHY: Provides mapping between Perl time() and HTTP dates
| ... found MD5 !
| !!! you need the module: MLDBM
| WHY: This is used for reading and writin
| [Tue Aug 1 04:57:55 2000] [error] Can't locate loadable object for module
| Di
| gest::MD5 in @INC (@INC contains:
/usr/home/drjoelsc/usr/local/lib/site_perl
I guess you did not run the install with the CPAN installer, so in that case
you should figure out quite some depencies yourself. In you
| To a VBScript parser it should die. So you could define the concept of how
| to write "$response->write( ... );" in other languages somehow, in the
| actual class that implements (or calls) the parser. That way pluging in a
| JScript parser becomes easier, and you could even support multiple
| l
| No. The problem is that it would be really great if this could be a
| generic VBScript parser, rather than an ASP/VB parser.
s/(.*?)<%(.*?)%>/&parse_html($1).&parse_vb($2)/seg, so don't worry - you'll
get your generic method ;)
Ime
| Well you still have to implement a VBScript parser (Damian, of course,
| implemented a latin parser), and the problem is that ASP is parsed by
| Apache::ASP, not by perl, so you'd have to make use of the VB parser at
| that point.
Hi, just wanted to let you know, I'm going to pick this up in ab
| | /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm
OK, overlooked that first line. Sorry. Desperate in need of some coffee ;)
Ime
| It's part of mod_perl. Now to the question whether it's really installed:
|
| locate '*[Aa]pache/[Ll]og*'
| /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm
| /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log
| /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log/.exis
| so are you actually going to write a VBScript to perl parser? I was
actually
| thinking of undertaking this project myself, but I've never written a
lexer
| or a parser or anything like that.
For what it's worth: Some months ago I was facing the problem of moving
several ASP scripted IIS/Micro
On Thu, 6 Jul 2000, Vincent Bruijnes wrote:
| Well the first lines of the error_log are strange for me.
| I still come closer to a correct apache modperl and asp.
| the /site/eg/index.html works only .asp files don't
Let's see:
can't create group dir /tmp/asp_demo/server,
/usr/local/lib/perl5/
| I got this error always when running /site/eg/index.html
|
| /www/htdocs/site/eg/.htaccess: Invalid command 'PerlSetVar', perhaps
| mis-spelled or defined by a module not included in the server configuration.
|
| Is there a clue ?
You probably didn't compile mod_perl with Apache, or you did
| works fine and php simply doesn't work. When I try a GET on a *.php3
page,
| my browser wants to save it. That symptom addressed in the php faq (#6.8)
Look for a line like
AddType application/x-httpd-php3 .php3 .php .phtml
in your httpd.conf. If it ain't there, that's propably your problem.
Hi,
I just wanted to let you know that (once again) re-RTFM the manual *twice*
solved my muliple compilation problem. The solution is adding [PT] to the
RewriteRule.
RewriteRule ^/query/(.*) /query.pl?$1 [PT]
--
http://www.apache.org/docs/mod/mod_rewrite.html:
'passthrough|PT' (pass through to
Hi,
I have a script which takes some input variables in the QUERY_STRING, let's
say:
http://localhost/query.pl?archive=1&chapter=2§ion=3&subsection=4
This is working fine from the user perspective. But, I found out that most
search engines just discard the querystring, so my site won't get inde
| I know that the old CGI scripts probably shoudn't rely on PATH
| but they do and there are too many to fix right away.
To rely on $ENV{PATH} is one thing. But why would a mod_perl script ever
need to *change* it?
Ime
|
| SetHandler PerlScript
| PerlHandler Apache::ASP
| PerlSetVar Global /tmp
|
|
| When I try to run the sample asp applications from the
| eg directory, for example
| http://localhost/eg/application.asp I don't get any
| errors, but th
| Hi all,
|
| How can one redirect HTML docs to
|different frames from WITHIN a single PERL script
|
| Example I have a perl script which generates 3 HTML code output for
| three frames. Now how can I specify that this HTML is for this frame
You can't. What I do is let my sc
| [error] Undefined subroutine &Apache::ASP::handler called.
| what does it mean?
| How to fix it?
Considering the errors you posted the past hour, I think something went
wrong during the Apache::ASP installation. Consider installing Apache::ASP
once again with the cpan installer (possibly use fo
| Well, I would like to suggest that you consider including in the Apache::ASP distribution, so that included files use the
| same namespace. It doesn't make sense logically that include virtual
| behaves differently from include file (other than the way the
| filename/pathname is interpreted, of
| > I would not do it this way, in fact the way I would do this
| > would not be with your methods at all, unless you want
| > to have each section to be arbitrarily different and
| > maintained by separate graphics designers. The way I would
| > do this thing is to lose the directory structure c
| QUESTION: But how should I transform the script, if the anonymous subs call
| each other?
| I get always the following error:
| Undefined soubroutine &main:: called at line .
| I don't know how to solve this. Is there any solution for this? Can I make
| any prototype defs for such subroutines?
<...>
| The server starts w/o problems. Perfect.
OK, your at lest 90% done now.
<...>
| file:/usr/home/cap/apache_ASP/Apache-ASP-0.18/site/eg/index.htm
That wouldn't work, because then you don't communicate via Apache, nothing
gets executed, it's just like you do a normal cat on the file.
<.
| Where do I get the win32 version of NET::SMTP module???
Duh... Ever considered http://www.cpan.org?
Ime
| If you specify "expires", you are specifying a persistent cookie,
| one which gets stored to disk. Without "expires", you are asking
| that the cookie only be stored in memory during the browser session,
| and I would not expect it to be subject to the same cookie security.
| In fact, if Netsca
| $ENV{EMBPERL_SESSION_CLASSES} = "FileStore SysVSemaphoreLocker";
| $ENV{EMBPERL_SESSION_ARGS}= "Directory=/tmp/algebra.com/sessions";
| $ENV{EMBPERL_COOKIE_PATH} = "/";
| $ENV{EMBPERL_COOKIE_DOMAIN} = ".algebra.com";
| #$ENV{EMBPERL_DEBUG} = 1;
Well... I don't know if you fixed this already
| I have a problem loading pictures on IE5, www.obsequie.com and
| www.obsequie.com.ar ->(this redirect to www.obsequie.com) is having
troubles
| ith load images from IE5, with Netscape all is ok but with IE5 no images
on
| the screen, is a problem about apache?
If you even get MSIE not to recogn
Getting mod_perl to suck up all RAM ain't that difficult. But you have to
give us details...
Ime
- Original Message -
From: FEITO Nazareno <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 28, 2000 14:22
Subject: out of memory
I´ve installed apache 1.3.12 and mod_perl 1.2
| Are php3 and ASP mutually exclusive?
Nope... I have Apache/1.3.12 (Linux 2.2.12), PHP/3.0.15, mod_perl/1.21_03
and Apache::ASP running perfectly well together. On another system
PHP/4.0RC1 is working in the same environment just as fine. However, as I
don't like the RedHat provided RPMs I built
| Oh, almost forget it... ASP is a loose of time on developer time... and
the
| module is to heavy, sorry but betwen oracle and ASP our server is down in
| performance, we run unix on a SGI and with 256mb ram...
| If you are trying to put ASP cause you don´t want to break the designer
| work, you
|
|DocumentRoot "/app/env_control/httpd/DocumentRoot"
|
| # disable mason for this location
| SetHandler default-handler
|
|ProxyPass/Test/ http://myhost:8084/Test/
|ProxyPassReverse /Test/ http://myhost:8084/Test/
|
|
| When I try to access location /Test
| Huh? SuEXEC only works with mod_cgi (e.g. it requires the exec() part of
| it's name to get the Su part), it is not applicable to the persistant
| mod_perl world.
Ok, I must admit I mixed up referals to the concept (setuid()) and the
imlementation (suexec).
The point I was making was that even
| Also, my system has cgiexec (does suid for CGI scripts) installed. The
| cgiexec documentation says that once cgiexec is installed, it is a
| security risk if people can execute code as "nobody" since that user has
| special access to the cgiexec code. Right now, anyone can execute code as
| nob
| I also have ASP installed, and I'd like to be able to transparently suid
| the .asp scripts too. Do you know how I could go about doing this?
I think this is a general bad idea. The only purpose of running scripts via
a suexec or setuid mechanism I can think of is to stop different users &
webs
| I installed the Apache ASP package and the mod_perl with the Apache
server.
| I guess there is no error in the setup and everything should run fine.
| Then I run the example. When I try to run index.html, it returned a error
| message saying that it couldn't find the global.asa or something lik
Hi,
I would like to apply gzip or inflate compression on the response from
Apache::ASP, because my application generates a lot low-entropy
table-structures which can be compressed down to 90-95%. On a normal CGI
script I would do something like:
print "Content-type: text/html\n";
print "Pragma:
- Original Message -
From: Joshua Chamas <[EMAIL PROTECTED]>
To: Mod Perl <[EMAIL PROTECTED]>
Sent: Tuesday, March 28, 2000 09:45
Subject: [asp] $Response->{FontFace} ?
| I have a huge site that I want to apply a generic font face
| to with Apache::ASP. Has anyone here ever been bother
65 matches
Mail list logo