We have created a small application and we wish to distribute it. We need help to deploy AND unpack the archive file (tar) on the target server. Let me give more details.
The setup of this application is done with the use of a php file that the client upload on his server or run from our server. The steps are described below:
1) The client upload the web install script on his server or run it from our server
2) The client insert FTP information
3) The script connect to the distrubution server using cURL
4) The distribution server transfers the archive to the client server as well as an agent script
5) The distribution server is able to set any permission needed since it uses an FTP connection
We use a php class to FTP to the client server (PHP FTP found on [url removed, login to view])
Here is where we need help and work.
When we extract the archive with a call to the agent script on the client server the owners of the extracted files are all apache:apache since php runs under apache on most systems but it might run under other users on other systems.
We need a correction to our script at the distribution server so the archive can be extracted on the client server respecting files ownership and this from using the ftp session opened by the distribution server.
A good example working is here [url removed, login to view]
Since it is possible to setup the files directly from this install script located on their server simply by entering ftp username and password. The script will transfer the archive and after unpack it and will respect the users of the FTP session, in other words, all files extracted wont be owned by apache:apache but by the user of the ftp session.
We need the programmer to build something clever and simple for that since this script will be reused for sending some auto updates.
Please if you need more information do not hesitate to contact me... I WILL IGNORE ANY BLIND BIDS placed nearly without to read the requirements...