Slim Application Error 500 (Internal Server Error)

Hi I’m new to Slim Framework. Everything works fine in Windows, but when I tried to migrate to Ubuntu
I got this error. I already changed file and folder permission but nothing works.

sudo find /var/www/ -type d -exec chmod 775 {} ;
sudo find /var/www/ -type f -exec chmod 664 {} ;

Slim Application Error
The application could not run because of the following error:

Details

Type: Error
Message: Class ‘App\Controllers\Auth\AuthController’ not found
File: /var/www/html/slim-project-template/bootstrap/app.php
Line: 61
Trace

#0 /var/www/html/slim-project-template/vendor/pimple/pimple/src/Pimple/Container.php(113): {closure}(Object(Slim\Container))
#1 /var/www/html/slim-project-template/vendor/slim/slim/Slim/Container.php(123): Pimple\Container->offsetGet(‘AuthController’)
#2 /var/www/html/slim-project-template/vendor/slim/slim/Slim/CallableResolver.php(59): Slim\Container->get(‘AuthController’)
#3 /var/www/html/slim-project-template/vendor/slim/slim/Slim/CallableResolverAwareTrait.php(45): Slim\CallableResolver->resolve(‘AuthController:…’)
#4 /var/www/html/slim-project-template/vendor/slim/slim/Slim/Route.php(314): Slim\Routable->resolveCallable(‘AuthController:…’)
#5 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 /var/www/html/slim-project-template/vendor/slim/slim/Slim/Route.php(297): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /var/www/html/slim-project-template/vendor/slim/slim/Slim/App.php(443): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /var/www/html/slim-project-template/app/Middleware/ValidationErrorsMiddleware.php(25): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 [internal function]: App\Middleware\ValidationErrorsMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#10 /var/www/html/slim-project-template/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\ValidationErrorsMiddleware), Array)
#11 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#12 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#13 /var/www/html/slim-project-template/app/Middleware/OldInputMiddleware.php(24): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 [internal function]: App\Middleware\OldInputMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#15 /var/www/html/slim-project-template/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\OldInputMiddleware), Array)
#16 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#17 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#18 /var/www/html/slim-project-template/app/Middleware/CsrfViewMiddleware.php(28): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 [internal function]: App\Middleware\CsrfViewMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#20 /var/www/html/slim-project-template/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\CsrfViewMiddleware), Array)
#21 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#22 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#23 /var/www/html/slim-project-template/app/Middleware/AllowAccessControlOrigin.php(29): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#24 [internal function]: App\Middleware\AllowAccessControlOrigin->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#25 /var/www/html/slim-project-template/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\AllowAccessControlOrigin), Array)
#26 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#27 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#28 /var/www/html/slim-project-template/vendor/slim/csrf/src/Guard.php(162): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#29 [internal function]: Slim\Csrf\Guard->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#30 /var/www/html/slim-project-template/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Slim\Csrf\Guard), Array)
#31 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#32 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#33 /var/www/html/slim-project-template/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#34 /var/www/html/slim-project-template/vendor/slim/slim/Slim/App.php(337): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#35 /var/www/html/slim-project-template/vendor/slim/slim/Slim/App.php(298): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#36 /var/www/html/slim-project-template/public/index.php(5): Slim\App->run()
#37 {main}

nix file names register sensitive

  1. check file/directorys names
  2. run composer dump-autoload

Already solved this issue. Character case.