PHP installer

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

PHP installer

Post by alex.barylski »

Something like wizards for Windows.

Ideally I'd like to create an installer which knew how to setup SQL tables, create all application files, set permissions and last but not least, delete the installer file.

Does anyone know of a project like this?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PHP installer

Post by josh »

In executable form or what? Generally installers are application specifc, theyre not hard to make just look at any opensource software. You can create an sql file and just explode(';') on it, and send each query to mysql_query, you can chmod files with chmod() and chown()
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: PHP installer

Post by alex.barylski »

Basically I was hoping to create an installer by basically...

1. Marking config files/SQL files with placeholders
2. Having the installer package all files/folders/permissions for a given source tree

That way the installer would generate the FORM's and steps for installation and the FORM values would replace the placeholders, the installer would then iterate over SQL queries to create the tables and eventually copy files/folders, set permissions, etc.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: PHP installer

Post by Chris Corbyn »

Probably check out Phing. It's basically a Make tool for PHP.

You could use Ant if you're familiar with that too. I tend to use Ant for quite a lot of automation tasks.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: PHP installer

Post by alex.barylski »

Phing...that was the friggen name I was lookin' thank you.

I'm not sure it's going to meet my requirements but that is what I was most interested in finding, thanks again. :)
Post Reply