PHP installer script

Possible duplicate:
How to create an installer for a website. PHP mysql

I want to create a fully functional installer for a slightly complex web application using PHP. Basically, you go to URL / setup.php and you are asked a series of questions, and during the process a database is created and the configuration file is filled in accordance with the answers given. A good example of this is how Wordpress handles its installation procedure, as well as any number of PHP applications.

My question to you, about the big Internet, is this: This method is so common that, of course, not everyone invents the wheel again, is there a place where I can go to find a basic step-by-step guide (and not a code, just a description) this technique. Either this, or a good book that describes, if not this particular technique, then the basics relevant to it?

I can throw away something ugly and maybe make it work on my own, but if there is a most famous method, I would like to find it.

Much more important than having a working function is having a description of what is going on from step to step. I would like to have an installer, but I really want to know how to do this.

Thanks Mike

+4
source share
2 answers

I made my own installer script and here are my tips.

  • Be sure to check if the script will execute (file permissions and db)
  • Make sure the folder / file / db structure is not already present (if the script was run before)
  • If so, make sure you have the option to delete these files.
  • Always remember that the user / script can get corrupted everywhere and you can always start with
+2
source

I would highly recommend only the copyomg installer from the most popular program. When I started reading your question, the first one was smart Wordpress. Then I saw your mention :-) You are on the right track.

Two more good copies: SilverStripe and OpenX.

0
source

All Articles