Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Downloading your modules:
To download modules, please check search.cpan.org.

To install onto a web server always check before hand if it's compiled in C or if it's strictly .pl files. On cpan near the download link you will find a browse button, click that to view the contents of the module. If all you see are folders and .pl files, download it.

When downloading from this site more often than not you will be download in a .tar format, which is ok for both *nix and Windows. Windows users may have to unzip the file twice.

Unzip the contents as you would any file.

On your server in your home directory (often /www/) create the folder 'lib' in lowercase letters.

Open your folder with your module and look for the 'lib' directory. Depending what module you downloaded there might be a single folder or a huge list of folders here. Behind these folders are the modules themselves, each are broken down into their own folder.

Make web directory 'lib'
Connect to your site via FTP (if you need to connect via the browser, you will need to transfer each file into their respect folder EXACTLY as you downloaded them) and transfer all the FOLDERS with their contents into your 'lib' directory on your server. Use ASCII as perl files are text.

Using your modules:
Near the top of your script, use: use lib "/location/lib/" ;

Testing:
If your script isn't working and you want to be sure your modules are installed correctly and your script and locate them, use the line (if you have CGI::Carp): use CGI::Carp qw(fatalsToBrowser);

In reply to Installing Modules on a Web Server by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (7)
    As of 2014-09-03 09:07 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite cookbook is:










      Results (35 votes), past polls