open source - Updating Self-Installed PHP files? -
i in final stages of completing project (vizulium - open-source photography cms). have 1 final remaining stumbling block: updating software.
my idea wanting implement this:
- check newest version @ vizulium website (page displays current stable version).
- if newer version exists, , user requests it:
a. zip updated files on vizulium server
b. download files user's server
c. unzip contents
i have tracking system in place keeps track of updates (datetime) push. have not began step 2. in php , mysql.
is typical implementation of problem? need clarify anything?
i not using ftp since self-install , assume user programming-illiterate.
your solution valid, needs few considerations.
you should connect server via https , certificate verification query , fetch available updates.
you should sign updates private key , have client verify updates authentic before applying them.
if need remove obsolete file install, unzipping not this, perhaps have "upgrade.php" script in each upgrade executed perform necessary steps.
your upgrade script should backup web directory , database before performing upgrade, , retain backup until user requests remove it.
make upgrades incremental, upgraded 1 -> 3, need upgrade version 2 first. of-course transparent user, ensure upgrades between versions complete , database updates/modifications applied in correct order.
Comments
Post a Comment