PHP script "upgrade process" management guide

We create a PHP script project; which we will sell to customers.
Clients can host the script on their web server.

We would like to develop an update or update process for this script.
If the client uses version 1.2 of the script, and we released the new version 1.3 from the script, users will be able to see the text on which the “new version is available” in the backend control panel.

The user can go to the update or update page and click a button to automatically update the script.
I understand that this process will include the following: 1. The process of checking the current version of the script, available on our home website.
2. The process of updating files: downloading and updating the necessary files from my server to the client server.
3. Make the necessary changes to the database. Download the updated sql file from my home server and run it with the database.

I tried google to find a good initial tutorial to give me a start and check if I am missing something, but I cannot find anything. Can you point me to some startup guides or a guide on developing or managing the script update process?
I know that all the main open source scripts, such as Wordpress, Joomla, osCommerce, Magento, have this object. Therefore, resources must be available on the Internet.

Thanks for our time .. have fun! :)

+3
source share
2 answers

Do you really need a tutorial? just bring your editor and start coding if I were you, here's how I do it:

  • , chmoded 777 ( unix).
  • , updater.php
  • - (, curl) , .
  • , + SQL + , tar ( zip).
  • updater.php script , , "temp".
  • updater.php (, php zip) . /temp/files
  • updater.php . /temp/files/manifest .
  • , ( ).
  • , - .
  • , .
  • .
  • .

, .

+1

vs core. , . , MD5 .

, script ( ) SOAp/REST, . .

, script SOAP/REST (, FTP), .

, chmod chgrp/chown , .

, . , . tar/zip.

...

+1

Source: https://habr.com/ru/post/1760073/


All Articles