pi > docker > nginx > php > install Composer for phpseclib
Really need some expert guidance here. I have been researching and reading and I just can't see this clearly with my limited knowledge and understanding.
I have a Pi4, OMV6, with Docker. Portainer in my browser.
As far as I understand it, the Docker consists of Containers, and each Container operates as a separate entity.
One of the Containers is for nginx. nginx runs a web server and uses php.
I have a shared folder on the pi ssd, at /srv/dev-disk-by-label-NAShd1/www
This directory contains the php scripts that I can access from my browser, like : http://192.123.1.123/MYdata/phpinfo.php
All working great so far.
One of my php scripts creates a data file ( 1 - 4 mb ) that I need to upload to 2 remote FTP servers.
The 2 remote FTP servers recently changed that uploads can only be done using SFTP.
To do the SFTP upload, I need to use the phpseclib library.
Version 3 of the phpseclib library requires 'composer' to use the library.
So I am completely lost on where or how to install 'Composer'.
Do I ssh to the pi IP and do it there ?
or in a different directory ?
or do I need to Console in to the nginx Docker Container and install there ? which directory ?