>  기사  >  백엔드 개발  >  Mac Xampp 配置 thinkphp 权限问题。

Mac Xampp 配置 thinkphp 权限问题。

WBOY
WBOY원래의
2016-06-20 12:38:041039검색

大家好,情况是这样子的

我的电脑是 macbook pro,安装了 xampp 这个php+mysql 配置环境,然后我下载了 thinkphp ,dreamweaver 打开会出现权限问题,只允许查看不请允许修改。

然后我就右键文件夹,设置权限为可读写,问题暂时就解决了,或者用终端命令也可以暂时解决。

接着访问 thinkphp 生成文件的时候,用 dreamweaver 打开又提示没有权限,又重继续设计权限,否则新的文件只有查看没有修改权限。

找了一个星期还是没有解决,求大侠们如果有遇到这个问题支支招,谢谢。。


回复讨论(解决方案)

thinkphp 生成的文件,不需要,也不应该用 dreamweaver 打开
网站所在目录,需要有一般用户完全控制权限

thinkphp 生成的文件,不需要,也不应该用 dreamweaver 打开
网站所在目录,需要有一般用户完全控制权限



目录我一早就给所有权的,但不知道为什么,只要thinkphp生成的文件夹跟文件,都只有读的权限



Apache
httpd.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

改用户为admin就行了

真的可以哦,开心,谢谢~~~

Apache
httpd.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

改用户为admin就行了

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.