{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/196","repository_url":"https://api.github.com/repos/heroku/heroku-buildpack-php","labels_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/196/comments","events_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/196/events","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/196","id":195722909,"number":196,"title":"Symfony deployment not pointing to the web folder ","user":{"login":"shairyar","id":5089055,"avatar_url":"https://avatars.githubusercontent.com/u/5089055?v=3","gravatar_id":"","url":"https://api.github.com/users/shairyar","html_url":"https://github.com/shairyar","followers_url":"https://api.github.com/users/shairyar/followers","following_url":"https://api.github.com/users/shairyar/following{/other_user}","gists_url":"https://api.github.com/users/shairyar/gists{/gist_id}","starred_url":"https://api.github.com/users/shairyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shairyar/subscriptions","organizations_url":"https://api.github.com/users/shairyar/orgs","repos_url":"https://api.github.com/users/shairyar/repos","events_url":"https://api.github.com/users/shairyar/events{/privacy}","received_events_url":"https://api.github.com/users/shairyar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T05:54:06Z","updated_at":"2016-12-15T20:57:09Z","closed_at":"2016-12-15T20:57:08Z","body":"I am trying to deploy the symfony app on heroku and I am able to update the schema and all perfectly fine however when i try to access the site I get\r\n\r\n> Forbidden You don't have permission to access / on this server.\r\n\r\nSo using the command` heroku logs --num 10` i can see the error\r\n\r\n> Cannot serve directory /app/web/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive\r\n\r\nIn Symfony the directory that is public is called `web` As you can see heroku is trying to access /app/web/ rather than just web, because of this even my assets are being access via app/web/css which is ofcourse wrong.\r\n\r\nSo how can i get rid of this `app`? I do not understand why Heroku is even pointing at that.\r\n\r\nThe Procfile seems to be point to web so where is this app coming from?\r\n\r\n`web: vendor/bin/heroku-php-apache2 web/`\r\n\r\nAny help will be really appreciated as I am pretty much lost here."},"comment":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/comments/267441878","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/196#issuecomment-267441878","issue_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/196","id":267441878,"user":{"login":"dzuelke","id":27900,"avatar_url":"https://avatars.githubusercontent.com/u/27900?v=3","gravatar_id":"","url":"https://api.github.com/users/dzuelke","html_url":"https://github.com/dzuelke","followers_url":"https://api.github.com/users/dzuelke/followers","following_url":"https://api.github.com/users/dzuelke/following{/other_user}","gists_url":"https://api.github.com/users/dzuelke/gists{/gist_id}","starred_url":"https://api.github.com/users/dzuelke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzuelke/subscriptions","organizations_url":"https://api.github.com/users/dzuelke/orgs","repos_url":"https://api.github.com/users/dzuelke/repos","events_url":"https://api.github.com/users/dzuelke/events{/privacy}","received_events_url":"https://api.github.com/users/dzuelke/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T20:57:08Z","updated_at":"2016-12-15T20:57:08Z","body":"`/app/web/` is the absolute location on the file system. This is not the problem. Your `Procfile` is also correct. The issue you are having is described right there in your error message:\r\n\r\n> Cannot serve directory /app/web/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive\r\n\r\nSo you don't have an `index.php` or similar, as Symfony uses `app.php`, and you have no rewrites in place to send traffic to `app.php`. Is your `.htaccess` maybe not in version control?\r\n\r\n"}}
{"actor":{"display_login":"dzuelke"}}