Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I am trying to install package in many computer from one computer(admin) which is in the same network(LAN) and the operating system is ubuntu.How can I proceed it in php?please give me the php code?

What I have tried:

I am try to make a project on the above topic
Posted
Updated 23-Mar-17 3:11am

1 solution

This can't be simply done using a PHP script.

You have to get access to the clients first by installing approriate software on each client. This can be done using some kind of software deployment or remote management tools (just search the web for these keywords).

The simplest solution is to install and start a SSH server on all clients. Then you can open a SSH session to execute commands (which can be impemented using a PHP script). But this requires that you have to know the root password for all clients. See this StackExchange thread on how to do this: software installation - How to deploy programs on multiple machines - Unix & Linux Stack Exchange[^]
For security reasons it would be better to create a special user on the machines with disabled terminal login but allowed allowed to install software.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900