Heim  >  Artikel  >  Backend-Entwicklung  >  Mac Xampp 配置 thinkphp 权限问题。

Mac Xampp 配置 thinkphp 权限问题。

WBOY
WBOYOriginal
2016-06-20 12:38:041040Durchsuche

大家好,情况是这样子的

我的电脑是 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就行了

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn