linux - 以 apache 所有者身份授予文件夹权限

标签 linux apache amazon-web-services web

我已经设置了 AWS Linux 实例并部署了 Web 项目,对于该项目,我仅需要 apache 用户的文件夹权限,我拥有 SSH 的 root 用户访问权限。

如何才能将 apache 显示为 Web 项目的所有者?

最佳答案

Apache 创建 www-data 作为用户。 示例:如果服务器 Web 根目录是/var/www。

sudo chown -R www-data:www-data /var/www

希望有帮助;-)

关于linux - 以 apache 所有者身份授予文件夹权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35045020/

相关文章:

linux - 从 PCIE 插槽号获取设备名称

linux - md5sum linux 命令是否正常工作?

apache - haproxy 和 apache tomcat 堆栈上的 HTTP/2 使用

laravel - docker Apache : 'chmod: changing permissions of "file"Operation not permitted'

amazon-web-services - AWS API Gateway OPTIONS 请求 header

c++ - 使用 C++ 在 Linux 中停止并重新开始运行进程

linux - 如何在 bash shell 脚本中计算文件中每一行的中位数

regex - 如何让 mod_rewrite 在查询字符串中放入非字母数字字符?

amazon-web-services - Cognito 用户池 - 确认后触发、访问被拒绝异常

amazon-web-services - AWS CloudFormation 与 Web 控制台?