+ Reply to Thread
Results 1 to 2 of 2

Thread: How to package PHP/MYSQL application for automatic installation

  1. #1
    benjibabs is offline x10Hosting Member benjibabs is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    2

    How to package PHP/MYSQL application for automatic installation

    Hello all,

    I am wrapping up my first web app designed with php on mysql dbase. I am looking to package it in such a way that my client can install this app like any windows application - click on appsetup.ext and the process of installing the required platform, dbase design and php files is automated. The steps I want to automate are below:

    1.) install WAMP - this may not be included as I may just require client to have it before installing the app
    2.) create dbase and tables in mysql
    3.) copy over the php/HTML files to predefined directory on C drive.

    I will appreciate any idea, suggestion, thought on how to do this. Also, name of available tools are welcomed.

    Thanks.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: How to package PHP/MYSQL application for automatic installation

    Rather than limiting your potential users to those running windows, I recommend simply compressing the files in archives (zip and tarred&gzipped, at the very least) and including a setup script. To complete installation after decompressing the archive in the appropriate directory, the site admin goes to the setup script page in a browser, enters whatever information is necessary (such as DB user & password), and it performs the initial setup (e.g. creating the necessary databases, users and tables; enabling necessary extensions) then (if successful) disables itself.

    If you want an easy install package for Windows users, you can create it using a Windows installation package creator once the generic package/s is/are created. The Windows package would run your app's setup script once everything is in place. As for including a WAMP installer in your package, it would become outdated whenever WAMP is updated. Additionally, the WAMP installer doesn't appear to have an unattended installation mode; the user would need to step through the WAMP installation.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Automatic MySQL Backup
    By stpvoice in forum Free Hosting
    Replies: 3
    Last Post: 01-23-2010, 05:46 PM
  2. Forum installation problem - possibly mysql
    By -Genesis- in forum Free Hosting
    Replies: 5
    Last Post: 01-02-2008, 12:43 PM
  3. Automatic Backup of MySQL
    By ethraax in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 11-13-2007, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers