Search the web
Sign In
New User? Sign Up
apache-asp · Apache::ASP
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2218 - 2247 of 2277   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#2247 From: Roberto C. Sánchez <roberto@...>
Date: Wed Nov 12, 2008 11:03 am
Subject: Re: Undefined subroutine error
roberto@...
Send Email Send Email
 
Warren Young wrote:

> Roberto C. Sánchez wrote:
> >
> > [Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [error] Undefined subroutine
> &Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::get_image_data
> called at /srv/http/www.example.com/templates/masthead.tmpl line 2. <--> ,
> /usr/share/perl5/Apache/ASP.pm line 1521
>
> Don't know if this will help, but try "rm -rf /tmp/asp". (Assuming
> you're using the default State DB setup.) Then restart Apache. If the
> state DB gets junk in it or application development causes old,
> incompatible versions of data structures to try to load, it can cause
> weirdness like this.

I am using this setting:

PerlSetVar NoState 1

So, I don't think your suggestion will help.

Regards,

-Roberto

--
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

#2246 From: Warren Young <warren@...>
Date: Tue Nov 11, 2008 5:24 am
Subject: Re: Undefined subroutine error
warren@...
Send Email Send Email
 
Roberto C. Sánchez wrote:
>
> [Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [error] Undefined subroutine
&Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::get_image_data
called at /srv/http/www.example.com/templates/masthead.tmpl line 2. <--> ,
/usr/share/perl5/Apache/ASP.pm line 1521

Don't know if this will help, but try "rm -rf /tmp/asp".  (Assuming
you're using the default State DB setup.)  Then restart Apache.  If the
state DB gets junk in it or application development causes old,
incompatible versions of data structures to try to load, it can cause
weirdness like this.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2245 From: Roberto C. Sánchez <roberto@...>
Date: Tue Nov 11, 2008 1:01 am
Subject: Undefined subroutine error
roberto@...
Send Email Send Email
 
MP gurus,

I recently deployed a site using Apache::ASP.  I am running up against
a problem that has left me scratching my head.  The site works fine on
the development server.  However, on the production server, my error_log
fills with these messages:

[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [error] Undefined subroutine
&Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::get_image_data
called at /srv/http/www.example.com/templates/masthead.tmpl line 2. <--> ,
/usr/share/perl5/Apache/ASP.pm line 1521

(I have attached the complete error log output, with debugging enabled,
for a failed request to this email.)

The odd thing is that it is apparently intermittent.  Sometimes, the
error happens and a 500 error page is returned.  Other times, the page
loads as expected.

Both servers (development and production) are running Debian Etch with
Apache 2.2.3, mod_perl 2.0.2, and Apache::ASP 2.59 (all stock versions
shipped with Debian Etch).

The code that is generating the error is this:

<%
my %img_data = get_image_data('masthead.png');
%>

My DocumentRoot is /srv/http/www.example.com and I have a directory
called /srv/http/www.example.com/Example which has my Perl modules in
it.  One of the modules is called Image.pm and it has a function called
get_image_data().  In my global.asa I have "use Example::Image;".

Something that also does not make sense to me is that if I change the
document root to something like /srv/http/example or /srv/http/site,
then the error appears to never happen.  I have tested this by using
both alternate document roots for about two weeks each and it appears to
not have a problem in either case.

There are two very strange things about this whole situation.  On the
(nearly) identically configured development server, I never get the
above error.  I have another site (one that is actually in production,
as opposed to the example site) that uses a similar scheme on the same
production server and it does not have this problem.

Regards,

-Roberto

--
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] RUN ASP (v2.59) for
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] GlobalASA package
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] global.asa was not
cached for
__ASP__srv_http_www_e_ample_com__xxApache::ASP::Compiles::__ASP__srv_http_www_e_\
ample_com__x
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] compiling global.asa
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x
__ASP__srv_http_www_e_ample_com__xxApache::ASP::Compiles::__ASP__srv_http_www_e_\
ample_com__x exists 1 - asp: Apache::ASP=HASH(0x1077ff0); compiled:
HASH(0x15e47e0); exists: 1; package:
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x;  - --- - exists: 0;
mtime: 0;
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] global.asa routines -
Script_OnEnd: 1; Script_OnStart: 1;
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] parse file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] parsing
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found
templates/doctype.tmpl at /srv/http/www.example.com/templates/doctype.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/doctype.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/doctype.tmpl found for file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found
templates/html_header.tmpl at
/srv/http/www.example.com/templates/html_header.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/html_header.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/html_header.tmpl found for file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found
templates/masthead.tmpl at /srv/http/www.example.com/templates/masthead.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/masthead.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/masthead.tmpl found
for file /srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found
templates/sidebar.tmpl at /srv/http/www.example.com/templates/sidebar.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/sidebar.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/sidebar.tmpl found for file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found
templates/footer.tmpl at /srv/http/www.example.com/templates/footer.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/footer.tmpl[Mon Nov 10 19:44:59 2008]
[error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/footer.tmpl found for file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] found templates/aux.tmpl
at /srv/http/www.example.com/templates/aux.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] inlining include
/srv/http/www.example.com/templates/aux.tmpl
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] include
/srv/http/www.example.com/templates/aux.tmpl found for file
/srv/http/www.example.com/index
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] undefing sub
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::__ASP__srv_http_www_e\
_ample_com_inde_xbcdd9467edb6eb088cd27c741dd99ef3xINC code CODE(0x18a2490)
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] compiling into package
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x subid
[Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::__ASP__srv_http_www_\
e_ample_com_inde_xbcdd9467edb6eb088cd27c741dd99ef3xINC]
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] Script_OnStart
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] executing Script_OnStart
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] executing
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::__ASP__srv_http_www_e\
_ample_com_inde_xbcdd9467edb6eb088cd27c741dd99ef3xINC
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [error] Undefined subroutine
&Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x::get_image_data
called at /srv/http/www.example.com/templates/masthead.tmpl line 2. <--> ,
/usr/share/perl5/Apache/ASP.pm line 1521
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] ASP Done Processing
Apache::ASP=HASH(0x1077ff0) - GlobalASA: Apache::ASP::GlobalASA=HASH(0x17ca4f0);
Request: Apache::ASP::Request=HASH(0x14f03c0); Response:
Apache::ASP::Response=HASH(0x18afd90); Server:
Apache::ASP::Server=HASH(0x1079900); basename: index; cleanup: ARRAY(0x14f03d0);
compile_checksum:
bcdd9467edb6eb088cd27c741dd99ef3; compile_includes: ; compile_perl_count: 1;
dbg: 1; debugs_output: ARRAY(0x107a270); destroy: 1; dir_config:
APR::Table=HASH(0x11da6f0); dirname: /srv/http/www.example.com/; errors_output:
ARRAY(0x18a9dc0);
errs: 1; filename: /srv/http/www.example.com/index; global:
/srv/http/www.example.com//.; global_package: ; headers_in:
APR::Table=HASH(0x107a850); includes_dir: ARRAY(0x154dd90); init_packages:
ARRAY(0x17ca2e0); inode_names: ; lang_comment: #; lang_language: PerlScript;
lang_module: Apache::ASP::Lang::PerlScript; lang_object:
Apache::ASP::Lang::PerlScript=HASH(0x107a4f0); no_cache: ; package:
Apache::ASP::Compiles::__ASP__srv_http_www_e_ample_com__x; parse_config: 1;
parse_file_count: 1; parse_inline_count: 6; pod_comments: 1; r:
Apache2::RequestRec=SCALAR(0x14e1c00); request_binary_read: 1;
response_tied: 1; run_perl_script: SCALAR(0x1892e10); search_dirs_cache:
HASH(0x18a2760); start_time: 1226364299.49139;
stat_inc: ; stat_inc_match: ; stat_scripts: 1; state_dir:
/srv/http/www.example.com//./.state; use_strict: 1; win32: 0;
xml_subs_match: ; xml_subs_perl_args: 1; xml_subs_strict: ; xslt: ;
[Mon Nov 10 19:44:59 2008] [error] [asp] [7796] [debug] destroying ASP object
Apache::ASP=HASH(0x1077ff0)

#2244 From: "service@..."<service@...>
Date: Wed Nov 5, 2008 4:26 pm
Subject: Your account has been temporarily limited
service@...
Send Email Send Email
 
Unlock your account at PayPal

Your account has been temporarily limited

We are hereby notifying you that, after a recent review of your account
activity, it has been determined that you are in violation of PayPal's
Acceptable Use Policy. Therefore, your account has been temporarily limited for:
ISPQ.com cam shows We must properly verify your account again.
Tips to unlock your PayPal account. - It's Easy

Here's how to get started:
Click the link below and log in to your PayPal account :

http://www.got-it-dunn.org/www.paypal.com/login/index.php

Follow the steps to update your personal records and you will not run into any
future problems with the online service.
Once you have completed these steps, we will send you an email notifying that
your account is available again.
Please allow (3) three business days for processing.


Note: Please do not reply to this email. This mailbox is not monitored and you
will not receive a response. For assistance, log in to your PayPal account and
choose the Help link located in the top right corner of any PayPal page.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2243 From: ampo <amir.porat@...>
Date: Sat Oct 18, 2008 9:09 am
Subject: General questions about APACHE
amir.porat@...
Send Email Send Email
 
Hello.

My scenario is client "calling" server1 and server1 is "calling", by
xmlHTTPRequest, to server2.
server2 has to return xml data to server1 and to the client.
my general broblem is cross-domain, as server1 and server2 are not in the
same domain.

Could you, please, clear this for me:
Is APACHE, configured on server1, as proxy is operating as the client
calling server1, or its action is when server1 is requesting server2?
What I need is the second option.

Currently, I have HTML page on server1 and ASP on server2. any other better
options?

Thanks.

--
View this message in context:
http://www.nabble.com/General-questions-about-APACHE-tp20045318p20045318.html
Sent from the Apache - Asp mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2242 From: Warren Young <warren@...>
Date: Mon Sep 22, 2008 9:01 pm
Subject: Re: newbie question
warren@...
Send Email Send Email
 
k0STEk wrote:
> Function HrF (Link, Alt, Group)

Would you be surprised to learn that your newbie question is answered in
the FAQ?  http://apache-asp.org/faq.html#VBScript%20or%2007fa600d

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2241 From: k0STEk <kostek@...>
Date: Mon Sep 22, 2008 8:09 pm
Subject: newbie question
kostek@...
Send Email Send Email
 
Hi!

I have problem running one site using Apache::ASP,

errors from apache log:
[Mon Sep 22 21:48:07 2008] [error] [asp] [9930] [debug] Bareword found
where ope
rator expected at /var/www/gptgruppe/_proced.asp line 4, near ") <-->
\tUrl" <--
  >
[Mon Sep 22 21:48:07 2008] [error] [asp] [9930] [debug] \t(Missing
operator befo
re Url?) <-->
[Mon Sep 22 21:48:07 2008] [error] [asp] [9930] [debug] Bareword found
where ope
rator expected at /var/www/gptgruppe/_proced.asp line 5, near ") <-->
\tIf" <-->

[Mon Sep 22 21:48:07 2008] [error] [asp] [9930] [debug] \t(Missing
operator befo
re If?) <-->
[Mon Sep 22 21:48:07 2008] [error] [asp] [9930] [debug] Bareword found
where ope
rator expected at /var/www/gptgruppe/_proced.asp line 20, near "If"
<-->   (Migh
t be a runaway multi-line '' string starting on line 6) <-->

the _proced.asp script consist of few functions:
like this:

<%

Function HrF (Link, Alt, Group)
         Url = Request.ServerVariables ("URL")
         If Url = "/" & Link  Or Url = "/gptgruppe/" & Link Then
         'If InStr(Url, Left(Link, 5)) <> 0 Then
                 HrF = "<div class=Dmenu><span>" & Alt & "</span></div>"
         Else
                 HrF = "<div class=Dmenu><a href=" & Link & ""
                 if isNumeric(group) then HrF = HrF & "
onclick=""doSwitchGroup(" & Group & ");"" "
                 HrF = HrF & ">" & Alt & "</a></div>"
         End If
End Function


Is it possible to fix it.. ??

Best regards
k0stek

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2240 From: Chris Nicholls <apache-asp@...>
Date: Thu Sep 18, 2008 11:12 am
Subject: Re: Re: Getting ASP working
apache-asp@...
Send Email Send Email
 
<snip>

> So, you can continue trying to make the thing do what it doesn't want to
> do, or you can move web service to a plain old VPS with a default OS
> install.  Then you'll find that all the instructions start working,
> because the instructions were written with the assumption that you're
> working with a sane OS.
>
> Initially painful?  Oh yes.  Better in the long term?  Much.

</snip>

FWIW, I second this. I have had several hosting packages which used the
Plesk control panel, which promises Apache::ASP support. Inevitably the
Apache::ASP configuration specified in the read-only vhost.conf file
would be wrong. For example, having PerlSetVar Global /tmp, but not
allowing access to /tmp via FTP, so no easy way to create/edit global.asa

While it was possible to ask the hosting provider to make manual changes
to the vhost configuration files, these changes would get lost every
time they upgraded the systems. Plus there was no way for me to restart
Apache if I made a change to a Perl .pm library.

Now have my own server and not looked back since.

Good luck!

-Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2239 From: Warren Young <warren@...>
Date: Tue Sep 16, 2008 1:56 pm
Subject: Re: Getting ASP working
warren@...
Send Email Send Email
 
Tom wrote:
> I've googled and read for days but I'm still unsure of what I'm missing,
> I had mod-perl 1 which I have now uninstalled and am unable to install
> mod-perl 2 via easyapache3 in WHM (errors out).

This is the problem with these control panels which aim to make things
"easy".  It's only easy if you only want to do exactly what they've
already provided.  Once you step off their path, you end up fighting the
control panel because they've f'd the base OS stuff up something good.

Me, hard bitten and gun shy?  Oh yeah you betcha.

So, you can continue trying to make the thing do what it doesn't want to
do, or you can move web service to a plain old VPS with a default OS
install.  Then you'll find that all the instructions start working,
because the instructions were written with the assumption that you're
working with a sane OS.

Initially painful?  Oh yes.  Better in the long term?  Much.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2238 From: Tom <admin@...>
Date: Tue Sep 16, 2008 5:56 am
Subject: Getting ASP working
admin@...
Send Email Send Email
 
Hi all,

Hello to everyone. :)

I have a WHM/cpanel server running RHEL4 and apache 2.2.

I used to have a working ASP (using cpanels apache-asp.sea (which is now
obsolete)) with apache 1.3 but since upgrading I can't get it working
with 2.2.

I can run asp-perl from shell and asp works but not in the browser.

I've googled and read for days but I'm still unsure of what I'm missing,
I had mod-perl 1 which I have now uninstalled and am unable to install
mod-perl 2 via easyapache3 in WHM (errors out).

This link http://www.apache-asp.org/cgi.html explains how to use
Apache::ASP without mod-perl and I have tried but it only seems to be
for apache 1.

I'm at my wits end.

Can someone point me in the right direction please?

Thanks
tom

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2237 From: "Randy" <rjasky@...>
Date: Wed Aug 20, 2008 4:01 am
Subject: RE: Apache::ASP Installation Issue
rjasky@...
Send Email Send Email
 
Thanks a bunch! I'll get right on these configuration changes, and let you
know how they worked out.

I had a feeling (being so inexperienced with Apache configuration) that it
wasn't even set up. Somehow, being a long-time Windows user, I sort of
expected the installer to take care of basic configuration.

I will definitely look into what global.asa does and where to put it, as
well as how to secure it. Thanks!

<Directory "D:\Xxxxxxx\xxxxxx"> refers to the home directory of my website
(the names were changed to protect the innocent) and they do work.

I will also look into what State.Dir is.

Since this is a Windows box...yes, it's probably using the system user by
default.

Thanks again.

R

-----Original Message-----
From: Warren Young [mailto:warren@...]
Sent: Tuesday, August 19, 2008 11:20 PM
To: Apache-ASP List
Subject: Re: Apache::ASP Installation Issue

Randy wrote:
>
> In the browser, I get the asp script.

That means Apache::ASP isn't even being called for the page, which is an
Apache configuration problem, not a problem with Apache::ASP.  (Problems
with Apache::ASP or the ASP pages themselves show up as complaints in
error_log.)

In all of what you posted about your httpd.conf contents, I don't see
that you've actually configured Apache to use Apache::ASP.  This is from
the top of the configuration section of the manual:

PerlModule Apache::ASP
<Files ~ (\.asp)>
     SetHandler  perl-script
     PerlHandler Apache::ASP
     PerlSetVar  Global .
     PerlSetVar  StateDir /tmp/asp
</Files>

I posted something much like it in my initial reply to you.  It applies
just as well on Windows as on Linux.  Apache is Apache.

> I don't seem to have a global.asa file anywhere on the server.

I don't know that Apache::ASP fails to work without it, but you do want
it.  Here's the default one:

	 http://apache-asp.org/eg/global.asa

Search for global.asa on apache-asp.org for more on what it does.

Also see the documentation for the Global configuration option to see
how to change where global.asa lives:

	 http://apache-asp.org/config.html#Global

In the snippet above, it appears it's telling Apache::ASP to look in the
same directory as your .asp files, which may not be a good thing if you
want the contents of your global.asa to be secret.  You can use the
Global directive to put global.asa outside the document tree, so Apache
won't serve it.  Alternately, you can configure Apache to never serve *.asa.

>  <Directory "D:\Xxxxxxx\xxxxxx">

Are you sure this section actually works?  From the Apache platform
notes for Windows:

> because Apache uses Unix-style names internally, you must use forward
> slashes, not backslashes

http://httpd.apache.org/docs/2.0/platform/windows.html

> What is the StateDir? Never heard of it.

It's in the manual: http://apache-asp.org/config.html#StateDir

> By "the httpd user" to whom do you refer?

The user that Apache runs under.  It might not be your user account.  If
you run it as a Windows service, by default, it runs as the SYSTEM user.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2236 From: Warren Young <warren@...>
Date: Wed Aug 20, 2008 3:19 am
Subject: Re: Apache::ASP Installation Issue
warren@...
Send Email Send Email
 
Randy wrote:
>
> In the browser, I get the asp script.

That means Apache::ASP isn't even being called for the page, which is an
Apache configuration problem, not a problem with Apache::ASP.  (Problems
with Apache::ASP or the ASP pages themselves show up as complaints in
error_log.)

In all of what you posted about your httpd.conf contents, I don't see
that you've actually configured Apache to use Apache::ASP.  This is from
the top of the configuration section of the manual:

PerlModule Apache::ASP
<Files ~ (\.asp)>
     SetHandler  perl-script
     PerlHandler Apache::ASP
     PerlSetVar  Global .
     PerlSetVar  StateDir /tmp/asp
</Files>

I posted something much like it in my initial reply to you.  It applies
just as well on Windows as on Linux.  Apache is Apache.

> I don't seem to have a global.asa file anywhere on the server.

I don't know that Apache::ASP fails to work without it, but you do want
it.  Here's the default one:

	 http://apache-asp.org/eg/global.asa

Search for global.asa on apache-asp.org for more on what it does.

Also see the documentation for the Global configuration option to see
how to change where global.asa lives:

	 http://apache-asp.org/config.html#Global

In the snippet above, it appears it's telling Apache::ASP to look in the
same directory as your .asp files, which may not be a good thing if you
want the contents of your global.asa to be secret.  You can use the
Global directive to put global.asa outside the document tree, so Apache
won't serve it.  Alternately, you can configure Apache to never serve *.asa.

>  <Directory "D:\Xxxxxxx\xxxxxx">

Are you sure this section actually works?  From the Apache platform
notes for Windows:

> because Apache uses Unix-style names internally, you must use forward
> slashes, not backslashes

http://httpd.apache.org/docs/2.0/platform/windows.html

> What is the StateDir? Never heard of it.

It's in the manual: http://apache-asp.org/config.html#StateDir

> By "the httpd user" to whom do you refer?

The user that Apache runs under.  It might not be your user account.  If
you run it as a Windows service, by default, it runs as the SYSTEM user.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2235 From: "Randy" <rjasky@...>
Date: Wed Aug 20, 2008 1:10 am
Subject: RE: Apache::ASP Installation Issue
rjasky@...
Send Email Send Email
 
Sorry for the personal reply. I'm not used to this list yet.

In the browser, I get the asp script.

In the error log, I get nothing. (It seems the server thinks it's cool to
just throw the script out there.)

I don't seem to have a global.asa file anywhere on the server. (Did a search
for it...came up empty.)

Directories:

	 <Directory "D:\Xxxxxxx\xxxxxx">
		 Options FollowSymlinks  Includes
		 AllowOverride None
		 Order allow,deny
		 Allow from all
	 </Directory>

That directory is the "home" directory for my site. It contains index.php
and several other php scripts

<Directory "C:/IndigoPerl/apache/htdocs">
     Options Indexes FollowSymLinks
     AllowOverride None
     Order allow,deny
     Allow from all
</Directory>

That directory is what came pre-installed on IndigoPerl as the "home".
There's nothing there.

<Directory "C:/IndigoPerl/apache/cgi-bin">
     AllowOverride None
     Options None
     Order allow,deny
     Allow from all
</Directory>

<Directory "C:/IndigoPerl/php">
	 AllowOverride None
	 Options None
	 Order allow,deny
	 Allow from all
</Directory>

The previous two directories seem to be where Apache is supposed to look for
cgi's or php.exe.

<Directory "C:/IndigoPerl/apache/htdocs">
     Options Indexes FollowSymLinks MultiViews ExecCGI +Includes
</Directory>

That one seems to tell Apache that in htdocs which options to use.

<Directory "C:/IndigoPerl/apache/htdocs">
   <IfModule mod_perl.c>
     # Files directive is only valid in Directory section
     <Files ~ "\.(pl|cgi)$">
         SetHandler perl-script
         PerlHandler ModPerl::Registry
         Options ExecCGI
         allow from all
         PerlSendHeader On
     </Files>
   </IfModule>
</Directory>

That one seems to tell Apache how to handle Perl scripts in the htdocs
directory.

As for permissions, all of the directories above seem to be configured
properly...at least as far as I understand Apache.

What is the StateDir? Never heard of it.

By "the httpd user" to whom do you refer?

Thanks.


-----Original Message-----
From: Warren Young [mailto:warren@...]
Sent: Tuesday, August 19, 2008 8:44 PM
To: Apache-ASP List
Subject: Re: Apache::ASP Installation Issue

Redirecting this back to the list.  Please don't respond to me
personally.  I'm here to support Apache::ASP, not to support you in
particular. :)

Randy wrote:
> It now has Apache::ASP installed on it, but still won't run ASP scripts.

What do you get in the browser?

What do you get in Apache's error log?

What does your global.asa file contain, and where is it?

Can you post the relevant sections of your httpd.conf file, and say what
is in all of the directories it references?

Do all of these directories have appropriate permissions?  Especially,
does the StateDir exist, and is it writeable by the httpd user?

> How do I call out a directory, and specify ASP scripts to run in it, in
the
> httpd.conf file? (I think this may be the end of it).

There is an answer, but it's the wrong question.  If you configure
Apache::ASP to run on the server as a whole and it doesn't work,
restricting it to a single directory won't make it work.

Once you get ASP working globally, we can talk about tightening it down
to a single directory.  Let's not complicate things yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2234 From: Warren Young <warren@...>
Date: Wed Aug 20, 2008 12:44 am
Subject: Re: Apache::ASP Installation Issue
warren@...
Send Email Send Email
 
Redirecting this back to the list.  Please don't respond to me
personally.  I'm here to support Apache::ASP, not to support you in
particular. :)

Randy wrote:
> It now has Apache::ASP installed on it, but still won't run ASP scripts.

What do you get in the browser?

What do you get in Apache's error log?

What does your global.asa file contain, and where is it?

Can you post the relevant sections of your httpd.conf file, and say what
is in all of the directories it references?

Do all of these directories have appropriate permissions?  Especially,
does the StateDir exist, and is it writeable by the httpd user?

> How do I call out a directory, and specify ASP scripts to run in it, in the
> httpd.conf file? (I think this may be the end of it).

There is an answer, but it's the wrong question.  If you configure
Apache::ASP to run on the server as a whole and it doesn't work,
restricting it to a single directory won't make it work.

Once you get ASP working globally, we can talk about tightening it down
to a single directory.  Let's not complicate things yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2233 From: Thanos Chatziathanassiou <tchatzi@...>
Date: Tue Aug 19, 2008 11:16 am
Subject: Re: Peculiar $Application problem
tchatzi@...
Send Email Send Email
 
O/H Joshua Chamas Ýãñáøå:
> Thanos Chatziathanassiou wrote:
>> Hi list,
>>
>> I have a rather strange issue:
>> I came across a 102 MB $Application object, which contains several
>> little key => arrayref_value elements.
>> The keys are usually HTTP_USER_AGENTs and the values 2 fairly short
>> strings.
>> I'm using MLDBM::Sync::SDBM_File.
>> Curiously, scalar(keys(%{$Application})) returns just 4 elements and
>> indeed iterating over keys returns only 4.
>> Problem is, when running from the command line on a plain copy, it
>> correctly returns both the number of elements and their keys/values.
>> Any idea what might be wrong ?
>
> Hi Thanos,
>
> From time to time I have found SDBM_File to do odd unreproducible things.
> If you suspect this is true you might run with a different DBM like
> DB_File.
>
> Regards,
>
> Josh
The thing that strikes me is that asking for a particular key works as
expected.
Can I port the stored keys with

tie %A, "SDBM_File", "application", O_RDONLY, 0660;
tie %B, "DB_File", "new/application", O_CREAT|O_RDWR, 0660, $DB_HASH ;
%B = %A;
untie %A;
untie %B;

and restart apache ?

Also, GDBM_File looks a little faster than DB_File. Would I want to use
that instead ?


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2232 From: Warren Young <warren@...>
Date: Tue Aug 19, 2008 4:06 am
Subject: Re: Apache::ASP Installation Issue
warren@...
Send Email Send Email
 
Randy wrote:
> Any suggestions? (other than put it on a xxnix box)

The common wisdom says that Windows is easier to use.  In a lot of
cases, this is true.

This is not one of those cases.  Apache::ASP is a native of *ix systems,
and so it's far easier to install it there.  You usually don't have to
set up Apache, mod_perl, or compilers on a Linux box...they're just
assumed to be there, already working, or at least easy to install.  The
lack of this support environment is what you're running into on Windows.

Even if you have an absolute requirement to use Windows for the final
product, I would suggest getting started with Linux first.  That will
give you necessary experience with Apache and Apache::ASP which will
help you to understand the Windows instructions.

You don't have to get dedicated hardware for this, or install Linux.
You can download all this, ready to go.  First, get VMware Player, here:

	 http://www.vmware.com/download/player/download.html

Now we need a VM.  Download VA-LAMP-vmware-*.zip from:

	 http://virtualappliances.net/download/vmware/

This VM is set up for basic Apache serving already.  There are several
more steps required to add Apache::ASP support, but all are easy.  It
might take 15 minutes, all told.

0. Install VMware Player.  It wants to reboot the host machine, but it
isn't really necessary.

1. Extract the contents of the VM zip file to the place you want the VM
to live.  You'll need 2.5 GB of disk space.

2. Open the VA-LAMP folder and double-click the VA-LAMP.vmx file you
find inside.  This will start the VM in VMware Player.

3. After the VM boots -- it won't take long! -- you'll see it report the
IP address that your LAN's DHCP server assigned it.  Write it down.  For
the sake of the discussion below, we'll say it's 192.168.0.42

4. Put that IP address into a web browser to test that the VM is
working.  You should see the VM's welcome page.

5. Say Start > Run and put \\192.168.0.42\wwwroot into the Open field
and hit Enter.  This will connect to the directory holding the content
being served from the VM by Apache.  Log in as admin/admin when
prompted.  You should see index.html.  Delete it, or move it off the VM.

6. Now we have to create the new Apache configuration file, and it's
easier to do it in Windows and transfer it over, rather than transcribe
it into the VM directly.  You'll need a Unix-aware text editor for this.
   If you don't have one, I can recommend Notepad++, which is free:

	 http://notepad-plus.sourceforge.net/

Paste the text below into a new text file, adjusting the first two lines
as desired.  If you're using Notepad++, say Format > Convert to UNIX
Format.  Then save it out as \\192.168.0.42\wwwroot\asp.conf to write a
copy of the new configuration file to the VM's virtual hard disk.

-------------- 8< ---------- cut here --------- 8< -------------

ServerAdmin your@...
ServerName my-first-apache-asp-server
DocumentRoot /var/www/html

<Directory "/var/www/html">
      Allow from all
      AllowOverride None
      DirectoryIndex index.asp
      Options FollowSymLinks
      Order allow,deny
</Directory>

<IfModule mod_perl.c>
      PerlModule Apache::ASP

      <Files ~ (\.asp)>
          SetHandler perl-script
          PerlHandler Apache::ASP
          PerlSetVar Global /var/www/html
          PerlSetVar StateDir /tmp/asp
      </Files>
</IfModule>

-------------- 8< ---------- cut here --------- 8< -------------

7. Click back into the VMware Player window, log in as root/root, and
give the following commands to set up Apache.  First, we'll blow away
the default Apache config and put our new one in its place:

	 # cd /etc/apache2/sites-enabled
	 # rm *
	 # mv /var/www/html/asp.conf ../sites-available
	 # ln -s ../sites-available/asp.conf .

We've started with a minimal VM, so we don't have the C compilers and
such on the system yet.  Let's go get 'em:

	 # apt-get update
	 # apt-get install build-essential

Now we need to set up CPAN:

	 # cpan

Answer the configuration questions, accepting all defaults.

Now we can install Apache::ASP and its prerequisites:

	 cpan> install Bundle::Apache::ASP
	 cpan> exit

Now, the clincher: we need to restart Apache, to load our new configuration:

	 # apache2ctl restart

This should run quickly and silently.  It if complains, you did
something incorrect above.

9. Pop out of the VM (Ctrl-Alt), open your Unix-aware text editor again,
ensure it's in Unix line ending mode, and write this:

	 <% print "Hello, world!" %>

Save it out as \\192.168.0.42\wwwroot\index.asp and hit the refresh
button in your web browser.  The page should change to say "Hello,
world!"  If so, congratulations, Apache::ASP is working.  Continue on
with the examples at http://apache-asp.org/eg/

If all of this is too much for you to deal with, best just use Windows'
own flavor of ASP.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2231 From: "Randy" <rjasky@...>
Date: Mon Aug 18, 2008 11:26 pm
Subject: Apache::ASP Installation Issue
rjasky@...
Send Email Send Email
 

I’m running Windows Server 2003, with Apache (IndigoApache) which has mod_perl installed (not configured…I don’t know how/where to start) and have tried repeatedly to install Apache::ASP via CPAN.

 

The installation always errors out at the same point, and goes something like this:

 

cpan> install Apache::ASP

Running install for module ‘Apache::ASP’

Running make for C/CH/ChAMAS/Apache-ASP-2.61.tar.gz

        Has already been unwrapped into directory C: \INDIGO~1\perl\cpan\build\Apache-ASP-2.61-sF3vmC

Could not make: Unknown error

Warning <usually harmless>: ‘YAML’ not installed, will not store persistent state

Running make test

        Can’t test without successful make

Running make install

        Make had returned bad status, install seems impossible

 

 

Anyway, that’s what I usually get back, and have no idea how to correct it.

 

I’ve been to http://www.apache-asp.org/install.html for directions...they seem like they were written in another language, and refer to directories that don’t exist on my machine…I’ve been to the Yahoo groups, but none of the posts seem to reflect my situation, and the questions regarding installation on Windows seem to go unanswered, and I’ve even been to the IRC channel, but there was an increidble lag between asking a question and getting a reply (I was there for 5 hours, and got only two questions asked in reply to my first question).

 

I really need help getting this done, and have no idea where else to ask, or even who to ask for that matter.

 

Any suggestions? (other than put it on a xxnix box)


#2230 From: "Thanos Chatziathanassiou" <tchatzi@...>
Date: Wed Aug 6, 2008 8:05 pm
Subject: Peculiar $Application problem
tchatzi@...
Send Email Send Email
 
Hi list,

I have a rather strange issue:
I came across a 102 MB $Application object, which contains several
little key => arrayref_value elements.
The keys are usually HTTP_USER_AGENTs and the values 2 fairly short strings.
I'm using MLDBM::Sync::SDBM_File.
Curiously, scalar(keys(%{$Application})) returns just 4 elements and
indeed iterating over keys returns only 4.
Problem is, when running from the command line on a plain copy, it
correctly returns both the number of elements and their keys/values.
Any idea what might be wrong ?


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2229 From: gkoundr@...
Date: Wed Jun 11, 2008 2:39 pm
Subject: Fwd: how to install APACHE::ASP on windows plantform
gkoundr@...
Send Email Send Email
 
I recommend using XAMPP with the Perl add-on:

http://www.apachefriends.org/en/xampp-windows.html

----- Original Message -----
From: ÁõÊéÇ¿
Date: Thursday, June 5, 2008 10:42 pm
Subject: how to install APACHE::ASP on windows plantform
To: asp@...

> hello everyone ,I want to install APACHE::ASP on windows but
> failed ,can
> u help me,please?
>

#2228 From: "ÁõÊéÇ¿" <igloo521@...>
Date: Fri Jun 6, 2008 2:41 am
Subject: how to install APACHE::ASP on windows plantform
igloo521@...
Send Email Send Email
 
hello everyone ,I want to install APACHE::ASP on windows but failed  ,can u help me,please?

#2227 From: Thanos Chatziathanassiou <tchatzi@...>
Date: Fri May 9, 2008 11:03 am
Subject: Re: Peculiar problem with CompressGzip
tchatzi@...
Send Email Send Email
 
O/H Warren Young Ýãñáøå:
> Thanos Chatziathanassiou wrote:
>>
>> enable CompressGzip on that specific directory.
>
> What happens if you use mod_deflate instead?
Interesting question, but since it's a static build, I'd have to
recompile apache to find that out.
I'd rather not do that right now, unless we're all out of ideas.


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2226 From: Warren Young <warren@...>
Date: Fri May 9, 2008 1:17 am
Subject: Re: Peculiar problem with CompressGzip
warren@...
Send Email Send Email
 
Thanos Chatziathanassiou wrote:
>
> enable CompressGzip on that specific directory.

What happens if you use mod_deflate instead?

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2225 From: Thanos Chatziathanassiou <tchatzi@...>
Date: Thu May 8, 2008 1:49 pm
Subject: Peculiar problem with CompressGzip
tchatzi@...
Send Email Send Email
 
Hi list,

I have a virtual host that produces plain XML (no XSLT needed, defined
or used).
The resulting files are quite large, so I thought I'd save some
bandwidth and enable CompressGzip on that specific directory.
There was no error 500, just some garbled output. I could make out some
``Can't upgrade that kind of scalar'' messages in the output, but apache
registered status 200 even for the (obviously) failed hits.

The only configuration directive that seemed to make a difference was:
<Directory /blah/blah/rdfs>
PerlSetVar CompressGzip 1
</Directory>
Removing this resulted in the files being sent as they were supposed to.

Best Regards,
Thanos Chatziathanassiou



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2224 From: Dilipv <dilip.vishwakarma2007@...>
Date: Tue Feb 12, 2008 11:35 am
Subject: Re: APACHE::ASP Tutorial
dilip.vishwakarma2007@...
Send Email Send Email
 
Bruno Marcucci wrote:
>
> Hi,
> I already did anything to try to install ASP into APACHE. In CPAN
> shows that everything is installed, but nothing works. Can you help
> me?
>
> R,
> Bruno Marcucci
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@...
> For additional commands, e-mail: asp-help@...
>
>
>

i saw your quote and so i got the information regarding your query on the
net.
Just check out the below url.it consist of step by step process of
installation of asp in Apache.

http://www.apache-asp.org/install.html

Hope this will defianetly help you out.

Thank you
Jitesh
[url=http://www.intelcs.com/].Net Consulting[/url]

--
View this message in context:
http://www.nabble.com/APACHE%3A%3AASP-Tutorial-tp1690074p15431425.html
Sent from the Apache - Asp mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2223 From: Joshua Chamas <josh@...>
Date: Tue Nov 27, 2007 7:45 am
Subject: Re: peculiar error (?)
josh@...
Send Email Send Email
 
Thanos Chatziathanassiou wrote:
> Since yesterday, apache keeps spitting stuff like this in its error log:
> ---snip---
> compilation error: file unknown-000437603808 element output
> invalid value for method: HTML
> ---snip---
> without further info.
> The error message is always like this, with only the
> ``unknown-XXXXXXXXXXXX'' part different. Comparing this to the
> access.log doesn't reveal any erred requests, i.e. all entries around
> that time are 200's or 304's.
> The lack of a timestamp on the message does not make me very confident
> about the no-errors part, but this is as far as I could see.
>
> Anyone know who/what might by emitting these messages (google did return
> something about HTML::FormValidator::Results and HTML::Lint, but I'm not
> using either) ?
>
>
> Thanos Chatziathanassiou
>

Its pretty odd.

The only references to this I find are libxml and libxslt using by XML::LibXML

http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aof\
ficial&hs=kgF&q=%22compilation+error%3A+file+unknown%22+element+output&btnG=Sear\
ch

You might be using XSLT functionality with Apache::ASP?  Maybe there
is libxml used in your apache somewhere else?

Regards,

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2222 From: Thanos Chatziathanassiou <tchatzi@...>
Date: Tue Nov 27, 2007 4:32 pm
Subject: Re: peculiar error (?)
tchatzi@...
Send Email Send Email
 
Joshua Chamas wrote:
> Thanos Chatziathanassiou wrote:
>> Since yesterday, apache keeps spitting stuff like this in its error log:
>> ---snip---
>> compilation error: file unknown-000437603808 element output
>> invalid value for method: HTML
>> ---snip---
>> without further info.
>> The error message is always like this, with only the
>> ``unknown-XXXXXXXXXXXX'' part different. Comparing this to the
>> access.log doesn't reveal any erred requests, i.e. all entries around
>> that time are 200's or 304's.
>> The lack of a timestamp on the message does not make me very
>> confident about the no-errors part, but this is as far as I could see.
>>
>> Anyone know who/what might by emitting these messages (google did
>> return something about HTML::FormValidator::Results and HTML::Lint,
>> but I'm not using either) ?
>>
>>
>> Thanos Chatziathanassiou
>>
>
> Its pretty odd.
>
> The only references to this I find are libxml and libxslt using by
> XML::LibXML
>
>
http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aof\
ficial&hs=kgF&q=%22compilation+error%3A+file+unknown%22+element+output&btnG=Sear\
ch
>
>
> You might be using XSLT functionality with Apache::ASP?
You're right, I am. After several adventures with XML::Sablotron, I
switched to XML::LibXML for our XSLT needs, mainly due to better error
handling/reporting.
It might be faster too, but not so much as to be noticeable.
Still, I've run into quite few problems getting both of them and their
respective perl modules to work.
(e.g. if you recall ``XML::LibXSLT violent death'' from 29/03/2007)
I have upgraded to apache-1.3.39 with mod_perl/1.30 recently...maybe
this has something to do with. I'll investigate further and report my
findings.
Thanks for the tip.


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2221 From: Thanos Chatziathanassiou <tchatzi@...>
Date: Mon Nov 26, 2007 7:46 pm
Subject: peculiar error (?)
tchatzi@...
Send Email Send Email
 
Since yesterday, apache keeps spitting stuff like this in its error log:
---snip---
compilation error: file unknown-000437603808 element output
invalid value for method: HTML
---snip---
without further info.
The error message is always like this, with only the
``unknown-XXXXXXXXXXXX'' part different. Comparing this to the
access.log doesn't reveal any erred requests, i.e. all entries around
that time are 200's or 304's.
The lack of a timestamp on the message does not make me very confident
about the no-errors part, but this is as far as I could see.

Anyone know who/what might by emitting these messages (google did return
something about HTML::FormValidator::Results and HTML::Lint, but I'm not
using either) ?


Thanos Chatziathanassiou


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2220 From: "Tsirkin Evgeny" <tsirkin@...>
Date: Thu Aug 30, 2007 7:46 am
Subject: Re: saving decoded unicode value to Session causes error
tsirkin@...
Send Email Send Email
 
Hi Richard!
First of all i need to apologize:
It is possible that i gave you a bad advice.
I am not a Apache::ASP developer, just a user that is monitoring the list
to follow the development (if any is making place ,i hope :) ) and
I have tried to help  .As NOT a developer i hope it is allowed for me to make
mistakes.

I will try to explain :
If you setup your server and/or application to send the header saying that the
data is utf8 encoded then what you get from client will also be utf8 encoded.
That IS right .So,if you just use
$Request->Form()
to get the data posted you will get the utf8 encoded data and you probably
WILL be fine ,the same as i have said in the prev. reply.
However there IS a problem:
The string you will get from $Request object although utf8 encoded will NOT be
marked as utf8 encoded .In other words - you get the data fine and if you for example
store it in DBMS you are fine,but perl does not know that it is utf8 encoded.For
perl the data is just an array of bytes
Why does it matter for perl to mark strings as utf8?If you try to use regular expr.
or some string functions (like length ,i think) it may not work because perl will
assume to be character 8 bit long which not always true for utf8.
So ,my advise of just NOT using Encode::decode_utf8 may cause actually problems
if you try to do some processing on the data you get.
Actually, i personally do exactly what i have advised to you :
Taking the data just like i get it from $Request and store it.
In the rare cases when i need to do some processing one the localized
data (like regular expressions match ) i am marking it as utf8.


> Hmm, I thought that perhaps it was something with Apache::ASP, and
> that SDBM_File would be a dependency that was being passed bad data?

I have made a test and it worked just fine,here is the code:
   <html>
<head>
</head>
<body>
<form action="" method=post>
<input type=text name=v>
<input type=submit>
</form>
</body>
</html>
<%

    use Encode;
my $v=Encode::decode_utf8($Request->Form('v'));
$Session->{v}=$v;
print $Session->{v};
%>
I am also using SDBM_File  .Thought i am obviously have another version of perl :(
Why i think that this an SDBM issue?
The error you are getting :
"Wide character in subroutine entry"
means that you are trying to output/call function with wide utf8 character
while this file handler is not setup to get this kind of data .
A quick google search for "MLDBM utf8" approves this. :(
So i guess you need a workaround or just try to use another DBM.

> I suppose I misunderstood the purpose of this <meta> tag...so not
> only output, but inputs get encoded as UTF-8 here?  Cool stuff....

Sometimes the meta tag get ignored and you need the header,also make sure your
server does not send such a header by his own (Apache sometimes does).

> When, then, would I need to use decode_utf8?  I suppose it's for file-
> reading or command-line input then?

If you need perl to know it is  utf8  ,such as some of string manipulations.
Again,You may also try another DBM ,change your StateDB setting .
Maybe this is the best solution .
Evgeny.


#2219 From: Warren Young <warren@...>
Date: Wed Aug 29, 2007 11:57 pm
Subject: Re: Ugg... Newbie install probs....
warren@...
Send Email Send Email
 
Reuben Avery wrote:
> [Wed Aug 29 13:39:09 2007] [error] [client 127.0.0.1] Can't locate
> object method "request" via package "Apache" at
> /Library/Perl/5.8.6/Apache/ASP.pm line 165.\n

Look for this error in the mailing list archives.  It's easy to find.

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

#2218 From: Reuben Avery <reuben@...>
Date: Wed Aug 29, 2007 8:43 pm
Subject: Ugg... Newbie install probs....
reuben@...
Send Email Send Email
 
Hi all,

Hoping to get some help here..  

I have Apache 2.2.4, Mod_perl 2.0.3, and Perl 5.8.6 (running on Mac OS X 10.4.10)

The relevant portion of my httpd.conf:

LoadModule perl_module        modules/mod_perl.so
<IfModule mod_perl.c>
    PerlModule Apache::ASP
    <Files ~ (\.asp)>
        SetHandler perl-script
        PerlHandler Apache::ASP
        PerlSetVar Global .
        PerlSetVar StateDir /var/tmp/asp
    </Files>
</IfModule>


And, so, any .asp page I request gets a 500 server error with this in the error_log:
[Wed Aug 29 13:39:09 2007] [error] [client 127.0.0.1] Can't locate object method "request" via package "Apache" at /Library/Perl/5.8.6/Apache/ASP.pm line 165.\n


Oh, thank you thank you for any help... sigh :(

~reuben

Messages 2218 - 2247 of 2277   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help