title: Laravel 7 deploy in shared hosting (hostgator) Error
body: <p>I am trying to deploy my Laravel app in a shared hosting (hostgator).</p>
  <ul>
  <li>I have upgraded php version to 7.3 and it shows when tested with
  phpinfo().</li>
  <li>Also I have created an index.html file on the root to
  test whether the .htaccess working or not and it worked.</li>
  <li>I have removed the files under cache folder inside bootstrap folder.</li>
  <li>I checked my .env file whether it has any mis-configuration or not.</li>
  <li>I have given 777 permission to bootstrap and storage folder</li>
  </ul>
  <p>my .htaccess is:</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  
      Header set Access-Control-Allow-Origin &quot;*&quot;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews -Indexes
      &lt;/IfModule&gt;
      
      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]
  &lt;/IfModule&gt;
  
  # 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 &gt;&gt; Software &gt;&gt; MultiPHP INI Editor)
  # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
  &lt;IfModule php7_module&gt;
     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 &quot;/var/cpanel/php/sessions/ea-php72&quot;
     php_value upload_max_filesize 256M
     php_flag zlib.output_compression Off
  &lt;/IfModule&gt;
  &lt;IfModule lsapi_module&gt;
     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 &quot;/var/cpanel/php/sessions/ea-php72&quot;
     php_value upload_max_filesize 256M
     php_flag zlib.output_compression Off
  &lt;/IfModule&gt;
  # 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.
  &lt;IfModule mime_module&gt;
    AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
  &lt;/IfModule&gt;
  # php -- END cPanel-generated handler, do not edit
  </code></pre>
  <p>In my error.log file I am having:</p>
  <pre><code>[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-&gt;__construct('config')
  #1 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(687): Illuminate\Container\Container-&gt;build('config')
  #2 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container-&gt;resolve('config', Array, true)
  #3 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Foundation\Application-&gt;resolve('config', Array)
  #4 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\Container\Container-&gt;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
  </code></pre>
  <p>and I am getting the following error when load site in browser:</p>
  <p><strong><code>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-&gt;__construct('config') #1 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(687): Illuminate\Container\Container-&gt;build('config') #2 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container-&gt;resolve('config', Array, true) #3 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Foundation\Application-&gt;resolve('config', Array) #4 /home2/courage/www.mysite.xyz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\Container\Container-&gt;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</code></strong></p>