1
我把Coordino目錄/var/www/namal-geeks.com
並試圖檢查它localhost/namal-geeks.com/
它給人的錯誤Coordino權限問題?
Warning: require(app/webroot/index.php): failed to open stream: Permission denied in /var/www/namal-geeks/index.php on line 55
Fatal error: require(): Failed opening required 'app/webroot/index.php' (include_path='.:/usr/share/php:/usr/share/pear:/var/www/namal-geeks.com:/var/www/namal-geeks.com/app/') in /var/www/namal-geeks.com/index.php on line 55
我看了namal-geeks/index.php
調用其中的app/webroot/index.php
和多數民衆贊成什麼,我發現有
L-No
41 /**
42 * Set the include path or define app and core path
43 */
44 if (function_exists('ini_set')) {
45 ini_set('include_path',
46 ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH
47 . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS
48 );
49 define('APP_PATH', null);
50 define('CORE_PATH', null);
51 } else {
52 define('APP_PATH', ROOT . DS . APP_DIR . DS);
53 define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
54 }
55 require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
還以爲是將是權限問題,所以我試着給namal-geeks.com
目錄sudo chmod 777 /var/www/namal-geeks.com
但仍然給出了相同的錯誤。
這裏是目錄www/namal-geeks.com/
total 36
drwx------ 12 waqas waqas 4096 Nov 15 18:59 app
drwx------ 6 waqas waqas 4096 Nov 11 17:00 cake
-rwxrwxrwx 1 waqas waqas 1886 Nov 23 19:47 index.php //this file have all permissions
-rw-r--r-- 1 waqas waqas 1053 Apr 19 2013 LICENSE.txt
drwx------ 2 waqas waqas 4096 Nov 11 17:00 plugins
-rw-r--r-- 1 waqas waqas 4528 Apr 19 2013 Readme.md
-rw-r--r-- 1 waqas waqas 3712 Apr 19 2013 README.txt
drwx------ 5 waqas waqas 4096 Nov 11 17:00 vendors
這裏的ls -l
的輸出中是在其他文件index.php
存在的文件夾www/namal-geeks.com/app/webroot/
的ls -l
輸出,並提供了有關許可
drwxrwxr-x 3 waqas waqas 4096 Nov 11 17:00 css
-rwxrwxr-x 1 waqas waqas 2984 Apr 19 2013 css.php
-rwxrwxr-x 1 waqas waqas 372 Apr 19 2013 favicon.ico
drwxrwxr-x 2 waqas waqas 4096 Nov 11 17:00 files
drwxrwxr-x 6 waqas waqas 4096 Nov 11 17:00 img
-rwxrwxrwx 1 waqas waqas 2641 Apr 19 2013 index.php //This file causing permissions problems
drwxrwxr-x 5 waqas waqas 4096 Nov 11 17:00 js
-rwxrwxr-x 1 waqas waqas 5256 Apr 19 2013 test.php
錯誤
我不知道如何解決這個問題。
幫助!
的實際權限錯誤似乎一直在一個文件,而不是文件夾,但你只提到在文件夾上執行'chmod'(而不是在文件內)。您是否嘗試過查看'inex.php'文件的現有權限? – Lix
你不應該*真的需要給予任何777權限。這太方便了。 Sure 777幾乎可以解決任何權限問題,但是再次,您可以始終解鎖您的前門 - 這樣,沒有人可以(或需要)破解。 – Lix
index.php或inex.php?該項目的文件? – Waqas