2 months ago

Laravel 5.7 | External server Router error

Posted 2 months ago by ziben69

Hello guys, I have problem with uploading my project to external server.

I made the following steps:

  1. place files on the server.
  2. I changed the path index in the file
  3. I changed the version of the php server to be compatible with my project (PHP 7.1)
  4. I changed the env file.
  5. Added .htaccess file:
AddHandler application/x-httpd-php71 php
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes

    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]

An error occurred:

Fatal error: Interface 'Illuminate\Contracts\Routing\BindingRegistrar' not found in /domains/example.com/public_html/example/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 29

Can someone help me? Thanks.

Please sign in or create an account to participate in this conversation.