在Ubuntu 22.04/Plesk Obsidian上选择哪个用户来安装Composer包?

huangapple go评论62阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月9日 21:19:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685166.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定