docker-compose Command Can't be run through PHP

36 views
Skip to first unread message

Benson KP

unread,
Mar 1, 2021, 3:33:33 AM3/1/21
to BigBlueButton-dev
Hi, 

I have a bigbluebutton server. On this, I using the bigbluebutton streaming settings through docker. 
I installed the PHP 7.0 in this server and its run in nginx server.
I need to run the docker settings dynamically through PHP. 
By using PHP shell_exec() or exec() or system() functions, I have to run the following command :- 

docker-compose -f /home/docker/docker-compose.yml up -d

This command can't be run through PHP. But it is working in the terminal.
I assigned all permissions and www-data user ownership to the docker-compose.yml file.
But still, the command is not working through PHP.

Any reply will be appreciated.


Regards,
Benson KP.
Reply all
Reply to author
Forward
0 new messages