Search the Community
Showing results for tags 'perl'.
-
Dear SysAdmin, I am putting back my cgi's on tommy, and noticed that there are missing Modules so I went to https://tommy.heliohost.org:2083/cpsess2244074712/frontend/paper_lantern/module_installers/index.html?lang=perl and try to install YAML::Syck module for instance I have the following error: ```Testing connection speed...(using fast method)...Done Ping:1.00054121017456 (ticks) Testing connection speed to ftp.yzu.edu.tw using pureperl...(cached .. 4004.49 bytes/s)...Done Ping:1.00051999092102 (ticks) Testing connection speed to ftp.arnes.si using pureperl...(cached .. 3809.34 bytes/s)...Done Ping:1.00037431716919 (ticks) Testing connection speed to cpan.lnx.sk using pureperl...(cached .. 3664.60 bytes/s)...Done Ping:1.00043797492981 (ticks) Testing connection speed to ftp.carnet.hr using pureperl...(cached .. 3586.73 bytes/s)...Done Ping:1.00057315826416 (ticks) Testing connection speed to mirrors.nav.ro using pureperl...(cached .. 3539.96 bytes/s)...Done Five usable mirrors located Ping:1.00098657608032 (ticks) Testing connection speed to 208.109.109.239 using pureperl...(using cached speed)...Done Ping:1.00148677825928 (ticks) Testing connection speed to 159.253.142.50 using pureperl...(using cached speed)...Done Ping:1.00158524513245 (ticks) Testing connection speed to 67.222.0.10 using pureperl...(using cached speed)...Done Three usable fallback mirrors located Fetching http://ftp.yzu.edu.tw/CPAN/index.html (connected:0).......(request attempt 1/12)...Resolving ftp.yzu.edu.tw...(resolve attempt 1/65)...@140.138.144.169......receiving......request success......Done Mirror Check passed for ftp.yzu.edu.tw (/index.html) Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Sat Oct 19 17:17:57 2019) Tuned C compiler not available because it is not enabled....Done ``` Do we have gcc set on Tommy for perl install, not sute what to thing because other module installed properly (??) here are the list of the Perl Module I was using on Tommy : Crypt::Random Digest Digest::JHash Digest::MD5 Digest::MurmurHash Digest::SHA Digest::SHA1 Digest::SHA2 DNS Encode::Base58::BigInt FindBin GD JSON LWP::UserAgent Math::BigInt Math::Prime::Util Math::Random::Secure MIME::Base64 Time::HiRes Time::Local YAML::Syck Thanks +michelc
-
WWW::Curl::Easy install is failing because curl-config can't be found. <excerpt> Locating required external dependency bin:curl-config... missing. Unresolvable missing external dependency. Please install 'curl-config' seperately and try again. NA: Unable to build distribution on this platform. N/A ! Configure failed for WWW-Curl-4.17. See /home/xxx/.cpanm/work/1507067896.19859/build.log for details. Perl Expect failed with non-zero exit status: 256 All available perl module install methods have failed </excerpt>
-
Sorry, I really tried to find the solution in the forum: I got a perl script in the cgi-bin folder of my public_html. Permission is 0755 (so runable) in File Manager. Shebang is #!/usr/bin/perl -w But when i try "http://tarock.heliohost.org/cgi-bin/test.pl" I get the Internal Server Error. :-( test.pl: #!/usr/bin/perl -w use strict; use CGI; print "Content-type: text/html\n\n"; print "Hello World\n"; Server: Stevie User: tarock
-
Hello I am on 'stevie' and want to retrieve some data from 'Google - maps.googleapis.com'. I use LWP::UserAgent. From heliohost.org the download works sometimes but most of the times it does not. The 'response->status_line' is: 500 Can't connect to maps.googleapis.com:80 The strange thing is, when it works at some point it works for a while and then stops working again. With other tested url's it's working without any issues. The url works from the browser and with wget without any problems. The snipplet of the program is: #!/usr/bin/perl -wT use strict; use warnings; require LWP::UserAgent; print "Content-type: text/html\n\n"; my $ua = LWP::UserAgent->new; $ua->timeout(5); my $response = $ua->get('http://maps.googleapis.com/maps/api/directions/xml?origin=49.29,-123.13&destination=49.32,-123.12'); print $response->status_line; print "<br>"; if ($response->is_success) { my @googleResponse = $response->decoded_content; print qq(success<br>); print qq(@googleResponse); print "<br>"; } else { print qq(err_timeout<br>); } ... and its uploaded to: http://islander.heli...gi-bin/test.cgi Any help would be greatly appreciated.
-
Am stuck trung to diagnose what is wrong with my perl CGI. A simpel port from a previous host, so I try say a simple Perl script that prints a list of variables: http://bernd.wechner...bin/printenv.pl and the error I receive is: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@bernd.wechner.info and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_jk/1.2.35 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.4 Python/2.7.4 Server at bernd.wechner.info Port 80 And yet in my error log I see only a failed access attempt to: [Tue May 12 14:30:16 2015] [error] [client 122.151.20.175] File does not exist: /home/bwechner/public_html/bernd/500.shtml which makes sense as Ithe reported error says as much. Now the script has mode 0755 as needed and it resides in the cgi-bin fold which laso has 0755 mode. The access log correctly shows: 122.151.20.175 - - [12/May/2015:14:30:16 -0700] "GET /cgi-bin/printenv.pl HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0" And the favicon displays on my browser tab. Is there a way to further diagnose why a very simple perl CGI would throw a 500 error? Here's all it contains: #!/usr/bin/perl print "Content-type: text/html\n\n"; foreach $key (keys %ENV) { print "<li>$key: $ENV{$key}"; } Any help would be deeply appreciated.
-
Looking for help with CGI files. I try to include one on my website but it gives an error and sometimes it doesnt show anything. I'am on the Johnny host what i got to do. <!--#include virtual="/cgi-bin/poll.cgi?poll=1" --> actually that is my include for the poll The script contains the following #!usr/bin/perl print "content-type: text/html\n\n" use strict; use CGI qw(:all); my $poll_id = int(param('poll')); my $action; open FH, "poll_${poll_id}_ip.txt"; my $ip = <FH>; close FH; chomp $ip; $ip = defined($ip) ? $ip : ''; if ($ip eq '') { $ip = ':' } my $pat = join('\.', split(/\./, $ENV{'REMOTE_ADDR'})); my $mode = $ip =~ /\:$pat\:/ ? 0 : 1; if (($mode == 0) || defined(param('see'))) { print "Content-Type: text/html\n\n"; print "<center>Poll results</center>\n"; open FH, "poll_${poll_id}_text.txt"; my @lines = <FH>; close FH; print join("<br>", @lines); open FH, "poll_${poll_id}_lines.txt"; my @lines = <FH>; close FH; open FH, "poll_${poll_id}_results.txt"; my @votes = <FH>; close FH; my $sum = 0; foreach (@votes) { $sum += int($_); } print "<center><table border=0 cellspacing=0 cellpadding=4>"; for (my $i = 0; $i <= $#lines; $i++) { my $width = 200; my $a = int($votes[$i] * $width / $sum); my $b = $width - $a; print "<tr><td align=right>$lines[$i] (".int($votes[$i]).")</td><td><table width=$width height=10><tr><td width=$a bgcolor=black></td><td width=$b bgcoloe=blue></td></tr></table></td></tr>"; } print "</table></center>"; } else { if (defined(param('dovote'))) { my $vote = int(param('vote')); open FH, "poll_${poll_id}_lines.txt"; my @lines = <FH>; close FH; if ($vote > $#lines) { print "Content-Type: text/html\n\nError"; exit 0; } open FH, "poll_${poll_id}_results.txt"; my @lines = <FH>; close FH; foreach (@lines) { chomp $_; } $lines[$vote] = int($lines[$vote]) + 1; open FH, ">poll_${poll_id}_results.txt"; print FH join("\n", @lines); close FH; open FH, ">poll_${poll_id}_ip.txt"; print FH "$ip$ENV{'REMOTE_ADDR'}:"; close FH; print redirect(-uri => $ENV{'HTTP_REFERER'}); } else { print "Content-Type: text/html\n\n"; print "<form action=/cgi-bin/poll.cgi method=post>"; print "<input type=hidden name=poll value=$poll_id>"; open FH, "poll_${poll_id}_text.txt"; my @lines = <FH>; close FH; print join("<br>", @lines); print "<center><table border=0 cellspacing=0 cellpadding=4>"; open FH, "poll_${poll_id}_lines.txt"; my @lines = <FH>; close FH; for (my $i = 0; $i <= $#lines; $i++) { print "<tr><td align=center><input type=radio name=vote value=$i></td><td>$lines[$i]</td></tr>"; } print "<tr><td align=center colspan=2><input type=submit name=dovote value=Vote> <input type=submit name=see value=\"See results\"></td></tr>"; print "</table></center>"; print "</form>"; } } my error log says [Tue Feb 28 11:03:07 2012] [error] [client 92.66.136.41] unable to include "cgi-bin/poll.cgi?poll=1" in parsed file /home/jeroenn/public_html/Home.shtml please help me on the page it is showing [an error occurred while processing this directive]
-
Hi, I'm trying to install perl module on my account, but it is keeping return the following errors. My user on heliohost.org is mahmoud6 Installing "CGI::Carp" Perl Module Testing connection speed...(using fast method)...Done Ping:0 (ticks) Testing connection speed to mirrors1.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors2.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors4.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors3.kernel.org using pureperl...(cached .. 30000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors.kernel.org using pureperl...(cached .. 30000.00 bytes/s)...Done Five usable mirrors located Ping:1 (ticks) Testing connection speed to 208.74.123.21 using pureperl...(using cached speed)...Done Ping:1 (ticks) Testing connection speed to 208.82.118.100 using pureperl...(using cached speed)...Done Ping:2 (ticks) Testing connection speed to 69.50.192.73 using pureperl...(using cached speed)...Done Three usable fallback mirrors located Mirror Check passed for mirrors1.kernel.org (/index.html) Checking C compiler....C compiler (/usr/bin/cc) OK (cached Sun Jun 1 12:13:51 2014) Tuned C compiler not available because it is not enabled....Done CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available. Method: Using Perl Expect, Installer: cpanm cpanm (App::cpanminus) 1.6916 on perl 5.008008 built for x86_64-linux Work directory is /home1/mahmoud6/.cpanm/work/1401652777.19695 You have make /usr/bin/make Falling back to HTTP::Tiny 0.029 You have /bin/tar: tar (GNU tar) 1.15.1 You have /usr/bin/unzip You have Cpanel::HttpRequest 2.1 Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.98) Checking if you have ExtUtils::Install 1.46 ... Yes (1.67) Testing connection speed...(using fast method)...Done Ping:0 (ticks) Testing connection speed to mirrors1.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors2.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors4.kernel.org using pureperl...(cached .. 60000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors3.kernel.org using pureperl...(cached .. 30000.00 bytes/s)...Done Ping:0 (ticks) Testing connection speed to mirrors.kernel.org using pureperl...(cached .. 30000.00 bytes/s)...Done Five usable mirrors located Ping:1 (ticks) Testing connection speed to 208.74.123.21 using pureperl...(using cached speed)...Done Ping:1 (ticks) Testing connection speed to 208.82.118.100 using pureperl...(using cached speed)...Done Ping:2 (ticks) Testing connection speed to 69.50.192.73 using pureperl...(using cached speed)...Done Three usable fallback mirrors located Fetching http://mirrors1.kernel.org/cpan/index.html (connected:0).......(request attempt 1/12)...Using dns cache file /home1/mahmoud6/.HttpRequest/mirrors1.kernel.org......searching for mirrors (mirror search attempt 1/3)...Ping:0 (ticks) Testing connection speed to 149.20.20.135 using pureperl...test failed...Done Ping:0 (ticks) Testing connection speed to 149.20.4.71 using pureperl...test failed...Done ...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 2/12)...Resolving mirrors1.kernel.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 2/3)...Ping:0 (ticks) Testing connection speed to 149.20.20.135 using pureperl...test failed...Done Ping:0 (ticks) Testing connection speed to 149.20.4.71 using pureperl...test failed...Done ...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 3/12)...Resolving mirrors1.kernel.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 3/3)...Ping:0 (ticks) Testing connection speed to 149.20.20.135 using pureperl...test failed...Done Ping:0 (ticks) Testing connection speed to 149.20.4.71 using pureperl...test failed...Done ...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 4/12)...Resolving mirrors1.kernel.org...(resolve attempt 1/65)...mirrors1.kernel.org did not have any working mirrors. Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 603. Perl Expect failed with non-zero exit status: 6400 All available perl module install methods have failed
-
Hi everyone! i have a Problem with a Perl/Ruby CGI Script - 500 Internal Server Error. user: dagger address: http://dagger.heliohost.org Server: Johnny From the very beginning Perl was not worked: http://dagger.helioh...cgi-bin/test.pl #!/usr/bin/perl BEGIN { my $b__dir = (-d '/home/dagger/perl'?'/home/dagger/perl':(/>/> getpwuid($>) )[7].'/perl'); unshift @INC,$b__dir.'5/lib/perl5',$b__dir.'5/lib/perl5/x86_64-linux',map { $b__dir . $_ } @INC; } print "Content-type: text/html\n\n"; print <<HTML; <html> <head> <title>A Simple Perl CGI</title> </head> <body> <h1>A Simple Perl CGI</h1> <p>$theTime</p> </body> HTML Ruby was for beginning worked, but now the same problem - 500 Internal Server Error http://dagger.helioh...gi-bin/test.cgi #!/usr/local/bin/ruby -w require 'cgi' cgi = CGI.new puts cgi.header puts "<html><body>This is a test</body></html>" http://dagger.helioh...in/test_ruby.rb #!/usr/bin/ruby puts "Content-type: text/html" puts puts "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" puts "<!DOCTYPE html>" puts "<html>" puts "<head>" puts "<title>Ruby CGI test</title>" puts "</head>" puts "<body>" puts "<p>Hello, world!</p>" puts "<br> puts "Ruby is amazing! :)/>/>" puts "</body>" puts "</html>" My question is, what happened with Perl and Ruby? Python and Free Pascal CGI working fine Thanks in advance! P.S. Sorry, for my pure English
-
I cannot use Perl in stevie server. My script is in folder www/cgi-bin and also chmod 0755. and I have put #!/use/bin/perl as the first line. My log is clear. But I get error 500 when running a .pl http://testperl.tk/cgi-bin/test.pl
-
I have written a simple hello world program in perl, I have placed it in the cgi-bin and set a 0777 permission, however i am getting error 500 when I run it, I am new to perl but I think I have everthing correct. here is the code: #!/usr/bin/perl print "Content-Type: text/html \n\n"; print "Hello World";
-
Hi all. I've recently got a free account from Heliosoft. Now, i'm unable to run even a simple cgi. Is cgi active by default? I've put a simple demo.cgi in cgi-bin with following code: #!/usr/bin/perl print "Content-type: text/html\n\n"; print <<HTML; <html> <head> <title>A Simple Perl CGI</title> </head> <body> <h1>A Simple Perl CGI</h1> <p>Hello World</p> </body> HTML exit; Then, i've changed file permission to 755 (even 777) but i get following error all times: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@gistech.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Any idea of what's wrong here? Thanks in advance.
-
Hello Forum's people, I am using Stevie Server. I am using PHP pages. I also have scripts in PERL The site worked fine but one day it didn't work any more. I don't know what happens. Normal pages in .html work fine, but none of .php or .cgi pages work anymore. Even if I test the "hello world" script: <? print("Hello World"); ?> It don't works. Always appear "Internal Server Error" Perhaps I unintentionally change something. Could somebody help me? EDIT: There were 5 unkilled .cgi processes running since July 17.
-
Hello everyone... I hope this is the right forum to ask this question. I know a bit of html and perl. I wrote a basic perl script as follows #!/usr/bin/perl print "hello world; and uploaded in public_html folder with permissions 755. But my site is not visible. Please help. If i can just figure this out, i can start playing with the rest on my own.
-
While doing some work towards developing mobile apps,and getting to grips with Gnome-shell, my interest in Server-side Javascript has been renewed. I'm thinking of using it for web-scraping and to gather content from API Services to enrich web site content. I've specifically been using Node.js and wonder if any other Heliohost members are interested in or already using these technologies. Also wondering whether it would be acceptable to load node.js to my Heliohost space. Given that we do not have shell access to our accounts- ( sigh! - though I do understand the reasons) I anticipate creating a little perl/ CGI harness to launch node and apps using it. Thinking too that perhaps this approach would provide away to use Drush( Drupal's command line interface) on Heliohost'ed sites. Any observations/ pointers/ suggestions would be most welcome. I would have looked through other posts for relevant materials but unfortunately javascript is a forbidden search term . .a little odd for forums largely devoted to programming. .
-
- javascript
- server
-
(and 1 more)
Tagged with:
-
I put this under the site suggestions some time ago, but haven't heard anything about it. I'd like to get Catalyst or MojoLicious installed. They are both popular perl frameworks that make it easy to sessionize and build templates websites. The only alternative I can use is the dated CGI module family.