| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Comments:
<0> cause that says internal server error when i try to run <1> Soul_keeper: mod_perl is not necessary for CGI. <2> riczho: I would imagine he'll want the linebreaks to be displayed on the page as html too... <1> it is a completely different technology too. <3> Kinks: then print $q->header("text/plain"); <4> Soul_keeper: is your file executable? <5> print ($a = (`cat /proc/cpuinfo/` =~ s#\n#<br />#g)); <5> Would that work? <3> Or print "<pre>"; ... print "</pre>"; <0> tybalt89, yes <2> making the content text/plain simplifies things plenty enough <6> Happy rainy Sunday, all -- I am looking for information on Raybec, a company that posted on jobs.perl recently. Anyone? <4> Soul_keeper: riczho's worked for me (scrunched up) <0> i wish i knew if mod_perl was working or not <5> Ray and Becca's Shovel Painting Service <5> ?
<0> http://www.sterlingdesktops.com/cgi-bin/cpuinfo.pl <0> don't seem to be working <2> Soul_keeper: and why do you wish that? mod_perl has nothing to do with this.. <0> i payed 100 dollars for some perl cgi shopping cart software <6> JoshNarins, http://www.raybec.ca/ <0> and havn't used it since i bought it like 3 years ago <0> been working like 2 days trying to configure my system to run cgi/perl scripts <5> hmmm <5> installing from scratch shouldn't take that long <5> :) <5> but, anyway <3> Soul_keeper: #apache might be able to help with that. <6> And job posting is at http://jobs.perl.org/job/4123 <7> Soul_keeper - what did you get for your $100? <5> Soul_keeper, what you want is to tail your apache/logs/error_log to see the errors <7> any support? <7> if not, then why did you pay for that instead of the free alternatives? <5> > locate error_log | grep logs <5> > tail -f /your/apache/logs/error_log <6> Or httpd-ssl-error_log if it's on SSL. <5> then reload the page <0> [Sun May 21 11:48:29 2006] [error] [client 70.109.178.21] Premature end of script headers: /var/www/cgi-bin/cpuinfo.pl <5> talexb, but it isn't <0> i pretty much get that error for pretty much every script i run <5> paste a script to the pastebot <7> sounds like something is fundamentally wrong <7> add BEGIN { print "content-type: text/plain\n\n" } to your script <6> Not SSL? Okey-Doke. <7> see what headers it's trying to do <3> Hmm... use CGI::Carp qw(fatalsToBrowser); may also be useful.. <7> I'm betting it wants to "use" something that isn't installed <5> mod_perl is definitely running, right? <5> > perl -wc /var/www/cgi-bin/cpuinfo.pl <0> i dunno <5> > perl -wc /var/www/cgi-bin/cpuinfo.pl <-- what does it say? <0> but i got my script running <5> no, that'd be working <5> sorry <0> http://www.sterlingdesktops.com/cgi-bin/cpuinfo.pl <5> You are printing out an extra set of http headers. <5> fyi <8> GumbyBRAIN: be dazjorz <9> Dazjorz, i don't want to put into functions. <0> how would a verify if mod_perl is running btw ? <10> Nooo! GumbyBRAIN will put me into functions and I'll be just a lonely statement... <7> well - you'd be writing handlers instead of putting in scripts <7> since mod_perl is about handlers <10> GumbyBRAIN: be BinGOs <9> is poco-irc commit: 'committing prior to release' by bingos. <10> -.- <5> $ENV{MOD_PERL} is set <7> what is "-.-"? <0> i musta installed 100 handlers yesterday <4> Soul_keeper: what was the fix? <5> print "Mod-perl running\n" if $ENV{MOD_PERL}; # or is it $ENV{MODPERL} <5> No, with the _ <10> merlyn: It's kind of an emoticon <0> #!/usr/bin/perl <0> use strict; use warnings; use CGI; <10> merlyn: Like ~_~ <7> what kind?
<10> merlyn: But shorter. <0> that as two lines not one <0> :) <10> merlyn: The -'s are eyes, the . is mouth, so -.- is like a .. Face. <7> Soul_keeper - that's a script, not a handler. <0> yeah <7> a handler is like "PerlTransHandler My::Cl***" <0> yeah i installed like 100 of them yesterday <7> then mod_perl is there <7> or your server would be bitching. :) <5> Well, "installation" could have involved little more than moving them to a particular directory. <0> i might be missing some handlers <5> Checking $ENV{MOD_PERL} works <5> Or maybe the definition of "handler" held by some isn't identical <0> i noticed the make test for mod_perl complains about auth and proxy amoung other things <5> httpd -l works if your mod_perl is statically linked <0> yeah it don't show up in that list <0> mod_cgi.c is there tho <5> You should add a line like this vvvvvv to your working .pl script <5> print "I " . ($ENV{MOD_PERL} ? 'do not ' : '') . "have mod_perl running now.\n"; <5> ack, except, invert the results, since I wrote it backwards <5> amazing <0> http://www.sterlingdesktops.com/cgi-bin/cpuinfo.pl <5> So you don't have mod_perl running :) <0> blastid <7> or you do, but just not for that directory <7> did you configure Apache::Registry for an area? <0> yes <7> since I presume that's what you mean when you say "mod_perl running" <7> because "mod_perl running" doesn't make any sense to me <7> mod_perl is a module. it doesn't "run" <7> Apache runs. :) <7> if mod_perl isn't loading, all your httpd.conf lines that have mod_perl directives will fail <7> so you're definitely loading mod_perl if those lines are parsed. <0> wait <0> PerlModule Apache::Registry <0> was in there <0> but gives me an error when apachectl start is run <0> Invalid command 'PerlModule', <7> Oh - then you probably don't have mod_perl linked in or loaded in <7> is this 1.3 or 2.x <0> what would i add to load it <7> answer my question. :) <0> i tryed 2.2.2 earlier but then after no success went to 1.3.36 <5> Something like: LoadModule perl_module libexec/libperl.so <7> right <0> LoadModule mod_perl gives me an error <0> Invalid command 'LoadModule', <7> then you don't have the .so loader either. <5> need to add the rest of the line, in any event <11> I asked earlier, but I'm not sure what to do, I'm trying to grab a page through a proxy with LWP::UserAgent, but the proxy requieres a Content-Length header <7> are there any other LoadModule commands? <11> In the request I think, but I don't know how to generate it so I can p*** it along <11> i thought it was a response method though <7> uh - for POST, or for the response <7> are you POSTing? <11> I'm just trying to GET <7> shouldn't need a content-length then <7> even for the response <10> eval: $domainname = "dazjorz.com"; "/var/www/".join '/', reverse split /\./, $domainname; <12> dazjorz: Return: /var/www/com/dazjorz <11> When I GET without a proxy it doesnt do anything, but through the proxy I get 411 Length Requiered <10> Ha! Take that! <0> merlyn, yes but they are all commented out <7> I'm not sure that's what 411 means <10> merlyn: Its what he said <11> Woah, there are 411 people in the room! Sorry, lol. <10> merlyn: I guess, Length Required <10> Lol, javadog <10> javadog, It's probably a proxy error... <7> it's definitely what the proxy returns? <10> javadog, Means that your proxy wants a "Content-Length: " header, but it isn't getting one <11> According to $response->status_line <11> A Content-Length from me or from the web-server?
Return to
#perl or Go to some related
logs:
#perl #linux videolan RHEL4 #suse configure: error: C++ preprocessor /lib/cpp fails sanity check + fedora core 5 #qemu #ubuntu #oe emacs alienbrain kartouche fopen
|
|