我克隆了我的项目源,但是当我访问克隆时,我收到了这个错误:
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
app / config权限
root@p6td-56r6:/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 :(得分: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.