Mac Xampp 配置 thinkphp 許可權問題。

來源:互聯網
上載者:User
大家好,情況是這樣子的

我的電腦是 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就行了

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.