简体   繁体   English

使节mkdir问题

[英]Envoyer mkdir issue

We connected Envoyer to our server without hassle. 我们毫不费力地将Envoyer连接到我们的服务器。 However if we want to deploy we get the following error: 但是,如果要部署,则会出现以下错误:

mkdir: cannot create directory '/FOLDERNAME': Permission denied mkdir:无法创建目录“ / FOLDERNAME”:权限被拒绝

However if we log in to our server ourselves with the same user with SSH we can run mkdir without issue. 但是,如果我们使用SSH使用同一用户自己登录到服务器,则可以运行mkdir而不会出现问题。

Anybody knows what could've caused this issue? 有人知道是什么引起了这个问题吗?

The server runs on Linux (CentOS) 服务器在Linux(CentOS)上运行

it could come from user permissions. 它可能来自用户权限。

Are you sure that the user you use to log in with SSH is the same that runs php code (there's often a dedicated user for www in order to limit risks). 您确定使用SSH登录的用户与运行php代码的用户相同(为了限制风险,通常有www的专用用户)。

You should verify that "PHP user" is authorized to write in this directory (verify user permissions and group permissions). 您应验证“ PHP用户”已被授权在此目录中写入(验证用户权限和组权限)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM