Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKsenia Breitenmoser
20,874 PointsSlim Application Error instead of nice Slim page as in the video
Hi everyone! I am trying to run this project on the virtualbox with Debian. So far I have followed all the steps, however I have the following message showing up
Slim Application Error The application could not run because of the following error:
Details Type: UnexpectedValueException Message: The stream or file "/var/www/mvc-framework/src/../logs/app.log" could not be opened: failed to open stream: Permission denied File: /var/www/mvc-framework/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php Line: 107 Trace
0 /var/www/mvc-framework/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\StreamHandler->write(Array)
1 /var/www/mvc-framework/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)
2 /var/www/mvc-framework/vendor/monolog/monolog/src/Monolog/Logger.php(637): Monolog\Logger->addRecord(200, 'Slim-Skeleton '...', Array)
3 /var/www/mvc-framework/src/routes.php(10): Monolog\Logger->info('Slim-Skeleton '...')
4 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
5 /var/www/mvc-framework/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
6 /var/www/mvc-framework/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
7 /var/www/mvc-framework/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
8 /var/www/mvc-framework/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
9 /var/www/mvc-framework/vendor/slim/slim/Slim/App.php(516): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
10 /var/www/mvc-framework/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
11 /var/www/mvc-framework/vendor/slim/slim/Slim/App.php(407): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
12 /var/www/mvc-framework/vendor/slim/slim/Slim/App.php(315): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
13 /var/www/mvc-framework/public/index.php(30): Slim\App->run()
14 {main}
Can anyone help to solve it? I don't even know how to approach it. If I comment all the code on the index.php page and just run phpinfo(); the page shows 500 error.
Thanks a lot!