webdevops / php-docker-boilerplate

:stew: PHP Docker Boilerplate for Symfony, Wordpress, Joomla or any other PHP Project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)
https://webdevops.io/projects/php-docker-boilerplate/
MIT License
561 stars 185 forks source link

Nginx Symfony3 Debian 8 #33

Closed achref-riahi closed 8 years ago

achref-riahi commented 8 years ago

Hi, When i try to connect to app_dev.php i get this Alert !

"An error occurred while loading the web debug toolbar (404: Not Found).

Do you want to open the profiler?" screenshot from 2016-03-29 18 16 33 and when i press OK i get this url, app_dev.php/_profiler/290fc5 with "File not found. " message.

the config that i use

mblaschke commented 8 years ago

It's working here.

achref-riahi commented 8 years ago

Hi mblashke,

mblaschke commented 8 years ago

With Symfony you should set (default directory layout of Symfony) WEB_DOCUMENT_ROOT=/app/web/ and WEB_DOCUMENT_INDEX=app_dev.php

Please try again :)

achref-riahi commented 8 years ago

many many thanks for your help =)

trogwarz commented 8 years ago

Sorry for asking here, but i think this is maybe relevant.

Prerequisites. I'm using Symfony3 and it requires /app/var/cache + /app/var/logs to be writeable but by default there aren't. If i do chmod 1777 -R /app/var manually as root inside image – it's ok.

My related question 1 is: where i need to put this code to automate this? Maybe, in /Dockerfile.development one more RUN-section, right? Just noobie here.

Unrelated question 2: host machine doesn't has even php installed. Where i need to script installing composer (and some php extensions from pecl needed to project)? Have no idea )-: