码迷,mamicode.com
首页 > Web开发 > 详细

mac thinkPHP运行权限问题

时间:2015-06-26 15:11:48      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:

下了个thinkPHP框架,初始化运行的时候提示我

./Application目录不可写,无法自动生成,于是ls -l查看了下权限

localhost:blog ya$ ls -l
total 16
drwxr-xr-x@  5 ya  staff   170  6 26 13:22 Application
drwxr-xr-x@  4 ya  staff   136  6 26 13:23 Public
drwxr-xr-x@ 12 ya  staff   408  6 26 11:20 ThinkPHP
-rwxr-xr-x@  1 ya  staff   434  1 28 15:47 composer.json
-rwxr-xr-x@  1 ya  staff  1034  1 28 15:47 index.php

由于是本地测试,先不管权限了,直接赋最高权限免得再报错

localhost:blog ya$ chmod -R 777 /Applications/XAMPP/xamppfiles/htdocs/blog
localhost:blog ya$ ls -l
total 16
drwxrwxrwx@  5 ya  staff   170  6 26 13:22 Application
drwxrwxrwx@  4 ya  staff   136  6 26 13:23 Public
drwxrwxrwx@ 12 ya  staff   408  6 26 11:20 ThinkPHP
-rwxrwxrwx@  1 ya  staff   434  1 28 15:47 composer.json
-rwxrwxrwx@  1 ya  staff  1034  1 28 15:47 index.php
localhost:blog ya$


mac thinkPHP运行权限问题

标签:

原文地址:http://my.oschina.net/u/861926/blog/471135

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!