Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Best practices for packaging CGI scripts

by westernflame (Sexton)
on Aug 08, 2005 at 19:09 UTC ( #481976=note: print w/ replies, xml ) Need Help??


in reply to Best practices for packaging CGI scripts

The type of packaging required for CGI scripts is dependant on who the script is intended for. What level of skill can you expect from users?


Comment on Re: Best practices for packaging CGI scripts
Re^2: Best practices for packaging CGI scripts
by ajkessel (Acolyte) on Aug 08, 2005 at 19:18 UTC
    My intended users would range from "power users" who run their own webservers to users with more limited skills who would know enough to find a script on freshmeat and follow basic instructions about editing the config file with a text editor. Comparable to the level of skill of a typical user who was going to install their own blogging software on their webserver account (rather than use something like blogger.com). As I mentioned above, I'd like to have a "systemwide" installation option along with the per-user installation.
      Your power user and your user with limited skill will have different levels of access to the server. A CPAN module is certainly the best way but completely impossible for many users. Without shell access CPAN installation is difficult or impossible. Considering which directories to put files is academic if the user does not have access to anything but a cgi-bin. Some hosts I have come across will even deploy installations of Perl that won’t accept relative file paths.

      The most important thing for getting CGI scripts to run on these limited environments is simplicity. They should not require additional CPAN modules. In my opinion the best approach is using an installation script to retrieve variables from the user. The script will be as simple as possible to ensure that it will run in any environment. The users variables can then be entered and checked before more complex parts of the program are used. Far too many perl CGI scripts simply stop working when they have incorrect user entered variables. With respect to system wide installation CPAN installation is certainly the best way to go.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-09-02 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls