Skip to content

TotalChoiceHosting

TotalChoiceHosting

Test Results

  • Can install CPAN modules – PASS
  • Can compile XS modules – ?????

Notes, feature limitations

Perl version: 5.8.8
Apache version: 2.2.11
Shell access: No
Run Perl scripts outside cgi-bin directory: No
Some commands which are disabled from being used in Cron jobs: curl, GET, wget, lynx
Running Perl script as Cron job:

/usr/local/bin/perl /home/[your_cpanel_account]/public_html/cgi-bin/yourscript.pl

User-installed CPAN modules

CPAN modules can be installed via cPanel. The modules are installed in

/home/[your_cpanel_account]/perl

To use these modules, you must add this directory to the include path. You can do this by adding the following code to your script:

BEGIN {
    my $base_module_dir = (-d '/home/<your_cpanel_account>/perl' ? '/home/<your_cpanel_account>/perl' : ( getpwuid($>) )[7] . '/perl/');
    unshift @INC, map { $base_module_dir . $_ } @INC;
}

System-installed Perl modules

TotalChoiceHosting system installed modules

Resource Limits

You are prohibited from excessive consumption of resources, including but not limited to, CPU time, memory, disk space and session time. You may not use resource-intensive programs which negatively impact other customers or the performance of TotalChoice Hosting systems or Hosting. TotalChoice Hosting reserves the right to terminate or limit such activities.

Acceptable Use Policy doesn’t specify exact numbers for resource usage. However, they do have some numbers in mind, and when my script violated the limit (of what they never shared) my script was automatically deleted. After I optimized and uploaded a new version I never had a problem since.

More Information

uname -a
Linux lando.tchmachines.com 2.6.18-164.11.1.el5PAE #1 SMP Wed Jan 20 08:16:13 EST 2010 i686 i686 i386 GNU/Linux
echo $SHELL
/bin/sh
which perl
/usr/bin/perl
perl -v
This is perl, v5.8.8 built for i686-linux

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.18-8.el5, archname=i686-linux
    uname='linux lando.tchmachines.com 2.6.18-8.el5 #1 smp thu mar 15 19:57:35 edt 2007 i686 i686 i386 gnulinux '
    config_args='-ds -e -Dprefix=/usr'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under linux
  Compiled at Oct 18 2007 01:25:08
  @INC:
    /usr/lib/perl5/5.8.8/i686-linux
    /usr/lib/perl5/5.8.8
    /usr/lib/perl5/site_perl/5.8.8/i686-linux
    /usr/lib/perl5/site_perl/5.8.8
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl/5.8.6
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl
    .
cc --version
cc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
http://perlsharedhosting.com/wp-content/uploads/2010/06/tch_sys_installed_modules.txt
No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS