Packaging a LAMP application for easy deployment

I'm the resident "computer guy" for my mom's small business. About a year ago I set up a spare Dell box as an Ubuntu server sitting on the LAN in the shop, set up a LAMP stack on it and built a few intranet web applications (mostly with PHP and MySQL) for things like managing customer rewards data, inventory, employee timelogs, etc. I went on to implement a custom barcode-and-cooking-instructions label generator with a frontend to print on Avery templates, and a fully-fledged Cash Register frontend with barcode scanning, custom hooks for inventory management, and a suite of accounting reports. My little database apps have become a part of the daily procedures and business model for the shop.

Recently my mom told me she has a potential franchisee who wants to license the business model and open up a sister store in another state, complete with my software.

Now, my code is nice and stable, I have extensive documentation for using it, but I'm not going to be available to help the new folks get it up and running. To make matters worse, it's not just a simple LAMP stack with some files in the docroot, setup involves using custom Apache config files, setting up MySQL databases and users, and installing a few esoteric dependencies like ImageMagick and its PHP Imagick extension (which I had to compile from source!)

Is there any good way to make some kind of one-step install script or package that will install the dependencies I need, my custom apache configuration, and extract my PHP files all into place? Something that I could present to someone who's never configured Apache before that would get it up and running without my help? Perhaps even some way to easily get an image of the entire OS and stack that they can clone onto a new drive without expertise?

Sorry if this is subjective, but my google has failed me.


Why don't you just ship them a server with all the software installed and configured? You could either make it part of the franchise requirement OR you could set yourself up as a technology provider (and the franchise license requires them to use your software/hardware).


Did you check out Server2Go?

Server2Go is a Webserver that runs out of the box without any installation and on write protected media. This means that web applications based on Server2Go can be used directly from cdrom, a usb stick or from any folder on a hard disk without the hassle of configuring Apache, PHP or MySQL.

Server2Go allows you to create a standalone working web site or PHP application on a CD-ROM. There are many examples of its possible useses such as catalogue software, calculation programmes, image campaigns (CMS-based), computer based training lessons or other applicatons. Most PHP-Software such as the content management system Joomla or the computer based training software Moodle can be used from CD-ROM with the help of Server2Go.

链接地址: http://www.djcxy.com/p/57686.html

上一篇: PHP 5.4.12 Mac OSX imagecreate *函数无效

下一篇: 打包LAMP应用程序以便于部署