Re: Apache::ASP problems
Leighton Donal Jones wrote: > > Hello, > Would anybody be able to help with this problem? I am using > Apache, mod_perl and Apache::ASP.When I call an asp file from the browser > it seems to read the file content as html, eg on a form, in the input area > it shows the name of the variable, it dosen't recognise the perlScript and > just prints it as text. You don't know what might be causing this problem > ? Is this a configuration error. > Your Apache::ASP config is likely not being picked up, so the ASP script is being rendered as straight HTML. Make sure you can get the ./site/eg examples that come with the Apache::ASP distribution working. Once done with that, you can likely leverage your configuration know-how into real development and production configs. The examples in particular need to have their .htaccess activated, see http://www.apache-asp.org/install.html#Quick%20Start Make sure you also understand what the various config options do for you once you get ASP working. If you don't need it, don't use it! See: http://www.apache-asp.org/config.html --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks >> free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Apache::ASP problems
Hello, Would anybody be able to help with this problem? I am using Apache, mod_perl and Apache::ASP.When I call an asp file from the browser it seems to read the file content as html, eg on a form, in the input area it shows the name of the variable, it dosen't recognise the perlScript and just prints it as text. You don't know what might be causing this problem ? Is this a configuration error. Thanks, Leighton
Re: [Apache::ASP] Problems with SSI and XSLT
"S.tygian B.lacksmith S.tudios" wrote: > > Hello, > > I've been having some troubles with the SSI and XSLT examples in the /eg/ > directory in my Apache::ASP installation: the SSI example works to a point, > but there's an extra opening comment tag ("
[Apache::ASP] Problems with SSI and XSLT
Hello, I've been having some troubles with the SSI and XSLT examples in the /eg/ directory in my Apache::ASP installation: the SSI example works to a point, but there's an extra opening comment tag ("
Re: Apache::ASP problems with Global, global.asa, 'use lib' and @INC
[EMAIL PROTECTED] wrote: > > The problem is that I specify a dirname for the Global perl var on my httpd.conf and >Apache::ASP fails to push it on @INC. This problem is circumvented if I create a >global.asa file (even an empty one) in the directory I specify for the Global var. If >I do this then the path is correctly pushed onto @INC. > > It took me a while to discover the global.asa trick. I think this is a bug because >global.asa should always be optional on ASP apps. > Good point. In my latest dev release 2.05, Global is added to @INC during every script compilation, just for that compilation. > Other problem I found is that pushing another path onto @INC by way of "use lib >$new_path;" doesn't work properly. The "use lib" is executed but it only modifies >@INC the first time the script is executed, and is then ignored on succesive >invocations of the same script on the same httpd process. > Right, this is the way modperl works. If you want @INC to stay a certain way, you should modify it prefork in the parent. Even then, I'm not sure it'll stay that way, test it out! Let me know if you want my latest dev release for Apache::ASP. Its very stable. I'm glad to see a fellow Cardinal working with modperl, class '97 myself. --Joshua
Apache::ASP problems with Global, global.asa, 'use lib' and @INC
The problem is that I specify a dirname for the Global perl var on my httpd.conf and Apache::ASP fails to push it on @INC. This problem is circumvented if I create a global.asa file (even an empty one) in the directory I specify for the Global var. If I do this then the path is correctly pushed onto @INC. It took me a while to discover the global.asa trick. I think this is a bug because global.asa should always be optional on ASP apps. Other problem I found is that pushing another path onto @INC by way of "use lib $new_path;" doesn't work properly. The "use lib" is executed but it only modifies @INC the first time the script is executed, and is then ignored on succesive invocations of the same script on the same httpd process. The following script demonstrates the problem: --- <% use lib 'tmp'; $inc = join('', @INC); %> <%= $inc %> --- If you reload it some ten times (depending on the number of servers your config spawns) you'll see that the modified @INC stops showing up. Thanks! Claudio. -- [EMAIL PROTECTED] is brought to you by the Stanford Alumni Association and Critical Path.
Re: Apache::ASP problems
Thanks for the follow up Ime. Vincent, if you want to run the xslt.xml example as I saw you do in your error log, you have to install the XML::XSLT module. Use cpan, and install the Bundle::XML -- Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks >> free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 Ime Smits wrote: > > 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/site_perl/5.005/Apache/ASP.pm line 4298 > [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] Can't > tie to file /tmp/asp_demo/server/internal, 514, No > such file or directory !! <--> Make sure you have the > permissions on the <--> directory set correctly, and that > your <--> version of Data::Dumper is up to date. <--> Also, > make sure you have set Global to <--> to a good > directory in the config file., > /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4374 > > ...seems pretty self-explainatory to me. Check your > configuration file for the StateDir directive. It sdhould point > to a place hwere your apache uid (nobody?) can write. See also: > http://www.nodeworks.com/asp/config.html > > BTW: I advise you not to post 88k attechments to the list. > Stick with some relevant lines of your loggings. I personally > don't care, but some people do not seem to like that here...
Re: Apache::ASP problems
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/site_perl/5.005/Apache/ASP.pm line 4298 [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] Can't tie to file /tmp/asp_demo/server/internal, 514, No such file or directory !! <--> Make sure you have the permissions on the <--> directory set correctly, and that your <--> version of Data::Dumper is up to date. <--> Also, make sure you have set Global to <--> to a good directory in the config file., /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4374 ...seems pretty self-explainatory to me. Check your configuration file for the StateDir directive. It sdhould point to a place hwere your apache uid (nobody?) can write. See also: http://www.nodeworks.com/asp/config.html BTW: I advise you not to post 88k attechments to the list. Stick with some relevant lines of your loggings. I personally don't care, but some people do not seem to like that here...
Apache::ASP problems
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 To check it yourself goto http://node1352c.a2000.nl/site/eg/index.html Thanks for all your help, once again. Sincerely Vincent Bruijnes [EMAIL PROTECTED] [Thu Jul 6 16:09:47 2000] [error] [asp] [34387] [debug] destroying - GlobalASA: Apache::ASP::GlobalASA=HASH(0x837392c); Request: Apache::ASP::Request=HASH(0x83962e8); Response: Apache::ASP::Response=HASH(0x839624c); Server: Apache::ASP::Server=HASH(0x839615c); basename: session.asp; compile_includes: 1; dbg: 2; debugs_output: ARRAY(0x812b848); errors_output: ARRAY(0x83b62d0); errs: 2; filename: /www/htdocs/site/eg/session.asp; global: /www/htdocs/site/eg//.; global_package: Apache::ASP::Demo; id: _www_htdocs_site_eg_session_aspxDYN; includes_dir: ARRAY(0x812b8f0); init_packages: ARRAY(0x83960d8); no_cache: ; no_session: ; no_state: ; package: Apache::ASP::Demo; r: Apache=SCALAR(0x837cc90); stat_inc: ; stat_inc_match: ; stat_scripts: 1; state_cache: ; state_db: ; state_dir: /tmp/asp_demo; state_manager: 10; state_serializer: ; subid: Apache::ASP::Demo::_www_htdocs_site_eg_session_aspxDYN; unique_packages: ; use_strict: ; xslt: ; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] RUN ASP (v1.91) for /www/htdocs/site/eg/source.asp [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] GlobalASA package Apache::ASP::Demo [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] compiling global.asa Apache::ASP::Demo _www_htdocs_site_egglobal_asa - asp: Apache::ASP=HASH(0x837cc90); compiled: HASH(0x82e9610); exists: 1; id: _www_htdocs_site_egglobal_asa; mtime: 962892550; package: Apache::ASP::Demo; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] can't create group dir /tmp/asp_demo/server, /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4298 [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] Can't tie to file /tmp/asp_demo/server/internal, 514, No such file or directory !! <--> Make sure you have the permissions on the <--> directory set correctly, and that your <--> version of Data::Dumper is up to date. <--> Also, make sure you have set Global to <--> to a good directory in the config file., /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4374 [Thu Jul 6 16:13:54 2000] [error] Can't bless non-reference value at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4540. Apache::ASP::State::TIEHASH('Apache::ASP::State', 'Apache::ASP=HASH(0x837cc90)', 'internal', 'server', 514) called at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 637 Apache::ASP::new('Apache=SCALAR(0x813c3c0)') called at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 142 Apache::ASP::handler('Apache=SCALAR(0x813c3c0)') called at /dev/null line 0 eval {...} called at /dev/null line 0 [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] state internal locks: 0, unlocks: 0 [Thu Jul 6 16:13:56 2000] [error] [asp] [34386] [debug] destroying - GlobalASA: Apache::ASP::GlobalASA=HASH(0x83a0df8); Request: Apache::ASP::Request=HASH(0x83a0fb4); Response: Apache::ASP::Response=HASH(0x812b83c); Server: Apache::ASP::Server=HASH(0x83b2e4c); basename: source.asp; compile_includes: 1; dbg: 2; debugs_output: ARRAY(0x833de70); errors_output: ARRAY(0x82e94a8); errs: 2; filename: /www/htdocs/site/eg/source.asp; global: /www/htdocs/site/eg//.; global_package: Apache::ASP::Demo; id: _www_htdocs_site_eg_source_aspxDYN; includes_dir: ARRAY(0x83a0d5c); init_packages: ARRAY(0x83a0c6c); no_cache: ; no_session: ; no_state: ; package: Apache::ASP::Demo; r: Apache=SCALAR(0x813c3c0); stat_inc: ; stat_inc_match: ; stat_scripts: 1; state_cache: ; state_db: ; state_dir: /tmp/asp_demo; state_manager: 10; state_serializer: ; subid: Apache::ASP::Demo::_www_htdocs_site_eg_source_aspxDYN; unique_packages: ; use_strict: ; xslt: ; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] RUN ASP (v1.91) for /www/htdocs/site/eg/cgi.htm [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] GlobalASA package Apache::ASP::Demo [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] compiling global.asa Apache::ASP::Demo _www_htdocs_site_egglobal_asa - asp: Apache::ASP=HASH(0x83a0e58); compiled: HASH(0x82e9610); exists: 1; id: _www_htdocs_site_egglobal_asa; mtime: 962892550; package: Apache::ASP::Demo; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] start ti
Apache::ASP problems with ASP and apache
I have installed apache-1.3.9-8, mod_perl-1.21-2, and perl-Apache-ASP-0.09-2 rpms on a Redhat 6.1 machine. My problem is when trying to run asp pages all i get is the code. I also checked and do not have an asp.conf in my /etc/httpd/conf directory in the httpd.conf i have the mod_perl portions uncommented. I also used CPAN to download the Apache::ASP module. I satisfied all of the dependancies and still I can't seem to get the server to run ASP pages, even the demos don't run properly. Is there a step by step process somewhere that i can use to see what I am doing wrong? Jim Ellis Desktop Client Administrator (303)892-2342 (303)892-2530 fax http://InsideDenver.com