英文:
What user to choose to install package with Composer on Ubuntu 22.04/Plesk Obsidian?
问题
在虚拟服务器上(Ubuntu 22.04/Plesk Obsidian),我想安装一个Composer项目,但由于以root/super用户身份运行Composer是不良实践,我必须切换到不同的用户。
哪个用户最适合执行此任务?不幸的是,我在我的桌面Linux上没有www-data用户。
英文:
On a virtual server (Ubuntu 22.04/Plesk Obsidian) I would like to install a composer project, but since it's bad practice to run Composer as root/super user, I have to switch to a different user.
What user is best suited to do this job? Unfortunately, there is no www-data user which I have on my desktop linux.
答案1
得分: 1
在 Plesk 中,当您简单地创建一个订阅并将您的项目放入该订阅中时,您无需担心这个问题。因为Composer也可在该订阅中使用,并且所有操作都是使用订阅用户账户执行的。
英文:
In Plesk you do not need to worry about this when you simply create a subscription and put your project into the subscription. Because Composer is also available in the subscription, and there everything is run using the subscription user account.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论