Uk2 Logo

Knowledgebase

Search Articles

Categories

Cloud/VPS
  • Trust & Safety
    Back to Tools and Features

    Installing Perl Modules


    There is no need to "enable" Perl explicitly, as it is available by default on our Web Hosting packages. Simply upload your Perl scripts (with a .pl or .cgi extension) to the appropriate directory—usually the /cgi-bin directory—and ensure the scripts have the correct permissions (typically 755).


    How can I check to ensure Perl is Enabled?

    Navigate to StackCP's Access / Error Logs section and check the Error Logs. If you see the message: 

    1. Python/Ruby/Perl not enabled on this webserver. Please contact support.
    Please raise a support ticket and we will look into this further.

    "Can't locate.. " Error

    If the Perl library exists in your cgi-bin folder but you see an error in the logs such as this: 


    1. Can't locate wtcart.pm in @INC (you may need to install the wtcart module)

     Then the following directive should first to the .htaccess file before re-running the related Perl script: 


    1. SetEnv PERL_USE_UNSAFE_INC 1

     This sets Perl to use local files and should resolve the error.



    Idea
    If you need further guidance or encounter any other issues running Perl scripts, please consult the knowledge base or reach out to support for additional assistance.



    Related Articles

    How To Add SEO Guru To Addon Domains
    How To Add Stats2 To Addon Domains
    How To Setup a Redirect
    What Are Perl Modules
    How To Use Cron Jobs

    Can’t Find what you need?

    No worries, Our experts are here to help.