【问题标题】:Apache/php cannot access remote cifs/samba shareApache/php 无法访问远程 cifs/samba 共享
【发布时间】:2013-08-23 14:20:27
【问题描述】:
我正在尝试了解我的问题可能在这里:
我正在使用基于 LAMP 构建的 Web 应用程序,该应用程序需要访问我已成功安装的 samba 共享
mount -t cifs ...
在应用程序中,无法像其他目录那样访问 samba 共享。但是,我可以通过终端访问它。这是 Apache 的权限问题吗?如果是这样,我将如何从远程计算机授予 apache 权限?
【问题讨论】:
标签:
apache
permissions
samba
【解决方案1】:
你试过了吗
//ip/foleder/ /mnt/name cifs username=user,password=passwd,nounix,noserverino,defaults,users,auto,gid=33,uid=33 0 0
将 gid 和 uid 更改为 apache 用户
你可以像这样找到它:
cat /etc/passwd | grep www-data