File tree 3 files changed +77
-0
lines changed
3 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM php:5.6-apache
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ libfreetype6-dev \
5
+ libjpeg62-turbo-dev \
6
+ libmcrypt-dev \
7
+ libpng12-dev \
8
+ libicu-dev \
9
+ make \
10
+ php5-dev \
11
+ php-pear \
12
+ libcurl4-gnutls-dev \
13
+ && docker-php-ext-install intl mbstring \
14
+ && pecl install mongo xdebug
15
+
16
+ ADD php.ini $PHP_INI_DIR/php.ini
17
+ ADD symfony.conf /etc/apache2/sites-available/symfony.conf
18
+
19
+ RUN find / -name "mongo.so" -exec echo "extension={}" > $PHP_INI_DIR/conf.d/ext-mongo.ini \; \
20
+ && find / -name "xdebug.so" -exec echo "zend_extension={}" > $PHP_INI_DIR/conf.d/ext-xdebug.ini \; \
21
+ && a2ensite symfony.conf \
22
+ && a2enmod rewrite
Original file line number Diff line number Diff line change
1
+ [PHP]
2
+ error_reporting = E_ALL
3
+ display_errors = On
4
+ display_startup_errors = On
5
+ log_errors = On
6
+ log_errors_max_len = 1024
7
+ report_memleaks = On
8
+ html_errors = On
9
+ default_charset = " UTF-8"
10
+ short_open_tag = Off
11
+ always_populate_raw_post_data = -1
12
+
13
+ [Date]
14
+ date.timezone = Europe/Paris
15
+
16
+ [xdebug]
17
+ xdebug.cli_color =1
18
+ xdebug.show_local_vars =0
19
+ xdebug.remote_enable =1
20
+ xdebug.remote_connect_back =1
21
+ xdebug.remote_hodst =<PHPSTORM host IP>
22
+ xdebug.remote_port =" 9000"
23
+ xdebug.idekey =phpstorm
24
+ xdebug.scream = 0
25
+ xdebug.max_nesting_level =300
26
+ xdebug.var_display_max_children =-1
27
+ xdebug.var_display_max_data =-1
28
+ xdebug.var_display_max_depth =-1
Original file line number Diff line number Diff line change
1
+ <VirtualHost *:80>
2
+ ServerName symfony.local
3
+ ServerAlias www.symfony.local
4
+
5
+ DocumentRoot /var/www/html/web
6
+ <Directory /var/www/html/web>
7
+ AllowOverride All
8
+ Require all granted
9
+ Allow from All
10
+
11
+ <IfModule mod_rewrite.c>
12
+ Options -MultiViews
13
+ RewriteEngine On
14
+ RewriteCond %{REQUEST_FILENAME} !-f
15
+ RewriteRule ^(.*)$ app_dev.php [QSA,L]
16
+ </IfModule>
17
+ </Directory>
18
+
19
+ <Directory /var/www/html>
20
+ Options FollowSymlinks
21
+ </Directory>
22
+
23
+ LogFormat "%{Host}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" **%D**" customlog
24
+ ErrorLog /var/log/apache2/symfony.error.log
25
+ CustomLog /var/log/apache2/symfony.access.log customlog
26
+ </VirtualHost>
27
+
You can’t perform that action at this time.
0 commit comments