Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have a CMS built in core PHP. Till now, if a new version is released, it is downloaded to client machine in zipped form. And then client has to manually unzip the folder and copy that to required location. Because there is no way to download zip file to required location. I want that CMS should be updated in the background like-WordPress.

In other words, I want that new version can replace old version.

How can I do this?

share|improve this question

1 Answer 1

You'll need to:

  • Make sure that all the files in your CMS are writable.
  • Have a way to compare your version and the latest version.
  • Download a patch from the server (or redownload the whole thing)
  • Replace all the files that need upgrading
  • Preform any database migrations
  • Update the local version of your app

And then you're done.

That's the gist of it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.