我的网站是https://antilicense.com/ 我给了一个白页
PHP致命错误:require():无法打开所需的' ... / vendor / composer /../ symfony / polyfill-mbstring / bootstrap.php'第66行的... / vendor / composer / autoload_real.php中的(include_path ='。:/ opt / alt / php72 / usr / share / pear')
我的错误日志:
[06-Mar-2018 10:31:34 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:34 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Warning: require(/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:31:53 UTC] PHP Fatal error: require(): Failed opening required '/home/antilic1/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/autoload_real.php on line 66
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:49 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
#0 /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(144): Illuminate\Foundation\Application->registerBaseBindings()
#1 /home/antilic1/public_html/bootstrap/app.php(15): Illuminate\Foundation\Application->__construct('/home/antilic1/...')
#2 /home/antilic1/public_html/public/index.php(38): require_once('/home/antilic1/...')
#3 {main}
thrown in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 175
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Warning: include(): Failed opening '/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/antilic1/public_html/vendor/composer/ClassLoader.php on line 444
[06-Mar-2018 10:35:50 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Filesystem\Filesystem' not found in /home/antilic1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:175
Stack trace:
当我解压缩文件时,一切都很好 但几分钟后我看到白页......
我试试:
php artisan key:generate
composer update --no-scripts
composer update
composer install
composer dump-autoload
但我还有问题 请帮我。 TNX。
答案 0 :(得分:1)
您必须删除共享主机中的供应商目录,然后在本地项目中的代码下运行:
composer dumpautoload
并将供应商目录从本地项目复制到共享主机。
答案 1 :(得分:1)
可能是您的共享主机服务器安装了一个防病毒软件,它将/home/antilic1/public_html/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php
视为病毒,并在您的项目中删除此文件。
看来这个版本的文件系统包有这个问题。
答案 2 :(得分:0)
似乎供应商文件不在系统中。你可以composer update
看看吗?
还要确保正确设置文件夹权限。将所有目录更改为755,将所有文件更改为644。
要将所有目录更改为755(drwxr-xr-x):
find /home/antilic1/public_html -type d -exec chmod 755 {} \;
要将所有文件更改为644(-rw-r - r - ):
find /home/antilic1/public_html -type f -exec chmod 644 {} \;