2016-04-04 13 views
0

のクローンを作成した後、私は私のプロジェクトの私のソースのクローンを作成しましましたが、私はクローンにアクセスしたとき、私はこのエラーを得た:laravel 4はFatalErrorExceptionはソース

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) 

Illuminate\Filesystem\Filesystem::getRequire(): Failed opening required '/var/www/staging.theskitrip.ca/protected/app/config/app.php' (include_path='/var/www/staging.theskitrip.ca/protected/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/php:/usr/share/pear') 

私はネットで検索しまったが、私は見つけることができません任意のソリューション..どのようなアイデアを持ち、この問題を解決する方法はありますか?

/var/www/staging.theskitrip.ca/protected# ls -al 
total 1176 
drwxr-xr-x 6 root root 4096 Apr 3 16:27 . 
drwxr-xr-x 7 root root 4096 Apr 3 16:27 .. 
-rw-r--r-- 1 root root  145 Apr 3 16:27 CONTRIBUTING.md 
drwxr-xr-x 14 root root 4096 Apr 3 16:40 app 
-rw-r--r-- 1 root root 2451 Apr 3 16:27 artisan 
drwxr-xr-x 2 root root 4096 Apr 3 16:42 bootstrap 
-rw-r--r-- 1 root root 1087 Apr 3 16:27 composer.json 
-rw-r--r-- 1 root root 75406 Apr 3 16:44 composer.lock 
-rw-r--r-- 1 root root  566 Apr 3 16:27 phpunit.xml 
-rw-r--r-- 1 root root 1795 Apr 3 16:27 readme.md 
-rw-r--r-- 1 root root 1074524 Apr 3 16:27 roxbur 
-rw-r--r-- 1 root root  519 Apr 3 16:27 server.php 
drwxr-xr-x 28 root root 4096 Apr 4 06:35 vendor 
drwxr-xr-x 3 root root 4096 Apr 3 16:27 workbench 

アプリ/ configのパーミッション

[email protected]:/var/www/staging.theskitrip.ca/protected/app/config# ls -l 
total 92 
-rw------- 1 root root 7842 Apr 3 16:30 app.php 
-rw-r--r-- 1 root root 2114 Apr 3 16:27 auth.php 
-rw-r--r-- 1 root root 2755 Apr 3 16:27 cache.php 
-rw-r--r-- 1 root root 443 Apr 3 16:27 compile.php 
-rw------- 1 root root 3409 Apr 4 07:30 database.php 
-rw-r--r-- 1 root root 303 Apr 3 16:27 eventbrite.php 
-rw-r--r-- 1 root root 279 Apr 3 16:27 ffmpeg.php 
-rw-r--r-- 1 root root 641 Apr 3 16:27 hybridauth.php 
drwxr-xr-x 2 root root 4096 Apr 3 16:27 local 
-rw-r--r-- 1 root root 4250 Apr 3 16:27 mail.php 
drwxr-xr-x 4 root root 4096 Apr 3 16:27 packages 
-rw-r--r-- 1 root root 992 Apr 3 16:27 paypal.php 
-rw-r--r-- 1 root root 1984 Apr 3 16:27 queue.php 
-rw-r--r-- 1 root root 1540 Apr 3 16:27 remote.php 
-rw-r--r-- 1 root root 669 Apr 3 16:27 services.php 
-rw-r--r-- 1 root root 4478 Apr 3 16:27 session.php 
-rw-r--r-- 1 root root 248 Apr 3 16:27 stripe.php 
drwxr-xr-x 2 root root 4096 Apr 3 16:27 testing 
-rw-r--r-- 1 root root 907 Apr 3 16:27 view.php 
-rw-r--r-- 1 root root 882 Apr 3 16:27 workbench.php 
+0

は 'の/ var/www /のstaging.theskitrip.ca /保護/アプリ/設定/ app.php'存在するのですか? – Federkun

+0

はい..それは存在し、私は自分のサーバでそれを開いています – gadss

+0

これは許可の問題と思われます。ls -al /var/www/staging.theskitrip.ca/protected/ – osleonard

答えて

0
Like I predicted it was a permission issue first thing is to change permission on the whole folder since you have root access to the server or do a sudo if you dont have direct access to root anymore. 

$ chmod 755 -R /var/www/staging.theskitrip.ca/protected/ 

and secondly 

$ chmod -R o+w app/storage 

That should fix the issue. 
関連する問題