├── .gitignore
├── .travis.yml
├── README.md
├── Resources
└── doc
│ ├── console.jpg
│ ├── debug.md
│ ├── permissions.md
│ ├── startup.md
│ └── toolbar.png
└── docker
├── data
└── .gitkeep
├── docker-compose.yml
├── docker-env.dist
├── docker.sh
├── mysql
└── my.cnf
├── rsh-apache.sh
├── rsh-mysql.sh
└── sf_web
├── 000-default.conf
├── Dockerfile.dist
├── php.ini
└── zshrc.dist
/.gitignore:
--------------------------------------------------------------------------------
1 | docker/data/sql
2 | docker/sf_web/Dockerfile
3 | docker/data/.bash_history
4 | docker/docker-env
5 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: required
2 |
3 | language: php
4 | - '7.0'
5 |
6 | services:
7 | - docker
8 |
9 | before_script:
10 | - sudo sysctl -w vm.max_map_count=262144
11 | - composer create-project symfony/framework-standard-edition sf3_project
12 | - cp -r ./docker sf3_project
13 | - cd sf3_project/docker
14 | - sh ./docker.sh -d
15 |
16 | script:
17 | - docker exec -u www-data -i sf_web composer require phpunit/phpunit
18 | - docker exec -u www-data -i sf_web vendor/phpunit/phpunit/phpunit
19 | - docker-compose stop
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ```asciidoc
2 | ██████╗ ██████╗ ██████╗██╗ ██╗███████╗██████╗ ███████╗███████╗██████╗
3 | ██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗ ██╔════╝██╔════╝╚════██╗
4 | ██║ ██║██║ ██║██║ █████╔╝ █████╗ ██████╔╝█████╗███████╗█████╗ █████╔╝
5 | ██║ ██║██║ ██║██║ ██╔═██╗ ██╔══╝ ██╔══██╗╚════╝╚════██║██╔══╝ ╚═══██╗
6 | ██████╔╝╚██████╔╝╚██████╗██║ ██╗███████╗██║ ██║ ███████║██║ ██████╔╝
7 | ╚═════╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═════╝
8 |
9 | ```
10 |
11 | ## docker-sf3 - advanced LAMP setup for symfony3 development
12 | [](https://travis-ci.org/nerdpress-org/docker-sf3)
13 |
14 | permission-hassle free :tm: [» More](/Resources/doc/permissions.md)
15 |
16 | ## Installation
17 |
18 | git clone https://github.com/nerdpress-org/docker-sf3.git docker-sf3
19 | cp -r docker-sf3/docker /path/to/your/symfony-project/
20 |
21 | ## Usage
22 |
23 | cd /path/to/your/symfony-project/docker
24 | ./docker.sh -l
25 |
26 | This will build and start all containers and log you into the symfony container as _www-data_.
27 | [» More startup options ](Resources/doc/startup.md)
28 |
29 | 
30 |
31 | Open the browser: [http://[docker-host]:8080](http://[docker-host]:8080)
32 |
33 | 
34 |
35 | ### PHP
36 |
37 | PHP7 is used.
38 |
39 | Xdebug (only Linux and dlite for Mac) and Blackfire.io support are included by default.
40 | [» How to configure](Resources/doc/debug.md)
41 |
42 | ### DB
43 |
44 | MySql is used.
45 | Use the name of the service as the database host in your connection settings:
46 |
47 | ```yml
48 | database_driver: pdo_mysql
49 | database_host: db
50 | database_port: 3306
51 | database_name: sf3
52 | database_user: sf3
53 | database_password: sf3
54 | ```
55 |
56 | Its configured to be open for access from outside,
57 | so if you prefer to use MySql Workbench on the host, use the containers IP as host.
58 | Find the IP with: `docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' $(docker ps -q)`
59 |
60 | Otherwise use phpmyadmin on [http://[docker-host]:8081](http://[docker-host]:8081)
61 |
62 | #### Mailcatcher SMTP
63 |
64 | ```yml
65 | host: mailcatcher
66 | port: 1025
67 | ```
68 |
69 | Webinterface on http://[yourhost*]:1080
70 |
--------------------------------------------------------------------------------
/Resources/doc/console.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerdpress-org/docker-sf3/21b1191813ca18adb311ca2534059b29f96f5615/Resources/doc/console.jpg
--------------------------------------------------------------------------------
/Resources/doc/debug.md:
--------------------------------------------------------------------------------
1 | # Debug
2 |
3 | On every startup the *docker-env.dist* file will be copied to the *docker-env* which will be used.
4 | When copying, the remote\_host is set for xdebug.
5 |
6 | ## Xdebug
7 |
8 | Xdebug is activated.
9 | - In PHPStorm settings:
10 | - Languages & Frameworks > PHP > Debug:
11 | - Port 9000
12 | - you will need to setup a server, we assume that it is called *docker-sf3*.
13 | - In the Server set the Host you are using, Port will be *8080* and the Debugger is *Xdebug*.
14 | - In the path mappings set your root dir to /var/www/html
15 | - Create a new *Debug Configuration* as *PHP Web Application*
16 | - select your default browser and enter `/app_dev.php` as Start URL (or any other path you want as start path)
17 |
18 | Now set some breakpoint and call your site with ide key as GET param or in a cookie.
19 | - When you click the green Bug (or `ctrl+f5` per default) a new Browser Window should open with `?XDEBUG_SESSION_START={RANDOMINT}`
20 | - You can stop the debugging session by calling your site with `?XDEBUG_SESSION_STOP` attached as GET parameter.
21 |
22 | For debugging in cli create a "PHP remote debugger" and set the xdebug config as ENV var:
23 |
24 | >export XDEBUG_CONFIG="remote_enable=1 remote_host=172.17.0.1 remote_port=9000 remote_mode=req remote_connect_back=0 idekey=XDEBUG_IDEA remote_handler=dbgp"
25 |
26 | then set your breakpoint and run the cli script, f.e.
27 | >vendor/bin/simple-phpunit
28 |
29 | Happy debugging :)
30 |
31 | ## Blackfire
32 |
33 | Blackfire client and agent are provided by the official Docker image.
34 | The probe is integrated in the PHP container.
35 | Get the Blackfire Bookmarklet and enter your credentials in *docker-env* and thats it.
36 |
37 | Happy Profiling :)
38 |
--------------------------------------------------------------------------------
/Resources/doc/permissions.md:
--------------------------------------------------------------------------------
1 | ## Permissions
2 |
3 | This projects aims to avoid permission problems with symfony running inside docker
4 | by changing the user id of the _www-data_ user to the current host user id.
5 |
6 | This should work on linux, mac or windows systems.
7 |
8 | For running symfony commands via cli, log into the _sf_web_ container as _www-data_
--------------------------------------------------------------------------------
/Resources/doc/startup.md:
--------------------------------------------------------------------------------
1 | ## Startup options
2 |
3 | Setup environment, start all containers and display logs in stdout:
4 |
5 | ./docker.sh
6 |
7 | If you want be logged in automatically use:
8 |
9 | ./docker.sh -l
10 |
11 | This will log you into the `sf_web` container as _www-data_
12 | and shutdown all containers when you log out.
13 |
14 | To manually log in the container run
15 |
16 | docker exec -it -u www-data sf_web bash
17 |
18 | or use the shortcut:
19 |
20 | ./docker-ssh.sh
21 |
22 |
23 | To start te container up into the background use:
24 |
25 | ./docker.sh -d
--------------------------------------------------------------------------------
/Resources/doc/toolbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerdpress-org/docker-sf3/21b1191813ca18adb311ca2534059b29f96f5615/Resources/doc/toolbar.png
--------------------------------------------------------------------------------
/docker/data/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerdpress-org/docker-sf3/21b1191813ca18adb311ca2534059b29f96f5615/docker/data/.gitkeep
--------------------------------------------------------------------------------
/docker/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 |
4 | #apache/php
5 | sf_web:
6 | build: ./sf_web
7 | image: sf_web
8 | depends_on:
9 | - "db"
10 | hostname: "sf3"
11 | container_name: "sf_web"
12 | ports:
13 | - 8080:80 #apache
14 | volumes:
15 | - "../:/var/www/html"
16 | - "~/.composer:/var/www/.composer"
17 | - ./sf_web/zshrc.dist:/var/www/.zshrc:ro
18 | links:
19 | - db
20 | - mailcatcher
21 | - blackfire
22 | env_file:
23 | - docker-env
24 |
25 | #mysql
26 | db:
27 | image: mysql:latest
28 | container_name: "sf_db"
29 | ports:
30 | - 3306
31 | environment:
32 | MYSQL_DATABASE: sf3
33 | MYSQL_USER: sf3
34 | MYSQL_PASSWORD: sf3
35 | MYSQL_ROOT_PASSWORD: root
36 | volumes:
37 | - ./data/sql:/var/lib/mysql
38 | - ./mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf
39 |
40 | #phpmyadmin
41 | pma:
42 | image: phpmyadmin/phpmyadmin
43 | container_name: "sf_pma"
44 | links:
45 | - db
46 | depends_on:
47 | - "db"
48 | ports:
49 | - 8081:80
50 | restart: always
51 | environment:
52 | - PMA_ARBITRARY=1
53 | - PMA_PORT=3306
54 | - PMA_HOST=db
55 | - PMA_USER=root
56 | - PMA_PASSWORD=root
57 |
58 | #mailcatcher
59 | mailcatcher:
60 | container_name: "sf_mailcatcher"
61 | image: quay.io/datadarius/tiny-mailcatcher
62 | ports:
63 | - 1025:1025
64 | - 1080:1080
65 |
66 | #blackfire
67 | blackfire:
68 | restart: always
69 | container_name: "sf_blackfire"
70 | image: blackfire/blackfire
71 | env_file:
72 | - docker-env
73 |
--------------------------------------------------------------------------------
/docker/docker-env.dist:
--------------------------------------------------------------------------------
1 | XDEBUG_CONFIG=remote_enable=1 remote_host=$HOST_IP remote_port=9000 remote_mode=req remote_handler=dbgp
2 |
3 | PHP_IDE_CONFIG=serverName=docker-sf3
4 |
5 | #blackfire
6 | BLACKFIRE_SERVER_ID=
7 | BLACKFIRE_SERVER_TOKEN=
8 | BLACKFIRE_CLIENT_ID=
9 | BLACKFIRE_CLIENT_TOKEN=
10 |
--------------------------------------------------------------------------------
/docker/docker.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | upOption=""
4 | login=false
5 | optspec=":ld"
6 | while getopts "$optspec" optchar; do
7 | case "${optchar}" in
8 | l)
9 | echo "->Login after start up" >&2
10 | login=true
11 | upOption="-d"
12 | ;;
13 | esac
14 | case "${optchar}" in
15 | d)
16 | echo "->Start up to background" >&2
17 | upOption="-d"
18 | ;;
19 | esac
20 | done
21 |
22 | containerName="sf_web"
23 |
24 | ##Update Apache UID
25 | uid=$(id -u)
26 | if [ $uid -gt 100000 ]; then
27 | uid=1000
28 | fi
29 |
30 | case "$(uname -s)" in
31 | Linux*) host_ip="172.17.0.1";;
32 | Darwin*) host_ip=$(dlite status | grep dns_server | grep -oE "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}");;
33 | esac
34 |
35 | sed "s/\$USER_ID/$uid/g" ./sf_web/Dockerfile.dist > ./sf_web/Dockerfile
36 | sed "s/\$HOST_IP/$host_ip/g" ./docker-env.dist > ./docker-env
37 |
38 |
39 | ##build and launch containers
40 | docker-compose build
41 | docker-compose up $upOption
42 |
43 | ##add ssh folder to enable access to private repos
44 | docker cp --follow-link ~/.ssh $containerName:/var/www/
45 | docker exec $containerName chown -R www-data /var/www/.ssh
46 |
47 | ##make ssh files accessable for www-data
48 | docker exec -it $containerName chown -R www-data:www-data /var/www/.ssh
49 |
50 | ##composer selfupdate
51 | docker exec -it $containerName composer selfupdate
52 |
53 | if [ $login = true ]; then
54 | docker exec -it -u www-data $containerName zsh
55 | docker-compose stop
56 | fi
57 |
58 |
--------------------------------------------------------------------------------
/docker/mysql/my.cnf:
--------------------------------------------------------------------------------
1 | [mysqld]
2 | bind-address = 0.0.0.0
--------------------------------------------------------------------------------
/docker/rsh-apache.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | docker exec -it -u www-data sf_web zsh
4 |
--------------------------------------------------------------------------------
/docker/rsh-mysql.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | docker exec -it sf_db bash
4 |
--------------------------------------------------------------------------------
/docker/sf_web/000-default.conf:
--------------------------------------------------------------------------------
1 |
2 | # The ServerName directive sets the request scheme, hostname and port that
3 | # the server uses to identify itself. This is used when creating
4 | # redirection URLs. In the context of virtual hosts, the ServerName
5 | # specifies what hostname must appear in the request's Host: header to
6 | # match this virtual host. For the default virtual host (this file) this
7 | # value is not decisive as it is used as a last resort host regardless.
8 | # However, you must set it for any further virtual host explicitly.
9 | #ServerName www.example.com
10 |
11 | ServerAdmin webmaster@localhost
12 | DocumentRoot /var/www/html/web
13 | DirectoryIndex app_dev.php
14 |
15 | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
16 | # error, crit, alert, emerg.
17 | # It is also possible to configure the loglevel for particular
18 | # modules, e.g.
19 | #LogLevel info ssl:warn
20 |
21 | ErrorLog ${APACHE_LOG_DIR}/error.log
22 | CustomLog ${APACHE_LOG_DIR}/access.log combined
23 |
24 | # For most configuration files from conf-available/, which are
25 | # enabled or disabled at a global level, it is possible to
26 | # include a line for only one particular virtual host. For example the
27 | # following line enables the CGI configuration for this host only
28 | # after it has been globally disabled with "a2disconf".
29 | #Include conf-available/serve-cgi-bin.conf
30 |
31 |
--------------------------------------------------------------------------------
/docker/sf_web/Dockerfile.dist:
--------------------------------------------------------------------------------
1 | FROM php:7-apache
2 |
3 | #Enable necessary Apache modules
4 | RUN a2enmod rewrite
5 |
6 | #Change your timezone below. Full list of timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
7 | RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
8 |
9 | #Append software required during runtime here.
10 | RUN RUNTIME_PKGS="locales zsh curl vim git zip mcrypt mysql-client htop ssh-client libicu52 libjpeg62-turbo libpng12-0 libfreetype6" \
11 | && apt-get update && apt-get install -y --no-install-recommends $RUNTIME_PKGS \
12 | && apt-get autoremove -y && apt-get clean -y \
13 | && locale-gen en_US.UTF-8 \
14 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
15 |
16 | #Append software required during build here.
17 | RUN BUILD_PKGS="zlib1g-dev libicu-dev g++ libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev make" \
18 | && apt-get update && apt-get install -y --no-install-recommends $BUILD_PKGS \
19 | && docker-php-ext-install -j$(nproc) iconv mcrypt mbstring exif zip opcache pdo_mysql pcntl \
20 | && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
21 | && docker-php-ext-install -j$(nproc) gd \
22 | && docker-php-ext-configure intl \
23 | && docker-php-ext-install intl \
24 | && pecl install xdebug \
25 | && docker-php-ext-enable xdebug \
26 | && apt-get autoremove -y $BUILD_PKGS \
27 | && apt-get clean -y \
28 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
29 |
30 | #Configure xdebug.
31 | RUN sed -i '1 a xdebug.remote_autostart=true' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
32 | RUN sed -i '1 a xdebug.remote_connect_back=1 ' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
33 | RUN sed -i '1 a xdebug.remote_enable=1' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
34 | RUN sed -i '1 a xdebug.max_nesting_level = 1200' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
35 |
36 | #Install blackfire.
37 | RUN export VERSION=`php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;"` \
38 | && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/${VERSION} \
39 | && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
40 | && mv /tmp/blackfire-*.so `php -r "echo ini_get('extension_dir');"`/blackfire.so \
41 | && echo "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707" > /usr/local/etc/php/conf.d/blackfire.ini \
42 | && rm -rf /tmp/* /var/tmp/*
43 |
44 | #Install composer.
45 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
46 | && composer global require hirak/prestissimo \
47 | && rm -rf /tmp/* /var/tmp/*
48 |
49 | #Populate Environment
50 | COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
51 | COPY php.ini /usr/local/etc/php/
52 | COPY zshrc.dist /var/www/.zshrc
53 |
54 | #Overtake www-data
55 | RUN usermod -u $USER_ID www-data -s /bin/zsh
56 |
57 | #Install oh-my-zsh
58 | ENV TERM=xterm
59 | RUN git clone git://github.com/robbyrussell/oh-my-zsh.git /var/www/.oh-my-zsh
60 |
61 | #Fix permissions and umask
62 | RUN chgrp -R www-data /var/www
63 | RUN chmod -R g+rwx /var/www
64 | RUN umask 0007
65 |
66 | WORKDIR /var/www/html
67 |
--------------------------------------------------------------------------------
/docker/sf_web/php.ini:
--------------------------------------------------------------------------------
1 | [PHP]
2 |
3 | ;;;;;;;;;;;;;;;;;;;
4 | ; About php.ini ;
5 | ;;;;;;;;;;;;;;;;;;;
6 | ; PHP's initialization file, generally called php.ini, is responsible for
7 | ; configuring many of the aspects of PHP's behavior.
8 |
9 | ; PHP attempts to find and load this configuration from a number of locations.
10 | ; The following is a summary of its search order:
11 | ; 1. SAPI module specific location.
12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
14 | ; 4. Current working directory (except CLI)
15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP
16 | ; (otherwise in Windows)
17 | ; 6. The directory from the --with-config-file-path compile time option, or the
18 | ; Windows directory (C:\windows or C:\winnt)
19 | ; See the PHP docs for more specific information.
20 | ; http://php.net/configuration.file
21 |
22 | ; The syntax of the file is extremely simple. Whitespace and Lines
23 | ; beginning with a semicolon are silently ignored (as you probably guessed).
24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though
25 | ; they might mean something in the future.
26 |
27 | ; Directives following the section heading [PATH=/www/mysite] only
28 | ; apply to PHP files in the /www/mysite directory. Directives
29 | ; following the section heading [HOST=www.example.com] only apply to
30 | ; PHP files served from www.example.com. Directives set in these
31 | ; special sections cannot be overridden by user-defined INI files or
32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
33 | ; CGI/FastCGI.
34 | ; http://php.net/ini.sections
35 |
36 | ; Directives are specified using the following syntax:
37 | ; directive = value
38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
39 | ; Directives are variables used to configure PHP or PHP extensions.
40 | ; There is no name validation. If PHP can't find an expected
41 | ; directive because it is not set or is mistyped, a default value will be used.
42 |
43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
46 | ; previously set variable or directive (e.g. ${foo})
47 |
48 | ; Expressions in the INI file are limited to bitwise operators and parentheses:
49 | ; | bitwise OR
50 | ; ^ bitwise XOR
51 | ; & bitwise AND
52 | ; ~ bitwise NOT
53 | ; ! boolean NOT
54 |
55 | ; Boolean flags can be turned on using the values 1, On, True or Yes.
56 | ; They can be turned off using the values 0, Off, False or No.
57 |
58 | ; An empty string can be denoted by simply not writing anything after the equal
59 | ; sign, or by using the None keyword:
60 |
61 | ; foo = ; sets foo to an empty string
62 | ; foo = None ; sets foo to an empty string
63 | ; foo = "None" ; sets foo to the string 'None'
64 |
65 | ; If you use constants in your value, and these constants belong to a
66 | ; dynamically loaded extension (either a PHP extension or a Zend extension),
67 | ; you may only use these constants *after* the line that loads the extension.
68 |
69 | ;;;;;;;;;;;;;;;;;;;
70 | ; About this file ;
71 | ;;;;;;;;;;;;;;;;;;;
72 | ; PHP comes packaged with two INI files. One that is recommended to be used
73 | ; in production environments and one that is recommended to be used in
74 | ; development environments.
75 |
76 | ; php.ini-production contains settings which hold security, performance and
77 | ; best practices at its core. But please be aware, these settings may break
78 | ; compatibility with older or less security conscience applications. We
79 | ; recommending using the production ini in production and testing environments.
80 |
81 | ; php.ini-development is very similar to its production variant, except it's
82 | ; much more verbose when it comes to errors. We recommending using the
83 | ; development version only in development environments as errors shown to
84 | ; application users can inadvertently leak otherwise secure information.
85 |
86 | ;;;;;;;;;;;;;;;;;;;
87 | ; Quick Reference ;
88 | ;;;;;;;;;;;;;;;;;;;
89 | ; The following are all the settings which are different in either the production
90 | ; or development versions of the INIs with respect to PHP's default behavior.
91 | ; Please see the actual settings later in the document for more details as to why
92 | ; we recommend these changes in PHP's behavior.
93 |
94 | ; allow_call_time_pass_reference
95 | ; Default Value: On
96 | ; Development Value: Off
97 | ; Production Value: Off
98 |
99 | ; display_errors
100 | ; Default Value: On
101 | ; Development Value: On
102 | ; Production Value: Off
103 |
104 | ; display_startup_errors
105 | ; Default Value: Off
106 | ; Development Value: On
107 | ; Production Value: Off
108 |
109 | ; error_reporting
110 | ; Default Value: E_ALL & ~E_NOTICE
111 | ; Development Value: E_ALL | E_STRICT
112 | ; Production Value: E_ALL & ~E_DEPRECATED
113 |
114 | ; html_errors
115 | ; Default Value: On
116 | ; Development Value: On
117 | ; Production value: Off
118 |
119 | ; log_errors
120 | ; Default Value: Off
121 | ; Development Value: On
122 | ; Production Value: On
123 |
124 | ; magic_quotes_gpc
125 | ; Default Value: On
126 | ; Development Value: Off
127 | ; Production Value: Off
128 |
129 | ; max_input_time
130 | ; Default Value: -1 (Unlimited)
131 | ; Development Value: 60 (60 seconds)
132 | ; Production Value: 60 (60 seconds)
133 |
134 | ; output_buffering
135 | ; Default Value: Off
136 | ; Development Value: 4096
137 | ; Production Value: 4096
138 |
139 | ; register_argc_argv
140 | ; Default Value: On
141 | ; Development Value: Off
142 | ; Production Value: Off
143 |
144 | ; register_long_arrays
145 | ; Default Value: On
146 | ; Development Value: Off
147 | ; Production Value: Off
148 |
149 | ; request_order
150 | ; Default Value: None
151 | ; Development Value: "GP"
152 | ; Production Value: "GP"
153 |
154 | ; session.bug_compat_42
155 | ; Default Value: On
156 | ; Development Value: On
157 | ; Production Value: Off
158 |
159 | ; session.bug_compat_warn
160 | ; Default Value: On
161 | ; Development Value: On
162 | ; Production Value: Off
163 |
164 | ; session.gc_divisor
165 | ; Default Value: 100
166 | ; Development Value: 1000
167 | ; Production Value: 1000
168 |
169 | ; session.hash_bits_per_character
170 | ; Default Value: 4
171 | ; Development Value: 5
172 | ; Production Value: 5
173 |
174 | ;short_open_tag = Off
175 | ; Default Value: Off
176 | ; Development Value: Off
177 | ; Production Value: Off
178 |
179 | ; track_errors
180 | ; Default Value: Off
181 | ; Development Value: On
182 | ; Production Value: Off
183 |
184 | ; url_rewriter.tags
185 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
186 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
187 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
188 |
189 | ; variables_order
190 | ; Default Value: "EGPCS"
191 | ; Development Value: "GPCS"
192 | ; Production Value: "GPCS"
193 |
194 | ;;;;;;;;;;;;;;;;;;;;
195 | ; php.ini Options ;
196 | ;;;;;;;;;;;;;;;;;;;;
197 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
198 | ;user_ini.filename = ".user.ini"
199 |
200 | ; To disable this feature set this option to empty value
201 | ;user_ini.filename =
202 |
203 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
204 | ;user_ini.cache_ttl = 300
205 |
206 | ;;;;;;;;;;;;;;;;;;;;
207 | ; Language Options ;
208 | ;;;;;;;;;;;;;;;;;;;;
209 |
210 | ; Enable the PHP scripting language engine under Apache.
211 | ; http://php.net/engine
212 | engine = On
213 |
214 | ; This directive determines whether or not PHP will recognize code between
215 | ; and ?> tags as PHP source which should be processed as such. It's been
216 | ; recommended for several years that you not use the short tag "short cut" and
217 | ; instead to use the full tag combination. With the wide spread use
218 | ; of XML and use of these tags by other languages, the server can become easily
219 | ; confused and end up parsing the wrong code in the wrong context. But because
220 | ; this short cut has been a feature for such a long time, it's currently still
221 | ; supported for backwards compatibility, but we recommend you don't use them.
222 | ; Default Value: On
223 | ; Development Value: Off
224 | ; Production Value: Off
225 | ; http://php.net/short-open-tag
226 | short_open_tag = Off
227 |
228 | ; Allow ASP-style <% %> tags.
229 | ; http://php.net/asp-tags
230 | asp_tags = Off
231 |
232 | ; The number of significant digits displayed in floating point numbers.
233 | ; http://php.net/precision
234 | precision = 14
235 |
236 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
237 | ; http://php.net/y2k-compliance
238 | y2k_compliance = On
239 |
240 | ; Output buffering is a mechanism for controlling how much output data
241 | ; (excluding headers and cookies) PHP should keep internally before pushing that
242 | ; data to the client. If your application's output exceeds this setting, PHP
243 | ; will send that data in chunks of roughly the size you specify.
244 | ; Turning on this setting and managing its maximum buffer size can yield some
245 | ; interesting side-effects depending on your application and web server.
246 | ; You may be able to send headers and cookies after you've already sent output
247 | ; through print or echo. You also may see performance benefits if your server is
248 | ; emitting less packets due to buffered output versus PHP streaming the output
249 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance
250 | ; reasons.
251 | ; Note: Output buffering can also be controlled via Output Buffering Control
252 | ; functions.
253 | ; Possible Values:
254 | ; On = Enabled and buffer is unlimited. (Use with caution)
255 | ; Off = Disabled
256 | ; Integer = Enables the buffer and sets its maximum size in bytes.
257 | ; Note: This directive is hardcoded to Off for the CLI SAPI
258 | ; Default Value: Off
259 | ; Development Value: 4096
260 | ; Production Value: 4096
261 | ; http://php.net/output-buffering
262 | output_buffering = 4096
263 |
264 | ; You can redirect all of the output of your scripts to a function. For
265 | ; example, if you set output_handler to "mb_output_handler", character
266 | ; encoding will be transparently converted to the specified encoding.
267 | ; Setting any output handler automatically turns on output buffering.
268 | ; Note: People who wrote portable scripts should not depend on this ini
269 | ; directive. Instead, explicitly set the output handler using ob_start().
270 | ; Using this ini directive may cause problems unless you know what script
271 | ; is doing.
272 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
273 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
274 | ; Note: output_handler must be empty if this is set 'On' !!!!
275 | ; Instead you must use zlib.output_handler.
276 | ; http://php.net/output-handler
277 | ;output_handler =
278 |
279 | ; Transparent output compression using the zlib library
280 | ; Valid values for this option are 'off', 'on', or a specific buffer size
281 | ; to be used for compression (default is 4KB)
282 | ; Note: Resulting chunk size may vary due to nature of compression. PHP
283 | ; outputs chunks that are few hundreds bytes each as a result of
284 | ; compression. If you prefer a larger chunk size for better
285 | ; performance, enable output_buffering in addition.
286 | ; Note: You need to use zlib.output_handler instead of the standard
287 | ; output_handler, or otherwise the output will be corrupted.
288 | ; http://php.net/zlib.output-compression
289 | zlib.output_compression = Off
290 |
291 | ; http://php.net/zlib.output-compression-level
292 | ;zlib.output_compression_level = -1
293 |
294 | ; You cannot specify additional output handlers if zlib.output_compression
295 | ; is activated here. This setting does the same as output_handler but in
296 | ; a different order.
297 | ; http://php.net/zlib.output-handler
298 | ;zlib.output_handler =
299 |
300 | ; Implicit flush tells PHP to tell the output layer to flush itself
301 | ; automatically after every output block. This is equivalent to calling the
302 | ; PHP function flush() after each and every call to print() or echo() and each
303 | ; and every HTML block. Turning this option on has serious performance
304 | ; implications and is generally recommended for debugging purposes only.
305 | ; http://php.net/implicit-flush
306 | ; Note: This directive is hardcoded to On for the CLI SAPI
307 | implicit_flush = Off
308 |
309 | ; The unserialize callback function will be called (with the undefined class'
310 | ; name as parameter), if the unserializer finds an undefined class
311 | ; which should be instantiated. A warning appears if the specified function is
312 | ; not defined, or if the function doesn't include/implement the missing class.
313 | ; So only set this entry, if you really want to implement such a
314 | ; callback-function.
315 | unserialize_callback_func =
316 |
317 | ; When floats & doubles are serialized store serialize_precision significant
318 | ; digits after the floating point. The default value ensures that when floats
319 | ; are decoded with unserialize, the data will remain the same.
320 | serialize_precision = 100
321 |
322 | ; This directive allows you to enable and disable warnings which PHP will issue
323 | ; if you pass a value by reference at function call time. Passing values by
324 | ; reference at function call time is a deprecated feature which will be removed
325 | ; from PHP at some point in the near future. The acceptable method for passing a
326 | ; value by reference to a function is by declaring the reference in the functions
327 | ; definition, not at call time. This directive does not disable this feature, it
328 | ; only determines whether PHP will warn you about it or not. These warnings
329 | ; should enabled in development environments only.
330 | ; Default Value: On (Suppress warnings)
331 | ; Development Value: Off (Issue warnings)
332 | ; Production Value: Off (Issue warnings)
333 | ; http://php.net/allow-call-time-pass-reference
334 | allow_call_time_pass_reference = Off
335 |
336 | ; open_basedir, if set, limits all file operations to the defined directory
337 | ; and below. This directive makes most sense if used in a per-directory
338 | ; or per-virtualhost web server configuration file. This directive is
339 | ; *NOT* affected by whether Safe Mode is turned On or Off.
340 | ; http://php.net/open-basedir
341 | ;open_basedir =
342 |
343 | ; This directive allows you to disable certain functions for security reasons.
344 | ; It receives a comma-delimited list of function names. This directive is
345 | ; *NOT* affected by whether Safe Mode is turned On or Off.
346 | ; http://php.net/disable-functions
347 | disable_functions =
348 |
349 | ; This directive allows you to disable certain classes for security reasons.
350 | ; It receives a comma-delimited list of class names. This directive is
351 | ; *NOT* affected by whether Safe Mode is turned On or Off.
352 | ; http://php.net/disable-classes
353 | disable_classes =
354 |
355 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in
356 | ; would work.
357 | ; http://php.net/syntax-highlighting
358 | ;highlight.string = #DD0000
359 | ;highlight.comment = #FF9900
360 | ;highlight.keyword = #007700
361 | ;highlight.bg = #FFFFFF
362 | ;highlight.default = #0000BB
363 | ;highlight.html = #000000
364 |
365 | ; If enabled, the request will be allowed to complete even if the user aborts
366 | ; the request. Consider enabling it if executing long requests, which may end up
367 | ; being interrupted by the user or a browser timing out. PHP's default behavior
368 | ; is to disable this feature.
369 | ; http://php.net/ignore-user-abort
370 | ;ignore_user_abort = On
371 |
372 | ; Determines the size of the realpath cache to be used by PHP. This value should
373 | ; be increased on systems where PHP opens many files to reflect the quantity of
374 | ; the file operations performed.
375 | ; http://php.net/realpath-cache-size
376 | ;realpath_cache_size = 16k
377 |
378 | ; Duration of time, in seconds for which to cache realpath information for a given
379 | ; file or directory. For systems with rarely changing files, consider increasing this
380 | ; value.
381 | ; http://php.net/realpath-cache-ttl
382 | ;realpath_cache_ttl = 120
383 |
384 | ;;;;;;;;;;;;;;;;;
385 | ; Miscellaneous ;
386 | ;;;;;;;;;;;;;;;;;
387 |
388 | ; Decides whether PHP may expose the fact that it is installed on the server
389 | ; (e.g. by adding its signature to the Web server header). It is no security
390 | ; threat in any way, but it makes it possible to determine whether you use PHP
391 | ; on your server or not.
392 | ; http://php.net/expose-php
393 | expose_php = On
394 |
395 | ;;;;;;;;;;;;;;;;;;;
396 | ; Resource Limits ;
397 | ;;;;;;;;;;;;;;;;;;;
398 |
399 | ; Maximum execution time of each script, in seconds
400 | ; http://php.net/max-execution-time
401 | ; Note: This directive is hardcoded to 0 for the CLI SAPI
402 | max_execution_time = 30
403 |
404 | ; Maximum amount of time each script may spend parsing request data. It's a good
405 | ; idea to limit this time on productions servers in order to eliminate unexpectedly
406 | ; long running scripts.
407 | ; Note: This directive is hardcoded to -1 for the CLI SAPI
408 | ; Default Value: -1 (Unlimited)
409 | ; Development Value: 60 (60 seconds)
410 | ; Production Value: 60 (60 seconds)
411 | ; http://php.net/max-input-time
412 | max_input_time = 60
413 |
414 | ; Maximum input variable nesting level
415 | ; http://php.net/max-input-nesting-level
416 | ;max_input_nesting_level = 64
417 |
418 | ; Maximum amount of memory a script may consume (128MB)
419 | ; http://php.net/memory-limit
420 | memory_limit = 2048M
421 |
422 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
423 | ; Error handling and logging ;
424 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
425 |
426 | ; This directive informs PHP of which errors, warnings and notices you would like
427 | ; it to take action for. The recommended way of setting values for this
428 | ; directive is through the use of the error level constants and bitwise
429 | ; operators. The error level constants are below here for convenience as well as
430 | ; some common settings and their meanings.
431 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
432 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and
433 | ; recommended coding standards in PHP. For performance reasons, this is the
434 | ; recommend error reporting setting. Your production server shouldn't be wasting
435 | ; resources complaining about best practices and coding standards. That's what
436 | ; development servers and development settings are for.
437 | ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
438 | ; means it pretty much reports everything which is exactly what you want during
439 | ; development and early testing.
440 | ;
441 | ; Error Level Constants:
442 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
443 | ; E_ERROR - fatal run-time errors
444 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors
445 | ; E_WARNING - run-time warnings (non-fatal errors)
446 | ; E_PARSE - compile-time parse errors
447 | ; E_NOTICE - run-time notices (these are warnings which often result
448 | ; from a bug in your code, but it's possible that it was
449 | ; intentional (e.g., using an uninitialized variable and
450 | ; relying on the fact it's automatically initialized to an
451 | ; empty string)
452 | ; E_STRICT - run-time notices, enable to have PHP suggest changes
453 | ; to your code which will ensure the best interoperability
454 | ; and forward compatibility of your code
455 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
456 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
457 | ; initial startup
458 | ; E_COMPILE_ERROR - fatal compile-time errors
459 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
460 | ; E_USER_ERROR - user-generated error message
461 | ; E_USER_WARNING - user-generated warning message
462 | ; E_USER_NOTICE - user-generated notice message
463 | ; E_DEPRECATED - warn about code that will not work in future versions
464 | ; of PHP
465 | ; E_USER_DEPRECATED - user-generated deprecation warnings
466 | ;
467 | ; Common Values:
468 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
469 | ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
470 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
471 | ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
472 | ; Default Value: E_ALL & ~E_NOTICE
473 | ; Development Value: E_ALL | E_STRICT
474 | ; Production Value: E_ALL & ~E_DEPRECATED
475 | ; http://php.net/error-reporting
476 | error_reporting = E_ALL & ~E_DEPRECATED
477 |
478 | ; This directive controls whether or not and where PHP will output errors,
479 | ; notices and warnings too. Error output is very useful during development, but
480 | ; it could be very dangerous in production environments. Depending on the code
481 | ; which is triggering the error, sensitive information could potentially leak
482 | ; out of your application such as database usernames and passwords or worse.
483 | ; It's recommended that errors be logged on production servers rather than
484 | ; having the errors sent to STDOUT.
485 | ; Possible Values:
486 | ; Off = Do not display any errors
487 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
488 | ; On or stdout = Display errors to STDOUT
489 | ; Default Value: On
490 | ; Development Value: On
491 | ; Production Value: Off
492 | ; http://php.net/display-errors
493 | display_errors = On
494 |
495 | ; The display of errors which occur during PHP's startup sequence are handled
496 | ; separately from display_errors. PHP's default behavior is to suppress those
497 | ; errors from clients. Turning the display of startup errors on can be useful in
498 | ; debugging configuration problems. But, it's strongly recommended that you
499 | ; leave this setting off on production servers.
500 | ; Default Value: Off
501 | ; Development Value: On
502 | ; Production Value: Off
503 | ; http://php.net/display-startup-errors
504 | display_startup_errors = Off
505 |
506 | ; Besides displaying errors, PHP can also log errors to locations such as a
507 | ; server-specific log, STDERR, or a location specified by the error_log
508 | ; directive found below. While errors should not be displayed on productions
509 | ; servers they should still be monitored and logging is a great way to do that.
510 | ; Default Value: Off
511 | ; Development Value: On
512 | ; Production Value: On
513 | ; http://php.net/log-errors
514 | log_errors = On
515 |
516 | ; Set maximum length of log_errors. In error_log information about the source is
517 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
518 | ; http://php.net/log-errors-max-len
519 | log_errors_max_len = 1024
520 |
521 | ; Do not log repeated messages. Repeated errors must occur in same file on same
522 | ; line unless ignore_repeated_source is set true.
523 | ; http://php.net/ignore-repeated-errors
524 | ignore_repeated_errors = Off
525 |
526 | ; Ignore source of message when ignoring repeated messages. When this setting
527 | ; is On you will not log errors with repeated messages from different files or
528 | ; source lines.
529 | ; http://php.net/ignore-repeated-source
530 | ignore_repeated_source = Off
531 |
532 | ; If this parameter is set to Off, then memory leaks will not be shown (on
533 | ; stdout or in the log). This has only effect in a debug compile, and if
534 | ; error reporting includes E_WARNING in the allowed list
535 | ; http://php.net/report-memleaks
536 | report_memleaks = On
537 |
538 | ; This setting is on by default.
539 | ;report_zend_debug = 0
540 |
541 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
542 | ; to On can assist in debugging and is appropriate for development servers. It should
543 | ; however be disabled on production servers.
544 | ; Default Value: Off
545 | ; Development Value: On
546 | ; Production Value: Off
547 | ; http://php.net/track-errors
548 | track_errors = Off
549 |
550 | ; Turn off normal error reporting and emit XML-RPC error XML
551 | ; http://php.net/xmlrpc-errors
552 | ;xmlrpc_errors = 0
553 |
554 | ; An XML-RPC faultCode
555 | ;xmlrpc_error_number = 0
556 |
557 | ; When PHP displays or logs an error, it has the capability of inserting html
558 | ; links to documentation related to that error. This directive controls whether
559 | ; those HTML links appear in error messages or not. For performance and security
560 | ; reasons, it's recommended you disable this on production servers.
561 | ; Note: This directive is hardcoded to Off for the CLI SAPI
562 | ; Default Value: On
563 | ; Development Value: On
564 | ; Production value: Off
565 | ; http://php.net/html-errors
566 | html_errors = Off
567 |
568 | ; If html_errors is set On PHP produces clickable error messages that direct
569 | ; to a page describing the error or function causing the error in detail.
570 | ; You can download a copy of the PHP manual from http://php.net/docs
571 | ; and change docref_root to the base URL of your local copy including the
572 | ; leading '/'. You must also specify the file extension being used including
573 | ; the dot. PHP's default behavior is to leave these settings empty.
574 | ; Note: Never use this feature for production boxes.
575 | ; http://php.net/docref-root
576 | ; Examples
577 | ;docref_root = "/phpmanual/"
578 |
579 | ; http://php.net/docref-ext
580 | ;docref_ext = .html
581 |
582 | ; String to output before an error message. PHP's default behavior is to leave
583 | ; this setting blank.
584 | ; http://php.net/error-prepend-string
585 | ; Example:
586 | ;error_prepend_string = ""
587 |
588 | ; String to output after an error message. PHP's default behavior is to leave
589 | ; this setting blank.
590 | ; http://php.net/error-append-string
591 | ; Example:
592 | ;error_append_string = ""
593 |
594 | ; Log errors to specified file. PHP's default behavior is to leave this value
595 | ; empty.
596 | ; http://php.net/error-log
597 | ; Example:
598 | ;error_log = php_errors.log
599 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
600 | ;error_log = syslog
601 |
602 | ;;;;;;;;;;;;;;;;;
603 | ; Data Handling ;
604 | ;;;;;;;;;;;;;;;;;
605 |
606 | ; The separator used in PHP generated URLs to separate arguments.
607 | ; PHP's default setting is "&".
608 | ; http://php.net/arg-separator.output
609 | ; Example:
610 | ;arg_separator.output = "&"
611 |
612 | ; List of separator(s) used by PHP to parse input URLs into variables.
613 | ; PHP's default setting is "&".
614 | ; NOTE: Every character in this directive is considered as separator!
615 | ; http://php.net/arg-separator.input
616 | ; Example:
617 | ;arg_separator.input = ";&"
618 |
619 | ; This directive determines which super global arrays are registered when PHP
620 | ; starts up. If the register_globals directive is enabled, it also determines
621 | ; what order variables are populated into the global space. G,P,C,E & S are
622 | ; abbreviations for the following respective super globals: GET, POST, COOKIE,
623 | ; ENV and SERVER. There is a performance penalty paid for the registration of
624 | ; these arrays and because ENV is not as commonly used as the others, ENV is
625 | ; is not recommended on productions servers. You can still get access to
626 | ; the environment variables through getenv() should you need to.
627 | ; Default Value: "EGPCS"
628 | ; Development Value: "GPCS"
629 | ; Production Value: "GPCS";
630 | ; http://php.net/variables-order
631 | variables_order = "GPCS"
632 |
633 | ; This directive determines which super global data (G,P,C,E & S) should
634 | ; be registered into the super global array REQUEST. If so, it also determines
635 | ; the order in which that data is registered. The values for this directive are
636 | ; specified in the same manner as the variables_order directive, EXCEPT one.
637 | ; Leaving this value empty will cause PHP to use the value set in the
638 | ; variables_order directive. It does not mean it will leave the super globals
639 | ; array REQUEST empty.
640 | ; Default Value: None
641 | ; Development Value: "GP"
642 | ; Production Value: "GP"
643 | ; http://php.net/request-order
644 | request_order = "GP"
645 |
646 | ; Whether or not to register the EGPCS variables as global variables. You may
647 | ; want to turn this off if you don't want to clutter your scripts' global scope
648 | ; with user data.
649 | ; You should do your best to write your scripts so that they do not require
650 | ; register_globals to be on; Using form variables as globals can easily lead
651 | ; to possible security problems, if the code is not very well thought of.
652 | ; http://php.net/register-globals
653 | register_globals = Off
654 |
655 | ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
656 | ; are registered by PHP or not. As they are deprecated, we obviously don't
657 | ; recommend you use them. They are on by default for compatibility reasons but
658 | ; they are not recommended on production servers.
659 | ; Default Value: On
660 | ; Development Value: Off
661 | ; Production Value: Off
662 | ; http://php.net/register-long-arrays
663 | register_long_arrays = Off
664 |
665 | ; This directive determines whether PHP registers $argv & $argc each time it
666 | ; runs. $argv contains an array of all the arguments passed to PHP when a script
667 | ; is invoked. $argc contains an integer representing the number of arguments
668 | ; that were passed when the script was invoked. These arrays are extremely
669 | ; useful when running scripts from the command line. When this directive is
670 | ; enabled, registering these variables consumes CPU cycles and memory each time
671 | ; a script is executed. For performance reasons, this feature should be disabled
672 | ; on production servers.
673 | ; Note: This directive is hardcoded to On for the CLI SAPI
674 | ; Default Value: On
675 | ; Development Value: Off
676 | ; Production Value: Off
677 | ; http://php.net/register-argc-argv
678 | register_argc_argv = Off
679 |
680 | ; When enabled, the SERVER and ENV variables are created when they're first
681 | ; used (Just In Time) instead of when the script starts. If these variables
682 | ; are not used within a script, having this directive on will result in a
683 | ; performance gain. The PHP directives register_globals, register_long_arrays,
684 | ; and register_argc_argv must be disabled for this directive to have any affect.
685 | ; http://php.net/auto-globals-jit
686 | auto_globals_jit = On
687 |
688 | ; Maximum size of POST data that PHP will accept.
689 | ; http://php.net/post-max-size
690 | post_max_size = 8M
691 |
692 | ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
693 | ; escape any character sequences in GET, POST, COOKIE and ENV data which might
694 | ; otherwise corrupt data being placed in resources such as databases before
695 | ; making that data available to you. Because of character encoding issues and
696 | ; non-standard SQL implementations across many databases, it's not currently
697 | ; possible for this feature to be 100% accurate. PHP's default behavior is to
698 | ; enable the feature. We strongly recommend you use the escaping mechanisms
699 | ; designed specifically for the database your using instead of relying on this
700 | ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
701 | ; scheduled for removal in PHP 6.
702 | ; Default Value: On
703 | ; Development Value: Off
704 | ; Production Value: Off
705 | ; http://php.net/magic-quotes-gpc
706 | magic_quotes_gpc = Off
707 |
708 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
709 | ; http://php.net/magic-quotes-runtime
710 | magic_quotes_runtime = Off
711 |
712 | ; Use Sybase-style magic quotes (escape ' with '' instead of \').
713 | ; http://php.net/magic-quotes-sybase
714 | magic_quotes_sybase = Off
715 |
716 | ; Automatically add files before PHP document.
717 | ; http://php.net/auto-prepend-file
718 | auto_prepend_file =
719 |
720 | ; Automatically add files after PHP document.
721 | ; http://php.net/auto-append-file
722 | auto_append_file =
723 |
724 | ; By default, PHP will output a character encoding using
725 | ; the Content-type: header. To disable sending of the charset, simply
726 | ; set it to be empty.
727 | ;
728 | ; PHP's built-in default is text/html
729 | ; http://php.net/default-mimetype
730 | default_mimetype = "text/html"
731 |
732 | ; PHP's default character set is set to empty.
733 | ; http://php.net/default-charset
734 | ;default_charset = "iso-8859-1"
735 |
736 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
737 | ; to disable this feature.
738 | ; http://php.net/always-populate-raw-post-data
739 | ;always_populate_raw_post_data = On
740 |
741 | ;;;;;;;;;;;;;;;;;;;;;;;;;
742 | ; Paths and Directories ;
743 | ;;;;;;;;;;;;;;;;;;;;;;;;;
744 |
745 | ; UNIX: "/path1:/path2"
746 | ;include_path = ".:/usr/share/php"
747 | ;
748 | ; Windows: "\path1;\path2"
749 | ;include_path = ".;c:\php\includes"
750 | ;
751 | ; PHP's default setting for include_path is ".;/path/to/php/pear"
752 | ; http://php.net/include-path
753 |
754 | ; The root of the PHP pages, used only if nonempty.
755 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
756 | ; if you are running php as a CGI under any web server (other than IIS)
757 | ; see documentation for security issues. The alternate is to use the
758 | ; cgi.force_redirect configuration below
759 | ; http://php.net/doc-root
760 | doc_root =
761 |
762 | ; The directory under which PHP opens the script using /~username used only
763 | ; if nonempty.
764 | ; http://php.net/user-dir
765 | user_dir =
766 |
767 | ; Directory in which the loadable extensions (modules) reside.
768 | ; http://php.net/extension-dir
769 | ; extension_dir = "./"
770 | ; On windows:
771 | ; extension_dir = "ext"
772 |
773 | ; Whether or not to enable the dl() function. The dl() function does NOT work
774 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
775 | ; disabled on them.
776 | ; http://php.net/enable-dl
777 | enable_dl = Off
778 |
779 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
780 | ; most web servers. Left undefined, PHP turns this on by default. You can
781 | ; turn it off here AT YOUR OWN RISK
782 | ; **You CAN safely turn this off for IIS, in fact, you MUST.**
783 | ; http://php.net/cgi.force-redirect
784 | ;cgi.force_redirect = 1
785 |
786 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
787 | ; every request. PHP's default behavior is to disable this feature.
788 | ;cgi.nph = 1
789 |
790 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
791 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
792 | ; will look for to know it is OK to continue execution. Setting this variable MAY
793 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
794 | ; http://php.net/cgi.redirect-status-env
795 | ;cgi.redirect_status_env = ;
796 |
797 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
798 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
799 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
800 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
801 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
802 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
803 | ; http://php.net/cgi.fix-pathinfo
804 | ;cgi.fix_pathinfo=1
805 |
806 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
807 | ; security tokens of the calling client. This allows IIS to define the
808 | ; security context that the request runs under. mod_fastcgi under Apache
809 | ; does not currently support this feature (03/17/2002)
810 | ; Set to 1 if running under IIS. Default is zero.
811 | ; http://php.net/fastcgi.impersonate
812 | ;fastcgi.impersonate = 1;
813 |
814 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable
815 | ; this feature.
816 | ;fastcgi.logging = 0
817 |
818 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
819 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
820 | ; is supported by Apache. When this option is set to 1 PHP will send
821 | ; RFC2616 compliant header.
822 | ; Default is zero.
823 | ; http://php.net/cgi.rfc2616-headers
824 | ;cgi.rfc2616_headers = 0
825 |
826 | ;;;;;;;;;;;;;;;;
827 | ; File Uploads ;
828 | ;;;;;;;;;;;;;;;;
829 |
830 | ; Whether to allow HTTP file uploads.
831 | ; http://php.net/file-uploads
832 | file_uploads = On
833 |
834 | ; Temporary directory for HTTP uploaded files (will use system default if not
835 | ; specified).
836 | ; http://php.net/upload-tmp-dir
837 | ;upload_tmp_dir =
838 |
839 | ; Maximum allowed size for uploaded files.
840 | ; http://php.net/upload-max-filesize
841 | upload_max_filesize = 2M
842 |
843 | ; Maximum number of files that can be uploaded via a single request
844 | max_file_uploads = 20
845 |
846 | ;;;;;;;;;;;;;;;;;;
847 | ; Fopen wrappers ;
848 | ;;;;;;;;;;;;;;;;;;
849 |
850 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
851 | ; http://php.net/allow-url-fopen
852 | allow_url_fopen = On
853 |
854 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
855 | ; http://php.net/allow-url-include
856 | allow_url_include = Off
857 |
858 | ; Define the anonymous ftp password (your email address). PHP's default setting
859 | ; for this is empty.
860 | ; http://php.net/from
861 | ;from="john@doe.com"
862 |
863 | ; Define the User-Agent string. PHP's default setting for this is empty.
864 | ; http://php.net/user-agent
865 | ;user_agent="PHP"
866 |
867 | ; Default timeout for socket based streams (seconds)
868 | ; http://php.net/default-socket-timeout
869 | default_socket_timeout = 60
870 |
871 | ; If your scripts have to deal with files from Macintosh systems,
872 | ; or you are running on a Mac and need to deal with files from
873 | ; unix or win32 systems, setting this flag will cause PHP to
874 | ; automatically detect the EOL character in those files so that
875 | ; fgets() and file() will work regardless of the source of the file.
876 | ; http://php.net/auto-detect-line-endings
877 | ;auto_detect_line_endings = Off
878 |
879 | ;;;;;;;;;;;;;;;;;;;;;;
880 | ; Dynamic Extensions ;
881 | ;;;;;;;;;;;;;;;;;;;;;;
882 |
883 | ; If you wish to have an extension loaded automatically, use the following
884 | ; syntax:
885 | ;
886 | ; extension=modulename.extension
887 | ;
888 | ; For example, on Windows:
889 | ;
890 | ; extension=msql.dll
891 | ;
892 | ; ... or under UNIX:
893 | ;
894 | ; extension=msql.so
895 | ;
896 | ; ... or with a path:
897 | ;
898 | ; extension=/path/to/extension/msql.so
899 | ;
900 | ; If you only provide the name of the extension, PHP will look for it in its
901 | ; default extension directory.
902 | ;
903 |
904 | ;;;;;;;;;;;;;;;;;;;
905 | ; Module Settings ;
906 | ;;;;;;;;;;;;;;;;;;;
907 |
908 | [Date]
909 | ; Defines the default timezone used by the date functions
910 | ; http://php.net/date.timezone
911 | date.timezone = Europe/Berlin
912 |
913 | ; http://php.net/date.default-latitude
914 | ;date.default_latitude = 31.7667
915 |
916 | ; http://php.net/date.default-longitude
917 | ;date.default_longitude = 35.2333
918 |
919 | ; http://php.net/date.sunrise-zenith
920 | ;date.sunrise_zenith = 90.583333
921 |
922 | ; http://php.net/date.sunset-zenith
923 | ;date.sunset_zenith = 90.583333
924 |
925 | [filter]
926 | ; http://php.net/filter.default
927 | ;filter.default = unsafe_raw
928 |
929 | ; http://php.net/filter.default-flags
930 | ;filter.default_flags =
931 |
932 | [iconv]
933 | ;iconv.input_encoding = ISO-8859-1
934 | ;iconv.internal_encoding = ISO-8859-1
935 | ;iconv.output_encoding = ISO-8859-1
936 |
937 | [intl]
938 | ;intl.default_locale =
939 | ; This directive allows you to produce PHP errors when some error
940 | ; happens within intl functions. The value is the level of the error produced.
941 | ; Default is 0, which does not produce any errors.
942 | ;intl.error_level = E_WARNING
943 |
944 | [sqlite]
945 | ; http://php.net/sqlite.assoc-case
946 | ;sqlite.assoc_case = 0
947 |
948 | [sqlite3]
949 | ;sqlite3.extension_dir =
950 |
951 | [Pcre]
952 | ;PCRE library backtracking limit.
953 | ; http://php.net/pcre.backtrack-limit
954 | ;pcre.backtrack_limit=100000
955 |
956 | ;PCRE library recursion limit.
957 | ;Please note that if you set this value to a high number you may consume all
958 | ;the available process stack and eventually crash PHP (due to reaching the
959 | ;stack size limit imposed by the Operating System).
960 | ; http://php.net/pcre.recursion-limit
961 | ;pcre.recursion_limit=100000
962 |
963 | [Pdo]
964 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
965 | ; http://php.net/pdo-odbc.connection-pooling
966 | ;pdo_odbc.connection_pooling=strict
967 |
968 | ;pdo_odbc.db2_instance_name
969 |
970 | [Pdo_mysql]
971 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
972 | ; http://php.net/pdo_mysql.cache_size
973 | pdo_mysql.cache_size = 2000
974 |
975 | ; Default socket name for local MySQL connects. If empty, uses the built-in
976 | ; MySQL defaults.
977 | ; http://php.net/pdo_mysql.default-socket
978 | pdo_mysql.default_socket=
979 |
980 | [Phar]
981 | ; http://php.net/phar.readonly
982 | ;phar.readonly = On
983 |
984 | ; http://php.net/phar.require-hash
985 | ;phar.require_hash = On
986 |
987 | ;phar.cache_list =
988 |
989 | [Syslog]
990 | ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
991 | ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
992 | ; runtime, you can define these variables by calling define_syslog_variables().
993 | ; http://php.net/define-syslog-variables
994 | define_syslog_variables = Off
995 |
996 | [mail function]
997 | ; For Win32 only.
998 | ; http://php.net/smtp
999 | SMTP = localhost
1000 | ; http://php.net/smtp-port
1001 | smtp_port = 25
1002 |
1003 | ; For Win32 only.
1004 | ; http://php.net/sendmail-from
1005 | ;sendmail_from = me@example.com
1006 |
1007 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
1008 | ; http://php.net/sendmail-path
1009 | ;sendmail_path =
1010 |
1011 | ; Force the addition of the specified parameters to be passed as extra parameters
1012 | ; to the sendmail binary. These parameters will always replace the value of
1013 | ; the 5th parameter to mail(), even in safe mode.
1014 | ;mail.force_extra_parameters =
1015 |
1016 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
1017 | mail.add_x_header = On
1018 |
1019 | ; Log all mail() calls including the full path of the script, line #, to address and headers
1020 | ;mail.log =
1021 |
1022 | [SQL]
1023 | ; http://php.net/sql.safe-mode
1024 | sql.safe_mode = Off
1025 |
1026 | [ODBC]
1027 | ; http://php.net/odbc.default-db
1028 | ;odbc.default_db = Not yet implemented
1029 |
1030 | ; http://php.net/odbc.default-user
1031 | ;odbc.default_user = Not yet implemented
1032 |
1033 | ; http://php.net/odbc.default-pw
1034 | ;odbc.default_pw = Not yet implemented
1035 |
1036 | ; Controls the ODBC cursor model.
1037 | ; Default: SQL_CURSOR_STATIC (default).
1038 | ;odbc.default_cursortype
1039 |
1040 | ; Allow or prevent persistent links.
1041 | ; http://php.net/odbc.allow-persistent
1042 | odbc.allow_persistent = On
1043 |
1044 | ; Check that a connection is still valid before reuse.
1045 | ; http://php.net/odbc.check-persistent
1046 | odbc.check_persistent = On
1047 |
1048 | ; Maximum number of persistent links. -1 means no limit.
1049 | ; http://php.net/odbc.max-persistent
1050 | odbc.max_persistent = -1
1051 |
1052 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1053 | ; http://php.net/odbc.max-links
1054 | odbc.max_links = -1
1055 |
1056 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means
1057 | ; passthru.
1058 | ; http://php.net/odbc.defaultlrl
1059 | odbc.defaultlrl = 4096
1060 |
1061 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
1062 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
1063 | ; of odbc.defaultlrl and odbc.defaultbinmode
1064 | ; http://php.net/odbc.defaultbinmode
1065 | odbc.defaultbinmode = 1
1066 |
1067 | ;birdstep.max_links = -1
1068 |
1069 | [Interbase]
1070 | ; Allow or prevent persistent links.
1071 | ibase.allow_persistent = 1
1072 |
1073 | ; Maximum number of persistent links. -1 means no limit.
1074 | ibase.max_persistent = -1
1075 |
1076 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1077 | ibase.max_links = -1
1078 |
1079 | ; Default database name for ibase_connect().
1080 | ;ibase.default_db =
1081 |
1082 | ; Default username for ibase_connect().
1083 | ;ibase.default_user =
1084 |
1085 | ; Default password for ibase_connect().
1086 | ;ibase.default_password =
1087 |
1088 | ; Default charset for ibase_connect().
1089 | ;ibase.default_charset =
1090 |
1091 | ; Default timestamp format.
1092 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1093 |
1094 | ; Default date format.
1095 | ibase.dateformat = "%Y-%m-%d"
1096 |
1097 | ; Default time format.
1098 | ibase.timeformat = "%H:%M:%S"
1099 |
1100 | [MySQL]
1101 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1102 | ; http://php.net/mysql.allow_local_infile
1103 | mysql.allow_local_infile = On
1104 |
1105 | ; Allow or prevent persistent links.
1106 | ; http://php.net/mysql.allow-persistent
1107 | mysql.allow_persistent = On
1108 |
1109 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1110 | ; http://php.net/mysql.cache_size
1111 | mysql.cache_size = 2000
1112 |
1113 | ; Maximum number of persistent links. -1 means no limit.
1114 | ; http://php.net/mysql.max-persistent
1115 | mysql.max_persistent = -1
1116 |
1117 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1118 | ; http://php.net/mysql.max-links
1119 | mysql.max_links = -1
1120 |
1121 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use
1122 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1123 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1124 | ; at MYSQL_PORT.
1125 | ; http://php.net/mysql.default-port
1126 | mysql.default_port =
1127 |
1128 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1129 | ; MySQL defaults.
1130 | ; http://php.net/mysql.default-socket
1131 | mysql.default_socket =
1132 |
1133 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1134 | ; http://php.net/mysql.default-host
1135 | mysql.default_host =
1136 |
1137 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1138 | ; http://php.net/mysql.default-user
1139 | mysql.default_user =
1140 |
1141 | ; Default password for mysql_connect() (doesn't apply in safe mode).
1142 | ; Note that this is generally a *bad* idea to store passwords in this file.
1143 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1144 | ; and reveal this password! And of course, any users with read access to this
1145 | ; file will be able to reveal the password as well.
1146 | ; http://php.net/mysql.default-password
1147 | mysql.default_password =
1148 |
1149 | ; Maximum time (in seconds) for connect timeout. -1 means no limit
1150 | ; http://php.net/mysql.connect-timeout
1151 | mysql.connect_timeout = 60
1152 |
1153 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1154 | ; SQL-Errors will be displayed.
1155 | ; http://php.net/mysql.trace-mode
1156 | mysql.trace_mode = Off
1157 |
1158 | [MySQLi]
1159 |
1160 | ; Maximum number of persistent links. -1 means no limit.
1161 | ; http://php.net/mysqli.max-persistent
1162 | mysqli.max_persistent = -1
1163 |
1164 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1165 | ; http://php.net/mysqli.allow_local_infile
1166 | ;mysqli.allow_local_infile = On
1167 |
1168 | ; Allow or prevent persistent links.
1169 | ; http://php.net/mysqli.allow-persistent
1170 | mysqli.allow_persistent = On
1171 |
1172 | ; Maximum number of links. -1 means no limit.
1173 | ; http://php.net/mysqli.max-links
1174 | mysqli.max_links = -1
1175 |
1176 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1177 | ; http://php.net/mysqli.cache_size
1178 | mysqli.cache_size = 2000
1179 |
1180 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1181 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1182 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1183 | ; at MYSQL_PORT.
1184 | ; http://php.net/mysqli.default-port
1185 | mysqli.default_port = 3306
1186 |
1187 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1188 | ; MySQL defaults.
1189 | ; http://php.net/mysqli.default-socket
1190 | mysqli.default_socket =
1191 |
1192 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1193 | ; http://php.net/mysqli.default-host
1194 | mysqli.default_host =
1195 |
1196 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1197 | ; http://php.net/mysqli.default-user
1198 | mysqli.default_user =
1199 |
1200 | ; Default password for mysqli_connect() (doesn't apply in safe mode).
1201 | ; Note that this is generally a *bad* idea to store passwords in this file.
1202 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1203 | ; and reveal this password! And of course, any users with read access to this
1204 | ; file will be able to reveal the password as well.
1205 | ; http://php.net/mysqli.default-pw
1206 | mysqli.default_pw =
1207 |
1208 | ; Allow or prevent reconnect
1209 | mysqli.reconnect = Off
1210 |
1211 | [mysqlnd]
1212 | ; Enable / Disable collection of general statstics by mysqlnd which can be
1213 | ; used to tune and monitor MySQL operations.
1214 | ; http://php.net/mysqlnd.collect_statistics
1215 | mysqlnd.collect_statistics = On
1216 |
1217 | ; Enable / Disable collection of memory usage statstics by mysqlnd which can be
1218 | ; used to tune and monitor MySQL operations.
1219 | ; http://php.net/mysqlnd.collect_memory_statistics
1220 | mysqlnd.collect_memory_statistics = Off
1221 |
1222 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1223 | ; http://php.net/mysqlnd.net_cmd_buffer_size
1224 | ;mysqlnd.net_cmd_buffer_size = 2048
1225 |
1226 | ; Size of a pre-allocated buffer used for reading data sent by the server in
1227 | ; bytes.
1228 | ; http://php.net/mysqlnd.net_read_buffer_size
1229 | ;mysqlnd.net_read_buffer_size = 32768
1230 |
1231 | [OCI8]
1232 |
1233 | ; Connection: Enables privileged connections using external
1234 | ; credentials (OCI_SYSOPER, OCI_SYSDBA)
1235 | ; http://php.net/oci8.privileged-connect
1236 | ;oci8.privileged_connect = Off
1237 |
1238 | ; Connection: The maximum number of persistent OCI8 connections per
1239 | ; process. Using -1 means no limit.
1240 | ; http://php.net/oci8.max-persistent
1241 | ;oci8.max_persistent = -1
1242 |
1243 | ; Connection: The maximum number of seconds a process is allowed to
1244 | ; maintain an idle persistent connection. Using -1 means idle
1245 | ; persistent connections will be maintained forever.
1246 | ; http://php.net/oci8.persistent-timeout
1247 | ;oci8.persistent_timeout = -1
1248 |
1249 | ; Connection: The number of seconds that must pass before issuing a
1250 | ; ping during oci_pconnect() to check the connection validity. When
1251 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1252 | ; pings completely.
1253 | ; http://php.net/oci8.ping-interval
1254 | ;oci8.ping_interval = 60
1255 |
1256 | ; Connection: Set this to a user chosen connection class to be used
1257 | ; for all pooled server requests with Oracle 11g Database Resident
1258 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to
1259 | ; the same string for all web servers running the same application,
1260 | ; the database pool must be configured, and the connection string must
1261 | ; specify to use a pooled server.
1262 | ;oci8.connection_class =
1263 |
1264 | ; High Availability: Using On lets PHP receive Fast Application
1265 | ; Notification (FAN) events generated when a database node fails. The
1266 | ; database must also be configured to post FAN events.
1267 | ;oci8.events = Off
1268 |
1269 | ; Tuning: This option enables statement caching, and specifies how
1270 | ; many statements to cache. Using 0 disables statement caching.
1271 | ; http://php.net/oci8.statement-cache-size
1272 | ;oci8.statement_cache_size = 20
1273 |
1274 | ; Tuning: Enables statement prefetching and sets the default number of
1275 | ; rows that will be fetched automatically after statement execution.
1276 | ; http://php.net/oci8.default-prefetch
1277 | ;oci8.default_prefetch = 100
1278 |
1279 | ; Compatibility. Using On means oci_close() will not close
1280 | ; oci_connect() and oci_new_connect() connections.
1281 | ; http://php.net/oci8.old-oci-close-semantics
1282 | ;oci8.old_oci_close_semantics = Off
1283 |
1284 | [PostgresSQL]
1285 | ; Allow or prevent persistent links.
1286 | ; http://php.net/pgsql.allow-persistent
1287 | pgsql.allow_persistent = On
1288 |
1289 | ; Detect broken persistent links always with pg_pconnect().
1290 | ; Auto reset feature requires a little overheads.
1291 | ; http://php.net/pgsql.auto-reset-persistent
1292 | pgsql.auto_reset_persistent = Off
1293 |
1294 | ; Maximum number of persistent links. -1 means no limit.
1295 | ; http://php.net/pgsql.max-persistent
1296 | pgsql.max_persistent = -1
1297 |
1298 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1299 | ; http://php.net/pgsql.max-links
1300 | pgsql.max_links = -1
1301 |
1302 | ; Ignore PostgreSQL backends Notice message or not.
1303 | ; Notice message logging require a little overheads.
1304 | ; http://php.net/pgsql.ignore-notice
1305 | pgsql.ignore_notice = 0
1306 |
1307 | ; Log PostgreSQL backends Notice message or not.
1308 | ; Unless pgsql.ignore_notice=0, module cannot log notice message.
1309 | ; http://php.net/pgsql.log-notice
1310 | pgsql.log_notice = 0
1311 |
1312 | [Sybase-CT]
1313 | ; Allow or prevent persistent links.
1314 | ; http://php.net/sybct.allow-persistent
1315 | sybct.allow_persistent = On
1316 |
1317 | ; Maximum number of persistent links. -1 means no limit.
1318 | ; http://php.net/sybct.max-persistent
1319 | sybct.max_persistent = -1
1320 |
1321 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1322 | ; http://php.net/sybct.max-links
1323 | sybct.max_links = -1
1324 |
1325 | ; Minimum server message severity to display.
1326 | ; http://php.net/sybct.min-server-severity
1327 | sybct.min_server_severity = 10
1328 |
1329 | ; Minimum client message severity to display.
1330 | ; http://php.net/sybct.min-client-severity
1331 | sybct.min_client_severity = 10
1332 |
1333 | ; Set per-context timeout
1334 | ; http://php.net/sybct.timeout
1335 | ;sybct.timeout=
1336 |
1337 | ;sybct.packet_size
1338 |
1339 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
1340 | ; Default: one minute
1341 | ;sybct.login_timeout=
1342 |
1343 | ; The name of the host you claim to be connecting from, for display by sp_who.
1344 | ; Default: none
1345 | ;sybct.hostname=
1346 |
1347 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
1348 | ; Default: 0
1349 | ;sybct.deadlock_retry_count=
1350 |
1351 | [bcmath]
1352 | ; Number of decimal digits for all bcmath functions.
1353 | ; http://php.net/bcmath.scale
1354 | bcmath.scale = 0
1355 |
1356 | [browscap]
1357 | ; http://php.net/browscap
1358 | ;browscap = extra/browscap.ini
1359 |
1360 | [Session]
1361 | ; Handler used to store/retrieve data.
1362 | ; http://php.net/session.save-handler
1363 | session.save_handler = files
1364 |
1365 | ; Argument passed to save_handler. In the case of files, this is the path
1366 | ; where data files are stored. Note: Windows users have to change this
1367 | ; variable in order to use PHP's session functions.
1368 | ;
1369 | ; The path can be defined as:
1370 | ;
1371 | ; session.save_path = "N;/path"
1372 | ;
1373 | ; where N is an integer. Instead of storing all the session files in
1374 | ; /path, what this will do is use subdirectories N-levels deep, and
1375 | ; store the session data in those directories. This is useful if you
1376 | ; or your OS have problems with lots of files in one directory, and is
1377 | ; a more efficient layout for servers that handle lots of sessions.
1378 | ;
1379 | ; NOTE 1: PHP will not create this directory structure automatically.
1380 | ; You can use the script in the ext/session dir for that purpose.
1381 | ; NOTE 2: See the section on garbage collection below if you choose to
1382 | ; use subdirectories for session storage
1383 | ;
1384 | ; The file storage module creates files using mode 600 by default.
1385 | ; You can change that by using
1386 | ;
1387 | ; session.save_path = "N;MODE;/path"
1388 | ;
1389 | ; where MODE is the octal representation of the mode. Note that this
1390 | ; does not overwrite the process's umask.
1391 | ; http://php.net/session.save-path
1392 | ;session.save_path = "/tmp"
1393 |
1394 | ; Whether to use cookies.
1395 | ; http://php.net/session.use-cookies
1396 | session.use_cookies = 1
1397 |
1398 | ; http://php.net/session.cookie-secure
1399 | ;session.cookie_secure =
1400 |
1401 | ; This option forces PHP to fetch and use a cookie for storing and maintaining
1402 | ; the session id. We encourage this operation as it's very helpful in combatting
1403 | ; session hijacking when not specifying and managing your own session id. It is
1404 | ; not the end all be all of session hijacking defense, but it's a good start.
1405 | ; http://php.net/session.use-only-cookies
1406 | session.use_only_cookies = 1
1407 |
1408 | ; Name of the session (used as cookie name).
1409 | ; http://php.net/session.name
1410 | session.name = PHPSESSID
1411 |
1412 | ; Initialize session on request startup.
1413 | ; http://php.net/session.auto-start
1414 | session.auto_start = 0
1415 |
1416 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
1417 | ; http://php.net/session.cookie-lifetime
1418 | session.cookie_lifetime = 0
1419 |
1420 | ; The path for which the cookie is valid.
1421 | ; http://php.net/session.cookie-path
1422 | session.cookie_path = /
1423 |
1424 | ; The domain for which the cookie is valid.
1425 | ; http://php.net/session.cookie-domain
1426 | session.cookie_domain =
1427 |
1428 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1429 | ; http://php.net/session.cookie-httponly
1430 | session.cookie_httponly =
1431 |
1432 | ; Handler used to serialize data. php is the standard serializer of PHP.
1433 | ; http://php.net/session.serialize-handler
1434 | session.serialize_handler = php
1435 |
1436 | ; Defines the probability that the 'garbage collection' process is started
1437 | ; on every session initialization. The probability is calculated by using
1438 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1439 | ; and gc_divisor is the denominator in the equation. Setting this value to 1
1440 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1441 | ; the gc will run on any give request.
1442 | ; Default Value: 1
1443 | ; Development Value: 1
1444 | ; Production Value: 1
1445 | ; http://php.net/session.gc-probability
1446 | session.gc_probability = 0
1447 |
1448 | ; Defines the probability that the 'garbage collection' process is started on every
1449 | ; session initialization. The probability is calculated by using the following equation:
1450 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1451 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1452 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1453 | ; the gc will run on any give request. Increasing this value to 1000 will give you
1454 | ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1455 | ; this is a more efficient approach.
1456 | ; Default Value: 100
1457 | ; Development Value: 1000
1458 | ; Production Value: 1000
1459 | ; http://php.net/session.gc-divisor
1460 | session.gc_divisor = 1000
1461 |
1462 | ; After this number of seconds, stored data will be seen as 'garbage' and
1463 | ; cleaned up by the garbage collection process.
1464 | ; http://php.net/session.gc-maxlifetime
1465 | session.gc_maxlifetime = 1440
1466 |
1467 | ; NOTE: If you are using the subdirectory option for storing session files
1468 | ; (see session.save_path above), then garbage collection does *not*
1469 | ; happen automatically. You will need to do your own garbage
1470 | ; collection through a shell script, cron entry, or some other method.
1471 | ; For example, the following script would is the equivalent of
1472 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1473 | ; cd /path/to/sessions; find -cmin +24 | xargs rm
1474 |
1475 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to
1476 | ; to initialize a session variable in the global scope, even when register_globals
1477 | ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
1478 | ; You can disable the feature and the warning separately. At this time,
1479 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature
1480 | ; introduces some serious security problems if not handled correctly. It's
1481 | ; recommended that you do not use this feature on production servers. But you
1482 | ; should enable this on development servers and enable the warning as well. If you
1483 | ; do not enable the feature on development servers, you won't be warned when it's
1484 | ; used and debugging errors caused by this can be difficult to track down.
1485 | ; Default Value: On
1486 | ; Development Value: On
1487 | ; Production Value: Off
1488 | ; http://php.net/session.bug-compat-42
1489 | session.bug_compat_42 = Off
1490 |
1491 | ; This setting controls whether or not you are warned by PHP when initializing a
1492 | ; session value into the global space. session.bug_compat_42 must be enabled before
1493 | ; these warnings can be issued by PHP. See the directive above for more information.
1494 | ; Default Value: On
1495 | ; Development Value: On
1496 | ; Production Value: Off
1497 | ; http://php.net/session.bug-compat-warn
1498 | session.bug_compat_warn = Off
1499 |
1500 | ; Check HTTP Referer to invalidate externally stored URLs containing ids.
1501 | ; HTTP_REFERER has to contain this substring for the session to be
1502 | ; considered as valid.
1503 | ; http://php.net/session.referer-check
1504 | session.referer_check =
1505 |
1506 | ; How many bytes to read from the file.
1507 | ; http://php.net/session.entropy-length
1508 | session.entropy_length = 0
1509 |
1510 | ; Specified here to create the session id.
1511 | ; http://php.net/session.entropy-file
1512 | ; On systems that don't have /dev/urandom /dev/arandom can be used
1513 | ; On windows, setting the entropy_length setting will activate the
1514 | ; Windows random source (using the CryptoAPI)
1515 | ;session.entropy_file = /dev/urandom
1516 |
1517 | ; Set to {nocache,private,public,} to determine HTTP caching aspects
1518 | ; or leave this empty to avoid sending anti-caching headers.
1519 | ; http://php.net/session.cache-limiter
1520 | session.cache_limiter = nocache
1521 |
1522 | ; Document expires after n minutes.
1523 | ; http://php.net/session.cache-expire
1524 | session.cache_expire = 180
1525 |
1526 | ; trans sid support is disabled by default.
1527 | ; Use of trans sid may risk your users security.
1528 | ; Use this option with caution.
1529 | ; - User may send URL contains active session ID
1530 | ; to other person via. email/irc/etc.
1531 | ; - URL that contains active session ID may be stored
1532 | ; in publically accessible computer.
1533 | ; - User may access your site with the same session ID
1534 | ; always using URL stored in browser's history or bookmarks.
1535 | ; http://php.net/session.use-trans-sid
1536 | session.use_trans_sid = 0
1537 |
1538 | ; Select a hash function for use in generating session ids.
1539 | ; Possible Values
1540 | ; 0 (MD5 128 bits)
1541 | ; 1 (SHA-1 160 bits)
1542 | ; This option may also be set to the name of any hash function supported by
1543 | ; the hash extension. A list of available hashes is returned by the hash_algos()
1544 | ; function.
1545 | ; http://php.net/session.hash-function
1546 | session.hash_function = 0
1547 |
1548 | ; Define how many bits are stored in each character when converting
1549 | ; the binary hash data to something readable.
1550 | ; Possible values:
1551 | ; 4 (4 bits: 0-9, a-f)
1552 | ; 5 (5 bits: 0-9, a-v)
1553 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
1554 | ; Default Value: 4
1555 | ; Development Value: 5
1556 | ; Production Value: 5
1557 | ; http://php.net/session.hash-bits-per-character
1558 | session.hash_bits_per_character = 5
1559 |
1560 | ; The URL rewriter will look for URLs in a defined set of HTML tags.
1561 | ; form/fieldset are special; if you include them here, the rewriter will
1562 | ; add a hidden field with the info which is otherwise appended
1563 | ; to URLs. If you want XHTML conformity, remove the form entry.
1564 | ; Note that all valid entries require a "=", even if no value follows.
1565 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
1566 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1567 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1568 | ; http://php.net/url-rewriter.tags
1569 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1570 |
1571 | [MSSQL]
1572 | ; Allow or prevent persistent links.
1573 | mssql.allow_persistent = On
1574 |
1575 | ; Maximum number of persistent links. -1 means no limit.
1576 | mssql.max_persistent = -1
1577 |
1578 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1579 | mssql.max_links = -1
1580 |
1581 | ; Minimum error severity to display.
1582 | mssql.min_error_severity = 10
1583 |
1584 | ; Minimum message severity to display.
1585 | mssql.min_message_severity = 10
1586 |
1587 | ; Compatibility mode with old versions of PHP 3.0.
1588 | mssql.compatability_mode = Off
1589 |
1590 | ; Connect timeout
1591 | ;mssql.connect_timeout = 5
1592 |
1593 | ; Query timeout
1594 | ;mssql.timeout = 60
1595 |
1596 | ; Valid range 0 - 2147483647. Default = 4096.
1597 | ;mssql.textlimit = 4096
1598 |
1599 | ; Valid range 0 - 2147483647. Default = 4096.
1600 | ;mssql.textsize = 4096
1601 |
1602 | ; Limits the number of records in each batch. 0 = all records in one batch.
1603 | ;mssql.batchsize = 0
1604 |
1605 | ; Specify how datetime and datetim4 columns are returned
1606 | ; On => Returns data converted to SQL server settings
1607 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss
1608 | ;mssql.datetimeconvert = On
1609 |
1610 | ; Use NT authentication when connecting to the server
1611 | mssql.secure_connection = Off
1612 |
1613 | ; Specify max number of processes. -1 = library default
1614 | ; msdlib defaults to 25
1615 | ; FreeTDS defaults to 4096
1616 | ;mssql.max_procs = -1
1617 |
1618 | ; Specify client character set.
1619 | ; If empty or not set the client charset from freetds.comf is used
1620 | ; This is only used when compiled with FreeTDS
1621 | ;mssql.charset = "ISO-8859-1"
1622 |
1623 | [Assertion]
1624 | ; Assert(expr); active by default.
1625 | ; http://php.net/assert.active
1626 | ;assert.active = On
1627 |
1628 | ; Issue a PHP warning for each failed assertion.
1629 | ; http://php.net/assert.warning
1630 | ;assert.warning = On
1631 |
1632 | ; Don't bail out by default.
1633 | ; http://php.net/assert.bail
1634 | ;assert.bail = Off
1635 |
1636 | ; User-function to be called if an assertion fails.
1637 | ; http://php.net/assert.callback
1638 | ;assert.callback = 0
1639 |
1640 | ; Eval the expression with current error_reporting(). Set to true if you want
1641 | ; error_reporting(0) around the eval().
1642 | ; http://php.net/assert.quiet-eval
1643 | ;assert.quiet_eval = 0
1644 |
1645 | [COM]
1646 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
1647 | ; http://php.net/com.typelib-file
1648 | ;com.typelib_file =
1649 |
1650 | ; allow Distributed-COM calls
1651 | ; http://php.net/com.allow-dcom
1652 | ;com.allow_dcom = true
1653 |
1654 | ; autoregister constants of a components typlib on com_load()
1655 | ; http://php.net/com.autoregister-typelib
1656 | ;com.autoregister_typelib = true
1657 |
1658 | ; register constants casesensitive
1659 | ; http://php.net/com.autoregister-casesensitive
1660 | ;com.autoregister_casesensitive = false
1661 |
1662 | ; show warnings on duplicate constant registrations
1663 | ; http://php.net/com.autoregister-verbose
1664 | ;com.autoregister_verbose = true
1665 |
1666 | ; The default character set code-page to use when passing strings to and from COM objects.
1667 | ; Default: system ANSI code page
1668 | ;com.code_page=
1669 |
1670 | [mbstring]
1671 | ; language for internal character representation.
1672 | ; http://php.net/mbstring.language
1673 | ;mbstring.language = Japanese
1674 |
1675 | ; internal/script encoding.
1676 | ; Some encoding cannot work as internal encoding.
1677 | ; (e.g. SJIS, BIG5, ISO-2022-*)
1678 | ; http://php.net/mbstring.internal-encoding
1679 | ;mbstring.internal_encoding = EUC-JP
1680 |
1681 | ; http input encoding.
1682 | ; http://php.net/mbstring.http-input
1683 | ;mbstring.http_input = auto
1684 |
1685 | ; http output encoding. mb_output_handler must be
1686 | ; registered as output buffer to function
1687 | ; http://php.net/mbstring.http-output
1688 | ;mbstring.http_output = SJIS
1689 |
1690 | ; enable automatic encoding translation according to
1691 | ; mbstring.internal_encoding setting. Input chars are
1692 | ; converted to internal encoding by setting this to On.
1693 | ; Note: Do _not_ use automatic encoding translation for
1694 | ; portable libs/applications.
1695 | ; http://php.net/mbstring.encoding-translation
1696 | ;mbstring.encoding_translation = Off
1697 |
1698 | ; automatic encoding detection order.
1699 | ; auto means
1700 | ; http://php.net/mbstring.detect-order
1701 | ;mbstring.detect_order = auto
1702 |
1703 | ; substitute_character used when character cannot be converted
1704 | ; one from another
1705 | ; http://php.net/mbstring.substitute-character
1706 | ;mbstring.substitute_character = none;
1707 |
1708 | ; overload(replace) single byte functions by mbstring functions.
1709 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1710 | ; etc. Possible values are 0,1,2,4 or combination of them.
1711 | ; For example, 7 for overload everything.
1712 | ; 0: No overload
1713 | ; 1: Overload mail() function
1714 | ; 2: Overload str*() functions
1715 | ; 4: Overload ereg*() functions
1716 | ; http://php.net/mbstring.func-overload
1717 | ;mbstring.func_overload = 0
1718 |
1719 | ; enable strict encoding detection.
1720 | ;mbstring.strict_detection = Off
1721 |
1722 | ; This directive specifies the regex pattern of content types for which mb_output_handler()
1723 | ; is activated.
1724 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1725 | ;mbstring.http_output_conv_mimetype=
1726 |
1727 | ; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte
1728 | ; Default: ""
1729 | ;mbstring.script_encoding=
1730 |
1731 | [gd]
1732 | ; Tell the jpeg decode to ignore warnings and try to create
1733 | ; a gd image. The warning will then be displayed as notices
1734 | ; disabled by default
1735 | ; http://php.net/gd.jpeg-ignore-warning
1736 | ;gd.jpeg_ignore_warning = 0
1737 |
1738 | [exif]
1739 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
1740 | ; With mbstring support this will automatically be converted into the encoding
1741 | ; given by corresponding encode setting. When empty mbstring.internal_encoding
1742 | ; is used. For the decode settings you can distinguish between motorola and
1743 | ; intel byte order. A decode setting cannot be empty.
1744 | ; http://php.net/exif.encode-unicode
1745 | ;exif.encode_unicode = ISO-8859-15
1746 |
1747 | ; http://php.net/exif.decode-unicode-motorola
1748 | ;exif.decode_unicode_motorola = UCS-2BE
1749 |
1750 | ; http://php.net/exif.decode-unicode-intel
1751 | ;exif.decode_unicode_intel = UCS-2LE
1752 |
1753 | ; http://php.net/exif.encode-jis
1754 | ;exif.encode_jis =
1755 |
1756 | ; http://php.net/exif.decode-jis-motorola
1757 | ;exif.decode_jis_motorola = JIS
1758 |
1759 | ; http://php.net/exif.decode-jis-intel
1760 | ;exif.decode_jis_intel = JIS
1761 |
1762 | [Tidy]
1763 | ; The path to a default tidy configuration file to use when using tidy
1764 | ; http://php.net/tidy.default-config
1765 | ;tidy.default_config = /usr/local/lib/php/default.tcfg
1766 |
1767 | ; Should tidy clean and repair output automatically?
1768 | ; WARNING: Do not use this option if you are generating non-html content
1769 | ; such as dynamic images
1770 | ; http://php.net/tidy.clean-output
1771 | tidy.clean_output = Off
1772 |
1773 | [soap]
1774 | ; Enables or disables WSDL caching feature.
1775 | ; http://php.net/soap.wsdl-cache-enabled
1776 | soap.wsdl_cache_enabled=1
1777 |
1778 | ; Sets the directory name where SOAP extension will put cache files.
1779 | ; http://php.net/soap.wsdl-cache-dir
1780 | soap.wsdl_cache_dir="/tmp"
1781 |
1782 | ; (time to live) Sets the number of second while cached file will be used
1783 | ; instead of original one.
1784 | ; http://php.net/soap.wsdl-cache-ttl
1785 | soap.wsdl_cache_ttl=86400
1786 |
1787 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
1788 | soap.wsdl_cache_limit = 5
1789 |
1790 | [sysvshm]
1791 | ; A default size of the shared memory segment
1792 | ;sysvshm.init_mem = 10000
1793 |
1794 | [ldap]
1795 | ; Sets the maximum number of open links or -1 for unlimited.
1796 | ldap.max_links = -1
1797 |
1798 | [mcrypt]
1799 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open
1800 |
1801 | ; Directory where to load mcrypt algorithms
1802 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1803 | ;mcrypt.algorithms_dir=
1804 |
1805 | ; Directory where to load mcrypt modes
1806 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1807 | ;mcrypt.modes_dir=
1808 |
1809 | [dba]
1810 | ;dba.default_handler=
1811 |
1812 | [opcache]
1813 | ; Determines if Zend OPCache is enabled
1814 | opcache.enable=1
1815 |
1816 | ; Determines if Zend OPCache is enabled for the CLI version of PHP
1817 | opcache.enable_cli=1
1818 |
1819 | ; The OPcache shared memory storage size.
1820 | opcache.memory_consumption=256
1821 |
1822 | ; The amount of memory for interned strings in Mbytes.
1823 | opcache.interned_strings_buffer=16
1824 |
1825 | ; The maximum number of keys (scripts) in the OPcache hash table.
1826 | ; Only numbers between 200 and 100000 are allowed.
1827 | opcache.max_accelerated_files=20000
1828 |
1829 | ; The maximum percentage of "wasted" memory until a restart is scheduled.
1830 | ;opcache.max_wasted_percentage=5
1831 |
1832 | ; When this directive is enabled, the OPcache appends the current working
1833 | ; directory to the script key, thus eliminating possible collisions between
1834 | ; files with the same name (basename). Disabling the directive improves
1835 | ; performance, but may break existing applications.
1836 | ;opcache.use_cwd=1
1837 |
1838 | ; When disabled, you must reset the OPcache manually or restart the
1839 | ; webserver for changes to the filesystem to take effect.
1840 | ;opcache.validate_timestamps=1
1841 |
1842 | ; How often (in seconds) to check file timestamps for changes to the shared
1843 | ; memory storage allocation. ("1" means validate once per second, but only
1844 | ; once per request. "0" means always validate)
1845 | ;opcache.revalidate_freq=2
1846 |
1847 | ; Enables or disables file search in include_path optimization
1848 | ;opcache.revalidate_path=0
1849 |
1850 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the
1851 | ; size of the optimized code.
1852 | ;opcache.save_comments=1
1853 |
1854 | ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
1855 | ; may be always stored (save_comments=1), but not loaded by applications
1856 | ; that don't need them anyway.
1857 | ;opcache.load_comments=1
1858 |
1859 | ; If enabled, a fast shutdown sequence is used for the accelerated code
1860 | opcache.fast_shutdown=1
1861 |
1862 | ; Allow file existence override (file_exists, etc.) performance feature.
1863 | ;opcache.enable_file_override=0
1864 |
1865 | ; A bitmask, where each bit enables or disables the appropriate OPcache
1866 | ; passes
1867 | ;opcache.optimization_level=0xffffffff
1868 |
1869 | ;opcache.inherited_hack=1
1870 | ;opcache.dups_fix=0
1871 |
1872 | ; The location of the OPcache blacklist file (wildcards allowed).
1873 | ; Each OPcache blacklist file is a text file that holds the names of files
1874 | ; that should not be accelerated. The file format is to add each filename
1875 | ; to a new line. The filename may be a full path or just a file prefix
1876 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www
1877 | ; that start with 'x'). Line starting with a ; are ignored (comments).
1878 | ;opcache.blacklist_filename=
1879 |
1880 | ; Allows exclusion of large files from being cached. By default all files
1881 | ; are cached.
1882 | ;opcache.max_file_size=0
1883 |
1884 | ; Check the cache checksum each N requests.
1885 | ; The default value of "0" means that the checks are disabled.
1886 | ;opcache.consistency_checks=0
1887 |
1888 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache
1889 | ; is not being accessed.
1890 | ;opcache.force_restart_timeout=180
1891 |
1892 | ; OPcache error_log file name. Empty string assumes "stderr".
1893 | ;opcache.error_log=
1894 |
1895 | ; All OPcache errors go to the Web server log.
1896 | ; By default, only fatal errors (level 0) or errors (level 1) are logged.
1897 | ; You can also enable warnings (level 2), info messages (level 3) or
1898 | ; debug messages (level 4).
1899 | ;opcache.log_verbosity_level=1
1900 |
1901 | ; Preferred Shared Memory back-end. Leave empty and let the system decide.
1902 | ;opcache.preferred_memory_model=
1903 |
1904 | ; Protect the shared memory from unexpected writing during script execution.
1905 | ; Useful for internal debugging only.
1906 | ;opcache.protect_memory=0
1907 |
1908 | [curl]
1909 | ; A default value for the CURLOPT_CAINFO option. This is required to be an
1910 | ; absolute path.
1911 | ;curl.cainfo =
1912 |
1913 | [openssl]
1914 | ; The location of a Certificate Authority (CA) file on the local filesystem
1915 | ; to use when verifying the identity of SSL/TLS peers. Most users should
1916 | ; not specify a value for this directive as PHP will attempt to use the
1917 | ; OS-managed cert stores in its absence. If specified, this value may still
1918 | ; be overridden on a per-stream basis via the "cafile" SSL stream context
1919 | ; option.
1920 | ;openssl.cafile=
1921 |
1922 | ; If openssl.cafile is not specified or if the CA file is not found, the
1923 | ; directory pointed to by openssl.capath is searched for a suitable
1924 | ; certificate. This value must be a correctly hashed certificate directory.
1925 | ; Most users should not specify a value for this directive as PHP will
1926 | ; attempt to use the OS-managed cert stores in its absence. If specified,
1927 | ; this value may still be overridden on a per-stream basis via the "capath"
1928 | ; SSL stream context option.
1929 | ;openssl.capath=
1930 |
1931 | ; Local Variables:
1932 | ; tab-width: 4
1933 | ; End:
1934 |
1935 | [Xdebug]
1936 | ;zend_extension=""
1937 | xdebug.remote_enable=1
1938 | xdebug.remote_port=9000
1939 | xdebug.remote_host=192.168.2.165
1940 | xdebug.profiler_enable=1
1941 | xdebug.profiler_output_dir="/tmp/xdebug"
1942 | xdebug.var_display_max_depth = 5;
1943 |
--------------------------------------------------------------------------------
/docker/sf_web/zshrc.dist:
--------------------------------------------------------------------------------
1 | # You may need to manually set your language environment
2 | export LANG=en_US.UTF-8
3 |
4 | # If you come from bash you might have to change your $PATH.
5 | export PATH=$HOME/bin:/usr/local/bin:$PATH
6 |
7 | # Path to your oh-my-zsh installation.
8 | export ZSH=/var/www/.oh-my-zsh
9 |
10 | # Set name of the theme to load. Optionally, if you set this to "random"
11 | # it'll load a random theme each time that oh-my-zsh is loaded.
12 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
13 | ZSH_THEME="candy"
14 |
15 | # Uncomment the following line to use case-sensitive completion.
16 | # CASE_SENSITIVE="true"
17 |
18 | # Uncomment the following line to use hyphen-insensitive completion. Case
19 | # sensitive completion must be off. _ and - will be interchangeable.
20 | # HYPHEN_INSENSITIVE="true"
21 |
22 | # Uncomment the following line to disable bi-weekly auto-update checks.
23 | # DISABLE_AUTO_UPDATE="true"
24 |
25 | # Uncomment the following line to change how often to auto-update (in days).
26 | # export UPDATE_ZSH_DAYS=13
27 |
28 | # Uncomment the following line to disable colors in ls.
29 | # DISABLE_LS_COLORS="true"
30 |
31 | # Uncomment the following line to disable auto-setting terminal title.
32 | # DISABLE_AUTO_TITLE="true"
33 |
34 | # Uncomment the following line to enable command auto-correction.
35 | # ENABLE_CORRECTION="true"
36 |
37 | # Uncomment the following line to display red dots whilst waiting for completion.
38 | # COMPLETION_WAITING_DOTS="true"
39 |
40 | # Uncomment the following line if you want to disable marking untracked files
41 | # under VCS as dirty. This makes repository status check for large repositories
42 | # much, much faster.
43 | # DISABLE_UNTRACKED_FILES_DIRTY="true"
44 |
45 | # Uncomment the following line if you want to change the command execution time
46 | # stamp shown in the history command output.
47 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
48 | HIST_STAMPS="dd/mm/yy"
49 |
50 | # Would you like to use another custom folder than $ZSH/custom?
51 | # ZSH_CUSTOM=/path/to/new-custom-folder
52 |
53 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
54 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
55 | # Example format: plugins=(rails git textmate ruby lighthouse)
56 | # Add wisely, as too many plugins slow down shell startup.
57 | plugins=(git symfony symfony2 composer)
58 |
59 | source $ZSH/oh-my-zsh.sh
60 |
61 | # User configuration
62 |
63 | # export MANPATH="/usr/local/man:$MANPATH"
64 |
65 | # Preferred editor for local and remote sessions
66 | # if [[ -n $SSH_CONNECTION ]]; then
67 | # export EDITOR='vim'
68 | # else
69 | # export EDITOR='mvim'
70 | # fi
71 |
72 | # Compilation flags
73 | # export ARCHFLAGS="-arch x86_64"
74 |
75 | # ssh
76 | # export SSH_KEY_PATH="~/.ssh/rsa_id"
77 |
78 | # Set personal aliases, overriding those provided by oh-my-zsh libs,
79 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh
80 | # users are encouraged to define aliases within the ZSH_CUSTOM folder.
81 | # For a full list of active aliases, run `alias`.
82 | #
83 | # Example aliases
84 | # alias zshconfig="mate ~/.zshrc"
85 | # alias ohmyzsh="mate ~/.oh-my-zsh"
86 |
87 | alias ls='ls -F --color=always'
88 | alias dir='dir -F --color=always'
89 | alias cp='cp -iv'
90 | alias rm='rm -i'
91 | alias mv='mv -iv'
92 | alias grep='grep --color=auto -in'
93 | alias ll="ls -ahl"
94 | alias sfcc="sf cache:clear"
95 | alias c="clear"
96 | alias db="mysql -hdb -uroot -proot"
97 |
--------------------------------------------------------------------------------