Web Application Installation Script

S

sganesa

I have completed web application written in perl. I 'm facing
difficulty while deploying it in a linux box. Each time, i install, i
have to install all the perl modules, configure apache, create
database, test the connection. This kind of tasks are time consuming
and frustrating. Is there any way to write installation script to do
these tasks with few user inputs. Please help me folks.
Thanks in Advance, sGanesa
 
A

Andres Monroy-Hernandez

You could ship your web application with Perl and Apache binaries
already configured to work with your web app. You will save a lot of
time during the installation because it will be just unpacking a tar
file. This can be more complicated if you have to support a lot of
OS's. But it's an option.
 
I

ioneabu

Andres said:
You could ship your web application with Perl and Apache binaries
already configured to work with your web app. You will save a lot of
time during the installation because it will be just unpacking a tar
file. This can be more complicated if you have to support a lot of
OS's. But it's an option.

There's one software package I was looking at that is basically a
website that interfaces with MySQL via PHP. One vendor wants to come
to your location to do the complex installation and another one sells
it already set up on a hard drive.

If you ship it with with Perl and Apache binaries already configured,
what if you mess up what people are already running? If your
application will be the only one running, why not bundle the whole
configured OS in an image file?

I have had the same problem with Perl modules. What if you don't have
access to the internet during setup? What if you ship with all of the
modules needed, but you were not aware of some dependencies on other
modules that are not standard?

Recently, I used Switch.pm just to be cool and I had trouble moving the
script to a machine without internet access because Switch.pm depends
on some other modules I didn't save to disk. I just went back to if,
elsif... I guess avoiding non-standard modules unless absolutely
necessary improves portability.

***Why not make cpan modules available as a DVD image? Project
Gutenburg does it with their files. You won't always get the newest
stuff, but at least you get all of the important stuff. Or for profit,
somebody could sell subscriptions to up to date DVDs.

2005-02-22 online since 1995-10-26
2784 MB 271 mirrors
4187 authors 7662 modules

wana
 
G

Guest

I have completed web application written in perl. I 'm facing
difficulty while deploying it in a linux box. Each time, i install, i
have to install all the perl modules, configure apache, create
database, test the connection. This kind of tasks are time consuming
and frustrating. Is there any way to write installation script to do
these tasks with few user inputs. Please help me folks.
Thanks in Advance, sGanesa

Unfortunately, there really isn't a ".war" for perl the way there is for JSP. :-(

I find Apache's 'Include' directive handy in this regard, but it's still
a hassle. (Create your own apache config file, then editing Apache's configuration
is a simple 'Include /path/to/your/conf')

For command line utilities, I've actually resorted to putting everything
in 1 HUGE script. (yuck) to overcome this problem. Can't say as I'd recommend
that for a web application, though.

In days gone by.. I had a DB <-> XML library. (Was for a corporation, I couldn't
keep it) that could be used to execute the SQL statements for a given DB. This
was useful, I've ported the idea over to PHP for other uses.

Seems the part I struggle with most is the 'use lib' part of a program. Sure
wish there were some way to override perl's built in 'use' to my own resolver
subroutine. (Some way that didn't involve another module, thus creating
a chicken & egg problem)

Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,918
Members
47,458
Latest member
Chris#

Latest Threads

Top