4 |
--------------------------------------------------------------------------------
/roles/git/defaults/main.yml:
--------------------------------------------------------------------------------
1 | git_username: YOUR_USERNAME
2 | git_usermail: YOUR_EMAIL
3 |
4 | git_coreeditor: vi
5 |
6 | git_pushdefault: current
7 |
--------------------------------------------------------------------------------
/roles/mysql/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Global server config
3 | - include: server.yml
4 |
5 | # Development specific configurations
6 | - include: dev.yml
7 |
--------------------------------------------------------------------------------
/roles/gitlab/meta/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dependencies:
3 | - { role: common }
4 | - { role: git }
5 | - { role: redis }
6 | - { role: ruby, ruby_version: 2.0 }
7 |
--------------------------------------------------------------------------------
/roles/gitlab/README.txt:
--------------------------------------------------------------------------------
1 | Work in progress.
2 |
3 | Postfix is not installed for the moment. Email notifs will not work.
4 | For the moment, tested only in Ubuntu 13.10.
5 |
--------------------------------------------------------------------------------
/roles/mysql/defaults/main.yml:
--------------------------------------------------------------------------------
1 |
2 | mysql_root_password: MJacksonIsNotDead
3 |
4 | mysql_bind_address: 127.0.0.1
5 | mysql_port: 3306
6 | mysql_max_allowed_packet: '128M'
7 |
--------------------------------------------------------------------------------
/roles/ruby/vars/main.yml:
--------------------------------------------------------------------------------
1 | ruby_gem_dependencies:
2 | - memcached: [libcloog-ppl0]
3 | - mysql: [libmysqlclient-dev]
4 | - rmagick: [imagemagick,libmagickwand-dev]
5 |
6 |
--------------------------------------------------------------------------------
/roles/node/defaults/main.yml:
--------------------------------------------------------------------------------
1 |
2 | node_install_from: sources # or 'sources'
3 | node_version: 0.11.9 # format: 0.10.4 , ...
4 | node_src_baseurl: http://nodejs.org/dist/
5 |
6 |
--------------------------------------------------------------------------------
/roles/ruby/tasks/ruby-2.0.yml:
--------------------------------------------------------------------------------
1 | sudo add-apt-repository ppa:brightbox/ruby-ng-experimental
2 | sudo apt-get update
3 | sudo apt-get install -y ruby2.0 ruby2.0-dev ruby2.0-doc
4 |
5 |
--------------------------------------------------------------------------------
/roles/ruby/tasks/ruby-default.yml:
--------------------------------------------------------------------------------
1 | - name: Install the distribution's Ruby base packages
2 | apt: pkg={{ item }} state=installed
3 | with_items:
4 | - ruby
5 | - ruby-dev
6 |
--------------------------------------------------------------------------------
/roles/mysql/templates/mysql_seed.j2:
--------------------------------------------------------------------------------
1 | mysql-server mysql-server/root_password_again password {{ mysql_root_password }}
2 | mysql-server mysql-server/root_password password {{ mysql_root_password }}
--------------------------------------------------------------------------------
/roles/memcached/defaults/main.yml:
--------------------------------------------------------------------------------
1 |
2 | memcached_log: '/var/log/memcached.log'
3 | memcached_memory: "64"
4 | memcached_port: "112111"
5 | memcached_user: "memcache"
6 | memcached_ip: "127.0.0.1"
7 |
8 |
--------------------------------------------------------------------------------
/roles/python/tasks/main.yml:
--------------------------------------------------------------------------------
1 | - name: Install the distribution's Python base packages
2 | apt: pkg={{ item }} state=installed
3 | with_items:
4 | - python-dev
5 | - python-pip
6 | - python-virtualenv
7 |
8 |
--------------------------------------------------------------------------------
/roles/mysql/handlers/main.yml:
--------------------------------------------------------------------------------
1 | - name: mysql-start
2 | service: name=mysql start=started
3 |
4 | - name: mysql-restart
5 | service: name=mysql state=restarted
6 |
7 | - name: mysql-stop
8 | service: name=mysql state=stopped
--------------------------------------------------------------------------------
/roles/redis/handlers/main.yml:
--------------------------------------------------------------------------------
1 | - name: redis-start
2 | service: name=redis start=started
3 |
4 | - name: redis-restart
5 | service: name=redis state=restarted
6 |
7 | - name: redis-stop
8 | service: name=redis state=stopped
9 |
--------------------------------------------------------------------------------
/roles/apache/handlers/main.yml:
--------------------------------------------------------------------------------
1 | - name: apache-start
2 | service: name=apache2 start=started
3 |
4 | - name: apache-restart
5 | service: name=apache2 state=restarted
6 |
7 | - name: apache-reload
8 | service: name=apache2 state=reloaded
9 |
--------------------------------------------------------------------------------
/roles/php/templates/apc.ini.j2:
--------------------------------------------------------------------------------
1 | ; {{ ansible_managed }}
2 | extension=apc.so
3 |
4 | apc.shm_size = {{ php_apc_shm_size|default('32M') }}
5 | apc.stat = {{ php_apc_stat|default('1') }}
6 | apc.rfc1867 = On
7 | apc.shm_segments = {{ php_apc_shm_segments|default('1') }}
8 |
--------------------------------------------------------------------------------
/roles/memcached/handlers/main.yml:
--------------------------------------------------------------------------------
1 | - name: memcached-start
2 | service: name=memcached start=started
3 |
4 | - name: memcached-restart
5 | service: name=memcached state=restarted
6 |
7 | - name: memcached-reload
8 | service: name=memcached state=reloaded
9 |
10 |
--------------------------------------------------------------------------------
/roles/node/tasks/main_ubuntu.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Install from packages only.
3 |
4 | - name: Add Chris-Lea nodejs repository
5 | apt_repository: repo="ppa:chris-lea/node.js"
6 |
7 | - name: Install Node + NPM packages
8 | apt: pkg=nodejs state=present update_cache=yes
9 |
10 |
11 |
--------------------------------------------------------------------------------
/roles/redis/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Install redis server package
4 | apt: pkg=redis-server state=installed
5 |
6 | - name: Push global config file
7 | template:
8 | src=redis.conf.j2
9 | dest=/etc/redis/redis.conf
10 | notify:
11 | - redis-restart
12 |
--------------------------------------------------------------------------------
/roles/mercurial/defaults/main.yml:
--------------------------------------------------------------------------------
1 |
2 | mercurial_username: YOUR_USERNAME
3 |
4 | # # Optionnally, authentification groups can also be defined
5 | # mercurial_authgroups:
6 | # - grp: default
7 | # prefix: domain
8 | # username: some.user
9 | # password: MJacksonIsNotDead
10 | # schemes: http
11 |
--------------------------------------------------------------------------------
/roles/git/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include: main_centos.yml
4 | when: ansible_distribution == "CentOS"
5 |
6 | - include: main_ubuntu.yml
7 | when: ansible_distribution == "Ubuntu"
8 |
9 | - name: Push global config file
10 | template:
11 | src=gitconfig.j2
12 | dest=/etc/gitconfig
13 |
14 |
--------------------------------------------------------------------------------
/roles/common/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include: main_centos.yml
4 | when: ansible_distribution == "CentOS"
5 |
6 | - include: main_ubuntu.yml
7 | when: ansible_distribution == "Ubuntu"
8 |
9 | - name: Push global vimrc
10 | template:
11 | src=vimrc.j2
12 | dest={{ ansible_env.HOME }}/.vimrc
13 |
--------------------------------------------------------------------------------
/roles/mercurial/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Hg | Install Mercurial base packages
3 | apt: pkg=$item state=installed
4 | with_items:
5 | - mercurial
6 |
7 | # Install the default templates
8 | - name: Hg | Push global hgrc template
9 | template:
10 | src=hgrc.j2
11 | dest=/etc/mercurial/hgrc
12 |
13 |
--------------------------------------------------------------------------------
/roles/common/defaults/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | common_upgrade: true
3 | common_tz: "Europe/Paris"
4 |
5 | common_centos_epel: "http://dl.fedoraproject.org/pub/epel/6/{{ ansible_architecture }}/epel-release-6-8.noarch.rpm"
6 | common_centos_rpmforge: "http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.{{ ansible_architecture }}.rpm"
--------------------------------------------------------------------------------
/roles/php/templates/xdebug.ini.j2:
--------------------------------------------------------------------------------
1 | ; {{ ansible_managed }}
2 |
3 | zend_extension = {{ php_extension_dir.stdout }}/xdebug.so
4 |
5 | xdebug.var_display_max_depth = 100
6 | xdebug.dump_globals = 1
7 | xdebug.remote_enable = {{ php_xdebug_remote_enable|default(0) }}
8 | xdebug.remote_host = {{ php_xdebug_remote_host|default('') }}
9 | xdebug.dump_once = 1
10 |
--------------------------------------------------------------------------------
/roles/apache/defaults/main.yml:
--------------------------------------------------------------------------------
1 | # File: main.yml
2 | # Part: Apache
3 |
4 | # Thread management
5 | apache_flavor: "prefork"
6 |
7 | # Httpd user and group
8 | apache_user: "www-data"
9 | apache_group: "www-data"
10 |
11 | # Default apache base directory (without trailing '/')
12 | apache_root: "/var/www"
13 |
14 | apache_port_http: 80
15 | apache_port_https: 443
16 |
17 | apache_modules:
18 | - rewrite
19 |
--------------------------------------------------------------------------------
/roles/memcached/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Install default package
3 | apt: pkg=memcached state=present
4 |
5 | - name: Push default configuration template
6 | template:
7 | src=memcached.conf.j2
8 | dest=/etc/memcached.conf
9 | owner=root group=root mode=0644
10 | notify:
11 | - memcached-restart
12 |
13 | # Ensure service is running.
14 | - name: Ensure deamon is running correctly
15 | service: name=memcached state=started
16 |
--------------------------------------------------------------------------------
/roles/mysql/tasks/dev.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Description: Set a user's default mysql-client IDs as root.
3 | # DO NOT DO THIS IN A PRODUCTION SERVER.
4 | - name: Dev | Config for easy access as user "{{ devuser }}"
5 | template:
6 | src=user_my.cnf.j2
7 | dest=/home/{{ devuser }}/.my.cnf
8 | owner={{ devuser }} mode=0600
9 | when: devuser is defined
10 |
11 | - name: Dev | Development tools for MySQL
12 | apt: pkg=percona-toolkit state=present
13 |
--------------------------------------------------------------------------------
/roles/jenkins/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Jenkins | Add Jenkins-CI debian/ubuntu signing key
4 | apt_key:
5 | url=http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key
6 | state=present
7 |
8 | - name: Jenkins | Add Jenkins-CI debian/ubuntu repository
9 | apt_repository:
10 | repo='deb http://pkg.jenkins-ci.org/debian binary/'
11 | state=present
12 |
13 | - name: Jenkins | Install Jenkins
14 | apt: pkg=jenkins update_cache=yes
15 |
--------------------------------------------------------------------------------
/roles/apache/tasks/module_enable.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # File: module_enable.yml
3 | # Part: Apache
4 | #
5 | # Description: Enable an Apache server
6 | #
7 | # Parameters:
8 | # - $module: module name (ex. rewrite)
9 | #
10 | # Dependencies ([part:]type:filename):
11 | # - handlers:handlers.yml
12 | #
13 | # OS: Ubuntu
14 |
15 | - name: Apache | Enable module | Enable $module
16 | command: a2enmod $module creates=/etc/apache2/mods-enabled/$module.load
17 | notify:
18 | - apache-restart
19 |
20 |
--------------------------------------------------------------------------------
/roles/apache/templates/default_virtualhost.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | ServerName {{ ansible_fqdn }}
4 | ServerAdmin {{ apache_admin|default('admin@localhost')}}
5 |
6 | DocumentRoot {{ apache_root}}/default
7 |
8 | Options -Indexes FollowSymLinks MultiViews
9 | AllowOverride All
10 | Order allow,deny
11 | allow from all
12 |
13 |
14 | CustomLog ${APACHE_LOG_DIR}/access.log combined
15 | ErrorLog ${APACHE_LOG_DIR}/error.log
16 |
17 |
--------------------------------------------------------------------------------
/roles/apache/templates/virtualhost.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | ServerName {{ vhost }}
4 |
5 | DocumentRoot {{ docroot }}
6 |
7 | Options -Indexes FollowSymLinks MultiViews
8 | AllowOverride All
9 | Order allow,deny
10 | allow from all
11 |
12 |
13 | CustomLog ${APACHE_LOG_DIR}/access_{{ vhost }}.log combined
14 | ErrorLog ${APACHE_LOG_DIR}/error_{{ vhost }}.log
15 |
16 |
--------------------------------------------------------------------------------
/roles/gitlab/tasks/main.yml:
--------------------------------------------------------------------------------
1 | - name: Install dependencies
2 | apt: pkg={{ item }} state=present
3 | with_items:
4 | - build-essential
5 | - zlib1g-dev
6 | - libyaml-dev
7 | - libssl-dev
8 | - libgdbm-dev
9 | - libreadline-dev
10 | - libncurses5-dev
11 | - libffi-dev
12 | - checkinstall
13 | - libxml2-dev
14 | - libxslt1-dev
15 | - libcurl4-openssl-dev
16 | - libicu-dev
17 | - python-docutils
18 |
19 | # Already in Ubuntu 12.04
20 | - logrotate
21 | - curl
22 | - openssh-server
23 |
24 | # Via role dependency
25 | - redis-server
26 |
--------------------------------------------------------------------------------
/roles/node/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Check for previous installation of Node
4 | shell: "[ -f /usr/local/bin/node ]"
5 | ignore_errors: True
6 | register: node_exists
7 |
8 | - include: main_centos.yml
9 | when: ansible_distribution == "CentOS" and node_exists|failed
10 |
11 | - include: main_ubuntu.yml
12 | when: ansible_distribution == "Ubuntu" and node_exists|failed
13 |
14 | - name: Install npm package {{ item }}
15 | npm:
16 | global=yes
17 | name={{ item }}
18 | executable=/usr/local/bin/npm
19 | state=present
20 | with_items:
21 | - grunt-cli
22 | - bower
23 |
--------------------------------------------------------------------------------
/roles/ruby/tasks/main.yml:
--------------------------------------------------------------------------------
1 | - name: "Install the distribution's Ruby base packages"
2 | apt: pkg={{ item }} state=installed
3 | with_items:
4 | - ruby
5 | // Conditionnaly include ruby install file
6 |
7 | - name: Install Ruby gem usual dependencies
8 | apt: pkg={{ item }} state=installed
9 | with_items:
10 | - libssl-dev
11 | - zlib1g-dev
12 | - ruby-bundler
13 | - rubygems
14 | - libxml2 # nokogiri needs this, and most applications use nokogiri
15 |
16 | # Put this in an extra file, and load a gem's dependencies before the gem itself.
17 | - name: Install gems
18 | gem: name={{ item }} state=latest
19 | with_items: ruby_gems
20 |
21 |
22 |
--------------------------------------------------------------------------------
/roles/git/templates/gitconfig.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | [user]
4 | name = {{ git_username }}
5 | email = {{ git_usermail }}
6 |
7 | [color]
8 | ui = true
9 |
10 | [color "branch"]
11 | current = yellow reverse
12 | local = yellow
13 | remote = green
14 |
15 | [color "diff"]
16 | meta = cyan bold
17 | frag = yellow
18 | old = red
19 | new = green
20 |
21 | [color "status"]
22 | added = green
23 | changed = red
24 | untracked = cyan
25 |
26 | [core]
27 | editor = {{ git_coreeditor|default('vi') }}
28 | autocrlf = input
29 | safecrlf = true
30 |
31 | [push]
32 | default = {{ git_pushdefault|default('current') }}
33 |
34 | [alias]
35 | st = status
36 | ci = commit
37 | br = branch
38 | co = checkout
39 | df = diff
40 | dc = diff --cached
41 | lg = log -p
42 | logp = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
43 | who = shortlog -s --
44 |
45 |
--------------------------------------------------------------------------------
/roles/mercurial/templates/hgrc.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | [alias]
4 | latest = log --limit 5
5 |
6 |
7 | [diff]
8 | # Ignore white space when comparing lines
9 | ignorews = TRUE
10 |
11 | # Ignore white space when comparing lines
12 | ignorewsamount = TRUE
13 |
14 | # Ignore changes whose lines are all blank
15 | ignoreblanklines = TRUE
16 |
17 | # Use git extended diff format
18 | git = TRUE
19 |
20 |
21 | [ui]
22 | username = {{ mercurial_username }}
23 | askusername = False
24 | debug = False
25 | quiet = False
26 | verbose = False
27 |
28 |
29 | [extensions]
30 | fetch =
31 |
32 | [auth]
33 | {% for authgrp in mercurial_authgroups %}
34 | {{ authgrp.grp }}.prefix = {{ authgrp.prefix }}
35 | {{ authgrp.grp }}.username = {{ authgrp.username }}
36 | {{ authgrp.grp }}.password = {{ authgrp.password }}
37 | {{ authgrp.grp }}.schemes = {{ authgrp.schemes }}
38 | {% endfor %}
39 |
--------------------------------------------------------------------------------
/roles/php/defaults/main.yml:
--------------------------------------------------------------------------------
1 |
2 | # The default settings are optimized for a development installation.
3 | # You'll probably want to rethink this on a production server.
4 | php_memory_limit: '256M'
5 | php_max_execution_time: '60'
6 | php_max_input_time: '60'
7 | php_display_errors: 'On'
8 | php_display_startup_errors: 'On'
9 | php_error_reporting: 'E_ALL | E_STRICT'
10 | php_post_max_size: '64M'
11 | php_upload_max_filesize: '64M'
12 | php_main_timezone: 'Europe/Paris'
13 |
14 | #APC settings
15 | php_apc_shm_size: '32M'
16 | php_apc_shm_segments: 1
17 | php_apc_stat: 1
18 |
19 | # Xdebug settings
20 | php_xdebug_remote_host: '127.0.0.1'
21 | php_xdebug_remote_enable: 1
22 |
23 | # XHprof
24 | php_xhprof_output: /tmp/xhprof
25 |
26 | # FPM
27 | php_fpm_log_level: notice
28 | php_fpm_pools:
29 | - name: www
30 | user: www-data
31 | group: www-data
32 | status: True # Allow access to the status and ping URLs, at fpm-status-www and ping-www
33 |
34 |
--------------------------------------------------------------------------------
/roles/node/tasks/main_centos.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Install from sources only.
3 |
4 | # Needs :
5 | # - node_version
6 | # - node_src_baseurl
7 |
8 | - name: Install dev tools (CentOS)
9 | yum: name={{ item }} state=present
10 | with_items:
11 | - gcc
12 | - gcc-c++
13 | - automake
14 | - autoconf
15 | - make
16 |
17 | - name: Fetch node archive (CentOS)
18 | get_url:
19 | url={{ node_src_baseurl }}v{{ node_version }}/node-v{{ node_version }}.tar.gz
20 | dest=/tmp/node.tar.gz
21 |
22 | - name: Unarchive node sources (CentOS)
23 | unarchive:
24 | src=/tmp/node.tar.gz
25 | dest=/tmp
26 | copy=no
27 |
28 | - name: "Compile and install node (CentOS)"
29 | shell:
30 | ./configure && make && sudo make install
31 | chdir=/tmp/node-v{{ node_version }}
32 | creates=/usr/local/bin/node
33 |
34 | - name: "Remove node sources (CentOS)"
35 | file: path=/tmp/{{ item }} state=absent
36 | with_items:
37 | - node.tar.gz
38 | - node-v{{ node_version }}
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/roles/common/templates/vimrc.j2:
--------------------------------------------------------------------------------
1 | " {{ ansible_managed }}
2 |
3 | " General options
4 | set fileformat=unix
5 | set encoding=utf-8
6 |
7 |
8 | " Use vim defaults
9 | set nocompatible
10 |
11 |
12 | " Editor general features
13 | set number
14 | syntax on
15 | set autoread
16 | set noerrorbells
17 | set novisualbell
18 | set laststatus=2
19 | set writeany
20 | set showcmd
21 | set ruler
22 | set ttyfast
23 | set lazyredraw
24 | set mouse=a
25 | set backspace=indent,eol,start
26 | set history=100
27 | set undolevels=150
28 | set scrolloff=5 " Show 5 lines above/below the cursor when scrolling.
29 | set title " Set the title in the console.
30 | filetype plugin indent on
31 |
32 | " Tabs, spaces, indentation...
33 | set nowrapscan
34 | set nowrap
35 | set showtabline=4
36 | set expandtab
37 | set smartindent
38 | set foldmethod=marker
39 | set showmatch
40 | set matchtime=3
41 | set tabstop=4
42 | set shiftwidth=4
43 | set softtabstop=4
44 |
45 | " Search options
46 | set ignorecase
47 | set incsearch
48 | set infercase
49 | set hlsearch
50 |
--------------------------------------------------------------------------------
/roles/apache/templates/ports.conf.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | # If you just change the port or add more ports here, you will likely also
4 | # have to change the VirtualHost statement in
5 | # /etc/apache2/sites-enabled/000-default
6 | # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
7 | # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
8 | # README.Debian.gz
9 |
10 | NameVirtualHost *:{{ apache_port_http|default('80') }}
11 | Listen {{ apache_port_http|default('80') }}
12 |
13 |
14 | # If you add NameVirtualHost *:443 here, you will also have to change
15 | # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
16 | # to
17 | # Server Name Indication for SSL named virtual hosts is currently not
18 | # supported by MSIE on Windows XP.
19 | Listen {{ apache_port_https|default('443') }}
20 |
21 |
22 |
23 | Listen {{ apache_port_https|default('443') }}
24 |
25 |
26 |
--------------------------------------------------------------------------------
/roles/common/tasks/main_ubuntu.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Install 'python-apt' module (Ubuntu)
4 | command: apt-get install python-apt -y
5 |
6 | - name: Upgrade all packages (Ubuntu)
7 | apt: upgrade=yes update_cache=yes
8 | when: common_upgrade
9 |
10 | - name: Set TZ config file (Ubuntu)
11 | template:
12 | src=timezone.j2
13 | dest=/etc/timezone
14 | register: tz_result
15 |
16 | - name: Common | Reconfigure TZ
17 | command: DEBIAN_FRONTEND=noninteractive dpkg-reconfigure tzdata
18 | when: tz_result.changed
19 |
20 | - name: Configure language packs (Ubuntu)
21 | shell: locale-gen fr_FR fr_FR.UTF-8 && dpkg-reconfigure locales
22 |
23 | - name: Install misc utils (Ubuntu)
24 | apt: pkg={{ item }} state=present
25 | with_items:
26 | - htop
27 | - curl
28 | - tmux
29 | - unzip
30 | - python-software-properties # Dependencies for the apt module
31 | - software-properties-common
32 | - python-pycurl
33 | - vim
34 |
35 | - name: Set vim as default editor (Ubuntu)
36 | command: update-alternatives --set editor /usr/bin/vim.basic
37 |
38 |
--------------------------------------------------------------------------------
/roles/common/tasks/main_centos.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - name: Set Timezone (CentOS)
3 | command: "cp /usr/share/zoneinfo/{{ common_tz }} /etc/localtime"
4 |
5 | - name: Install EPEL releases (CentOS)
6 | command: "rpm -Uvh {{ common_centos_epel }} creates=/etc/yum.repos.d/epel.repo"
7 |
8 | - name: Import RPMForge key (CentOS)
9 | command: "rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt"
10 |
11 | - name: Verify RPMForge package (CentOS)
12 | command: "rpm -K {{ common_centos_rpmforge }} creates=/etc/yum.repos.d/rpmforge.repo"
13 |
14 | - name: Install RPMForge package (CentOS)
15 | command: "rpm -i {{ common_centos_rpmforge }} creates=/etc/yum.repos.d/rpmforge.repo"
16 |
17 | - name: Yum clean (CentOS)
18 | command: "yum clean all"
19 |
20 | - name: Upgrade all packages (CentOS)
21 | yum: name=* state=latest
22 | when: common_upgrade
23 |
24 | - name: Install misc utils (CentOS)
25 | yum: name={{ item }} state=present
26 | with_items:
27 | - man
28 | - man-pages
29 | - libselinux-python # Dependency for all ansible file modules
30 | - curl
31 | - unzip
32 | - pycurl
33 | - vim
34 | - htop
35 |
36 | - name: Set vim as default editor (CentOS)
37 | copy: content="export EDITOR=\"nano\"" dest=/etc/profile.d/editor.sh
38 |
39 |
--------------------------------------------------------------------------------
/roles/apache/tasks/vhost_add.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # File: vhost_add.yml
3 | # Part: Apache
4 | #
5 | # Description: Create a new virtual host
6 | #
7 | # Parameters:
8 | # - $docroot : absolute docroot path
9 | # - $vhost : virtualhost name
10 | # - $create_docroot : create the docroot directory in the filesystem (if it doesn't exist) and push a default index file.
11 | # - $port : 80 by default
12 | # - $interfaces : * by default
13 | #
14 | # Dependencies-internal ([part:]type:filename):
15 | # - handlers:handlers.yml
16 | #
17 | # OS familly: Ubuntu
18 |
19 | - name: Apache | Virtualhost add | Create document root at $docroot
20 | file:
21 | path=$docroot
22 | state=directory
23 | when_boolean: $create_docroot
24 |
25 | - name: Apache | Virtualhost add | Push default index file to docroot
26 | template:
27 | src=default_index.html.j2
28 | dest=$docroot/index.html
29 | when_boolean: $create_docroot
30 |
31 | - name: Apache | Virtualhost add | Push virtualhost configuration template
32 | template:
33 | src=virtualhost.j2
34 | dest=/etc/apache2/sites-available/$vhost
35 |
36 | - name: Apache | Virtualhost add | Activate virtual host $vhost
37 | command: /usr/sbin/a2ensite $vhost creates=/etc/apache2/sites-enabled/$vhost
38 | notify:
39 | - apache-reload
40 |
--------------------------------------------------------------------------------
/roles/php/tasks/pecl.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: pecl | Insure PHP development packages are installed
4 | apt: pkg={{ item }} state=installed
5 | with_items:
6 | - php5-dev
7 | - php-pear
8 | - make
9 |
10 | - name: pecl | Test for previous "{{ package }}" install
11 | shell: pecl list | grep -i '{{ package }}'
12 | register: php_package_exists
13 | ignore_errors: yes
14 |
15 | - name: pecl | Install {{ package }}-{{ version }}
16 | shell: echo {{ stdin }} | pecl install {{ package }}-{{ version }}
17 | when: php_package_exists|failed
18 |
19 | - name: pecl | Set {{ package }} config (Ubuntu == 12.04)
20 | template:
21 | src={{ package }}.ini.j2
22 | dest=/etc/php5/conf.d/{{ package }}.ini
23 | owner=root group=root mode=0644
24 | when: ansible_lsb.release == "12.04"
25 |
26 | - name: pecl | Set {{ package }} config (Ubuntu > 12.04)
27 | template:
28 | src={{ package }}.ini.j2
29 | dest=/etc/php5/mods-available/{{ package }}.ini
30 | owner=root group=root mode=0644
31 | when: ansible_lsb.release != "12.04"
32 |
33 | - name: pecl | Set symbolic link to {{ package }} config (Ubuntu > 12.04)
34 | file:
35 | src=/etc/php5/mods-available/{{ package }}.ini
36 | dest=/etc/php5/conf.d/20-{{ package }}.ini
37 | owner=root group=root state=link
38 | when: ansible_lsb.release != "12.04"
39 |
40 | # When PHP is running
41 | #- name: PHP | PECL | Notifying FPM to restart (if it is running)
42 | # debug: msg="Restart PHP-FPM"
43 | # when_failed: ${php_package_exists}
44 | # notify:
45 | # - php-fpm-restart
46 |
--------------------------------------------------------------------------------
/roles/apache/templates/envvars.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 | # envvars - default environment variables for apache2ctl
3 |
4 | # this won't be correct after changing uid
5 | unset HOME
6 |
7 | # for supporting multiple apache2 instances
8 | if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
9 | SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
10 | else
11 | SUFFIX=
12 | fi
13 |
14 | # Since there is no sane way to get the parsed apache2 config in scripts, some
15 | # settings are defined via environment variables and then used in apache2ctl,
16 | # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
17 | export APACHE_RUN_USER={{ apache_user|default('www-data') }}
18 | export APACHE_RUN_GROUP={{ apache_group|default('www-data') }}
19 | export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
20 | export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
21 | export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
22 | # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
23 | export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
24 |
25 | ## The locale used by some modules like mod_dav
26 | export LANG=C
27 | ## Uncomment the following line to use the system default locale instead:
28 | #. /etc/default/locale
29 |
30 | export LANG
31 |
32 | ## The command to get the status for 'apache2ctl status'.
33 | ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
34 | #export APACHE_LYNX='www-browser -dump'
35 |
36 | ## If you need a higher file descriptor limit, uncomment and adjust the
37 | ## following line (default is 8192):
38 | #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
39 |
--------------------------------------------------------------------------------
/roles/apache/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # File: setup.yml
3 | # Part: Apache
4 | #
5 | # Description: Install and configure an Apache server
6 | #
7 | # Parameters:
8 | #
9 | # Dependencies ([part:]type:filename):
10 | # - vars:main.yml
11 | # - handlers:handlers.yml
12 | #
13 | # OS familly: Ubuntu
14 |
15 | - name: Apache | Install Apache-$apache_flavor
16 | apt: pkg=apache2-mpm-$apache_flavor state=installed
17 |
18 | # Install the default templates
19 | - name: Apache | Push configuration files
20 | template:
21 | src=${item}.j2
22 | dest=/etc/apache2/$item
23 | owner=root group=root mode=0644
24 | with_items:
25 | - envvars
26 | - ports.conf
27 |
28 | # Configure a default virtual host
29 | - name: Apache | Create document root for default virtual host at $apache_root/default
30 | file:
31 | path=$apache_root/default
32 | state=directory recurse=yes
33 | owner=root group=root mode=0755
34 |
35 | - name: Apache | Push default index file to the docroot
36 | template:
37 | src=default_index.html.j2
38 | dest=$apache_root/default/index.html
39 |
40 | - name: Apache | Push default virtualhost configuration template
41 | template:
42 | src=default_virtualhost.j2
43 | dest=/etc/apache2/sites-available/default
44 | notify:
45 | - apache-restart
46 |
47 | - name: Apache | Remove default index file from default docroot
48 | file: path=/var/www/index.html state=absent
49 |
50 | # Activate modules
51 | - name: Apache | Enable modules
52 | command: a2enmod $item creates=/etc/apache2/mods-enabled/$item.load
53 | with_items: $apache_modules
54 | when: apache_modules is defined
55 | notify:
56 | - apache-restart
57 |
58 | # Ensure service is running.
59 | - name: Apache | Ensure deamon is running correctly
60 | service: name=apache2 state=started
61 |
--------------------------------------------------------------------------------
/roles/memcached/templates/memcached.conf.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 |
3 | # memcached default config file
4 | # 2003 - Jay Bonci
5 | # This configuration file is read by the start-memcached script provided as
6 | # part of the Debian GNU/Linux distribution.
7 |
8 | # Run memcached as a daemon. This command is implied, and is not needed for the
9 | # daemon to run. See the README.Debian that comes with this package for more
10 | # information.
11 | -d
12 |
13 | # Log memcached's output to /var/log/memcached
14 | logfile {{ memcached_log|default('/var/log/memcached.log') }}
15 |
16 | # Be verbose
17 | # -v
18 |
19 | # Be even more verbose (print client commands as well)
20 | # -vv
21 |
22 | # Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
23 | # Note that the daemon will grow to this size, but does not start out holding this much
24 | # memory
25 | -m {{ memcached_memory|default('64') }}
26 |
27 | # Default connection port is 11211
28 | -p {{ memcached_port|default('11211') }}
29 |
30 | # Run the daemon as root. The start-memcached will default to running as root if no
31 | # -u command is present in this config file
32 | -u {{ memcached_user|default('memcache') }}
33 |
34 | # Specify which IP address to listen on. The default is to listen on all IP addresses
35 | # This parameter is one of the only security measures that memcached has, so make sure
36 | # it's listening on a firewalled interface.
37 | -l {{ memcached_ip|default('127.0.0.1') }}
38 |
39 | # Limit the number of simultaneous incoming connections. The daemon default is 1024
40 | # -c 1024
41 |
42 | # Lock down all paged memory. Consult with the README and homepage before you do this
43 | # -k
44 |
45 | # Return error when memory is exhausted (rather than removing items)
46 | # -M
47 |
48 | # Maximize core file limit
49 | # -r
50 |
--------------------------------------------------------------------------------
/roles/mysql/tasks/server.yml:
--------------------------------------------------------------------------------
1 | # Install server using a preseed file to set the root password
2 | # 1) Check is MySQL Server is already installed. If so, do not set preseed file
3 | - name: Check for previous installation
4 | shell: "[ -f /usr/sbin/mysqld ]"
5 | ignore_errors: True
6 | register: mysqld_exists
7 |
8 | # 2) Preseed install options
9 | - name: Push preseed file for debconf
10 | template:
11 | src=mysql_seed.j2
12 | dest=/root/mysql.seed
13 | when: mysqld_exists|failed
14 |
15 | - name: Preseed mysql file
16 | command: /usr/bin/debconf-set-selections /root/mysql.seed
17 | when: mysqld_exists|failed
18 |
19 | # 3) Install
20 | - name: Install server
21 | apt: pkg=mysql-server state=installed force=yes
22 | when: mysqld_exists|failed
23 |
24 | - name: Ensure MySQL daemon is running
25 | service: name=mysql state=started
26 |
27 | # 4) Cleanup
28 | - name: Delete mysql.seed file
29 | command: /bin/rm /root/mysql.seed
30 | when: mysqld_exists|failed
31 |
32 |
33 | # Push configuration files
34 | - name: Set my.cnf template
35 | template:
36 | src=my.cnf.j2
37 | dest=/etc/mysql/my.cnf
38 | owner=root mode=0644
39 | notify:
40 | - mysql-restart
41 |
42 |
43 | # Secure installation
44 | - name: Ensure python mysql is installed
45 | apt: pkg=python-mysqldb state=installed force=yes
46 |
47 | - name: Remove empty password users
48 | mysql_user: name='' password='' host=localhost priv=*.*:USAGE state=absent login_user=root login_password={{ mysql_root_password }}
49 |
50 | - name: Remove empty password users
51 | mysql_user: name='' password='' host={{ ansible_fqdn }} priv=*.*:USAGE state=absent login_user=root login_password={{ mysql_root_password }}
52 |
53 | - name: Remove the MySQL test database
54 | mysql_db: db=test state=absent login_user=root login_password={{ mysql_root_password }}
55 |
56 |
--------------------------------------------------------------------------------
/roles/php/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Install the distribution's PHP-CLI base packages
4 | apt: pkg={{ item }} state=installed force=yes
5 | with_items:
6 | - php5-cli
7 | - php5-curl
8 | - php5-gd
9 | - php-apc
10 |
11 | # Install the default templates
12 | - name: Set php.ini CLI template
13 | template:
14 | src=php_cli.ini.j2
15 | dest=/etc/php5/cli/php.ini
16 | owner=root group=root mode=0644
17 |
18 | # APC (with php extensions directory for >= 12.10)
19 | - name: Set APC config (Ubuntu >= 12.10)
20 | template:
21 | src=apc.ini.j2
22 | dest=/etc/php5/mods-available/apc.ini
23 | owner=root group=root mode=0644
24 | when: ansible_lsb.release != "12.04"
25 |
26 | # APC (with php extensions directory for < 12.10)
27 | - name: Set APC config (Ubuntu == 12.04)
28 | template:
29 | src=apc.ini.j2
30 | dest=/etc/php5/conf.d/apc.ini
31 | owner=root group=root mode=0644
32 | when: ansible_lsb.release == "12.04"
33 |
34 | # DEV packages and configs
35 | - name: Install PHP development packages
36 | apt: pkg={{ item }} state=installed
37 | with_items:
38 | - php-pear
39 |
40 |
41 | # PEAR Packages
42 | # ####################
43 | - name: Update pear packages
44 | command: pear upgrade
45 |
46 | - name: Set pear auto-discover
47 | command: pear config-set auto_discover 1
48 |
49 | - name: Pear install the PHP QA Toolchain
50 | command: pear install pear.phpqatools.org/phpqatools creates=/usr/bin/phpunit
51 | # this fails often (dns problems, pear problems, etc. So just ignore the errors and continue.)
52 | ignore_errors: True
53 |
54 |
55 | # PECL Packages
56 | # #####################
57 |
58 | # XDebug
59 | - name: Fetch PHP extension dir
60 | shell: "php -i | grep -i '^extension_dir' | awk '{print $3}'"
61 | register: php_extension_dir
62 |
63 | - include: pecl.yml package=xdebug version=stable stdin=
64 |
65 | # Other useful tools
66 | # ######################
67 | - name: Install composer
68 | shell:
69 | curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv -f /home/vagrant/composer.phar /usr/local/bin/composer
70 | creates=/usr/local/bin/composer
71 |
--------------------------------------------------------------------------------
/roles/mysql/templates/my.cnf.j2:
--------------------------------------------------------------------------------
1 | # {{ ansible_managed }}
2 | #
3 | # The MySQL database server configuration file.
4 | #
5 | # You can copy this to one of:
6 | # - "/etc/mysql/my.cnf" to set global options,
7 | # - "~/.my.cnf" to set user-specific options.
8 | #
9 | # One can use all long options that the program supports.
10 | # Run program with --help to get a list of available options and with
11 | # --print-defaults to see which it would actually understand and use.
12 | #
13 | # For explanations see
14 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
15 |
16 | # This will be passed to all mysql clients
17 | # It has been reported that passwords should be enclosed with ticks/quotes
18 | # escpecially if they contain "#" chars...
19 | # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
20 | [client]
21 | port = {{ mysql_port|default('3306') }}
22 | socket = /var/run/mysqld/mysqld.sock
23 |
24 | # Here is entries for some specific programs
25 | # The following values assume you have at least 32M ram
26 |
27 | # This was formally known as [safe_mysqld]. Both versions are currently parsed.
28 | [mysqld_safe]
29 | socket = /var/run/mysqld/mysqld.sock
30 | nice = 0
31 |
32 | [mysqld]
33 | #
34 | # * Basic Settings
35 | #
36 | user = mysql
37 | pid-file = /var/run/mysqld/mysqld.pid
38 | socket = /var/run/mysqld/mysqld.sock
39 | port = {{ mysql_port|default('3306') }}
40 | basedir = /usr
41 | datadir = /var/lib/mysql
42 | tmpdir = /tmp
43 | lc-messages-dir = /usr/share/mysql
44 | skip-external-locking
45 | #
46 | # Instead of skip-networking the default is now to listen only on
47 | # localhost which is more compatible and is not less secure.
48 | bind-address = {{ mysql_bind_address|default('127.0.0.1') }}
49 | #
50 | # * Fine Tuning
51 | #
52 | key_buffer = 16M
53 | max_allowed_packet = {{ mysql_max_allowed_packet|default('128M') }}
54 | thread_stack = 192K
55 | thread_cache_size = 8
56 | # This replaces the startup script and checks MyISAM tables if needed
57 | # the first time they are touched
58 | myisam-recover = BACKUP
59 | #max_connections = 100
60 | #table_cache = 64
61 | #thread_concurrency = 10
62 | #
63 | # * Query Cache Configuration
64 | #
65 | query_cache_limit = 1M
66 | query_cache_size = 16M
67 | #
68 | # * Logging and Replication
69 | #
70 | # Both location gets rotated by the cronjob.
71 | # Be aware that this log type is a performance killer.
72 | # As of 5.1 you can enable the log at runtime!
73 | #general_log_file = /var/log/mysql/mysql.log
74 | #general_log = 1
75 | #
76 | # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
77 | #
78 | # Here you can see queries with especially long duration
79 | #log_slow_queries = /var/log/mysql/mysql-slow.log
80 | #long_query_time = 2
81 | #log-queries-not-using-indexes
82 | #
83 | # The following can be used as easy to replay backup logs or for replication.
84 | # note: if you are setting up a replication slave, see README.Debian about
85 | # other settings you may need to change.
86 | #server-id = 1
87 | #log_bin = /var/log/mysql/mysql-bin.log
88 | expire_logs_days = 10
89 | max_binlog_size = 100M
90 | #binlog_do_db = include_database_name
91 | #binlog_ignore_db = include_database_name
92 | #
93 | # * InnoDB
94 | #
95 | # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
96 | # Read the manual for more InnoDB related options. There are many!
97 | #
98 | # * Security Features
99 | #
100 | # Read the manual, too, if you want chroot!
101 | # chroot = /var/lib/mysql/
102 | #
103 | # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
104 | #
105 | # ssl-ca=/etc/mysql/cacert.pem
106 | # ssl-cert=/etc/mysql/server-cert.pem
107 | # ssl-key=/etc/mysql/server-key.pem
108 |
109 |
110 |
111 | [mysqldump]
112 | quick
113 | quote-names
114 | max_allowed_packet = 16M
115 |
116 | [mysql]
117 | #no-auto-rehash # faster start of mysql but no tab completition
118 |
119 | [isamchk]
120 | key_buffer = 16M
121 |
122 | #
123 | # * IMPORTANT: Additional settings that can override those from this file!
124 | # The files must end with '.cnf', otherwise they'll be ignored.
125 | #
126 | !includedir /etc/mysql/conf.d/
127 |
--------------------------------------------------------------------------------
/roles/redis/templates/redis.conf.j2:
--------------------------------------------------------------------------------
1 | # Redis configuration file example
2 |
3 | # Note on units: when memory size is needed, it is possible to specifiy
4 | # it in the usual form of 1k 5GB 4M and so forth:
5 | #
6 | # 1k => 1000 bytes
7 | # 1kb => 1024 bytes
8 | # 1m => 1000000 bytes
9 | # 1mb => 1024*1024 bytes
10 | # 1g => 1000000000 bytes
11 | # 1gb => 1024*1024*1024 bytes
12 | #
13 | # units are case insensitive so 1GB 1Gb 1gB are all the same.
14 |
15 | # By default Redis does not run as a daemon. Use 'yes' if you need it.
16 | # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
17 | daemonize yes
18 |
19 | # When running daemonized, Redis writes a pid file in /var/run/redis.pid by
20 | # default. You can specify a custom pid file location here.
21 | pidfile /var/run/redis/redis-server.pid
22 |
23 | # Accept connections on the specified port, default is 6379.
24 | # If port 0 is specified Redis will not listen on a TCP socket.
25 | port {{ redis_port|default('6379') }}
26 |
27 | # If you want you can bind a single interface, if the bind option is not
28 | # specified all the interfaces will listen for incoming connections.
29 | #
30 | bind 127.0.0.1
31 |
32 | # Specify the path for the unix socket that will be used to listen for
33 | # incoming connections. There is no default, so Redis will not listen
34 | # on a unix socket when not specified.
35 | #
36 | # unixsocket /var/run/redis/redis.sock
37 |
38 | # Close the connection after a client is idle for N seconds (0 to disable)
39 | timeout 300
40 |
41 | # Set server verbosity to 'debug'
42 | # it can be one of:
43 | # debug (a lot of information, useful for development/testing)
44 | # verbose (many rarely useful info, but not a mess like the debug level)
45 | # notice (moderately verbose, what you want in production probably)
46 | # warning (only very important / critical messages are logged)
47 | loglevel {{ redis_loglevel|default('notice') }}
48 |
49 | # Specify the log file name. Also 'stdout' can be used to force
50 | # Redis to log on the standard output. Note that if you use standard
51 | # output for logging but daemonize, logs will be sent to /dev/null
52 | logfile /var/log/redis/redis-server.log
53 |
54 | # To enable logging to the system logger, just set 'syslog-enabled' to yes,
55 | # and optionally update the other syslog parameters to suit your needs.
56 | # syslog-enabled no
57 |
58 | # Specify the syslog identity.
59 | # syslog-ident redis
60 |
61 | # Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
62 | # syslog-facility local0
63 |
64 | # Set the number of databases. The default database is DB 0, you can select
65 | # a different one on a per-connection basis using SELECT where
66 | # dbid is a number between 0 and 'databases'-1
67 | databases 16
68 |
69 | ################################ SNAPSHOTTING #################################
70 | #
71 | # Save the DB on disk:
72 | #
73 | # save
74 | #
75 | # Will save the DB if both the given number of seconds and the given
76 | # number of write operations against the DB occurred.
77 | #
78 | # In the example below the behaviour will be to save:
79 | # after 900 sec (15 min) if at least 1 key changed
80 | # after 300 sec (5 min) if at least 10 keys changed
81 | # after 60 sec if at least 10000 keys changed
82 | #
83 | # Note: you can disable saving at all commenting all the "save" lines.
84 |
85 | save 900 1
86 | save 300 10
87 | save 60 10000
88 |
89 | # Compress string objects using LZF when dump .rdb databases?
90 | # For default that's set to 'yes' as it's almost always a win.
91 | # If you want to save some CPU in the saving child set it to 'no' but
92 | # the dataset will likely be bigger if you have compressible values or keys.
93 | rdbcompression yes
94 |
95 | # The filename where to dump the DB
96 | dbfilename dump.rdb
97 |
98 | # The working directory.
99 | #
100 | # The DB will be written inside this directory, with the filename specified
101 | # above using the 'dbfilename' configuration directive.
102 | #
103 | # Also the Append Only File will be created inside this directory.
104 | #
105 | # Note that you must specify a directory here, not a file name.
106 | dir /var/lib/redis
107 |
108 | ################################# REPLICATION #################################
109 |
110 | # Master-Slave replication. Use slaveof to make a Redis instance a copy of
111 | # another Redis server. Note that the configuration is local to the slave
112 | # so for example it is possible to configure the slave to save the DB with a
113 | # different interval, or to listen to another port, and so on.
114 | #
115 | # slaveof
116 |
117 | # If the master is password protected (using the "requirepass" configuration
118 | # directive below) it is possible to tell the slave to authenticate before
119 | # starting the replication synchronization process, otherwise the master will
120 | # refuse the slave request.
121 | #
122 | # masterauth
123 |
124 | # When a slave lost the connection with the master, or when the replication
125 | # is still in progress, the slave can act in two different ways:
126 | #
127 | # 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
128 | # still reply to client requests, possibly with out of data data, or the
129 | # data set may just be empty if this is the first synchronization.
130 | #
131 | # 2) if slave-serve-stale data is set to 'no' the slave will reply with
132 | # an error "SYNC with master in progress" to all the kind of commands
133 | # but to INFO and SLAVEOF.
134 | #
135 | slave-serve-stale-data yes
136 |
137 | ################################## SECURITY ###################################
138 |
139 | # Require clients to issue AUTH before processing any other
140 | # commands. This might be useful in environments in which you do not trust
141 | # others with access to the host running redis-server.
142 | #
143 | # This should stay commented out for backward compatibility and because most
144 | # people do not need auth (e.g. they run their own servers).
145 | #
146 | # Warning: since Redis is pretty fast an outside user can try up to
147 | # 150k passwords per second against a good box. This means that you should
148 | # use a very strong password otherwise it will be very easy to break.
149 | #
150 | # requirepass foobared
151 |
152 | # Command renaming.
153 | #
154 | # It is possilbe to change the name of dangerous commands in a shared
155 | # environment. For instance the CONFIG command may be renamed into something
156 | # of hard to guess so that it will be still available for internal-use
157 | # tools but not available for general clients.
158 | #
159 | # Example:
160 | #
161 | # rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
162 | #
163 | # It is also possilbe to completely kill a command renaming it into
164 | # an empty string:
165 | #
166 | # rename-command CONFIG ""
167 |
168 | ################################### LIMITS ####################################
169 |
170 | # Set the max number of connected clients at the same time. By default there
171 | # is no limit, and it's up to the number of file descriptors the Redis process
172 | # is able to open. The special value '0' means no limits.
173 | # Once the limit is reached Redis will close all the new connections sending
174 | # an error 'max number of clients reached'.
175 | #
176 | # maxclients 128
177 |
178 | # Don't use more memory than the specified amount of bytes.
179 | # When the memory limit is reached Redis will try to remove keys with an
180 | # EXPIRE set. It will try to start freeing keys that are going to expire
181 | # in little time and preserve keys with a longer time to live.
182 | # Redis will also try to remove objects from free lists if possible.
183 | #
184 | # If all this fails, Redis will start to reply with errors to commands
185 | # that will use more memory, like SET, LPUSH, and so on, and will continue
186 | # to reply to most read-only commands like GET.
187 | #
188 | # WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
189 | # 'state' server or cache, not as a real DB. When Redis is used as a real
190 | # database the memory usage will grow over the weeks, it will be obvious if
191 | # it is going to use too much memory in the long run, and you'll have the time
192 | # to upgrade. With maxmemory after the limit is reached you'll start to get
193 | # errors for write operations, and this may even lead to DB inconsistency.
194 | #
195 | # maxmemory
196 |
197 | # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
198 | # is reached? You can select among five behavior:
199 | #
200 | # volatile-lru -> remove the key with an expire set using an LRU algorithm
201 | # allkeys-lru -> remove any key accordingly to the LRU algorithm
202 | # volatile-random -> remove a random key with an expire set
203 | # allkeys->random -> remove a random key, any key
204 | # volatile-ttl -> remove the key with the nearest expire time (minor TTL)
205 | # noeviction -> don't expire at all, just return an error on write operations
206 | #
207 | # Note: with all the kind of policies, Redis will return an error on write
208 | # operations, when there are not suitable keys for eviction.
209 | #
210 | # At the date of writing this commands are: set setnx setex append
211 | # incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd
212 | # sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby
213 | # zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby
214 | # getset mset msetnx exec sort
215 | #
216 | # The default is:
217 | #
218 | # maxmemory-policy volatile-lru
219 |
220 | # LRU and minimal TTL algorithms are not precise algorithms but approximated
221 | # algorithms (in order to save memory), so you can select as well the sample
222 | # size to check. For instance for default Redis will check three keys and
223 | # pick the one that was used less recently, you can change the sample size
224 | # using the following configuration directive.
225 | #
226 | # maxmemory-samples 3
227 |
228 | ############################## APPEND ONLY MODE ###############################
229 |
230 | # By default Redis asynchronously dumps the dataset on disk. If you can live
231 | # with the idea that the latest records will be lost if something like a crash
232 | # happens this is the preferred way to run Redis. If instead you care a lot
233 | # about your data and don't want to that a single record can get lost you should
234 | # enable the append only mode: when this mode is enabled Redis will append
235 | # every write operation received in the file appendonly.aof. This file will
236 | # be read on startup in order to rebuild the full dataset in memory.
237 | #
238 | # Note that you can have both the async dumps and the append only file if you
239 | # like (you have to comment the "save" statements above to disable the dumps).
240 | # Still if append only mode is enabled Redis will load the data from the
241 | # log file at startup ignoring the dump.rdb file.
242 | #
243 | # IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append
244 | # log file in background when it gets too big.
245 |
246 | appendonly no
247 |
248 | # The name of the append only file (default: "appendonly.aof")
249 | # appendfilename appendonly.aof
250 |
251 | # The fsync() call tells the Operating System to actually write data on disk
252 | # instead to wait for more data in the output buffer. Some OS will really flush
253 | # data on disk, some other OS will just try to do it ASAP.
254 | #
255 | # Redis supports three different modes:
256 | #
257 | # no: don't fsync, just let the OS flush the data when it wants. Faster.
258 | # always: fsync after every write to the append only log . Slow, Safest.
259 | # everysec: fsync only if one second passed since the last fsync. Compromise.
260 | #
261 | # The default is "everysec" that's usually the right compromise between
262 | # speed and data safety. It's up to you to understand if you can relax this to
263 | # "no" that will will let the operating system flush the output buffer when
264 | # it wants, for better performances (but if you can live with the idea of
265 | # some data loss consider the default persistence mode that's snapshotting),
266 | # or on the contrary, use "always" that's very slow but a bit safer than
267 | # everysec.
268 | #
269 | # If unsure, use "everysec".
270 |
271 | # appendfsync always
272 | appendfsync everysec
273 | # appendfsync no
274 |
275 | # When the AOF fsync policy is set to always or everysec, and a background
276 | # saving process (a background save or AOF log background rewriting) is
277 | # performing a lot of I/O against the disk, in some Linux configurations
278 | # Redis may block too long on the fsync() call. Note that there is no fix for
279 | # this currently, as even performing fsync in a different thread will block
280 | # our synchronous write(2) call.
281 | #
282 | # In order to mitigate this problem it's possible to use the following option
283 | # that will prevent fsync() from being called in the main process while a
284 | # BGSAVE or BGREWRITEAOF is in progress.
285 | #
286 | # This means that while another child is saving the durability of Redis is
287 | # the same as "appendfsync none", that in pratical terms means that it is
288 | # possible to lost up to 30 seconds of log in the worst scenario (with the
289 | # default Linux settings).
290 | #
291 | # If you have latency problems turn this to "yes". Otherwise leave it as
292 | # "no" that is the safest pick from the point of view of durability.
293 | no-appendfsync-on-rewrite no
294 |
295 | ################################ VIRTUAL MEMORY ###############################
296 |
297 | # Virtual Memory allows Redis to work with datasets bigger than the actual
298 | # amount of RAM needed to hold the whole dataset in memory.
299 | # In order to do so very used keys are taken in memory while the other keys
300 | # are swapped into a swap file, similarly to what operating systems do
301 | # with memory pages.
302 | #
303 | # To enable VM just set 'vm-enabled' to yes, and set the following three
304 | # VM parameters accordingly to your needs.
305 |
306 | vm-enabled no
307 | # vm-enabled yes
308 |
309 | # This is the path of the Redis swap file. As you can guess, swap files
310 | # can't be shared by different Redis instances, so make sure to use a swap
311 | # file for every redis process you are running. Redis will complain if the
312 | # swap file is already in use.
313 | #
314 | # The best kind of storage for the Redis swap file (that's accessed at random)
315 | # is a Solid State Disk (SSD).
316 | #
317 | # *** WARNING *** if you are using a shared hosting the default of putting
318 | # the swap file under /tmp is not secure. Create a dir with access granted
319 | # only to Redis user and configure Redis to create the swap file there.
320 | vm-swap-file /var/lib/redis/redis.swap
321 |
322 | # vm-max-memory configures the VM to use at max the specified amount of
323 | # RAM. Everything that deos not fit will be swapped on disk *if* possible, that
324 | # is, if there is still enough contiguous space in the swap file.
325 | #
326 | # With vm-max-memory 0 the system will swap everything it can. Not a good
327 | # default, just specify the max amount of RAM you can in bytes, but it's
328 | # better to leave some margin. For instance specify an amount of RAM
329 | # that's more or less between 60 and 80% of your free RAM.
330 | vm-max-memory 0
331 |
332 | # Redis swap files is split into pages. An object can be saved using multiple
333 | # contiguous pages, but pages can't be shared between different objects.
334 | # So if your page is too big, small objects swapped out on disk will waste
335 | # a lot of space. If you page is too small, there is less space in the swap
336 | # file (assuming you configured the same number of total swap file pages).
337 | #
338 | # If you use a lot of small objects, use a page size of 64 or 32 bytes.
339 | # If you use a lot of big objects, use a bigger page size.
340 | # If unsure, use the default :)
341 | vm-page-size 32
342 |
343 | # Number of total memory pages in the swap file.
344 | # Given that the page table (a bitmap of free/used pages) is taken in memory,
345 | # every 8 pages on disk will consume 1 byte of RAM.
346 | #
347 | # The total swap size is vm-page-size * vm-pages
348 | #
349 | # With the default of 32-bytes memory pages and 134217728 pages Redis will
350 | # use a 4 GB swap file, that will use 16 MB of RAM for the page table.
351 | #
352 | # It's better to use the smallest acceptable value for your application,
353 | # but the default is large in order to work in most conditions.
354 | vm-pages 134217728
355 |
356 | # Max number of VM I/O threads running at the same time.
357 | # This threads are used to read/write data from/to swap file, since they
358 | # also encode and decode objects from disk to memory or the reverse, a bigger
359 | # number of threads can help with big objects even if they can't help with
360 | # I/O itself as the physical device may not be able to couple with many
361 | # reads/writes operations at the same time.
362 | #
363 | # The special value of 0 turn off threaded I/O and enables the blocking
364 | # Virtual Memory implementation.
365 | vm-max-threads 4
366 |
367 | ############################### ADVANCED CONFIG ###############################
368 |
369 | # Hashes are encoded in a special way (much more memory efficient) when they
370 | # have at max a given numer of elements, and the biggest element does not
371 | # exceed a given threshold. You can configure this limits with the following
372 | # configuration directives.
373 | hash-max-zipmap-entries 512
374 | hash-max-zipmap-value 64
375 |
376 | # Similarly to hashes, small lists are also encoded in a special way in order
377 | # to save a lot of space. The special representation is only used when
378 | # you are under the following limits:
379 | list-max-ziplist-entries 512
380 | list-max-ziplist-value 64
381 |
382 | # Sets have a special encoding in just one case: when a set is composed
383 | # of just strings that happens to be integers in radix 10 in the range
384 | # of 64 bit signed integers.
385 | # The following configuration setting sets the limit in the size of the
386 | # set in order to use this special memory saving encoding.
387 | set-max-intset-entries 512
388 |
389 | # Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
390 | # order to help rehashing the main Redis hash table (the one mapping top-level
391 | # keys to values). The hash table implementation redis uses (see dict.c)
392 | # performs a lazy rehashing: the more operation you run into an hash table
393 | # that is rhashing, the more rehashing "steps" are performed, so if the
394 | # server is idle the rehashing is never complete and some more memory is used
395 | # by the hash table.
396 | #
397 | # The default is to use this millisecond 10 times every second in order to
398 | # active rehashing the main dictionaries, freeing memory when possible.
399 | #
400 | # If unsure:
401 | # use "activerehashing no" if you have hard latency requirements and it is
402 | # not a good thing in your environment that Redis can reply form time to time
403 | # to queries with 2 milliseconds delay.
404 | #
405 | # use "activerehashing yes" if you don't have such hard requirements but
406 | # want to free memory asap when possible.
407 | activerehashing yes
408 |
409 | ################################## INCLUDES ###################################
410 |
411 | # Include one or more other config files here. This is useful if you
412 | # have a standard template that goes to all redis server but also need
413 | # to customize a few per-server settings. Include files can include
414 | # other files, so use this wisely.
415 | #
416 | # include /path/to/local.conf
417 | # include /path/to/other.conf
418 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/roles/php/templates/php_cli.ini.j2:
--------------------------------------------------------------------------------
1 | ; {{ ansible_managed }}
2 |
3 | [PHP]
4 |
5 | ;;;;;;;;;;;;;;;;;;;
6 | ; About php.ini ;
7 | ;;;;;;;;;;;;;;;;;;;
8 | ; PHP's initialization file, generally called php.ini, is responsible for
9 | ; configuring many of the aspects of PHP's behavior.
10 |
11 | ; PHP attempts to find and load this configuration from a number of locations.
12 | ; The following is a summary of its search order:
13 | ; 1. SAPI module specific location.
14 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
15 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
16 | ; 4. Current working directory (except CLI)
17 | ; 5. The web server's directory (for SAPI modules), or directory of PHP
18 | ; (otherwise in Windows)
19 | ; 6. The directory from the --with-config-file-path compile time option, or the
20 | ; Windows directory (C:\windows or C:\winnt)
21 | ; See the PHP docs for more specific information.
22 | ; http://php.net/configuration.file
23 |
24 | ; The syntax of the file is extremely simple. Whitespace and Lines
25 | ; beginning with a semicolon are silently ignored (as you probably guessed).
26 | ; Section headers (e.g. [Foo]) are also silently ignored, even though
27 | ; they might mean something in the future.
28 |
29 | ; Directives following the section heading [PATH=/www/mysite] only
30 | ; apply to PHP files in the /www/mysite directory. Directives
31 | ; following the section heading [HOST=www.example.com] only apply to
32 | ; PHP files served from www.example.com. Directives set in these
33 | ; special sections cannot be overridden by user-defined INI files or
34 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
35 | ; CGI/FastCGI.
36 | ; http://php.net/ini.sections
37 |
38 | ; Directives are specified using the following syntax:
39 | ; directive = value
40 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
41 | ; Directives are variables used to configure PHP or PHP extensions.
42 | ; There is no name validation. If PHP can't find an expected
43 | ; directive because it is not set or is mistyped, a default value will be used.
44 |
45 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
46 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
47 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
48 | ; previously set variable or directive (e.g. ${foo})
49 |
50 | ; Expressions in the INI file are limited to bitwise operators and parentheses:
51 | ; | bitwise OR
52 | ; ^ bitwise XOR
53 | ; & bitwise AND
54 | ; ~ bitwise NOT
55 | ; ! boolean NOT
56 |
57 | ; Boolean flags can be turned on using the values 1, On, True or Yes.
58 | ; They can be turned off using the values 0, Off, False or No.
59 |
60 | ; An empty string can be denoted by simply not writing anything after the equal
61 | ; sign, or by using the None keyword:
62 |
63 | ; foo = ; sets foo to an empty string
64 | ; foo = None ; sets foo to an empty string
65 | ; foo = "None" ; sets foo to the string 'None'
66 |
67 | ; If you use constants in your value, and these constants belong to a
68 | ; dynamically loaded extension (either a PHP extension or a Zend extension),
69 | ; you may only use these constants *after* the line that loads the extension.
70 |
71 | ;;;;;;;;;;;;;;;;;;;
72 | ; About this file ;
73 | ;;;;;;;;;;;;;;;;;;;
74 | ; PHP comes packaged with two INI files. One that is recommended to be used
75 | ; in production environments and one that is recommended to be used in
76 | ; development environments.
77 |
78 | ; php.ini-production contains settings which hold security, performance and
79 | ; best practices at its core. But please be aware, these settings may break
80 | ; compatibility with older or less security conscience applications. We
81 | ; recommending using the production ini in production and testing environments.
82 |
83 | ; php.ini-development is very similar to its production variant, except it's
84 | ; much more verbose when it comes to errors. We recommending using the
85 | ; development version only in development environments as errors shown to
86 | ; application users can inadvertently leak otherwise secure information.
87 |
88 | ;;;;;;;;;;;;;;;;;;;
89 | ; Quick Reference ;
90 | ;;;;;;;;;;;;;;;;;;;
91 | ; The following are all the settings which are different in either the production
92 | ; or development versions of the INIs with respect to PHP's default behavior.
93 | ; Please see the actual settings later in the document for more details as to why
94 | ; we recommend these changes in PHP's behavior.
95 |
96 | ; allow_call_time_pass_reference
97 | ; Default Value: On
98 | ; Development Value: Off
99 | ; Production Value: Off
100 |
101 | ; display_errors
102 | ; Default Value: On
103 | ; Development Value: On
104 | ; Production Value: Off
105 |
106 | ; display_startup_errors
107 | ; Default Value: Off
108 | ; Development Value: On
109 | ; Production Value: Off
110 |
111 | ; error_reporting
112 | ; Default Value: E_ALL & ~E_NOTICE
113 | ; Development Value: E_ALL | E_STRICT
114 | ; Production Value: E_ALL & ~E_DEPRECATED
115 |
116 | ; html_errors
117 | ; Default Value: On
118 | ; Development Value: On
119 | ; Production value: Off
120 |
121 | ; log_errors
122 | ; Default Value: Off
123 | ; Development Value: On
124 | ; Production Value: On
125 |
126 | ; magic_quotes_gpc
127 | ; Default Value: On
128 | ; Development Value: Off
129 | ; Production Value: Off
130 |
131 | ; max_input_time
132 | ; Default Value: -1 (Unlimited)
133 | ; Development Value: 60 (60 seconds)
134 | ; Production Value: 60 (60 seconds)
135 |
136 | ; output_buffering
137 | ; Default Value: Off
138 | ; Development Value: 4096
139 | ; Production Value: 4096
140 |
141 | ; register_argc_argv
142 | ; Default Value: On
143 | ; Development Value: Off
144 | ; Production Value: Off
145 |
146 | ; register_long_arrays
147 | ; Default Value: On
148 | ; Development Value: Off
149 | ; Production Value: Off
150 |
151 | ; request_order
152 | ; Default Value: None
153 | ; Development Value: "GP"
154 | ; Production Value: "GP"
155 |
156 | ; session.bug_compat_42
157 | ; Default Value: On
158 | ; Development Value: On
159 | ; Production Value: Off
160 |
161 | ; session.bug_compat_warn
162 | ; Default Value: On
163 | ; Development Value: On
164 | ; Production Value: Off
165 |
166 | ; session.gc_divisor
167 | ; Default Value: 100
168 | ; Development Value: 1000
169 | ; Production Value: 1000
170 |
171 | ; session.hash_bits_per_character
172 | ; Default Value: 4
173 | ; Development Value: 5
174 | ; Production Value: 5
175 |
176 | ; short_open_tag
177 | ; Default Value: On
178 | ; Development Value: Off
179 | ; Production Value: Off
180 |
181 | ; track_errors
182 | ; Default Value: Off
183 | ; Development Value: On
184 | ; Production Value: Off
185 |
186 | ; url_rewriter.tags
187 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
188 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
189 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
190 |
191 | ; variables_order
192 | ; Default Value: "EGPCS"
193 | ; Development Value: "GPCS"
194 | ; Production Value: "GPCS"
195 |
196 | ;;;;;;;;;;;;;;;;;;;;
197 | ; php.ini Options ;
198 | ;;;;;;;;;;;;;;;;;;;;
199 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
200 | ;user_ini.filename = ".user.ini"
201 |
202 | ; To disable this feature set this option to empty value
203 | ;user_ini.filename =
204 |
205 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
206 | ;user_ini.cache_ttl = 300
207 |
208 | ;;;;;;;;;;;;;;;;;;;;
209 | ; Language Options ;
210 | ;;;;;;;;;;;;;;;;;;;;
211 |
212 | ; Enable the PHP scripting language engine under Apache.
213 | ; http://php.net/engine
214 | engine = On
215 |
216 | ; This directive determines whether or not PHP will recognize code between
217 | ; and ?> tags as PHP source which should be processed as such. It's been
218 | ; recommended for several years that you not use the short tag "short cut" and
219 | ; instead to use the full tag combination. With the wide spread use
220 | ; of XML and use of these tags by other languages, the server can become easily
221 | ; confused and end up parsing the wrong code in the wrong context. But because
222 | ; this short cut has been a feature for such a long time, it's currently still
223 | ; supported for backwards compatibility, but we recommend you don't use them.
224 | ; Default Value: On
225 | ; Development Value: Off
226 | ; Production Value: Off
227 | ; http://php.net/short-open-tag
228 | short_open_tag = On
229 |
230 | ; Allow ASP-style <% %> tags.
231 | ; http://php.net/asp-tags
232 | asp_tags = Off
233 |
234 | ; The number of significant digits displayed in floating point numbers.
235 | ; http://php.net/precision
236 | precision = 14
237 |
238 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
239 | ; http://php.net/y2k-compliance
240 | y2k_compliance = On
241 |
242 | ; Output buffering is a mechanism for controlling how much output data
243 | ; (excluding headers and cookies) PHP should keep internally before pushing that
244 | ; data to the client. If your application's output exceeds this setting, PHP
245 | ; will send that data in chunks of roughly the size you specify.
246 | ; Turning on this setting and managing its maximum buffer size can yield some
247 | ; interesting side-effects depending on your application and web server.
248 | ; You may be able to send headers and cookies after you've already sent output
249 | ; through print or echo. You also may see performance benefits if your server is
250 | ; emitting less packets due to buffered output versus PHP streaming the output
251 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance
252 | ; reasons.
253 | ; Note: Output buffering can also be controlled via Output Buffering Control
254 | ; functions.
255 | ; Possible Values:
256 | ; On = Enabled and buffer is unlimited. (Use with caution)
257 | ; Off = Disabled
258 | ; Integer = Enables the buffer and sets its maximum size in bytes.
259 | ; Note: This directive is hardcoded to Off for the CLI SAPI
260 | ; Default Value: Off
261 | ; Development Value: 4096
262 | ; Production Value: 4096
263 | ; http://php.net/output-buffering
264 | output_buffering = 4096
265 |
266 | ; You can redirect all of the output of your scripts to a function. For
267 | ; example, if you set output_handler to "mb_output_handler", character
268 | ; encoding will be transparently converted to the specified encoding.
269 | ; Setting any output handler automatically turns on output buffering.
270 | ; Note: People who wrote portable scripts should not depend on this ini
271 | ; directive. Instead, explicitly set the output handler using ob_start().
272 | ; Using this ini directive may cause problems unless you know what script
273 | ; is doing.
274 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
275 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
276 | ; Note: output_handler must be empty if this is set 'On' !!!!
277 | ; Instead you must use zlib.output_handler.
278 | ; http://php.net/output-handler
279 | ;output_handler =
280 |
281 | ; Transparent output compression using the zlib library
282 | ; Valid values for this option are 'off', 'on', or a specific buffer size
283 | ; to be used for compression (default is 4KB)
284 | ; Note: Resulting chunk size may vary due to nature of compression. PHP
285 | ; outputs chunks that are few hundreds bytes each as a result of
286 | ; compression. If you prefer a larger chunk size for better
287 | ; performance, enable output_buffering in addition.
288 | ; Note: You need to use zlib.output_handler instead of the standard
289 | ; output_handler, or otherwise the output will be corrupted.
290 | ; http://php.net/zlib.output-compression
291 | zlib.output_compression = Off
292 |
293 | ; http://php.net/zlib.output-compression-level
294 | ;zlib.output_compression_level = -1
295 |
296 | ; You cannot specify additional output handlers if zlib.output_compression
297 | ; is activated here. This setting does the same as output_handler but in
298 | ; a different order.
299 | ; http://php.net/zlib.output-handler
300 | ;zlib.output_handler =
301 |
302 | ; Implicit flush tells PHP to tell the output layer to flush itself
303 | ; automatically after every output block. This is equivalent to calling the
304 | ; PHP function flush() after each and every call to print() or echo() and each
305 | ; and every HTML block. Turning this option on has serious performance
306 | ; implications and is generally recommended for debugging purposes only.
307 | ; http://php.net/implicit-flush
308 | ; Note: This directive is hardcoded to On for the CLI SAPI
309 | implicit_flush = Off
310 |
311 | ; The unserialize callback function will be called (with the undefined class'
312 | ; name as parameter), if the unserializer finds an undefined class
313 | ; which should be instantiated. A warning appears if the specified function is
314 | ; not defined, or if the function doesn't include/implement the missing class.
315 | ; So only set this entry, if you really want to implement such a
316 | ; callback-function.
317 | unserialize_callback_func =
318 |
319 | ; When floats & doubles are serialized store serialize_precision significant
320 | ; digits after the floating point. The default value ensures that when floats
321 | ; are decoded with unserialize, the data will remain the same.
322 | serialize_precision = 17
323 |
324 | ; This directive allows you to enable and disable warnings which PHP will issue
325 | ; if you pass a value by reference at function call time. Passing values by
326 | ; reference at function call time is a deprecated feature which will be removed
327 | ; from PHP at some point in the near future. The acceptable method for passing a
328 | ; value by reference to a function is by declaring the reference in the functions
329 | ; definition, not at call time. This directive does not disable this feature, it
330 | ; only determines whether PHP will warn you about it or not. These warnings
331 | ; should enabled in development environments only.
332 | ; Default Value: On (Suppress warnings)
333 | ; Development Value: Off (Issue warnings)
334 | ; Production Value: Off (Issue warnings)
335 | ; http://php.net/allow-call-time-pass-reference
336 | allow_call_time_pass_reference = Off
337 |
338 | ; Safe Mode
339 | ; http://php.net/safe-mode
340 | safe_mode = Off
341 |
342 | ; By default, Safe Mode does a UID compare check when
343 | ; opening files. If you want to relax this to a GID compare,
344 | ; then turn on safe_mode_gid.
345 | ; http://php.net/safe-mode-gid
346 | safe_mode_gid = Off
347 |
348 | ; When safe_mode is on, UID/GID checks are bypassed when
349 | ; including files from this directory and its subdirectories.
350 | ; (directory must also be in include_path or full path must
351 | ; be used when including)
352 | ; http://php.net/safe-mode-include-dir
353 | safe_mode_include_dir =
354 |
355 | ; When safe_mode is on, only executables located in the safe_mode_exec_dir
356 | ; will be allowed to be executed via the exec family of functions.
357 | ; http://php.net/safe-mode-exec-dir
358 | safe_mode_exec_dir =
359 |
360 | ; Setting certain environment variables may be a potential security breach.
361 | ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
362 | ; the user may only alter environment variables whose names begin with the
363 | ; prefixes supplied here. By default, users will only be able to set
364 | ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
365 | ; Note: If this directive is empty, PHP will let the user modify ANY
366 | ; environment variable!
367 | ; http://php.net/safe-mode-allowed-env-vars
368 | safe_mode_allowed_env_vars = PHP_
369 |
370 | ; This directive contains a comma-delimited list of environment variables that
371 | ; the end user won't be able to change using putenv(). These variables will be
372 | ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
373 | ; http://php.net/safe-mode-protected-env-vars
374 | safe_mode_protected_env_vars = LD_LIBRARY_PATH
375 |
376 | ; open_basedir, if set, limits all file operations to the defined directory
377 | ; and below. This directive makes most sense if used in a per-directory
378 | ; or per-virtualhost web server configuration file. This directive is
379 | ; *NOT* affected by whether Safe Mode is turned On or Off.
380 | ; http://php.net/open-basedir
381 | ;open_basedir =
382 |
383 | ; This directive allows you to disable certain functions for security reasons.
384 | ; It receives a comma-delimited list of function names. This directive is
385 | ; *NOT* affected by whether Safe Mode is turned On or Off.
386 | ; http://php.net/disable-functions
387 | disable_functions =
388 |
389 | ; This directive allows you to disable certain classes for security reasons.
390 | ; It receives a comma-delimited list of class names. This directive is
391 | ; *NOT* affected by whether Safe Mode is turned On or Off.
392 | ; http://php.net/disable-classes
393 | disable_classes =
394 |
395 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in
396 | ; would work.
397 | ; http://php.net/syntax-highlighting
398 | ;highlight.string = #DD0000
399 | ;highlight.comment = #FF9900
400 | ;highlight.keyword = #007700
401 | ;highlight.bg = #FFFFFF
402 | ;highlight.default = #0000BB
403 | ;highlight.html = #000000
404 |
405 | ; If enabled, the request will be allowed to complete even if the user aborts
406 | ; the request. Consider enabling it if executing long requests, which may end up
407 | ; being interrupted by the user or a browser timing out. PHP's default behavior
408 | ; is to disable this feature.
409 | ; http://php.net/ignore-user-abort
410 | ;ignore_user_abort = On
411 |
412 | ; Determines the size of the realpath cache to be used by PHP. This value should
413 | ; be increased on systems where PHP opens many files to reflect the quantity of
414 | ; the file operations performed.
415 | ; http://php.net/realpath-cache-size
416 | ;realpath_cache_size = 16k
417 |
418 | ; Duration of time, in seconds for which to cache realpath information for a given
419 | ; file or directory. For systems with rarely changing files, consider increasing this
420 | ; value.
421 | ; http://php.net/realpath-cache-ttl
422 | ;realpath_cache_ttl = 120
423 |
424 | ; Enables or disables the circular reference collector.
425 | ; http://php.net/zend.enable-gc
426 | zend.enable_gc = On
427 |
428 | ;;;;;;;;;;;;;;;;;
429 | ; Miscellaneous ;
430 | ;;;;;;;;;;;;;;;;;
431 |
432 | ; Decides whether PHP may expose the fact that it is installed on the server
433 | ; (e.g. by adding its signature to the Web server header). It is no security
434 | ; threat in any way, but it makes it possible to determine whether you use PHP
435 | ; on your server or not.
436 | ; http://php.net/expose-php
437 | expose_php = On
438 |
439 | ;;;;;;;;;;;;;;;;;;;
440 | ; Resource Limits ;
441 | ;;;;;;;;;;;;;;;;;;;
442 |
443 | ; Maximum execution time of each script, in seconds
444 | ; http://php.net/max-execution-time
445 | ; Note: This directive is hardcoded to 0 for the CLI SAPI
446 | max_execution_time = {{ php_max_execution_time|default('60') }}
447 |
448 | ; Maximum amount of time each script may spend parsing request data. It's a good
449 | ; idea to limit this time on productions servers in order to eliminate unexpectedly
450 | ; long running scripts.
451 | ; Note: This directive is hardcoded to -1 for the CLI SAPI
452 | ; Default Value: -1 (Unlimited)
453 | ; Development Value: 60 (60 seconds)
454 | ; Production Value: 60 (60 seconds)
455 | ; http://php.net/max-input-time
456 | max_input_time = {{ php_max_input_time|default('60') }}
457 |
458 | ; Maximum input variable nesting level
459 | ; http://php.net/max-input-nesting-level
460 | ;max_input_nesting_level = 64
461 |
462 | ; How many GET/POST/COOKIE input variables may be accepted
463 | ; max_input_vars = 1000
464 |
465 | ; Maximum amount of memory a script may consume (128MB)
466 | ; http://php.net/memory-limit
467 | memory_limit = -1
468 |
469 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
470 | ; Error handling and logging ;
471 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
472 |
473 | ; This directive informs PHP of which errors, warnings and notices you would like
474 | ; it to take action for. The recommended way of setting values for this
475 | ; directive is through the use of the error level constants and bitwise
476 | ; operators. The error level constants are below here for convenience as well as
477 | ; some common settings and their meanings.
478 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
479 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and
480 | ; recommended coding standards in PHP. For performance reasons, this is the
481 | ; recommend error reporting setting. Your production server shouldn't be wasting
482 | ; resources complaining about best practices and coding standards. That's what
483 | ; development servers and development settings are for.
484 | ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
485 | ; means it pretty much reports everything which is exactly what you want during
486 | ; development and early testing.
487 | ;
488 | ; Error Level Constants:
489 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
490 | ; E_ERROR - fatal run-time errors
491 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors
492 | ; E_WARNING - run-time warnings (non-fatal errors)
493 | ; E_PARSE - compile-time parse errors
494 | ; E_NOTICE - run-time notices (these are warnings which often result
495 | ; from a bug in your code, but it's possible that it was
496 | ; intentional (e.g., using an uninitialized variable and
497 | ; relying on the fact it's automatically initialized to an
498 | ; empty string)
499 | ; E_STRICT - run-time notices, enable to have PHP suggest changes
500 | ; to your code which will ensure the best interoperability
501 | ; and forward compatibility of your code
502 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
503 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
504 | ; initial startup
505 | ; E_COMPILE_ERROR - fatal compile-time errors
506 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
507 | ; E_USER_ERROR - user-generated error message
508 | ; E_USER_WARNING - user-generated warning message
509 | ; E_USER_NOTICE - user-generated notice message
510 | ; E_DEPRECATED - warn about code that will not work in future versions
511 | ; of PHP
512 | ; E_USER_DEPRECATED - user-generated deprecation warnings
513 | ;
514 | ; Common Values:
515 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
516 | ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
517 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
518 | ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
519 | ; Default Value: E_ALL & ~E_NOTICE
520 | ; Development Value: E_ALL | E_STRICT
521 | ; Production Value: E_ALL & ~E_DEPRECATED
522 | ; http://php.net/error-reporting
523 | error_reporting = {{ php_error_reporting|default('E_ALL | E_STRICT') }}
524 |
525 | ; This directive controls whether or not and where PHP will output errors,
526 | ; notices and warnings too. Error output is very useful during development, but
527 | ; it could be very dangerous in production environments. Depending on the code
528 | ; which is triggering the error, sensitive information could potentially leak
529 | ; out of your application such as database usernames and passwords or worse.
530 | ; It's recommended that errors be logged on production servers rather than
531 | ; having the errors sent to STDOUT.
532 | ; Possible Values:
533 | ; Off = Do not display any errors
534 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
535 | ; On or stdout = Display errors to STDOUT
536 | ; Default Value: On
537 | ; Development Value: On
538 | ; Production Value: Off
539 | ; http://php.net/display-errors
540 | display_errors = {{ php_display_errors|default('On') }}
541 |
542 | ; The display of errors which occur during PHP's startup sequence are handled
543 | ; separately from display_errors. PHP's default behavior is to suppress those
544 | ; errors from clients. Turning the display of startup errors on can be useful in
545 | ; debugging configuration problems. But, it's strongly recommended that you
546 | ; leave this setting off on production servers.
547 | ; Default Value: Off
548 | ; Development Value: On
549 | ; Production Value: Off
550 | ; http://php.net/display-startup-errors
551 | display_startup_errors = {{ php_display_startup_errors|default('On') }}
552 |
553 | ; Besides displaying errors, PHP can also log errors to locations such as a
554 | ; server-specific log, STDERR, or a location specified by the error_log
555 | ; directive found below. While errors should not be displayed on productions
556 | ; servers they should still be monitored and logging is a great way to do that.
557 | ; Default Value: Off
558 | ; Development Value: On
559 | ; Production Value: On
560 | ; http://php.net/log-errors
561 | log_errors = On
562 |
563 | ; Set maximum length of log_errors. In error_log information about the source is
564 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
565 | ; http://php.net/log-errors-max-len
566 | log_errors_max_len = 1024
567 |
568 | ; Do not log repeated messages. Repeated errors must occur in same file on same
569 | ; line unless ignore_repeated_source is set true.
570 | ; http://php.net/ignore-repeated-errors
571 | ignore_repeated_errors = Off
572 |
573 | ; Ignore source of message when ignoring repeated messages. When this setting
574 | ; is On you will not log errors with repeated messages from different files or
575 | ; source lines.
576 | ; http://php.net/ignore-repeated-source
577 | ignore_repeated_source = Off
578 |
579 | ; If this parameter is set to Off, then memory leaks will not be shown (on
580 | ; stdout or in the log). This has only effect in a debug compile, and if
581 | ; error reporting includes E_WARNING in the allowed list
582 | ; http://php.net/report-memleaks
583 | report_memleaks = On
584 |
585 | ; This setting is on by default.
586 | ;report_zend_debug = 0
587 |
588 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
589 | ; to On can assist in debugging and is appropriate for development servers. It should
590 | ; however be disabled on production servers.
591 | ; Default Value: Off
592 | ; Development Value: On
593 | ; Production Value: Off
594 | ; http://php.net/track-errors
595 | track_errors = Off
596 |
597 | ; Turn off normal error reporting and emit XML-RPC error XML
598 | ; http://php.net/xmlrpc-errors
599 | ;xmlrpc_errors = 0
600 |
601 | ; An XML-RPC faultCode
602 | ;xmlrpc_error_number = 0
603 |
604 | ; When PHP displays or logs an error, it has the capability of inserting html
605 | ; links to documentation related to that error. This directive controls whether
606 | ; those HTML links appear in error messages or not. For performance and security
607 | ; reasons, it's recommended you disable this on production servers.
608 | ; Note: This directive is hardcoded to Off for the CLI SAPI
609 | ; Default Value: On
610 | ; Development Value: On
611 | ; Production value: Off
612 | ; http://php.net/html-errors
613 | html_errors = Off
614 |
615 | ; If html_errors is set On PHP produces clickable error messages that direct
616 | ; to a page describing the error or function causing the error in detail.
617 | ; You can download a copy of the PHP manual from http://php.net/docs
618 | ; and change docref_root to the base URL of your local copy including the
619 | ; leading '/'. You must also specify the file extension being used including
620 | ; the dot. PHP's default behavior is to leave these settings empty.
621 | ; Note: Never use this feature for production boxes.
622 | ; http://php.net/docref-root
623 | ; Examples
624 | ;docref_root = "/phpmanual/"
625 |
626 | ; http://php.net/docref-ext
627 | ;docref_ext = .html
628 |
629 | ; String to output before an error message. PHP's default behavior is to leave
630 | ; this setting blank.
631 | ; http://php.net/error-prepend-string
632 | ; Example:
633 | ;error_prepend_string = ""
634 |
635 | ; String to output after an error message. PHP's default behavior is to leave
636 | ; this setting blank.
637 | ; http://php.net/error-append-string
638 | ; Example:
639 | ;error_append_string = ""
640 |
641 | ; Log errors to specified file. PHP's default behavior is to leave this value
642 | ; empty.
643 | ; http://php.net/error-log
644 | ; Example:
645 | ;error_log = php_errors.log
646 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
647 | ;error_log = syslog
648 |
649 | ;windows.show_crt_warning
650 | ; Default value: 0
651 | ; Development value: 0
652 | ; Production value: 0
653 |
654 | ;;;;;;;;;;;;;;;;;
655 | ; Data Handling ;
656 | ;;;;;;;;;;;;;;;;;
657 |
658 | ; The separator used in PHP generated URLs to separate arguments.
659 | ; PHP's default setting is "&".
660 | ; http://php.net/arg-separator.output
661 | ; Example:
662 | ;arg_separator.output = "&"
663 |
664 | ; List of separator(s) used by PHP to parse input URLs into variables.
665 | ; PHP's default setting is "&".
666 | ; NOTE: Every character in this directive is considered as separator!
667 | ; http://php.net/arg-separator.input
668 | ; Example:
669 | ;arg_separator.input = ";&"
670 |
671 | ; This directive determines which super global arrays are registered when PHP
672 | ; starts up. If the register_globals directive is enabled, it also determines
673 | ; what order variables are populated into the global space. G,P,C,E & S are
674 | ; abbreviations for the following respective super globals: GET, POST, COOKIE,
675 | ; ENV and SERVER. There is a performance penalty paid for the registration of
676 | ; these arrays and because ENV is not as commonly used as the others, ENV is
677 | ; is not recommended on productions servers. You can still get access to
678 | ; the environment variables through getenv() should you need to.
679 | ; Default Value: "EGPCS"
680 | ; Development Value: "GPCS"
681 | ; Production Value: "GPCS";
682 | ; http://php.net/variables-order
683 | variables_order = "GPCS"
684 |
685 | ; This directive determines which super global data (G,P,C,E & S) should
686 | ; be registered into the super global array REQUEST. If so, it also determines
687 | ; the order in which that data is registered. The values for this directive are
688 | ; specified in the same manner as the variables_order directive, EXCEPT one.
689 | ; Leaving this value empty will cause PHP to use the value set in the
690 | ; variables_order directive. It does not mean it will leave the super globals
691 | ; array REQUEST empty.
692 | ; Default Value: None
693 | ; Development Value: "GP"
694 | ; Production Value: "GP"
695 | ; http://php.net/request-order
696 | request_order = "GP"
697 |
698 | ; Whether or not to register the EGPCS variables as global variables. You may
699 | ; want to turn this off if you don't want to clutter your scripts' global scope
700 | ; with user data.
701 | ; You should do your best to write your scripts so that they do not require
702 | ; register_globals to be on; Using form variables as globals can easily lead
703 | ; to possible security problems, if the code is not very well thought of.
704 | ; http://php.net/register-globals
705 | register_globals = Off
706 |
707 | ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
708 | ; are registered by PHP or not. As they are deprecated, we obviously don't
709 | ; recommend you use them. They are on by default for compatibility reasons but
710 | ; they are not recommended on production servers.
711 | ; Default Value: On
712 | ; Development Value: Off
713 | ; Production Value: Off
714 | ; http://php.net/register-long-arrays
715 | register_long_arrays = Off
716 |
717 | ; This directive determines whether PHP registers $argv & $argc each time it
718 | ; runs. $argv contains an array of all the arguments passed to PHP when a script
719 | ; is invoked. $argc contains an integer representing the number of arguments
720 | ; that were passed when the script was invoked. These arrays are extremely
721 | ; useful when running scripts from the command line. When this directive is
722 | ; enabled, registering these variables consumes CPU cycles and memory each time
723 | ; a script is executed. For performance reasons, this feature should be disabled
724 | ; on production servers.
725 | ; Note: This directive is hardcoded to On for the CLI SAPI
726 | ; Default Value: On
727 | ; Development Value: Off
728 | ; Production Value: Off
729 | ; http://php.net/register-argc-argv
730 | register_argc_argv = Off
731 |
732 | ; When enabled, the SERVER and ENV variables are created when they're first
733 | ; used (Just In Time) instead of when the script starts. If these variables
734 | ; are not used within a script, having this directive on will result in a
735 | ; performance gain. The PHP directives register_globals, register_long_arrays,
736 | ; and register_argc_argv must be disabled for this directive to have any affect.
737 | ; http://php.net/auto-globals-jit
738 | auto_globals_jit = On
739 |
740 | ; Maximum size of POST data that PHP will accept.
741 | ; http://php.net/post-max-size
742 | post_max_size = {{ php_post_max_size|default('64M') }}
743 |
744 | ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
745 | ; escape any character sequences in GET, POST, COOKIE and ENV data which might
746 | ; otherwise corrupt data being placed in resources such as databases before
747 | ; making that data available to you. Because of character encoding issues and
748 | ; non-standard SQL implementations across many databases, it's not currently
749 | ; possible for this feature to be 100% accurate. PHP's default behavior is to
750 | ; enable the feature. We strongly recommend you use the escaping mechanisms
751 | ; designed specifically for the database your using instead of relying on this
752 | ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
753 | ; scheduled for removal in PHP 6.
754 | ; Default Value: On
755 | ; Development Value: Off
756 | ; Production Value: Off
757 | ; http://php.net/magic-quotes-gpc
758 | magic_quotes_gpc = Off
759 |
760 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
761 | ; http://php.net/magic-quotes-runtime
762 | magic_quotes_runtime = Off
763 |
764 | ; Use Sybase-style magic quotes (escape ' with '' instead of \').
765 | ; http://php.net/magic-quotes-sybase
766 | magic_quotes_sybase = Off
767 |
768 | ; Automatically add files before PHP document.
769 | ; http://php.net/auto-prepend-file
770 | auto_prepend_file =
771 |
772 | ; Automatically add files after PHP document.
773 | ; http://php.net/auto-append-file
774 | auto_append_file =
775 |
776 | ; By default, PHP will output a character encoding using
777 | ; the Content-type: header. To disable sending of the charset, simply
778 | ; set it to be empty.
779 | ;
780 | ; PHP's built-in default is text/html
781 | ; http://php.net/default-mimetype
782 | default_mimetype = "text/html"
783 |
784 | ; PHP's default character set is set to empty.
785 | ; http://php.net/default-charset
786 | ;default_charset = "iso-8859-1"
787 |
788 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
789 | ; to disable this feature.
790 | ; http://php.net/always-populate-raw-post-data
791 | ;always_populate_raw_post_data = On
792 |
793 | ;;;;;;;;;;;;;;;;;;;;;;;;;
794 | ; Paths and Directories ;
795 | ;;;;;;;;;;;;;;;;;;;;;;;;;
796 |
797 | ; UNIX: "/path1:/path2"
798 | ;include_path = ".:/usr/share/php"
799 | ;
800 | ; Windows: "\path1;\path2"
801 | ;include_path = ".;c:\php\includes"
802 | ;
803 | ; PHP's default setting for include_path is ".;/path/to/php/pear"
804 | ; http://php.net/include-path
805 |
806 | ; The root of the PHP pages, used only if nonempty.
807 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
808 | ; if you are running php as a CGI under any web server (other than IIS)
809 | ; see documentation for security issues. The alternate is to use the
810 | ; cgi.force_redirect configuration below
811 | ; http://php.net/doc-root
812 | doc_root =
813 |
814 | ; The directory under which PHP opens the script using /~username used only
815 | ; if nonempty.
816 | ; http://php.net/user-dir
817 | user_dir =
818 |
819 | ; Directory in which the loadable extensions (modules) reside.
820 | ; http://php.net/extension-dir
821 | ; extension_dir = "./"
822 | ; On windows:
823 | ; extension_dir = "ext"
824 |
825 | ; Whether or not to enable the dl() function. The dl() function does NOT work
826 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
827 | ; disabled on them.
828 | ; http://php.net/enable-dl
829 | enable_dl = Off
830 |
831 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
832 | ; most web servers. Left undefined, PHP turns this on by default. You can
833 | ; turn it off here AT YOUR OWN RISK
834 | ; **You CAN safely turn this off for IIS, in fact, you MUST.**
835 | ; http://php.net/cgi.force-redirect
836 | ;cgi.force_redirect = 1
837 |
838 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
839 | ; every request. PHP's default behavior is to disable this feature.
840 | ;cgi.nph = 1
841 |
842 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
843 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
844 | ; will look for to know it is OK to continue execution. Setting this variable MAY
845 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
846 | ; http://php.net/cgi.redirect-status-env
847 | ;cgi.redirect_status_env = ;
848 |
849 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
850 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
851 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
852 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
853 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
854 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
855 | ; http://php.net/cgi.fix-pathinfo
856 | ;cgi.fix_pathinfo=1
857 |
858 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
859 | ; security tokens of the calling client. This allows IIS to define the
860 | ; security context that the request runs under. mod_fastcgi under Apache
861 | ; does not currently support this feature (03/17/2002)
862 | ; Set to 1 if running under IIS. Default is zero.
863 | ; http://php.net/fastcgi.impersonate
864 | ;fastcgi.impersonate = 1;
865 |
866 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable
867 | ; this feature.
868 | ;fastcgi.logging = 0
869 |
870 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
871 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
872 | ; is supported by Apache. When this option is set to 1 PHP will send
873 | ; RFC2616 compliant header.
874 | ; Default is zero.
875 | ; http://php.net/cgi.rfc2616-headers
876 | ;cgi.rfc2616_headers = 0
877 |
878 | ;;;;;;;;;;;;;;;;
879 | ; File Uploads ;
880 | ;;;;;;;;;;;;;;;;
881 |
882 | ; Whether to allow HTTP file uploads.
883 | ; http://php.net/file-uploads
884 | file_uploads = On
885 |
886 | ; Temporary directory for HTTP uploaded files (will use system default if not
887 | ; specified).
888 | ; http://php.net/upload-tmp-dir
889 | ;upload_tmp_dir =
890 |
891 | ; Maximum allowed size for uploaded files.
892 | ; http://php.net/upload-max-filesize
893 | upload_max_filesize = {{ php_upload_max_filesize|default('64M') }}
894 |
895 | ; Maximum number of files that can be uploaded via a single request
896 | max_file_uploads = 20
897 |
898 | ;;;;;;;;;;;;;;;;;;
899 | ; Fopen wrappers ;
900 | ;;;;;;;;;;;;;;;;;;
901 |
902 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
903 | ; http://php.net/allow-url-fopen
904 | allow_url_fopen = On
905 |
906 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
907 | ; http://php.net/allow-url-include
908 | allow_url_include = Off
909 |
910 | ; Define the anonymous ftp password (your email address). PHP's default setting
911 | ; for this is empty.
912 | ; http://php.net/from
913 | ;from="john@doe.com"
914 |
915 | ; Define the User-Agent string. PHP's default setting for this is empty.
916 | ; http://php.net/user-agent
917 | ;user_agent="PHP"
918 |
919 | ; Default timeout for socket based streams (seconds)
920 | ; http://php.net/default-socket-timeout
921 | default_socket_timeout = 60
922 |
923 | ; If your scripts have to deal with files from Macintosh systems,
924 | ; or you are running on a Mac and need to deal with files from
925 | ; unix or win32 systems, setting this flag will cause PHP to
926 | ; automatically detect the EOL character in those files so that
927 | ; fgets() and file() will work regardless of the source of the file.
928 | ; http://php.net/auto-detect-line-endings
929 | ;auto_detect_line_endings = Off
930 |
931 | ;;;;;;;;;;;;;;;;;;;;;;
932 | ; Dynamic Extensions ;
933 | ;;;;;;;;;;;;;;;;;;;;;;
934 |
935 | ; If you wish to have an extension loaded automatically, use the following
936 | ; syntax:
937 | ;
938 | ; extension=modulename.extension
939 | ;
940 | ; For example, on Windows:
941 | ;
942 | ; extension=msql.dll
943 | ;
944 | ; ... or under UNIX:
945 | ;
946 | ; extension=msql.so
947 | ;
948 | ; ... or with a path:
949 | ;
950 | ; extension=/path/to/extension/msql.so
951 | ;
952 | ; If you only provide the name of the extension, PHP will look for it in its
953 | ; default extension directory.
954 |
955 | ;;;;;;;;;;;;;;;;;;;
956 | ; Module Settings ;
957 | ;;;;;;;;;;;;;;;;;;;
958 |
959 | [Date]
960 | ; Defines the default timezone used by the date functions
961 | ; http://php.net/date.timezone
962 | date.timezone = {{ php_date_timezone|default('Europe/Paris') }}
963 |
964 | ; http://php.net/date.default-latitude
965 | ;date.default_latitude = 31.7667
966 |
967 | ; http://php.net/date.default-longitude
968 | ;date.default_longitude = 35.2333
969 |
970 | ; http://php.net/date.sunrise-zenith
971 | ;date.sunrise_zenith = 90.583333
972 |
973 | ; http://php.net/date.sunset-zenith
974 | ;date.sunset_zenith = 90.583333
975 |
976 | [filter]
977 | ; http://php.net/filter.default
978 | ;filter.default = unsafe_raw
979 |
980 | ; http://php.net/filter.default-flags
981 | ;filter.default_flags =
982 |
983 | [iconv]
984 | ;iconv.input_encoding = ISO-8859-1
985 | ;iconv.internal_encoding = ISO-8859-1
986 | ;iconv.output_encoding = ISO-8859-1
987 |
988 | [intl]
989 | ;intl.default_locale =
990 | ; This directive allows you to produce PHP errors when some error
991 | ; happens within intl functions. The value is the level of the error produced.
992 | ; Default is 0, which does not produce any errors.
993 | ;intl.error_level = E_WARNING
994 |
995 | [sqlite]
996 | ; http://php.net/sqlite.assoc-case
997 | ;sqlite.assoc_case = 0
998 |
999 | [sqlite3]
1000 | ;sqlite3.extension_dir =
1001 |
1002 | [Pcre]
1003 | ;PCRE library backtracking limit.
1004 | ; http://php.net/pcre.backtrack-limit
1005 | ;pcre.backtrack_limit=100000
1006 |
1007 | ;PCRE library recursion limit.
1008 | ;Please note that if you set this value to a high number you may consume all
1009 | ;the available process stack and eventually crash PHP (due to reaching the
1010 | ;stack size limit imposed by the Operating System).
1011 | ; http://php.net/pcre.recursion-limit
1012 | ;pcre.recursion_limit=100000
1013 |
1014 | [Pdo]
1015 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
1016 | ; http://php.net/pdo-odbc.connection-pooling
1017 | ;pdo_odbc.connection_pooling=strict
1018 |
1019 | ;pdo_odbc.db2_instance_name
1020 |
1021 | [Pdo_mysql]
1022 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1023 | ; http://php.net/pdo_mysql.cache_size
1024 | pdo_mysql.cache_size = 2000
1025 |
1026 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1027 | ; MySQL defaults.
1028 | ; http://php.net/pdo_mysql.default-socket
1029 | pdo_mysql.default_socket=
1030 |
1031 | [Phar]
1032 | ; http://php.net/phar.readonly
1033 | ;phar.readonly = On
1034 |
1035 | ; http://php.net/phar.require-hash
1036 | ;phar.require_hash = On
1037 |
1038 | ;phar.cache_list =
1039 |
1040 | [Syslog]
1041 | ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
1042 | ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
1043 | ; runtime, you can define these variables by calling define_syslog_variables().
1044 | ; http://php.net/define-syslog-variables
1045 | define_syslog_variables = Off
1046 |
1047 | [mail function]
1048 | ; For Win32 only.
1049 | ; http://php.net/smtp
1050 | SMTP = localhost
1051 | ; http://php.net/smtp-port
1052 | smtp_port = 25
1053 |
1054 | ; For Win32 only.
1055 | ; http://php.net/sendmail-from
1056 | ;sendmail_from = me@example.com
1057 |
1058 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
1059 | ; http://php.net/sendmail-path
1060 | ;sendmail_path =
1061 |
1062 | ; Force the addition of the specified parameters to be passed as extra parameters
1063 | ; to the sendmail binary. These parameters will always replace the value of
1064 | ; the 5th parameter to mail(), even in safe mode.
1065 | ;mail.force_extra_parameters =
1066 |
1067 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
1068 | mail.add_x_header = On
1069 |
1070 | ; The path to a log file that will log all mail() calls. Log entries include
1071 | ; the full path of the script, line number, To address and headers.
1072 | ;mail.log =
1073 |
1074 | [SQL]
1075 | ; http://php.net/sql.safe-mode
1076 | sql.safe_mode = Off
1077 |
1078 | [ODBC]
1079 | ; http://php.net/odbc.default-db
1080 | ;odbc.default_db = Not yet implemented
1081 |
1082 | ; http://php.net/odbc.default-user
1083 | ;odbc.default_user = Not yet implemented
1084 |
1085 | ; http://php.net/odbc.default-pw
1086 | ;odbc.default_pw = Not yet implemented
1087 |
1088 | ; Controls the ODBC cursor model.
1089 | ; Default: SQL_CURSOR_STATIC (default).
1090 | ;odbc.default_cursortype
1091 |
1092 | ; Allow or prevent persistent links.
1093 | ; http://php.net/odbc.allow-persistent
1094 | odbc.allow_persistent = On
1095 |
1096 | ; Check that a connection is still valid before reuse.
1097 | ; http://php.net/odbc.check-persistent
1098 | odbc.check_persistent = On
1099 |
1100 | ; Maximum number of persistent links. -1 means no limit.
1101 | ; http://php.net/odbc.max-persistent
1102 | odbc.max_persistent = -1
1103 |
1104 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1105 | ; http://php.net/odbc.max-links
1106 | odbc.max_links = -1
1107 |
1108 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means
1109 | ; passthru.
1110 | ; http://php.net/odbc.defaultlrl
1111 | odbc.defaultlrl = 4096
1112 |
1113 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
1114 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
1115 | ; of odbc.defaultlrl and odbc.defaultbinmode
1116 | ; http://php.net/odbc.defaultbinmode
1117 | odbc.defaultbinmode = 1
1118 |
1119 | ;birdstep.max_links = -1
1120 |
1121 | [Interbase]
1122 | ; Allow or prevent persistent links.
1123 | ibase.allow_persistent = 1
1124 |
1125 | ; Maximum number of persistent links. -1 means no limit.
1126 | ibase.max_persistent = -1
1127 |
1128 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1129 | ibase.max_links = -1
1130 |
1131 | ; Default database name for ibase_connect().
1132 | ;ibase.default_db =
1133 |
1134 | ; Default username for ibase_connect().
1135 | ;ibase.default_user =
1136 |
1137 | ; Default password for ibase_connect().
1138 | ;ibase.default_password =
1139 |
1140 | ; Default charset for ibase_connect().
1141 | ;ibase.default_charset =
1142 |
1143 | ; Default timestamp format.
1144 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1145 |
1146 | ; Default date format.
1147 | ibase.dateformat = "%Y-%m-%d"
1148 |
1149 | ; Default time format.
1150 | ibase.timeformat = "%H:%M:%S"
1151 |
1152 | [MySQL]
1153 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1154 | ; http://php.net/mysql.allow_local_infile
1155 | mysql.allow_local_infile = On
1156 |
1157 | ; Allow or prevent persistent links.
1158 | ; http://php.net/mysql.allow-persistent
1159 | mysql.allow_persistent = On
1160 |
1161 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1162 | ; http://php.net/mysql.cache_size
1163 | mysql.cache_size = 2000
1164 |
1165 | ; Maximum number of persistent links. -1 means no limit.
1166 | ; http://php.net/mysql.max-persistent
1167 | mysql.max_persistent = -1
1168 |
1169 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1170 | ; http://php.net/mysql.max-links
1171 | mysql.max_links = -1
1172 |
1173 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use
1174 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1175 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1176 | ; at MYSQL_PORT.
1177 | ; http://php.net/mysql.default-port
1178 | mysql.default_port =
1179 |
1180 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1181 | ; MySQL defaults.
1182 | ; http://php.net/mysql.default-socket
1183 | mysql.default_socket =
1184 |
1185 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1186 | ; http://php.net/mysql.default-host
1187 | mysql.default_host =
1188 |
1189 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1190 | ; http://php.net/mysql.default-user
1191 | mysql.default_user =
1192 |
1193 | ; Default password for mysql_connect() (doesn't apply in safe mode).
1194 | ; Note that this is generally a *bad* idea to store passwords in this file.
1195 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1196 | ; and reveal this password! And of course, any users with read access to this
1197 | ; file will be able to reveal the password as well.
1198 | ; http://php.net/mysql.default-password
1199 | mysql.default_password =
1200 |
1201 | ; Maximum time (in seconds) for connect timeout. -1 means no limit
1202 | ; http://php.net/mysql.connect-timeout
1203 | mysql.connect_timeout = 60
1204 |
1205 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1206 | ; SQL-Errors will be displayed.
1207 | ; http://php.net/mysql.trace-mode
1208 | mysql.trace_mode = Off
1209 |
1210 | [MySQLi]
1211 |
1212 | ; Maximum number of persistent links. -1 means no limit.
1213 | ; http://php.net/mysqli.max-persistent
1214 | mysqli.max_persistent = -1
1215 |
1216 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1217 | ; http://php.net/mysqli.allow_local_infile
1218 | ;mysqli.allow_local_infile = On
1219 |
1220 | ; Allow or prevent persistent links.
1221 | ; http://php.net/mysqli.allow-persistent
1222 | mysqli.allow_persistent = On
1223 |
1224 | ; Maximum number of links. -1 means no limit.
1225 | ; http://php.net/mysqli.max-links
1226 | mysqli.max_links = -1
1227 |
1228 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1229 | ; http://php.net/mysqli.cache_size
1230 | mysqli.cache_size = 2000
1231 |
1232 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1233 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1234 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1235 | ; at MYSQL_PORT.
1236 | ; http://php.net/mysqli.default-port
1237 | mysqli.default_port = 3306
1238 |
1239 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1240 | ; MySQL defaults.
1241 | ; http://php.net/mysqli.default-socket
1242 | mysqli.default_socket =
1243 |
1244 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1245 | ; http://php.net/mysqli.default-host
1246 | mysqli.default_host =
1247 |
1248 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1249 | ; http://php.net/mysqli.default-user
1250 | mysqli.default_user =
1251 |
1252 | ; Default password for mysqli_connect() (doesn't apply in safe mode).
1253 | ; Note that this is generally a *bad* idea to store passwords in this file.
1254 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1255 | ; and reveal this password! And of course, any users with read access to this
1256 | ; file will be able to reveal the password as well.
1257 | ; http://php.net/mysqli.default-pw
1258 | mysqli.default_pw =
1259 |
1260 | ; Allow or prevent reconnect
1261 | mysqli.reconnect = Off
1262 |
1263 | [mysqlnd]
1264 | ; Enable / Disable collection of general statistics by mysqlnd which can be
1265 | ; used to tune and monitor MySQL operations.
1266 | ; http://php.net/mysqlnd.collect_statistics
1267 | mysqlnd.collect_statistics = On
1268 |
1269 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
1270 | ; used to tune and monitor MySQL operations.
1271 | ; http://php.net/mysqlnd.collect_memory_statistics
1272 | mysqlnd.collect_memory_statistics = Off
1273 |
1274 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1275 | ; http://php.net/mysqlnd.net_cmd_buffer_size
1276 | ;mysqlnd.net_cmd_buffer_size = 2048
1277 |
1278 | ; Size of a pre-allocated buffer used for reading data sent by the server in
1279 | ; bytes.
1280 | ; http://php.net/mysqlnd.net_read_buffer_size
1281 | ;mysqlnd.net_read_buffer_size = 32768
1282 |
1283 | [OCI8]
1284 |
1285 | ; Connection: Enables privileged connections using external
1286 | ; credentials (OCI_SYSOPER, OCI_SYSDBA)
1287 | ; http://php.net/oci8.privileged-connect
1288 | ;oci8.privileged_connect = Off
1289 |
1290 | ; Connection: The maximum number of persistent OCI8 connections per
1291 | ; process. Using -1 means no limit.
1292 | ; http://php.net/oci8.max-persistent
1293 | ;oci8.max_persistent = -1
1294 |
1295 | ; Connection: The maximum number of seconds a process is allowed to
1296 | ; maintain an idle persistent connection. Using -1 means idle
1297 | ; persistent connections will be maintained forever.
1298 | ; http://php.net/oci8.persistent-timeout
1299 | ;oci8.persistent_timeout = -1
1300 |
1301 | ; Connection: The number of seconds that must pass before issuing a
1302 | ; ping during oci_pconnect() to check the connection validity. When
1303 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1304 | ; pings completely.
1305 | ; http://php.net/oci8.ping-interval
1306 | ;oci8.ping_interval = 60
1307 |
1308 | ; Connection: Set this to a user chosen connection class to be used
1309 | ; for all pooled server requests with Oracle 11g Database Resident
1310 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to
1311 | ; the same string for all web servers running the same application,
1312 | ; the database pool must be configured, and the connection string must
1313 | ; specify to use a pooled server.
1314 | ;oci8.connection_class =
1315 |
1316 | ; High Availability: Using On lets PHP receive Fast Application
1317 | ; Notification (FAN) events generated when a database node fails. The
1318 | ; database must also be configured to post FAN events.
1319 | ;oci8.events = Off
1320 |
1321 | ; Tuning: This option enables statement caching, and specifies how
1322 | ; many statements to cache. Using 0 disables statement caching.
1323 | ; http://php.net/oci8.statement-cache-size
1324 | ;oci8.statement_cache_size = 20
1325 |
1326 | ; Tuning: Enables statement prefetching and sets the default number of
1327 | ; rows that will be fetched automatically after statement execution.
1328 | ; http://php.net/oci8.default-prefetch
1329 | ;oci8.default_prefetch = 100
1330 |
1331 | ; Compatibility. Using On means oci_close() will not close
1332 | ; oci_connect() and oci_new_connect() connections.
1333 | ; http://php.net/oci8.old-oci-close-semantics
1334 | ;oci8.old_oci_close_semantics = Off
1335 |
1336 | [PostgreSQL]
1337 | ; Allow or prevent persistent links.
1338 | ; http://php.net/pgsql.allow-persistent
1339 | pgsql.allow_persistent = On
1340 |
1341 | ; Detect broken persistent links always with pg_pconnect().
1342 | ; Auto reset feature requires a little overheads.
1343 | ; http://php.net/pgsql.auto-reset-persistent
1344 | pgsql.auto_reset_persistent = Off
1345 |
1346 | ; Maximum number of persistent links. -1 means no limit.
1347 | ; http://php.net/pgsql.max-persistent
1348 | pgsql.max_persistent = -1
1349 |
1350 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1351 | ; http://php.net/pgsql.max-links
1352 | pgsql.max_links = -1
1353 |
1354 | ; Ignore PostgreSQL backends Notice message or not.
1355 | ; Notice message logging require a little overheads.
1356 | ; http://php.net/pgsql.ignore-notice
1357 | pgsql.ignore_notice = 0
1358 |
1359 | ; Log PostgreSQL backends Notice message or not.
1360 | ; Unless pgsql.ignore_notice=0, module cannot log notice message.
1361 | ; http://php.net/pgsql.log-notice
1362 | pgsql.log_notice = 0
1363 |
1364 | [Sybase-CT]
1365 | ; Allow or prevent persistent links.
1366 | ; http://php.net/sybct.allow-persistent
1367 | sybct.allow_persistent = On
1368 |
1369 | ; Maximum number of persistent links. -1 means no limit.
1370 | ; http://php.net/sybct.max-persistent
1371 | sybct.max_persistent = -1
1372 |
1373 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1374 | ; http://php.net/sybct.max-links
1375 | sybct.max_links = -1
1376 |
1377 | ; Minimum server message severity to display.
1378 | ; http://php.net/sybct.min-server-severity
1379 | sybct.min_server_severity = 10
1380 |
1381 | ; Minimum client message severity to display.
1382 | ; http://php.net/sybct.min-client-severity
1383 | sybct.min_client_severity = 10
1384 |
1385 | ; Set per-context timeout
1386 | ; http://php.net/sybct.timeout
1387 | ;sybct.timeout=
1388 |
1389 | ;sybct.packet_size
1390 |
1391 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
1392 | ; Default: one minute
1393 | ;sybct.login_timeout=
1394 |
1395 | ; The name of the host you claim to be connecting from, for display by sp_who.
1396 | ; Default: none
1397 | ;sybct.hostname=
1398 |
1399 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
1400 | ; Default: 0
1401 | ;sybct.deadlock_retry_count=
1402 |
1403 | [bcmath]
1404 | ; Number of decimal digits for all bcmath functions.
1405 | ; http://php.net/bcmath.scale
1406 | bcmath.scale = 0
1407 |
1408 | [browscap]
1409 | ; http://php.net/browscap
1410 | ;browscap = extra/browscap.ini
1411 |
1412 | [Session]
1413 | ; Handler used to store/retrieve data.
1414 | ; http://php.net/session.save-handler
1415 | session.save_handler = files
1416 |
1417 | ; Argument passed to save_handler. In the case of files, this is the path
1418 | ; where data files are stored. Note: Windows users have to change this
1419 | ; variable in order to use PHP's session functions.
1420 | ;
1421 | ; The path can be defined as:
1422 | ;
1423 | ; session.save_path = "N;/path"
1424 | ;
1425 | ; where N is an integer. Instead of storing all the session files in
1426 | ; /path, what this will do is use subdirectories N-levels deep, and
1427 | ; store the session data in those directories. This is useful if you
1428 | ; or your OS have problems with lots of files in one directory, and is
1429 | ; a more efficient layout for servers that handle lots of sessions.
1430 | ;
1431 | ; NOTE 1: PHP will not create this directory structure automatically.
1432 | ; You can use the script in the ext/session dir for that purpose.
1433 | ; NOTE 2: See the section on garbage collection below if you choose to
1434 | ; use subdirectories for session storage
1435 | ;
1436 | ; The file storage module creates files using mode 600 by default.
1437 | ; You can change that by using
1438 | ;
1439 | ; session.save_path = "N;MODE;/path"
1440 | ;
1441 | ; where MODE is the octal representation of the mode. Note that this
1442 | ; does not overwrite the process's umask.
1443 | ; http://php.net/session.save-path
1444 | ;session.save_path = "/tmp"
1445 |
1446 | ; Whether to use cookies.
1447 | ; http://php.net/session.use-cookies
1448 | session.use_cookies = 1
1449 |
1450 | ; http://php.net/session.cookie-secure
1451 | ;session.cookie_secure =
1452 |
1453 | ; This option forces PHP to fetch and use a cookie for storing and maintaining
1454 | ; the session id. We encourage this operation as it's very helpful in combatting
1455 | ; session hijacking when not specifying and managing your own session id. It is
1456 | ; not the end all be all of session hijacking defense, but it's a good start.
1457 | ; http://php.net/session.use-only-cookies
1458 | session.use_only_cookies = 1
1459 |
1460 | ; Name of the session (used as cookie name).
1461 | ; http://php.net/session.name
1462 | session.name = PHPSESSID
1463 |
1464 | ; Initialize session on request startup.
1465 | ; http://php.net/session.auto-start
1466 | session.auto_start = 0
1467 |
1468 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
1469 | ; http://php.net/session.cookie-lifetime
1470 | session.cookie_lifetime = 0
1471 |
1472 | ; The path for which the cookie is valid.
1473 | ; http://php.net/session.cookie-path
1474 | session.cookie_path = /
1475 |
1476 | ; The domain for which the cookie is valid.
1477 | ; http://php.net/session.cookie-domain
1478 | session.cookie_domain =
1479 |
1480 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1481 | ; http://php.net/session.cookie-httponly
1482 | session.cookie_httponly =
1483 |
1484 | ; Handler used to serialize data. php is the standard serializer of PHP.
1485 | ; http://php.net/session.serialize-handler
1486 | session.serialize_handler = php
1487 |
1488 | ; Defines the probability that the 'garbage collection' process is started
1489 | ; on every session initialization. The probability is calculated by using
1490 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1491 | ; and gc_divisor is the denominator in the equation. Setting this value to 1
1492 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1493 | ; the gc will run on any give request.
1494 | ; Default Value: 1
1495 | ; Development Value: 1
1496 | ; Production Value: 1
1497 | ; http://php.net/session.gc-probability
1498 | session.gc_probability = 0
1499 |
1500 | ; Defines the probability that the 'garbage collection' process is started on every
1501 | ; session initialization. The probability is calculated by using the following equation:
1502 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1503 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1504 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1505 | ; the gc will run on any give request. Increasing this value to 1000 will give you
1506 | ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1507 | ; this is a more efficient approach.
1508 | ; Default Value: 100
1509 | ; Development Value: 1000
1510 | ; Production Value: 1000
1511 | ; http://php.net/session.gc-divisor
1512 | session.gc_divisor = 1000
1513 |
1514 | ; After this number of seconds, stored data will be seen as 'garbage' and
1515 | ; cleaned up by the garbage collection process.
1516 | ; http://php.net/session.gc-maxlifetime
1517 | session.gc_maxlifetime = 1440
1518 |
1519 | ; NOTE: If you are using the subdirectory option for storing session files
1520 | ; (see session.save_path above), then garbage collection does *not*
1521 | ; happen automatically. You will need to do your own garbage
1522 | ; collection through a shell script, cron entry, or some other method.
1523 | ; For example, the following script would is the equivalent of
1524 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1525 | ; find /path/to/sessions -cmin +24 | xargs rm
1526 |
1527 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to
1528 | ; to initialize a session variable in the global scope, even when register_globals
1529 | ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
1530 | ; You can disable the feature and the warning separately. At this time,
1531 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature
1532 | ; introduces some serious security problems if not handled correctly. It's
1533 | ; recommended that you do not use this feature on production servers. But you
1534 | ; should enable this on development servers and enable the warning as well. If you
1535 | ; do not enable the feature on development servers, you won't be warned when it's
1536 | ; used and debugging errors caused by this can be difficult to track down.
1537 | ; Default Value: On
1538 | ; Development Value: On
1539 | ; Production Value: Off
1540 | ; http://php.net/session.bug-compat-42
1541 | session.bug_compat_42 = Off
1542 |
1543 | ; This setting controls whether or not you are warned by PHP when initializing a
1544 | ; session value into the global space. session.bug_compat_42 must be enabled before
1545 | ; these warnings can be issued by PHP. See the directive above for more information.
1546 | ; Default Value: On
1547 | ; Development Value: On
1548 | ; Production Value: Off
1549 | ; http://php.net/session.bug-compat-warn
1550 | session.bug_compat_warn = Off
1551 |
1552 | ; Check HTTP Referer to invalidate externally stored URLs containing ids.
1553 | ; HTTP_REFERER has to contain this substring for the session to be
1554 | ; considered as valid.
1555 | ; http://php.net/session.referer-check
1556 | session.referer_check =
1557 |
1558 | ; How many bytes to read from the file.
1559 | ; http://php.net/session.entropy-length
1560 | session.entropy_length = 0
1561 |
1562 | ; Specified here to create the session id.
1563 | ; http://php.net/session.entropy-file
1564 | ; On systems that don't have /dev/urandom /dev/arandom can be used
1565 | ; On windows, setting the entropy_length setting will activate the
1566 | ; Windows random source (using the CryptoAPI)
1567 | ;session.entropy_file = /dev/urandom
1568 |
1569 | ; Set to {nocache,private,public,} to determine HTTP caching aspects
1570 | ; or leave this empty to avoid sending anti-caching headers.
1571 | ; http://php.net/session.cache-limiter
1572 | session.cache_limiter = nocache
1573 |
1574 | ; Document expires after n minutes.
1575 | ; http://php.net/session.cache-expire
1576 | session.cache_expire = 180
1577 |
1578 | ; trans sid support is disabled by default.
1579 | ; Use of trans sid may risk your users security.
1580 | ; Use this option with caution.
1581 | ; - User may send URL contains active session ID
1582 | ; to other person via. email/irc/etc.
1583 | ; - URL that contains active session ID may be stored
1584 | ; in publically accessible computer.
1585 | ; - User may access your site with the same session ID
1586 | ; always using URL stored in browser's history or bookmarks.
1587 | ; http://php.net/session.use-trans-sid
1588 | session.use_trans_sid = 0
1589 |
1590 | ; Select a hash function for use in generating session ids.
1591 | ; Possible Values
1592 | ; 0 (MD5 128 bits)
1593 | ; 1 (SHA-1 160 bits)
1594 | ; This option may also be set to the name of any hash function supported by
1595 | ; the hash extension. A list of available hashes is returned by the hash_algos()
1596 | ; function.
1597 | ; http://php.net/session.hash-function
1598 | session.hash_function = 0
1599 |
1600 | ; Define how many bits are stored in each character when converting
1601 | ; the binary hash data to something readable.
1602 | ; Possible values:
1603 | ; 4 (4 bits: 0-9, a-f)
1604 | ; 5 (5 bits: 0-9, a-v)
1605 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
1606 | ; Default Value: 4
1607 | ; Development Value: 5
1608 | ; Production Value: 5
1609 | ; http://php.net/session.hash-bits-per-character
1610 | session.hash_bits_per_character = 5
1611 |
1612 | ; The URL rewriter will look for URLs in a defined set of HTML tags.
1613 | ; form/fieldset are special; if you include them here, the rewriter will
1614 | ; add a hidden field with the info which is otherwise appended
1615 | ; to URLs. If you want XHTML conformity, remove the form entry.
1616 | ; Note that all valid entries require a "=", even if no value follows.
1617 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
1618 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1619 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1620 | ; http://php.net/url-rewriter.tags
1621 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1622 |
1623 | [MSSQL]
1624 | ; Allow or prevent persistent links.
1625 | mssql.allow_persistent = On
1626 |
1627 | ; Maximum number of persistent links. -1 means no limit.
1628 | mssql.max_persistent = -1
1629 |
1630 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1631 | mssql.max_links = -1
1632 |
1633 | ; Minimum error severity to display.
1634 | mssql.min_error_severity = 10
1635 |
1636 | ; Minimum message severity to display.
1637 | mssql.min_message_severity = 10
1638 |
1639 | ; Compatibility mode with old versions of PHP 3.0.
1640 | mssql.compatability_mode = Off
1641 |
1642 | ; Connect timeout
1643 | ;mssql.connect_timeout = 5
1644 |
1645 | ; Query timeout
1646 | ;mssql.timeout = 60
1647 |
1648 | ; Valid range 0 - 2147483647. Default = 4096.
1649 | ;mssql.textlimit = 4096
1650 |
1651 | ; Valid range 0 - 2147483647. Default = 4096.
1652 | ;mssql.textsize = 4096
1653 |
1654 | ; Limits the number of records in each batch. 0 = all records in one batch.
1655 | ;mssql.batchsize = 0
1656 |
1657 | ; Specify how datetime and datetim4 columns are returned
1658 | ; On => Returns data converted to SQL server settings
1659 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss
1660 | ;mssql.datetimeconvert = On
1661 |
1662 | ; Use NT authentication when connecting to the server
1663 | mssql.secure_connection = Off
1664 |
1665 | ; Specify max number of processes. -1 = library default
1666 | ; msdlib defaults to 25
1667 | ; FreeTDS defaults to 4096
1668 | ;mssql.max_procs = -1
1669 |
1670 | ; Specify client character set.
1671 | ; If empty or not set the client charset from freetds.conf is used
1672 | ; This is only used when compiled with FreeTDS
1673 | ;mssql.charset = "ISO-8859-1"
1674 |
1675 | [Assertion]
1676 | ; Assert(expr); active by default.
1677 | ; http://php.net/assert.active
1678 | ;assert.active = On
1679 |
1680 | ; Issue a PHP warning for each failed assertion.
1681 | ; http://php.net/assert.warning
1682 | ;assert.warning = On
1683 |
1684 | ; Don't bail out by default.
1685 | ; http://php.net/assert.bail
1686 | ;assert.bail = Off
1687 |
1688 | ; User-function to be called if an assertion fails.
1689 | ; http://php.net/assert.callback
1690 | ;assert.callback = 0
1691 |
1692 | ; Eval the expression with current error_reporting(). Set to true if you want
1693 | ; error_reporting(0) around the eval().
1694 | ; http://php.net/assert.quiet-eval
1695 | ;assert.quiet_eval = 0
1696 |
1697 | [COM]
1698 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
1699 | ; http://php.net/com.typelib-file
1700 | ;com.typelib_file =
1701 |
1702 | ; allow Distributed-COM calls
1703 | ; http://php.net/com.allow-dcom
1704 | ;com.allow_dcom = true
1705 |
1706 | ; autoregister constants of a components typlib on com_load()
1707 | ; http://php.net/com.autoregister-typelib
1708 | ;com.autoregister_typelib = true
1709 |
1710 | ; register constants casesensitive
1711 | ; http://php.net/com.autoregister-casesensitive
1712 | ;com.autoregister_casesensitive = false
1713 |
1714 | ; show warnings on duplicate constant registrations
1715 | ; http://php.net/com.autoregister-verbose
1716 | ;com.autoregister_verbose = true
1717 |
1718 | ; The default character set code-page to use when passing strings to and from COM objects.
1719 | ; Default: system ANSI code page
1720 | ;com.code_page=
1721 |
1722 | [mbstring]
1723 | ; language for internal character representation.
1724 | ; http://php.net/mbstring.language
1725 | ;mbstring.language = Japanese
1726 |
1727 | ; internal/script encoding.
1728 | ; Some encoding cannot work as internal encoding.
1729 | ; (e.g. SJIS, BIG5, ISO-2022-*)
1730 | ; http://php.net/mbstring.internal-encoding
1731 | ;mbstring.internal_encoding = EUC-JP
1732 |
1733 | ; http input encoding.
1734 | ; http://php.net/mbstring.http-input
1735 | ;mbstring.http_input = auto
1736 |
1737 | ; http output encoding. mb_output_handler must be
1738 | ; registered as output buffer to function
1739 | ; http://php.net/mbstring.http-output
1740 | ;mbstring.http_output = SJIS
1741 |
1742 | ; enable automatic encoding translation according to
1743 | ; mbstring.internal_encoding setting. Input chars are
1744 | ; converted to internal encoding by setting this to On.
1745 | ; Note: Do _not_ use automatic encoding translation for
1746 | ; portable libs/applications.
1747 | ; http://php.net/mbstring.encoding-translation
1748 | ;mbstring.encoding_translation = Off
1749 |
1750 | ; automatic encoding detection order.
1751 | ; auto means
1752 | ; http://php.net/mbstring.detect-order
1753 | ;mbstring.detect_order = auto
1754 |
1755 | ; substitute_character used when character cannot be converted
1756 | ; one from another
1757 | ; http://php.net/mbstring.substitute-character
1758 | ;mbstring.substitute_character = none;
1759 |
1760 | ; overload(replace) single byte functions by mbstring functions.
1761 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1762 | ; etc. Possible values are 0,1,2,4 or combination of them.
1763 | ; For example, 7 for overload everything.
1764 | ; 0: No overload
1765 | ; 1: Overload mail() function
1766 | ; 2: Overload str*() functions
1767 | ; 4: Overload ereg*() functions
1768 | ; http://php.net/mbstring.func-overload
1769 | ;mbstring.func_overload = 0
1770 |
1771 | ; enable strict encoding detection.
1772 | ;mbstring.strict_detection = Off
1773 |
1774 | ; This directive specifies the regex pattern of content types for which mb_output_handler()
1775 | ; is activated.
1776 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1777 | ;mbstring.http_output_conv_mimetype=
1778 |
1779 | ; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte
1780 | ; Default: ""
1781 | ;mbstring.script_encoding=
1782 |
1783 | [gd]
1784 | ; Tell the jpeg decode to ignore warnings and try to create
1785 | ; a gd image. The warning will then be displayed as notices
1786 | ; disabled by default
1787 | ; http://php.net/gd.jpeg-ignore-warning
1788 | ;gd.jpeg_ignore_warning = 0
1789 |
1790 | [exif]
1791 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
1792 | ; With mbstring support this will automatically be converted into the encoding
1793 | ; given by corresponding encode setting. When empty mbstring.internal_encoding
1794 | ; is used. For the decode settings you can distinguish between motorola and
1795 | ; intel byte order. A decode setting cannot be empty.
1796 | ; http://php.net/exif.encode-unicode
1797 | ;exif.encode_unicode = ISO-8859-15
1798 |
1799 | ; http://php.net/exif.decode-unicode-motorola
1800 | ;exif.decode_unicode_motorola = UCS-2BE
1801 |
1802 | ; http://php.net/exif.decode-unicode-intel
1803 | ;exif.decode_unicode_intel = UCS-2LE
1804 |
1805 | ; http://php.net/exif.encode-jis
1806 | ;exif.encode_jis =
1807 |
1808 | ; http://php.net/exif.decode-jis-motorola
1809 | ;exif.decode_jis_motorola = JIS
1810 |
1811 | ; http://php.net/exif.decode-jis-intel
1812 | ;exif.decode_jis_intel = JIS
1813 |
1814 | [Tidy]
1815 | ; The path to a default tidy configuration file to use when using tidy
1816 | ; http://php.net/tidy.default-config
1817 | ;tidy.default_config = /usr/local/lib/php/default.tcfg
1818 |
1819 | ; Should tidy clean and repair output automatically?
1820 | ; WARNING: Do not use this option if you are generating non-html content
1821 | ; such as dynamic images
1822 | ; http://php.net/tidy.clean-output
1823 | tidy.clean_output = Off
1824 |
1825 | [soap]
1826 | ; Enables or disables WSDL caching feature.
1827 | ; http://php.net/soap.wsdl-cache-enabled
1828 | soap.wsdl_cache_enabled=1
1829 |
1830 | ; Sets the directory name where SOAP extension will put cache files.
1831 | ; http://php.net/soap.wsdl-cache-dir
1832 | soap.wsdl_cache_dir="/tmp"
1833 |
1834 | ; (time to live) Sets the number of second while cached file will be used
1835 | ; instead of original one.
1836 | ; http://php.net/soap.wsdl-cache-ttl
1837 | soap.wsdl_cache_ttl=86400
1838 |
1839 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
1840 | soap.wsdl_cache_limit = 5
1841 |
1842 | [sysvshm]
1843 | ; A default size of the shared memory segment
1844 | ;sysvshm.init_mem = 10000
1845 |
1846 | [ldap]
1847 | ; Sets the maximum number of open links or -1 for unlimited.
1848 | ldap.max_links = -1
1849 |
1850 | [mcrypt]
1851 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open
1852 |
1853 | ; Directory where to load mcrypt algorithms
1854 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1855 | ;mcrypt.algorithms_dir=
1856 |
1857 | ; Directory where to load mcrypt modes
1858 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1859 | ;mcrypt.modes_dir=
1860 |
1861 | [dba]
1862 | ;dba.default_handler=
1863 |
1864 | [xsl]
1865 | ; Write operations from within XSLT are disabled by default.
1866 | ; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK |
--------------------------------------------------------------------------------