I
I
Ivan Kozlov2018-06-13 18:11:05
System administration
Ivan Kozlov, 2018-06-13 18:11:05

Uploading php scripts to multiple sites via FTP?

There is a certain set of scripts - a plugin for wordpress. This plugin is currently used on a dozen sites that are located on different hostings. I am constantly upgrading the plugin and it is necessary that the updated script files (the entire directory with files) be loaded by command or by pressing a button (by some simple action) to all 10 sites via the FTP protocol. So that you don’t have to go to every site and do something there. The standard mechanism for updating wp plugins through the repository is not suitable. This is an individual development only for specific sites :) I can’t even formulate a request to search on google.
I'll try to formulate it differently. I have Windows OS. There is a folder with a plugin - a set of php scripts and other things. It is necessary somehow that this folder in 1 command is uploaded to 10 different sites via FTP. FTP access is different for each site. Perhaps I have entered the wrong tags for the question.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
just_hank_moody, 2018-06-14
@trampick

Alternative:
Deploy Gitlab or a private Git server.
add a php script of the following format to cron:
1 - Request to the central server where the version number is stored. If there is a newer version, run the update.
2 - Update via git clone
Well, the rest of the bells and whistles - a forced backup before updating. And so on.

Y
Yan-s, 2018-06-13
@Yan-s

https://www.google.ru/search?ie=UTF-8&hl=en&q=PHP%20FTP

A
Alexander Taratin, 2018-06-13
@Taraflex

php self update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question