vaizard / glued-skeleton-modular

Web application skeleton that uses the Slim4 Framework, PHP-DI, Nyholm PSR7 and Twig.
MIT License
1 stars 4 forks source link

Fix your permissions finally #178

Closed zelitomas closed 3 years ago

zelitomas commented 3 years ago
UnexpectedValueException thrown with message "The stream or file "/var/www/glued/private/log/app.log" could not be opened in append mode: failed to open stream: Permission denied"

Stacktrace:
#52 UnexpectedValueException in /var/www/glued/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:111
#51 Monolog\Handler\StreamHandler:write in /var/www/glued/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:42
#50 Monolog\Handler\AbstractProcessingHandler:handle in /var/www/glued/vendor/monolog/monolog/src/Monolog/Logger.php:317
#49 Monolog\Logger:addRecord in /var/www/glued/vendor/monolog/monolog/src/Monolog/Logger.php:539
#48 Monolog\Logger:error in /var/www/glued/glued/Core/Classes/Auth/Auth.php:232
#47 Glued\Core\Classes\Auth\Auth:attempt in /var/www/glued/glued/Core/Controllers/AuthController.php:236
#46 Glued\Core\Controllers\AuthController:signin_post in /var/www/glued/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php:43
#45 Slim\Handlers\Strategies\RequestResponse:__invoke in /var/www/glued/vendor/slim/slim/Slim/Routing/Route.php:384
#44 Slim\Routing\Route:handle in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#43 Slim\MiddlewareDispatcher:handle in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#42 Slim\MiddlewareDispatcher:handle in /var/www/glued/vendor/slim/slim/Slim/Routing/Route.php:341
#41 Slim\Routing\Route:run in /var/www/glued/vendor/slim/slim/Slim/Routing/RouteRunner.php:84
#40 Slim\Routing\RouteRunner:handle in /var/www/glued/vendor/slim/twig-view/src/TwigMiddleware.php:125
#39 Slim\Views\TwigMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#38 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/TranslatorMiddleware.php:53
#37 Glued\Core\Middleware\TranslatorMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:209
#36 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:167$de:handle in /var/www/glued/glued/Core/Middleware/LocaleSessionMiddleware.php:26
#35 Glued\Core\Middleware\LocaleSessionMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:209
#34 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:167$de:handle in /var/www/glued/glued/Core/Middleware/Timer.php:15
#33 Glued\Core\Middleware\Timer:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:209
#32 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:167$de:handle in /var/www/glued/vendor/slim/slim/Slim/Middleware/BodyParsingMiddleware.php:68
#31 Slim\Middleware\BodyParsingMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#30 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php:59
#29 Slim\Middleware\RoutingMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#28 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/middlewares/trailing-slash/src/TrailingSlash.php:57
#27 Middlewares\TrailingSlash:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#26 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/ValidationFormsMiddleware.php:26
#25 Glued\Core\Middleware\ValidationFormsMiddleware:__invoke in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:209
#24 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:167$de:handle in /var/www/glued/glued/Core/Middleware/TwigFlashMiddleware.php:17
#23 Glued\Core\Middleware\TwigFlashMiddleware:__invoke in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:313
#22 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:294$df:handle in /var/www/glued/vendor/middlewares/csp/src/Csp.php:53
#21 Middlewares\Csp:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#20 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/TwigCspMiddleware.php:28
#19 Glued\Core\Middleware\TwigCspMiddleware:__invoke in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:313
#18 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:294$df:handle in /var/www/glued/vendor/tuupola/cors-middleware/src/CorsMiddleware.php:127
#17 Tuupola\Middleware\CorsMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#16 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/HeadersMiddleware.php:24
#15 Glued\Core\Middleware\HeadersMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#14 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/AuthorizationMiddleware.php:123
#13 Glued\Core\Middleware\AuthorizationMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#12 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/glued/Core/Middleware/SessionMiddleware.php:57
#11 Glued\Core\Middleware\SessionMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#10 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/tuupola/slim-jwt-auth/src/JwtAuthentication.php:132
#9 Tuupola\Middleware\JwtAuthentication:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#8 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/slim/slim/Slim/Middleware/MethodOverrideMiddleware.php:46
#7 Slim\Middleware\MethodOverrideMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#6 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/zeuxisoo/slim-whoops/src/Zeuxisoo/Whoops/Slim/WhoopsMiddleware.php:40
#5 Zeuxisoo\Whoops\Slim\WhoopsMiddleware:process in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147
#4 class@anonymous�/var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$dd:handle in /var/www/glued/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81
#3 Slim\MiddlewareDispatcher:handle in /var/www/glued/vendor/slim/slim/Slim/App.php:215
#2 Slim\App:handle in /var/www/glued/vendor/slim/slim/Slim/App.php:199
#1 Slim\App:run in /var/www/glued/glued/bootstrap.php:33
#0 require_once in /var/www/glued/public/index.php:3