Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
資料夾權限設錯,導致無法瀏覽網頁 – unethost無限空間虛擬主機 技術分享部落格

資料夾權限設錯,導致無法瀏覽網頁

file_permissions_wp

今天遇到主機用戶求助,其問題是:
將現有資料夾,copy到新資料夾後,
但是新的資料夾(包含裡面的程式),無法透過瀏覽器瀏覽。

解決方式:
這類問題,其實我們每週都會遇到,
當在同一空間內,只有特定資料夾出問題,
可以很快速的處理方式:

1. 跟客戶索取管理資料登入空間

2. 檢查其資料夾群組

3. 檢查其資料夾權限

4. 檢查是否 .htaccess 引起

當我們檢查到第3步,發現其資料夾權限為 750,
後來改為 644 或是 755 就可以正常瀏覽了。

可能發生的原因:
有趣的是,在檢查其資料夾下的次目錄或是檔案,權限就正常,
所以發生原因,可能是跟指令下錯有關,或是其他人為不明因素……。

進階說明:
至於檔案權限的部份,google上面可以找到相關資料,
像是這邊,或是這邊也寫的蠻清楚的。

簡單講就是設為 750,其中的0就是讓瀏覽器上的訪客無法讀取網頁,
所以設為 640 , 440 , 550,都會是一樣的效果。

 

其他:
檔案權限問題,在linux上蠻常發生的。
遇到這樣的狀況,若不熟悉linux shell的話,
也可以使用winscp進行快速檢查。

file_permissions_01

 

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

延伸閱讀:更多wordpress的介紹

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。