Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Questions about setting up CPAN with http access

by earroway (Initiate)
on Mar 19, 2013 at 19:00 UTC ( #1024364=perlquestion: print w/ replies, xml ) Need Help??
earroway has asked for the wisdom of the Perl Monks concerning the following question:

Background: I am a Perl newbie tasked with setting up a CPAN cache on our Intranet. So far I've managed to successfully install all required modules on a linux server. Next step is to configure downloads access to these modules. Anonymous ftp is not allowed on our servers.

Question: I am looking for pointers and/or guidance on how to enable downloads via http. So far I have not been able to locate documentation. Any help would be appreciated.

TIA.

Comment on Questions about setting up CPAN with http access
Re: Questions about setting up CPAN with http access
by blue_cowdawg (Monsignor) on Mar 19, 2013 at 19:37 UTC
        Question: I am looking for pointers and/or guidance on how to enable downloads via http. So far I have not been able to locate documentation. Any help would be appreciated.

    Read up on (offsite link) Apache Web Server. There are more steps than is appropriate to put here, after all this is not Apache Monks. :-)


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Questions about setting up CPAN with http access
by NetWallah (Abbot) on Mar 19, 2013 at 20:17 UTC
    If you are considering serving multiple versions of modules, you may want to consider git gollum, which includes a web server.

                 "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
            -- Dr. Cox, Scrubs

Re: Questions about setting up CPAN with http access
by rjt (Deacon) on Mar 19, 2013 at 22:48 UTC

    There are many resources to assist you here, but the best single source of information I know of is from CPAN itself:

    How to Mirror CPAN

    That link lists the common options for mirroring CPAN. from there, you will need to set up a web server, which has nothing to do with Perl. Apache is usually the go-to, but it's sort of large and there are smaller servers like mongoose as well. That being said, most operating systems make Apache installation and setup rather easy nowadays, so I would suggest Googling basic Apache configuration for whatever your operating system / distribution is.

    You shouldn't need any fancy web server configuration, modules, server-side code, etc., to host a CPAN mirror. A basic static setup will do.

      Great forum. Thanks all for the prompt responses. Due to formatting of the page with replies way below, I didn't realize they had arrived until just now :-)

      rjt, blue_cowdawg: Apache was my first instinct but it's a headache to get apache install approvals at my work-place. So I didn't go that route.

      NetWallah: git-gollum looks interesting and I will look into it when I am ready to make some enhancements. Thanks.

      Overall what I ended up doing was using a lightweight perl webserver I managed to locate using google. I am not on my work computer and I've forgotten its name. :-) Will post later.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1024364]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-11-27 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (178 votes), past polls