# /...logs/app.log" could not be opened

**URL:** <https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590>\
**Category:** Questions\
**Created:** [August 17, 2018, 11:38am UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590 "2018-08-17T11:38:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raikoug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/raikoug/32/733_2.png) [@Raikoug](https://discourse.slimframework.com/u/Raikoug)\
**Post date:** [August 17, 2018, 11:38am UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590/1 "2018-08-17T11:38:47Z")

</div>

Hello,

I’m trying to work with a fresh new slim installation.  
here is what I’m using:  
Centos 6, PHP 7.0.31, apache2.

I installed composer globally to use “composer” command where I need.

and used this to install slim:

`composer create-project slim/slim-skeleton [my-app-name]`

And now I try to browse: “my.site/my\_app\_name/public”

As far as I know now I should see something like the Slim logo, instead I get an error:

 ![slim_error](https://canada1.discourse-cdn.com/flex030/uploads/slimframework/original/1X/447c14b02fff9646f4b47d728bb95117cbe616f9.png)

Where “servizi” is my app name.  
I tried to “find / app.log” but there is no such file.

Last time I followed this same procedure and worked, what am I missing?

Thanks.

---

<div class="post-metadata">

**Author:** ![Raikoug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/raikoug/32/733_2.png) [@Raikoug](https://discourse.slimframework.com/u/Raikoug)\
**Post date:** [August 17, 2018, 2:03pm UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590/2 "2018-08-17T14:03:42Z")

</div>

Seems like I was misreading the error and thought the “app.log” should have been under “src”, insted it’s on the app root:  
/my\_app/logs/app.log  
I just created this file and everything worked.  
Just to be sure I gave it 777 chmod, maybe I will get the courage to set it properly once I’ve tested something.

Hope this will help someone!

---

<div class="post-metadata">

**Author:** ![kAlvaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/kalvaro/32/730_2.png) [@kAlvaro](https://discourse.slimframework.com/u/kAlvaro)\
**Post date:** [August 18, 2018, 5:02pm UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590/3 "2018-08-18T17:02:10Z")

</div>

Your web server should be pointing to `/var/www/html/servizi/public` instead of `/var/www/html/` so you browse to `http://example.com/` instead of `http://example.com/servizi/public`. Anything else can be really tricky.

---

<div class="post-metadata">

**Author:** ![Raikoug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/raikoug/32/733_2.png) [@Raikoug](https://discourse.slimframework.com/u/Raikoug)\
**Post date:** [August 18, 2018, 5:41pm UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590/4 "2018-08-18T17:41:24Z")

</div>

Well, it should, but I’m using apache and the root is …/html folder.  
I don’t use "php -s … " command.

I’m planning to make subdomains and apache virtual hosts like [servizi.example.com](http://servizi.example.com) to point to correct servizi app folder.

Thanks

---

<div class="post-metadata">

**Author:** ![kAlvaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/kalvaro/32/730_2.png) [@kAlvaro](https://discourse.slimframework.com/u/kAlvaro)\
**Post date:** [August 19, 2018, 6:36pm UTC](https://discourse.slimframework.com/t/logs-app-log-could-not-be-opened/2590/5 "2018-08-19T18:36:21Z")

</div>

Apache document root is by no means hard-coded. Yours only points to `/var/www/html` because you have `DocumentRoot /var/www/html` in your configuration file. 😉
