In a LAMP application based on Symfony2
, I need to provide a specific web service in admin panel to update "on-demand" specific dependencies managed by Composer
( ~like plugins update in WordPress
admin panel).
Application are deployed on servers by real user (application files owner are not www-data
).
I thought these solutions :
composer.lock
must be writeable for Apache user$COMPOSER_HOME
path must be defined and writable for Apache usersudo
must be configured to allow apache user to execute (only) composer as specified real user (Run a shell command as another user or change Apache's user?)ReactPHP
?)I'm not sure if theses solutions are good, secure and simple to deploy.
What is the best way for you ? Any suggestions/ideas are welcome ! Thanks.