2013-11-15 140 views
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 
错误


我不知道如何解决这个问题。
帮助!

+0

的实际权限错误似乎一直在一个文件,而不是文件夹,但你只提到在文件夹上执行'chmod'(而不是在文件内)。您是否尝试过查看'inex.php'文件的现有权限? – Lix

+0

你不应该*真的需要给予任何777权限。这太方便了。 Sure 777几乎可以解决任何权限问题,但是再次,您可以始终解锁您的前门 - 这样,没有人可以(或需要)破解。 – Lix

+0

index.php或inex.php?该项目的文件? – Waqas

回答

0

Waqas是你的apache.conf中定义的用户吗?

如果没有,你可以简单地

$乔敦 - R的WWW的数据:WWW的数据在/ var/WWW/namal极客/