大家好,情況是這樣子的
我的電腦是 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就行了