Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel 7在共享主机中部署(hostgator)错误_Php_Laravel_Laravel 5_Shared Hosting_Laravel 7 - Fatal编程技术网

Php Laravel 7在共享主机中部署(hostgator)错误

Php Laravel 7在共享主机中部署(hostgator)错误,php,laravel,laravel-5,shared-hosting,laravel-7,Php,Laravel,Laravel 5,Shared Hosting,Laravel 7,我正在尝试在共享主机(hostgator)中部署我的Laravel应用程序 我已经将php版本升级到了7.3,在使用 phpinfo() 我还在根目录上创建了一个index.html文件,用于 测试.htaccess是否工作,它是否工作 我已删除引导文件夹中缓存文件夹下的文件 我检查了我的.env文件是否有任何错误配置 我已授予777启动和存储文件夹的权限 我的.htaccess是: <IfModule mod_rewrite.c> Header set Access-

我正在尝试在共享主机(hostgator)中部署我的Laravel应用程序

  • 我已经将php版本升级到了7.3,在使用 phpinfo()
  • 我还在根目录上创建了一个index.html文件,用于 测试.htaccess是否工作,它是否工作
  • 我已删除引导文件夹中缓存文件夹下的文件
  • 我检查了我的.env文件是否有任何错误配置
  • 我已授予777启动和存储文件夹的权限
我的.htaccess是:

<IfModule mod_rewrite.c>

    Header set Access-Control-Allow-Origin "*"
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>
    
    RewriteEngine On

    # Handle Authorization Header
    
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors On
   php_flag display_startup_errors On
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 256M
   php_value post_max_size 260M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 256M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_flag display_startup_errors On
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 256M
   php_value post_max_size 260M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 256M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
在浏览器中加载站点时,我遇到以下错误:


致命错误:未捕获的ReflectionException:Class config不存在于/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illighted/Container/Container.php:805堆栈跟踪:#0/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illighted/Container/Container.php(805):ReflectionClass->\uu构造('config'))#1/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illumb/Container/Container.php(687):illumb\Container\Container->build('config')#2/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illumb/Foundation/Application.php(796):illumb\Container\Container->resolve('config',,Array,true)#3/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illumb/Container/Container.php(633):illumb\Foundation\Application->resolve('config',Array)#4/home2/courage/www.mysite.xyz/vendor/larvel/framework/src/illumb/Foundation/Application.php(781):illumb\Container\Container->make('config',Array)#5/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illusted/C in/home2/courage/www.mysite.xyz/vendor/laravel/framework/src/illusted/Container.php第807行

最后,通过与托管公司联系解决了升级问题。

最后,通过与托管公司联系解决。这是他们的升级问题。

也许这可以帮助您?我不使用这个包@Olegnurutdinov,这个包没有任何问题。总的来说,软件包是有问题的。另外,这个问题还有另一个解决方案可以帮助您。
也许这可以帮助您?我不使用这个包@Olegnurutdinov,这个包没有任何问题。总的来说,软件包是有问题的。另外,这个问题还有另一个解决方案可以帮助解决。
Hello@WahidSherief您能告诉我,托管团队给出了什么解决方案吗?我也面临同样的问题。我想这是hostgator的服务器问题。你好@WahidSherief你能告诉我,托管团队给出了什么解决方案吗?我也面临同样的问题。我认为这是hostgator的服务器问题。
[21-Jul-2020 11:29:33 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'ixed.7.1.lin' (tried: /opt/php71/lib/php/extensions/no-debug-non-zts-20160303/ixed.7.1.lin (/opt/php71/lib/php/extensions/no-debug-non-zts-20160303/ixed.7.1.lin: undefined symbol: _zval_ptr_dtor), /opt/php71/lib/php/extensions/no-debug-non-zts-20160303/ixed.7.1.lin.so (/opt/php71/lib/php/extensions/no-debug-non-zts-20160303/ixed.7.1.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[21-Jul-2020 06:29:33 America/Chicago] PHP Fatal error:  Uncaught ReflectionException: Class config does not exist in /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php:805
Stack trace:
#0 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): ReflectionClass->__construct('config')
#1 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(687): Illuminate\Container\Container->build('config')
#2 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container->resolve('config', Array, true)
#3 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Foundation\Application->resolve('config', Array)
#4 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\Container\Container->make('config', Array)
#5 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/C in /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 807