├── .gitignore ├── README.md ├── common-tasks ├── mysql-secure.yml ├── ubuntu-drush.yml └── ubuntu-memcached.yml ├── ubuntu-10.04-lamp-dev ├── README.md ├── files │ └── etc-update-motd-d-95-ansible ├── run-local-all ├── setup.yml ├── templates │ ├── etc-apache2-sites-available-devserver.j2 │ ├── etc-memcached-conf.j2 │ ├── etc-mysql-my-cnf.j2 │ ├── etc-php5-apache2-php-ini.j2 │ ├── etc-php5-conf-d-apc-ini.j2 │ ├── etc-php5-conf-d-memcache-ini.j2 │ └── root-my-cnf.j2 └── vars │ └── default-settings.yml └── ubuntu-12.04-lamp-dev ├── README.md ├── files └── etc-update-motd-d-95-ansible ├── run-local-all ├── setup.yml ├── templates ├── etc-apache2-sites-available-devserver.j2 ├── etc-mysql-my-cnf.j2 ├── etc-php5-apache2-php-ini.j2 ├── etc-php5-conf-d-apc-ini.j2 ├── etc-vsftpd-conf.j2 └── root-my-cnf.j2 └── vars └── default-settings.yml /.gitignore: -------------------------------------------------------------------------------- 1 | settings.yml 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Server Playbooks 2 | ======================== 3 | 4 | A collection of Ansible playbooks for use in setting up various servers. 5 | Playbooks are a series of configuration steps and specifications for how the 6 | server should be configured. 7 | 8 | Executing the playbooks 9 | --------------------------- 10 | 11 | ### Setup Ansible 12 | 13 | Playbooks require [Ansible][1] to execute them. It's really easy to setup, and 14 | you can choose between running it on the same machine you're configuring, or a 15 | remote machine. For a remote machine, all Ansible needs is the ability to establish 16 | an SSH connection to it. 17 | 18 | Generally, if you're looking for a quick time-saver for a one-time build of a 19 | server, then you should set up Ansible and execute the playbook on the target 20 | server. If you're a more serious server administrator who wants to maintain 21 | clusters of machines, you should setup Ansible on a separate controller machine 22 | or your personal machine. 23 | 24 | You may refer to the setup guide on the Ansible homepage, however here are the 25 | steps for setting it up on Ubuntu and immediately configuring it to use 26 | localhost as the target server, the simplest configuration option: 27 | 28 | sudo aptitude -y install git python-jinja2 python-yaml python-paramiko python-software-properties 29 | add-apt-repository ppa:rquillo/ansible 30 | aptitude update 31 | aptitude install ansible 32 | echo "localhost" > /etc/ansible/hosts 33 | 34 | You can now test by typing: 35 | 36 | ansible -c local -m ping all 37 | 38 | You should see: 39 | 40 | localhost | success >> { 41 | "module": "ping", 42 | "ping": "pong 43 | } 44 | 45 | ### Run the play 46 | 47 | The plays are organized into directories, so for example, __ubuntu-12.04-lamp-dev__ 48 | contains all the settings and configuration for the Ubuntu 12.04 LAMP Dev server 49 | build. 50 | 51 | You must copy the __vars/default-settings.yml__ file to the base folder of the 52 | play, and then edit it with your specific requirements. It's really easy to 53 | understand and contains all the configuration that will be customized from the 54 | default Ubuntu package setting. 55 | 56 | cd ubuntu-12.04-lamp-dev 57 | cp ./vars/settings-default.yml ./settings.yml 58 | 59 | You have some options when executing a play. For example, you may want a LAMP 60 | server but not drush or an ftp server. The parts of the play that setup these 61 | optional packages are tagged as such. 62 | 63 | By executing the following, it will setup only the commonly used components: 64 | 65 | ansible-playbook -c local --tags="common" ./setup.yml 66 | 67 | You can add drush and ftp by doing: 68 | 69 | ansible-playbook -c local --tags="common,drush,ftp" ./setup.yml 70 | 71 | Conventions used in playbooks 72 | --------------------------- 73 | 74 | - The setup.yml file contains the main sequence of actions and tasks. 75 | - When a configuration file is introduced by the playbook, i.e. isn't 76 | a pre-existing one, it's found in the __files__ subdirectory and is transferred 77 | using the 'copy' action. 78 | - Files that already exist on the server, that we are modifying, are found 79 | in __templates__ and have Jinja2-style variable substitution. They are 80 | transferred using Ansible's 'template' action. 81 | - Every value in a configuration file that is modified from the default will 82 | contain a variable substitution, so you know that looking in the 83 | __vars/settings-default.yml__ file will give you a complete overview of all the 84 | configuration that is modified from the server package default. 85 | 86 | [1]: http://ansible.github.com/ "Ansible" 87 | -------------------------------------------------------------------------------- /common-tasks/mysql-secure.yml: -------------------------------------------------------------------------------- 1 | --- 2 | ## 3 | # MySQL database setup, this does the equivalent of mysql_secure_installation. 4 | # 5 | # Distribution independent. 6 | # 7 | - name: MySQL | Set the root password. 8 | action: mysql_user user=root password={{ mysql_root_password }} host=localhost 9 | tags: common 10 | 11 | - name: MySQL | Config for easy access as root user 12 | action: template src=templates/root-my-cnf.j2 dest=/root/.my.cnf 13 | tags: common 14 | 15 | - name: MySQL | Delete anonymous MySQL server user for {{ server_hostname }} 16 | action: mysql_user user="" host="{{ server_hostname }}" state="absent" 17 | tags: common 18 | 19 | - name: MySQL | Delete anonymous MySQL server user for localhost 20 | action: mysql_user user="" state="absent" 21 | tags: common 22 | 23 | - name: MySQL | Secure the MySQL root user for IPV6 localhost (::1) 24 | action: mysql_user user="root" password="{{ mysql_root_password }}" host="::1" 25 | tags: common 26 | 27 | - name: MySQL | Secure the MySQL root user for IPV4 localhost (127.0.0.1) 28 | action: mysql_user user="root" password="{{ mysql_root_password }}" host="127.0.0.1" 29 | tags: common 30 | 31 | - name: MySQL | Secure the MySQL root user for localhost domain (localhost) 32 | action: mysql_user user="root" password="{{ mysql_root_password }}" host="localhost" 33 | tags: common 34 | 35 | - name: MySQL | Secure the MySQL root user for {{ server_hostname }} domain 36 | action: mysql_user user="root" password="{{ mysql_root_password }}" host="{{ server_hostname }}" 37 | tags: common 38 | 39 | - name: MySQL | Remove the MySQL test database 40 | action: mysql_db db=test state=absent 41 | tags: common 42 | -------------------------------------------------------------------------------- /common-tasks/ubuntu-drush.yml: -------------------------------------------------------------------------------- 1 | --- 2 | ## 3 | # Drush install, a Drupal shell tool. 4 | # 5 | # Ubuntu only due to using apt. 6 | # 7 | - name: Drush | Install PHP PEAR 8 | action: apt pkg=php-pear state=installed 9 | tags: drush 10 | 11 | - name: Drush | Update PEAR 12 | action: command pear upgrade-all 13 | tags: drush 14 | 15 | - name: Drush | Setup PEAR channel 16 | action: command pear channel-discover pear.drush.org creates=/usr/share/php/.channels/pear.drush.org.reg 17 | tags: drush 18 | 19 | - name: Drush | Install drush 20 | action: command pear install drush/drush creates=/usr/bin/drush 21 | tags: drush 22 | 23 | - name: Drush | Run drush once so it downloads it's dependencies 24 | action: command drush 25 | tags: drush 26 | -------------------------------------------------------------------------------- /common-tasks/ubuntu-memcached.yml: -------------------------------------------------------------------------------- 1 | --- 2 | ## 3 | # Memcached daemon and PECL extension. 4 | # 5 | # Ubuntu only due to using apt. 6 | # 7 | - name: Memcached | Install packages 8 | action: apt pkg={{ item }} state=installed 9 | with_items: 10 | # This is 3.0.4 in Ubuntu, which is listed as 'beta' on the PECL page. 11 | # Right now in our testing, we want to use 2.x. 12 | #- php5-memcache 13 | - memcached 14 | tags: memcached 15 | 16 | - name: Memcached | Config file 17 | action: template src=templates/etc-memcached-conf.j2 dest=/etc/memcached.conf 18 | tags: memcached 19 | 20 | - name: Memcached | PECL Library install 21 | action: shell printf "yes\n" | pecl install memcache creates=/usr/lib/php5/20090626/memcache.so 22 | tags: memcached 23 | 24 | - name: Memcached | Config file for the PHP memcache extension 25 | action: template src=templates/etc-php5-conf-d-memcache-ini.j2 dest=/etc/php5/conf.d/memcache.ini 26 | tags: memcached 27 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/README.md: -------------------------------------------------------------------------------- 1 | Ubuntu 10.04 LAMP Dev Server 2 | --------------------------- 3 | 4 | This server is configured with standard LAMP for a single docroot. It was used for a client that we no longer work with, who had a production server running Ubuntu 10.04. This playbook is no longer maintained. Docroot is at /var/dev. 5 | 6 | Use `./run-local-all` to run all the tags, otherwise directly run the parts you 7 | need using: 8 | 9 | ansible-playbook -c local --tags="common,..." ./setup.yml 10 | 11 | Packages tagged `common`: Apache, MySQL, PHP. 12 | 13 | Other optional tags: 14 | 15 | +--------------------------------------------------------------+ 16 | | drush | Drupal shell. | 17 | +--------------------------------------------------------------+ 18 | | memcached | Memcached daemon and memcache PECL extension | 19 | +--------------------------------------------------------------+ 20 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/files/etc-update-motd-d-95-ansible: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 4 | echo " ********************************************************" 5 | echo " * This server is configured using Ansible." 6 | echo " * To change configuration, modify the playbooks vars in" 7 | echo " * /root/server-playbooks, and re-run the play." 8 | echo " * " 9 | echo " * See https://github.com/fourkitchens/server-playbooks" 10 | echo " ********************************************************" 11 | echo 12 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/run-local-all: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Script for running the play on the localhost, everything included. 4 | ansible-playbook -c local --tags="common,drush,memcached" ./setup.yml 5 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/setup.yml: -------------------------------------------------------------------------------- 1 | ## 2 | # Ansible playbook for setting up a LAMP development server on Ubuntu 10.04. 3 | # 4 | 5 | --- 6 | - hosts: all 7 | user: root 8 | 9 | vars_files: 10 | - settings.yml 11 | 12 | tasks: 13 | ## 14 | # Apt package installation of required software. 15 | # 16 | - name: General | Install required packages. 17 | action: apt pkg={{ item }} state=installed 18 | tags: common 19 | with_items: 20 | - php5 21 | - apache2 22 | - mysql-server 23 | - mysql-client 24 | - php5-mysql 25 | - php5-xmlrpc 26 | - php5-curl 27 | - php-apc 28 | - php-soap 29 | - php5-gd 30 | - php5-dev 31 | - sendmail 32 | - unzip 33 | - python-mysqldb 34 | 35 | ## 36 | # Message of the day explaining server is under Ansible control. 37 | # 38 | - name: General | Message of the day explaining server is under Ansible control. 39 | action: copy src=files/etc-update-motd-d-95-ansible dest=/etc/update-motd.d/95-ansible mode=755 40 | tags: common 41 | 42 | ## 43 | # PHP Setup. 44 | # 45 | - name: PHP | Configuration file, php.ini 46 | action: template src=templates/etc-php5-apache2-php-ini.j2 dest=/etc/php5/apache2/php.ini 47 | tags: common 48 | 49 | - name: APC | Cache configuration file, apc.ini 50 | action: template src=templates/etc-php5-conf-d-apc-ini.j2 dest=/etc/php5/conf.d/apc.ini 51 | tags: common 52 | 53 | ## 54 | # MySQL database setup. 55 | # 56 | - name: MySQL | Configuration file, my.cnf 57 | action: template src=templates/etc-mysql-my-cnf.j2 dest=/etc/mysql/my.cnf 58 | tags: common 59 | 60 | - include: ../common-tasks/mysql-secure.yml 61 | 62 | ## 63 | # Apache2 setup. Webroot is at /var/dev, rather than /var/www because 64 | # strictly speaking /var/www is owned by an apt package. 65 | # 66 | - name: Apache | Enable some required modules 67 | action: command a2enmod rewrite vhost_alias 68 | tags: common 69 | 70 | - name: Apache | Configuration file for our site 71 | action: template src=templates/etc-apache2-sites-available-devserver.j2 dest=/etc/apache2/sites-available/devserver 72 | tags: common 73 | 74 | - name: Apache | Disable the default site 75 | action: command a2dissite default 76 | tags: common 77 | 78 | - name: Apache | Enable our new site 79 | action: command a2ensite devserver 80 | tags: common 81 | 82 | ## 83 | # Drush install, a Drupal shell tool. 84 | # 85 | - include: ../common-tasks/ubuntu-drush.yml 86 | 87 | ## 88 | # Memcached daemon. 89 | - include: ../common-tasks/ubuntu-memcached.yml 90 | 91 | ## 92 | # Restart services 93 | # 94 | - name: Restart Apache 95 | action: service name=apache2 state=restarted 96 | tags: common 97 | 98 | - name: Restart MySQL 99 | action: service name=mysql state=restarted 100 | tags: common 101 | 102 | - name: Restart Memcached 103 | action: service name=memcached state=restarted 104 | tags: memcached 105 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-apache2-sites-available-devserver.j2: -------------------------------------------------------------------------------- 1 | ## 2 | # Ansible provided setup. See https://github.com/fourkitchens/server-playbooks. 3 | ## 4 | 5 | 6 | ServerAdmin {{ apache_server_admin }} 7 | 8 | DocumentRoot /var/dev 9 | 10 | 11 | Options FollowSymLinks 12 | AllowOverride None 13 | 14 | 15 | 16 | Options Indexes FollowSymLinks MultiViews 17 | AllowOverride All 18 | Order allow,deny 19 | allow from all 20 | 21 | 22 | ErrorLog /var/log/apache2/error.log 23 | 24 | # Possible values include: debug, info, notice, warn, error, crit, 25 | # alert, emerg. 26 | LogLevel warn 27 | 28 | CustomLog /var/log/apache2/access.log combined 29 | 30 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-memcached-conf.j2: -------------------------------------------------------------------------------- 1 | # memcached default config file 2 | # 2003 - Jay Bonci 3 | # This configuration file is read by the start-memcached script provided as 4 | # part of the Debian GNU/Linux distribution. 5 | 6 | # Run memcached as a daemon. This command is implied, and is not needed for the 7 | # daemon to run. See the README.Debian that comes with this package for more 8 | # information. 9 | -d 10 | 11 | # Log memcached's output to /var/log/memcached 12 | logfile /var/log/memcached.log 13 | 14 | # Be verbose 15 | # -v 16 | 17 | # Be even more verbose (print client commands as well) 18 | # -vv 19 | 20 | # Start with a cap of 64 megs of memory. It's reasonable, and the daemon default 21 | # Note that the daemon will grow to this size, but does not start out holding this much 22 | # memory 23 | -m {{ memcached_memory }} 24 | 25 | # Default connection port is 11211 26 | -p 11211 27 | 28 | # Run the daemon as root. The start-memcached will default to running as root if no 29 | # -u command is present in this config file 30 | -u nobody 31 | 32 | # Specify which IP address to listen on. The default is to listen on all IP addresses 33 | # This parameter is one of the only security measures that memcached has, so make sure 34 | # it's listening on a firewalled interface. 35 | -l 127.0.0.1 36 | 37 | # Limit the number of simultaneous incoming connections. The daemon default is 1024 38 | # -c 1024 39 | 40 | # Lock down all paged memory. Consult with the README and homepage before you do this 41 | # -k 42 | 43 | # Return error when memory is exhausted (rather than removing items) 44 | # -M 45 | 46 | # Maximize core file limit 47 | # -r 48 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-mysql-my-cnf.j2: -------------------------------------------------------------------------------- 1 | # 2 | # The MySQL database server configuration file. 3 | # 4 | # You can copy this to one of: 5 | # - "/etc/mysql/my.cnf" to set global options, 6 | # - "~/.my.cnf" to set user-specific options. 7 | # 8 | # One can use all long options that the program supports. 9 | # Run program with --help to get a list of available options and with 10 | # --print-defaults to see which it would actually understand and use. 11 | # 12 | # For explanations see 13 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html 14 | 15 | # This will be passed to all mysql clients 16 | # It has been reported that passwords should be enclosed with ticks/quotes 17 | # escpecially if they contain "#" chars... 18 | # Remember to edit /etc/mysql/debian.cnf when changing the socket location. 19 | [client] 20 | port = 3306 21 | socket = /var/run/mysqld/mysqld.sock 22 | 23 | # Here is entries for some specific programs 24 | # The following values assume you have at least 32M ram 25 | 26 | # This was formally known as [safe_mysqld]. Both versions are currently parsed. 27 | [mysqld_safe] 28 | socket = /var/run/mysqld/mysqld.sock 29 | nice = 0 30 | 31 | [mysqld] 32 | # 33 | # * Basic Settings 34 | # 35 | 36 | # 37 | # * IMPORTANT 38 | # If you make changes to these settings and your system uses apparmor, you may 39 | # also need to also adjust /etc/apparmor.d/usr.sbin.mysqld. 40 | # 41 | 42 | user = mysql 43 | socket = /var/run/mysqld/mysqld.sock 44 | port = 3306 45 | basedir = /usr 46 | datadir = /var/lib/mysql 47 | tmpdir = /tmp 48 | skip-external-locking 49 | # 50 | # Instead of skip-networking the default is now to listen only on 51 | # localhost which is more compatible and is not less secure. 52 | bind-address = 127.0.0.1 53 | # 54 | # * Fine Tuning 55 | # 56 | key_buffer = 16M 57 | max_allowed_packet = {{ mysql_max_allowed_packet }} 58 | thread_stack = 192K 59 | thread_cache_size = 8 60 | # This replaces the startup script and checks MyISAM tables if needed 61 | # the first time they are touched 62 | myisam-recover = BACKUP 63 | #max_connections = 100 64 | #table_cache = 64 65 | #thread_concurrency = 10 66 | # 67 | # * Query Cache Configuration 68 | # 69 | query_cache_limit = 1M 70 | query_cache_size = 16M 71 | # 72 | # * Logging and Replication 73 | # 74 | # Both location gets rotated by the cronjob. 75 | # Be aware that this log type is a performance killer. 76 | # As of 5.1 you can enable the log at runtime! 77 | #general_log_file = /var/log/mysql/mysql.log 78 | #general_log = 1 79 | 80 | log_error = /var/log/mysql/error.log 81 | 82 | # Here you can see queries with especially long duration 83 | #log_slow_queries = /var/log/mysql/mysql-slow.log 84 | #long_query_time = 2 85 | #log-queries-not-using-indexes 86 | # 87 | # The following can be used as easy to replay backup logs or for replication. 88 | # note: if you are setting up a replication slave, see README.Debian about 89 | # other settings you may need to change. 90 | #server-id = 1 91 | #log_bin = /var/log/mysql/mysql-bin.log 92 | expire_logs_days = 10 93 | max_binlog_size = 100M 94 | #binlog_do_db = include_database_name 95 | #binlog_ignore_db = include_database_name 96 | # 97 | # * InnoDB 98 | # 99 | # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. 100 | # Read the manual for more InnoDB related options. There are many! 101 | # 102 | # * Security Features 103 | # 104 | # Read the manual, too, if you want chroot! 105 | # chroot = /var/lib/mysql/ 106 | # 107 | # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". 108 | # 109 | # ssl-ca=/etc/mysql/cacert.pem 110 | # ssl-cert=/etc/mysql/server-cert.pem 111 | # ssl-key=/etc/mysql/server-key.pem 112 | 113 | {{ innodb_file_per_table }} 114 | character_set_server = {{ mysql_character_set_server }} 115 | collation_server = {{ mysql_collation_server }} 116 | 117 | [mysqldump] 118 | quick 119 | quote-names 120 | max_allowed_packet = {{ mysql_max_allowed_packet }} 121 | 122 | [mysql] 123 | #no-auto-rehash # faster start of mysql but no tab completition 124 | 125 | [isamchk] 126 | key_buffer = 16M 127 | 128 | # 129 | # * IMPORTANT: Additional settings that can override those from this file! 130 | # The files must end with '.cnf', otherwise they'll be ignored. 131 | # 132 | !includedir /etc/mysql/conf.d/ 133 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-php5-apache2-php-ini.j2: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and Lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it's 82 | ; much more verbose when it comes to errors. We recommending using the 83 | ; development version only in development environments as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ;;;;;;;;;;;;;;;;;;; 87 | ; Quick Reference ; 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; The following are all the settings which are different in either the production 90 | ; or development versions of the INIs with respect to PHP's default behavior. 91 | ; Please see the actual settings later in the document for more details as to why 92 | ; we recommend these changes in PHP's behavior. 93 | 94 | ; allow_call_time_pass_reference 95 | ; Default Value: On 96 | ; Development Value: Off 97 | ; Production Value: Off 98 | 99 | ; display_errors 100 | ; Default Value: On 101 | ; Development Value: On 102 | ; Production Value: Off 103 | 104 | ; display_startup_errors 105 | ; Default Value: Off 106 | ; Development Value: On 107 | ; Production Value: Off 108 | 109 | ; error_reporting 110 | ; Default Value: E_ALL & ~E_NOTICE 111 | ; Development Value: E_ALL | E_STRICT 112 | ; Production Value: E_ALL & ~E_DEPRECATED 113 | 114 | ; html_errors 115 | ; Default Value: On 116 | ; Development Value: On 117 | ; Production value: Off 118 | 119 | ; log_errors 120 | ; Default Value: Off 121 | ; Development Value: On 122 | ; Production Value: On 123 | 124 | ; magic_quotes_gpc 125 | ; Default Value: On 126 | ; Development Value: Off 127 | ; Production Value: Off 128 | 129 | ; max_input_time 130 | ; Default Value: -1 (Unlimited) 131 | ; Development Value: 60 (60 seconds) 132 | ; Production Value: 60 (60 seconds) 133 | 134 | ; output_buffering 135 | ; Default Value: Off 136 | ; Development Value: 4096 137 | ; Production Value: 4096 138 | 139 | ; register_argc_argv 140 | ; Default Value: On 141 | ; Development Value: Off 142 | ; Production Value: Off 143 | 144 | ; register_long_arrays 145 | ; Default Value: On 146 | ; Development Value: Off 147 | ; Production Value: Off 148 | 149 | ; request_order 150 | ; Default Value: None 151 | ; Development Value: "GP" 152 | ; Production Value: "GP" 153 | 154 | ; session.bug_compat_42 155 | ; Default Value: On 156 | ; Development Value: On 157 | ; Production Value: Off 158 | 159 | ; session.bug_compat_warn 160 | ; Default Value: On 161 | ; Development Value: On 162 | ; Production Value: Off 163 | 164 | ; session.gc_divisor 165 | ; Default Value: 100 166 | ; Development Value: 1000 167 | ; Production Value: 1000 168 | 169 | ; session.hash_bits_per_character 170 | ; Default Value: 4 171 | ; Development Value: 5 172 | ; Production Value: 5 173 | 174 | ; short_open_tag 175 | ; Default Value: On 176 | ; Development Value: Off 177 | ; Production Value: Off 178 | 179 | ; track_errors 180 | ; Default Value: Off 181 | ; Development Value: On 182 | ; Production Value: Off 183 | 184 | ; url_rewriter.tags 185 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 186 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 187 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 188 | 189 | ; variables_order 190 | ; Default Value: "EGPCS" 191 | ; Development Value: "GPCS" 192 | ; Production Value: "GPCS" 193 | 194 | ;;;;;;;;;;;;;;;;;;;; 195 | ; php.ini Options ; 196 | ;;;;;;;;;;;;;;;;;;;; 197 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 198 | ;user_ini.filename = ".user.ini" 199 | 200 | ; To disable this feature set this option to empty value 201 | ;user_ini.filename = 202 | 203 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 204 | ;user_ini.cache_ttl = 300 205 | 206 | ;;;;;;;;;;;;;;;;;;;; 207 | ; Language Options ; 208 | ;;;;;;;;;;;;;;;;;;;; 209 | 210 | ; Enable the PHP scripting language engine under Apache. 211 | ; http://php.net/engine 212 | engine = On 213 | 214 | ; This directive determines whether or not PHP will recognize code between 215 | ; tags as PHP source which should be processed as such. It's been 216 | ; recommended for several years that you not use the short tag "short cut" and 217 | ; instead to use the full tag combination. With the wide spread use 218 | ; of XML and use of these tags by other languages, the server can become easily 219 | ; confused and end up parsing the wrong code in the wrong context. But because 220 | ; this short cut has been a feature for such a long time, it's currently still 221 | ; supported for backwards compatibility, but we recommend you don't use them. 222 | ; Default Value: On 223 | ; Development Value: Off 224 | ; Production Value: Off 225 | ; http://php.net/short-open-tag 226 | short_open_tag = On 227 | 228 | ; Allow ASP-style <% %> tags. 229 | ; http://php.net/asp-tags 230 | asp_tags = Off 231 | 232 | ; The number of significant digits displayed in floating point numbers. 233 | ; http://php.net/precision 234 | precision = 14 235 | 236 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers) 237 | ; http://php.net/y2k-compliance 238 | y2k_compliance = On 239 | 240 | ; Output buffering is a mechanism for controlling how much output data 241 | ; (excluding headers and cookies) PHP should keep internally before pushing that 242 | ; data to the client. If your application's output exceeds this setting, PHP 243 | ; will send that data in chunks of roughly the size you specify. 244 | ; Turning on this setting and managing its maximum buffer size can yield some 245 | ; interesting side-effects depending on your application and web server. 246 | ; You may be able to send headers and cookies after you've already sent output 247 | ; through print or echo. You also may see performance benefits if your server is 248 | ; emitting less packets due to buffered output versus PHP streaming the output 249 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 250 | ; reasons. 251 | ; Note: Output buffering can also be controlled via Output Buffering Control 252 | ; functions. 253 | ; Possible Values: 254 | ; On = Enabled and buffer is unlimited. (Use with caution) 255 | ; Off = Disabled 256 | ; Integer = Enables the buffer and sets its maximum size in bytes. 257 | ; Note: This directive is hardcoded to Off for the CLI SAPI 258 | ; Default Value: Off 259 | ; Development Value: 4096 260 | ; Production Value: 4096 261 | ; http://php.net/output-buffering 262 | output_buffering = 4096 263 | 264 | ; You can redirect all of the output of your scripts to a function. For 265 | ; example, if you set output_handler to "mb_output_handler", character 266 | ; encoding will be transparently converted to the specified encoding. 267 | ; Setting any output handler automatically turns on output buffering. 268 | ; Note: People who wrote portable scripts should not depend on this ini 269 | ; directive. Instead, explicitly set the output handler using ob_start(). 270 | ; Using this ini directive may cause problems unless you know what script 271 | ; is doing. 272 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 273 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 274 | ; Note: output_handler must be empty if this is set 'On' !!!! 275 | ; Instead you must use zlib.output_handler. 276 | ; http://php.net/output-handler 277 | ;output_handler = 278 | 279 | ; Transparent output compression using the zlib library 280 | ; Valid values for this option are 'off', 'on', or a specific buffer size 281 | ; to be used for compression (default is 4KB) 282 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 283 | ; outputs chunks that are few hundreds bytes each as a result of 284 | ; compression. If you prefer a larger chunk size for better 285 | ; performance, enable output_buffering in addition. 286 | ; Note: You need to use zlib.output_handler instead of the standard 287 | ; output_handler, or otherwise the output will be corrupted. 288 | ; http://php.net/zlib.output-compression 289 | zlib.output_compression = Off 290 | 291 | ; http://php.net/zlib.output-compression-level 292 | ;zlib.output_compression_level = -1 293 | 294 | ; You cannot specify additional output handlers if zlib.output_compression 295 | ; is activated here. This setting does the same as output_handler but in 296 | ; a different order. 297 | ; http://php.net/zlib.output-handler 298 | ;zlib.output_handler = 299 | 300 | ; Implicit flush tells PHP to tell the output layer to flush itself 301 | ; automatically after every output block. This is equivalent to calling the 302 | ; PHP function flush() after each and every call to print() or echo() and each 303 | ; and every HTML block. Turning this option on has serious performance 304 | ; implications and is generally recommended for debugging purposes only. 305 | ; http://php.net/implicit-flush 306 | ; Note: This directive is hardcoded to On for the CLI SAPI 307 | implicit_flush = Off 308 | 309 | ; The unserialize callback function will be called (with the undefined class' 310 | ; name as parameter), if the unserializer finds an undefined class 311 | ; which should be instantiated. A warning appears if the specified function is 312 | ; not defined, or if the function doesn't include/implement the missing class. 313 | ; So only set this entry, if you really want to implement such a 314 | ; callback-function. 315 | unserialize_callback_func = 316 | 317 | ; When floats & doubles are serialized store serialize_precision significant 318 | ; digits after the floating point. The default value ensures that when floats 319 | ; are decoded with unserialize, the data will remain the same. 320 | serialize_precision = 100 321 | 322 | ; This directive allows you to enable and disable warnings which PHP will issue 323 | ; if you pass a value by reference at function call time. Passing values by 324 | ; reference at function call time is a deprecated feature which will be removed 325 | ; from PHP at some point in the near future. The acceptable method for passing a 326 | ; value by reference to a function is by declaring the reference in the functions 327 | ; definition, not at call time. This directive does not disable this feature, it 328 | ; only determines whether PHP will warn you about it or not. These warnings 329 | ; should enabled in development environments only. 330 | ; Default Value: On (Suppress warnings) 331 | ; Development Value: Off (Issue warnings) 332 | ; Production Value: Off (Issue warnings) 333 | ; http://php.net/allow-call-time-pass-reference 334 | allow_call_time_pass_reference = Off 335 | 336 | ; Safe Mode 337 | ; http://php.net/safe-mode 338 | safe_mode = Off 339 | 340 | ; By default, Safe Mode does a UID compare check when 341 | ; opening files. If you want to relax this to a GID compare, 342 | ; then turn on safe_mode_gid. 343 | ; http://php.net/safe-mode-gid 344 | safe_mode_gid = Off 345 | 346 | ; When safe_mode is on, UID/GID checks are bypassed when 347 | ; including files from this directory and its subdirectories. 348 | ; (directory must also be in include_path or full path must 349 | ; be used when including) 350 | ; http://php.net/safe-mode-include-dir 351 | safe_mode_include_dir = 352 | 353 | ; When safe_mode is on, only executables located in the safe_mode_exec_dir 354 | ; will be allowed to be executed via the exec family of functions. 355 | ; http://php.net/safe-mode-exec-dir 356 | safe_mode_exec_dir = 357 | 358 | ; Setting certain environment variables may be a potential security breach. 359 | ; This directive contains a comma-delimited list of prefixes. In Safe Mode, 360 | ; the user may only alter environment variables whose names begin with the 361 | ; prefixes supplied here. By default, users will only be able to set 362 | ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR). 363 | ; Note: If this directive is empty, PHP will let the user modify ANY 364 | ; environment variable! 365 | ; http://php.net/safe-mode-allowed-env-vars 366 | safe_mode_allowed_env_vars = PHP_ 367 | 368 | ; This directive contains a comma-delimited list of environment variables that 369 | ; the end user won't be able to change using putenv(). These variables will be 370 | ; protected even if safe_mode_allowed_env_vars is set to allow to change them. 371 | ; http://php.net/safe-mode-protected-env-vars 372 | safe_mode_protected_env_vars = LD_LIBRARY_PATH 373 | 374 | ; open_basedir, if set, limits all file operations to the defined directory 375 | ; and below. This directive makes most sense if used in a per-directory 376 | ; or per-virtualhost web server configuration file. This directive is 377 | ; *NOT* affected by whether Safe Mode is turned On or Off. 378 | ; http://php.net/open-basedir 379 | ;open_basedir = 380 | 381 | ; This directive allows you to disable certain functions for security reasons. 382 | ; It receives a comma-delimited list of function names. This directive is 383 | ; *NOT* affected by whether Safe Mode is turned On or Off. 384 | ; http://php.net/disable-functions 385 | disable_functions = 386 | 387 | ; This directive allows you to disable certain classes for security reasons. 388 | ; It receives a comma-delimited list of class names. This directive is 389 | ; *NOT* affected by whether Safe Mode is turned On or Off. 390 | ; http://php.net/disable-classes 391 | disable_classes = 392 | 393 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 394 | ; would work. 395 | ; http://php.net/syntax-highlighting 396 | ;highlight.string = #DD0000 397 | ;highlight.comment = #FF9900 398 | ;highlight.keyword = #007700 399 | ;highlight.bg = #FFFFFF 400 | ;highlight.default = #0000BB 401 | ;highlight.html = #000000 402 | 403 | ; If enabled, the request will be allowed to complete even if the user aborts 404 | ; the request. Consider enabling it if executing long requests, which may end up 405 | ; being interrupted by the user or a browser timing out. PHP's default behavior 406 | ; is to disable this feature. 407 | ; http://php.net/ignore-user-abort 408 | ;ignore_user_abort = On 409 | 410 | ; Determines the size of the realpath cache to be used by PHP. This value should 411 | ; be increased on systems where PHP opens many files to reflect the quantity of 412 | ; the file operations performed. 413 | ; http://php.net/realpath-cache-size 414 | ;realpath_cache_size = 16k 415 | 416 | ; Duration of time, in seconds for which to cache realpath information for a given 417 | ; file or directory. For systems with rarely changing files, consider increasing this 418 | ; value. 419 | ; http://php.net/realpath-cache-ttl 420 | ;realpath_cache_ttl = 120 421 | 422 | ;;;;;;;;;;;;;;;;; 423 | ; Miscellaneous ; 424 | ;;;;;;;;;;;;;;;;; 425 | 426 | ; Decides whether PHP may expose the fact that it is installed on the server 427 | ; (e.g. by adding its signature to the Web server header). It is no security 428 | ; threat in any way, but it makes it possible to determine whether you use PHP 429 | ; on your server or not. 430 | ; http://php.net/expose-php 431 | expose_php = On 432 | 433 | ;;;;;;;;;;;;;;;;;;; 434 | ; Resource Limits ; 435 | ;;;;;;;;;;;;;;;;;;; 436 | 437 | ; Maximum execution time of each script, in seconds 438 | ; http://php.net/max-execution-time 439 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 440 | max_execution_time = {{ php_max_execution_time }} 441 | 442 | ; Maximum amount of time each script may spend parsing request data. It's a good 443 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 444 | ; long running scripts. 445 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 446 | ; Default Value: -1 (Unlimited) 447 | ; Development Value: 60 (60 seconds) 448 | ; Production Value: 60 (60 seconds) 449 | ; http://php.net/max-input-time 450 | max_input_time = 60 451 | 452 | ; Maximum input variable nesting level 453 | ; http://php.net/max-input-nesting-level 454 | ;max_input_nesting_level = 64 455 | 456 | ; Maximum amount of memory a script may consume (128MB) 457 | ; http://php.net/memory-limit 458 | memory_limit = 128M 459 | 460 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 461 | ; Error handling and logging ; 462 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 463 | 464 | ; This directive informs PHP of which errors, warnings and notices you would like 465 | ; it to take action for. The recommended way of setting values for this 466 | ; directive is through the use of the error level constants and bitwise 467 | ; operators. The error level constants are below here for convenience as well as 468 | ; some common settings and their meanings. 469 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 470 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 471 | ; recommended coding standards in PHP. For performance reasons, this is the 472 | ; recommend error reporting setting. Your production server shouldn't be wasting 473 | ; resources complaining about best practices and coding standards. That's what 474 | ; development servers and development settings are for. 475 | ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This 476 | ; means it pretty much reports everything which is exactly what you want during 477 | ; development and early testing. 478 | ; 479 | ; Error Level Constants: 480 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0) 481 | ; E_ERROR - fatal run-time errors 482 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 483 | ; E_WARNING - run-time warnings (non-fatal errors) 484 | ; E_PARSE - compile-time parse errors 485 | ; E_NOTICE - run-time notices (these are warnings which often result 486 | ; from a bug in your code, but it's possible that it was 487 | ; intentional (e.g., using an uninitialized variable and 488 | ; relying on the fact it's automatically initialized to an 489 | ; empty string) 490 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 491 | ; to your code which will ensure the best interoperability 492 | ; and forward compatibility of your code 493 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 494 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 495 | ; initial startup 496 | ; E_COMPILE_ERROR - fatal compile-time errors 497 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 498 | ; E_USER_ERROR - user-generated error message 499 | ; E_USER_WARNING - user-generated warning message 500 | ; E_USER_NOTICE - user-generated notice message 501 | ; E_DEPRECATED - warn about code that will not work in future versions 502 | ; of PHP 503 | ; E_USER_DEPRECATED - user-generated deprecation warnings 504 | ; 505 | ; Common Values: 506 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) 507 | ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) 508 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 509 | ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) 510 | ; Default Value: E_ALL & ~E_NOTICE 511 | ; Development Value: E_ALL | E_STRICT 512 | ; Production Value: E_ALL & ~E_DEPRECATED 513 | ; http://php.net/error-reporting 514 | error_reporting = E_ALL & ~E_DEPRECATED 515 | 516 | ; This directive controls whether or not and where PHP will output errors, 517 | ; notices and warnings too. Error output is very useful during development, but 518 | ; it could be very dangerous in production environments. Depending on the code 519 | ; which is triggering the error, sensitive information could potentially leak 520 | ; out of your application such as database usernames and passwords or worse. 521 | ; It's recommended that errors be logged on production servers rather than 522 | ; having the errors sent to STDOUT. 523 | ; Possible Values: 524 | ; Off = Do not display any errors 525 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 526 | ; On or stdout = Display errors to STDOUT 527 | ; Default Value: On 528 | ; Development Value: On 529 | ; Production Value: Off 530 | ; http://php.net/display-errors 531 | display_errors = {{ php_display_errors }} 532 | 533 | ; The display of errors which occur during PHP's startup sequence are handled 534 | ; separately from display_errors. PHP's default behavior is to suppress those 535 | ; errors from clients. Turning the display of startup errors on can be useful in 536 | ; debugging configuration problems. But, it's strongly recommended that you 537 | ; leave this setting off on production servers. 538 | ; Default Value: Off 539 | ; Development Value: On 540 | ; Production Value: Off 541 | ; http://php.net/display-startup-errors 542 | display_startup_errors = {{ php_display_startup_errors }} 543 | 544 | ; Besides displaying errors, PHP can also log errors to locations such as a 545 | ; server-specific log, STDERR, or a location specified by the error_log 546 | ; directive found below. While errors should not be displayed on productions 547 | ; servers they should still be monitored and logging is a great way to do that. 548 | ; Default Value: Off 549 | ; Development Value: On 550 | ; Production Value: On 551 | ; http://php.net/log-errors 552 | log_errors = On 553 | 554 | ; Set maximum length of log_errors. In error_log information about the source is 555 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 556 | ; http://php.net/log-errors-max-len 557 | log_errors_max_len = 1024 558 | 559 | ; Do not log repeated messages. Repeated errors must occur in same file on same 560 | ; line unless ignore_repeated_source is set true. 561 | ; http://php.net/ignore-repeated-errors 562 | ignore_repeated_errors = Off 563 | 564 | ; Ignore source of message when ignoring repeated messages. When this setting 565 | ; is On you will not log errors with repeated messages from different files or 566 | ; source lines. 567 | ; http://php.net/ignore-repeated-source 568 | ignore_repeated_source = Off 569 | 570 | ; If this parameter is set to Off, then memory leaks will not be shown (on 571 | ; stdout or in the log). This has only effect in a debug compile, and if 572 | ; error reporting includes E_WARNING in the allowed list 573 | ; http://php.net/report-memleaks 574 | report_memleaks = On 575 | 576 | ; This setting is on by default. 577 | ;report_zend_debug = 0 578 | 579 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 580 | ; to On can assist in debugging and is appropriate for development servers. It should 581 | ; however be disabled on production servers. 582 | ; Default Value: Off 583 | ; Development Value: On 584 | ; Production Value: Off 585 | ; http://php.net/track-errors 586 | track_errors = Off 587 | 588 | ; Turn off normal error reporting and emit XML-RPC error XML 589 | ; http://php.net/xmlrpc-errors 590 | ;xmlrpc_errors = 0 591 | 592 | ; An XML-RPC faultCode 593 | ;xmlrpc_error_number = 0 594 | 595 | ; When PHP displays or logs an error, it has the capability of inserting html 596 | ; links to documentation related to that error. This directive controls whether 597 | ; those HTML links appear in error messages or not. For performance and security 598 | ; reasons, it's recommended you disable this on production servers. 599 | ; Note: This directive is hardcoded to Off for the CLI SAPI 600 | ; Default Value: On 601 | ; Development Value: On 602 | ; Production value: Off 603 | ; http://php.net/html-errors 604 | html_errors = {{ php_html_errors }} 605 | 606 | ; If html_errors is set On PHP produces clickable error messages that direct 607 | ; to a page describing the error or function causing the error in detail. 608 | ; You can download a copy of the PHP manual from http://php.net/docs 609 | ; and change docref_root to the base URL of your local copy including the 610 | ; leading '/'. You must also specify the file extension being used including 611 | ; the dot. PHP's default behavior is to leave these settings empty. 612 | ; Note: Never use this feature for production boxes. 613 | ; http://php.net/docref-root 614 | ; Examples 615 | ;docref_root = "/phpmanual/" 616 | 617 | ; http://php.net/docref-ext 618 | ;docref_ext = .html 619 | 620 | ; String to output before an error message. PHP's default behavior is to leave 621 | ; this setting blank. 622 | ; http://php.net/error-prepend-string 623 | ; Example: 624 | ;error_prepend_string = "" 625 | 626 | ; String to output after an error message. PHP's default behavior is to leave 627 | ; this setting blank. 628 | ; http://php.net/error-append-string 629 | ; Example: 630 | ;error_append_string = "" 631 | 632 | ; Log errors to specified file. PHP's default behavior is to leave this value 633 | ; empty. 634 | ; http://php.net/error-log 635 | ; Example: 636 | ;error_log = php_errors.log 637 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95). 638 | ;error_log = syslog 639 | 640 | ;;;;;;;;;;;;;;;;; 641 | ; Data Handling ; 642 | ;;;;;;;;;;;;;;;;; 643 | 644 | ; The separator used in PHP generated URLs to separate arguments. 645 | ; PHP's default setting is "&". 646 | ; http://php.net/arg-separator.output 647 | ; Example: 648 | ;arg_separator.output = "&" 649 | 650 | ; List of separator(s) used by PHP to parse input URLs into variables. 651 | ; PHP's default setting is "&". 652 | ; NOTE: Every character in this directive is considered as separator! 653 | ; http://php.net/arg-separator.input 654 | ; Example: 655 | ;arg_separator.input = ";&" 656 | 657 | ; This directive determines which super global arrays are registered when PHP 658 | ; starts up. If the register_globals directive is enabled, it also determines 659 | ; what order variables are populated into the global space. G,P,C,E & S are 660 | ; abbreviations for the following respective super globals: GET, POST, COOKIE, 661 | ; ENV and SERVER. There is a performance penalty paid for the registration of 662 | ; these arrays and because ENV is not as commonly used as the others, ENV is 663 | ; is not recommended on productions servers. You can still get access to 664 | ; the environment variables through getenv() should you need to. 665 | ; Default Value: "EGPCS" 666 | ; Development Value: "GPCS" 667 | ; Production Value: "GPCS"; 668 | ; http://php.net/variables-order 669 | variables_order = "GPCS" 670 | 671 | ; This directive determines which super global data (G,P,C,E & S) should 672 | ; be registered into the super global array REQUEST. If so, it also determines 673 | ; the order in which that data is registered. The values for this directive are 674 | ; specified in the same manner as the variables_order directive, EXCEPT one. 675 | ; Leaving this value empty will cause PHP to use the value set in the 676 | ; variables_order directive. It does not mean it will leave the super globals 677 | ; array REQUEST empty. 678 | ; Default Value: None 679 | ; Development Value: "GP" 680 | ; Production Value: "GP" 681 | ; http://php.net/request-order 682 | request_order = "GP" 683 | 684 | ; Whether or not to register the EGPCS variables as global variables. You may 685 | ; want to turn this off if you don't want to clutter your scripts' global scope 686 | ; with user data. 687 | ; You should do your best to write your scripts so that they do not require 688 | ; register_globals to be on; Using form variables as globals can easily lead 689 | ; to possible security problems, if the code is not very well thought of. 690 | ; http://php.net/register-globals 691 | register_globals = Off 692 | 693 | ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables 694 | ; are registered by PHP or not. As they are deprecated, we obviously don't 695 | ; recommend you use them. They are on by default for compatibility reasons but 696 | ; they are not recommended on production servers. 697 | ; Default Value: On 698 | ; Development Value: Off 699 | ; Production Value: Off 700 | ; http://php.net/register-long-arrays 701 | register_long_arrays = Off 702 | 703 | ; This directive determines whether PHP registers $argv & $argc each time it 704 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 705 | ; is invoked. $argc contains an integer representing the number of arguments 706 | ; that were passed when the script was invoked. These arrays are extremely 707 | ; useful when running scripts from the command line. When this directive is 708 | ; enabled, registering these variables consumes CPU cycles and memory each time 709 | ; a script is executed. For performance reasons, this feature should be disabled 710 | ; on production servers. 711 | ; Note: This directive is hardcoded to On for the CLI SAPI 712 | ; Default Value: On 713 | ; Development Value: Off 714 | ; Production Value: Off 715 | ; http://php.net/register-argc-argv 716 | register_argc_argv = Off 717 | 718 | ; When enabled, the SERVER and ENV variables are created when they're first 719 | ; used (Just In Time) instead of when the script starts. If these variables 720 | ; are not used within a script, having this directive on will result in a 721 | ; performance gain. The PHP directives register_globals, register_long_arrays, 722 | ; and register_argc_argv must be disabled for this directive to have any affect. 723 | ; http://php.net/auto-globals-jit 724 | auto_globals_jit = On 725 | 726 | ; Maximum size of POST data that PHP will accept. 727 | ; http://php.net/post-max-size 728 | post_max_size = {{ php_post_max_size }} 729 | 730 | ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to 731 | ; escape any character sequences in GET, POST, COOKIE and ENV data which might 732 | ; otherwise corrupt data being placed in resources such as databases before 733 | ; making that data available to you. Because of character encoding issues and 734 | ; non-standard SQL implementations across many databases, it's not currently 735 | ; possible for this feature to be 100% accurate. PHP's default behavior is to 736 | ; enable the feature. We strongly recommend you use the escaping mechanisms 737 | ; designed specifically for the database your using instead of relying on this 738 | ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is 739 | ; scheduled for removal in PHP 6. 740 | ; Default Value: On 741 | ; Development Value: Off 742 | ; Production Value: Off 743 | ; http://php.net/magic-quotes-gpc 744 | magic_quotes_gpc = Off 745 | 746 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. 747 | ; http://php.net/magic-quotes-runtime 748 | magic_quotes_runtime = Off 749 | 750 | ; Use Sybase-style magic quotes (escape ' with '' instead of \'). 751 | ; http://php.net/magic-quotes-sybase 752 | magic_quotes_sybase = Off 753 | 754 | ; Automatically add files before PHP document. 755 | ; http://php.net/auto-prepend-file 756 | auto_prepend_file = 757 | 758 | ; Automatically add files after PHP document. 759 | ; http://php.net/auto-append-file 760 | auto_append_file = 761 | 762 | ; By default, PHP will output a character encoding using 763 | ; the Content-type: header. To disable sending of the charset, simply 764 | ; set it to be empty. 765 | ; 766 | ; PHP's built-in default is text/html 767 | ; http://php.net/default-mimetype 768 | default_mimetype = "text/html" 769 | 770 | ; PHP's default character set is set to empty. 771 | ; http://php.net/default-charset 772 | ;default_charset = "iso-8859-1" 773 | 774 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 775 | ; to disable this feature. 776 | ; http://php.net/always-populate-raw-post-data 777 | ;always_populate_raw_post_data = On 778 | 779 | ;;;;;;;;;;;;;;;;;;;;;;;;; 780 | ; Paths and Directories ; 781 | ;;;;;;;;;;;;;;;;;;;;;;;;; 782 | 783 | ; UNIX: "/path1:/path2" 784 | ;include_path = ".:/usr/share/php" 785 | ; 786 | ; Windows: "\path1;\path2" 787 | ;include_path = ".;c:\php\includes" 788 | ; 789 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 790 | ; http://php.net/include-path 791 | 792 | ; The root of the PHP pages, used only if nonempty. 793 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 794 | ; if you are running php as a CGI under any web server (other than IIS) 795 | ; see documentation for security issues. The alternate is to use the 796 | ; cgi.force_redirect configuration below 797 | ; http://php.net/doc-root 798 | doc_root = 799 | 800 | ; The directory under which PHP opens the script using /~username used only 801 | ; if nonempty. 802 | ; http://php.net/user-dir 803 | user_dir = 804 | 805 | ; Directory in which the loadable extensions (modules) reside. 806 | ; http://php.net/extension-dir 807 | ; extension_dir = "./" 808 | ; On windows: 809 | ; extension_dir = "ext" 810 | 811 | ; Whether or not to enable the dl() function. The dl() function does NOT work 812 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 813 | ; disabled on them. 814 | ; http://php.net/enable-dl 815 | enable_dl = Off 816 | 817 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 818 | ; most web servers. Left undefined, PHP turns this on by default. You can 819 | ; turn it off here AT YOUR OWN RISK 820 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 821 | ; http://php.net/cgi.force-redirect 822 | ;cgi.force_redirect = 1 823 | 824 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 825 | ; every request. PHP's default behavior is to disable this feature. 826 | ;cgi.nph = 1 827 | 828 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 829 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 830 | ; will look for to know it is OK to continue execution. Setting this variable MAY 831 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 832 | ; http://php.net/cgi.redirect-status-env 833 | ;cgi.redirect_status_env = ; 834 | 835 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 836 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 837 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 838 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 839 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 840 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 841 | ; http://php.net/cgi.fix-pathinfo 842 | ;cgi.fix_pathinfo=1 843 | 844 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 845 | ; security tokens of the calling client. This allows IIS to define the 846 | ; security context that the request runs under. mod_fastcgi under Apache 847 | ; does not currently support this feature (03/17/2002) 848 | ; Set to 1 if running under IIS. Default is zero. 849 | ; http://php.net/fastcgi.impersonate 850 | ;fastcgi.impersonate = 1; 851 | 852 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 853 | ; this feature. 854 | ;fastcgi.logging = 0 855 | 856 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 857 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that 858 | ; is supported by Apache. When this option is set to 1 PHP will send 859 | ; RFC2616 compliant header. 860 | ; Default is zero. 861 | ; http://php.net/cgi.rfc2616-headers 862 | ;cgi.rfc2616_headers = 0 863 | 864 | ;;;;;;;;;;;;;;;; 865 | ; File Uploads ; 866 | ;;;;;;;;;;;;;;;; 867 | 868 | ; Whether to allow HTTP file uploads. 869 | ; http://php.net/file-uploads 870 | file_uploads = On 871 | 872 | ; Temporary directory for HTTP uploaded files (will use system default if not 873 | ; specified). 874 | ; http://php.net/upload-tmp-dir 875 | ;upload_tmp_dir = 876 | 877 | ; Maximum allowed size for uploaded files. 878 | ; http://php.net/upload-max-filesize 879 | upload_max_filesize = {{ php_upload_max_filesize }} 880 | 881 | ; Maximum number of files that can be uploaded via a single request 882 | max_file_uploads = 20 883 | 884 | ;;;;;;;;;;;;;;;;;; 885 | ; Fopen wrappers ; 886 | ;;;;;;;;;;;;;;;;;; 887 | 888 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 889 | ; http://php.net/allow-url-fopen 890 | allow_url_fopen = On 891 | 892 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 893 | ; http://php.net/allow-url-include 894 | allow_url_include = Off 895 | 896 | ; Define the anonymous ftp password (your email address). PHP's default setting 897 | ; for this is empty. 898 | ; http://php.net/from 899 | ;from="john@doe.com" 900 | 901 | ; Define the User-Agent string. PHP's default setting for this is empty. 902 | ; http://php.net/user-agent 903 | ;user_agent="PHP" 904 | 905 | ; Default timeout for socket based streams (seconds) 906 | ; http://php.net/default-socket-timeout 907 | default_socket_timeout = 60 908 | 909 | ; If your scripts have to deal with files from Macintosh systems, 910 | ; or you are running on a Mac and need to deal with files from 911 | ; unix or win32 systems, setting this flag will cause PHP to 912 | ; automatically detect the EOL character in those files so that 913 | ; fgets() and file() will work regardless of the source of the file. 914 | ; http://php.net/auto-detect-line-endings 915 | ;auto_detect_line_endings = Off 916 | 917 | ;;;;;;;;;;;;;;;;;;;;;; 918 | ; Dynamic Extensions ; 919 | ;;;;;;;;;;;;;;;;;;;;;; 920 | 921 | ; If you wish to have an extension loaded automatically, use the following 922 | ; syntax: 923 | ; 924 | ; extension=modulename.extension 925 | ; 926 | ; For example, on Windows: 927 | ; 928 | ; extension=msql.dll 929 | ; 930 | ; ... or under UNIX: 931 | ; 932 | ; extension=msql.so 933 | ; 934 | ; ... or with a path: 935 | ; 936 | ; extension=/path/to/extension/msql.so 937 | ; 938 | ; If you only provide the name of the extension, PHP will look for it in its 939 | ; default extension directory. 940 | ; 941 | 942 | ;;;;;;;;;;;;;;;;;;; 943 | ; Module Settings ; 944 | ;;;;;;;;;;;;;;;;;;; 945 | 946 | [Date] 947 | ; Defines the default timezone used by the date functions 948 | ; http://php.net/date.timezone 949 | date.timezone = {{ php_date_timezone }} 950 | 951 | ; http://php.net/date.default-latitude 952 | ;date.default_latitude = 31.7667 953 | 954 | ; http://php.net/date.default-longitude 955 | ;date.default_longitude = 35.2333 956 | 957 | ; http://php.net/date.sunrise-zenith 958 | ;date.sunrise_zenith = 90.583333 959 | 960 | ; http://php.net/date.sunset-zenith 961 | ;date.sunset_zenith = 90.583333 962 | 963 | [filter] 964 | ; http://php.net/filter.default 965 | ;filter.default = unsafe_raw 966 | 967 | ; http://php.net/filter.default-flags 968 | ;filter.default_flags = 969 | 970 | [iconv] 971 | ;iconv.input_encoding = ISO-8859-1 972 | ;iconv.internal_encoding = ISO-8859-1 973 | ;iconv.output_encoding = ISO-8859-1 974 | 975 | [intl] 976 | ;intl.default_locale = 977 | ; This directive allows you to produce PHP errors when some error 978 | ; happens within intl functions. The value is the level of the error produced. 979 | ; Default is 0, which does not produce any errors. 980 | ;intl.error_level = E_WARNING 981 | 982 | [sqlite] 983 | ; http://php.net/sqlite.assoc-case 984 | ;sqlite.assoc_case = 0 985 | 986 | [sqlite3] 987 | ;sqlite3.extension_dir = 988 | 989 | [Pcre] 990 | ;PCRE library backtracking limit. 991 | ; http://php.net/pcre.backtrack-limit 992 | ;pcre.backtrack_limit=100000 993 | 994 | ;PCRE library recursion limit. 995 | ;Please note that if you set this value to a high number you may consume all 996 | ;the available process stack and eventually crash PHP (due to reaching the 997 | ;stack size limit imposed by the Operating System). 998 | ; http://php.net/pcre.recursion-limit 999 | ;pcre.recursion_limit=100000 1000 | 1001 | [Pdo] 1002 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1003 | ; http://php.net/pdo-odbc.connection-pooling 1004 | ;pdo_odbc.connection_pooling=strict 1005 | 1006 | ;pdo_odbc.db2_instance_name 1007 | 1008 | [Pdo_mysql] 1009 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1010 | ; http://php.net/pdo_mysql.cache_size 1011 | pdo_mysql.cache_size = 2000 1012 | 1013 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1014 | ; MySQL defaults. 1015 | ; http://php.net/pdo_mysql.default-socket 1016 | pdo_mysql.default_socket= 1017 | 1018 | [Phar] 1019 | ; http://php.net/phar.readonly 1020 | ;phar.readonly = On 1021 | 1022 | ; http://php.net/phar.require-hash 1023 | ;phar.require_hash = On 1024 | 1025 | ;phar.cache_list = 1026 | 1027 | [Syslog] 1028 | ; Whether or not to define the various syslog variables (e.g. $LOG_PID, 1029 | ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In 1030 | ; runtime, you can define these variables by calling define_syslog_variables(). 1031 | ; http://php.net/define-syslog-variables 1032 | define_syslog_variables = Off 1033 | 1034 | [mail function] 1035 | ; For Win32 only. 1036 | ; http://php.net/smtp 1037 | SMTP = localhost 1038 | ; http://php.net/smtp-port 1039 | smtp_port = 25 1040 | 1041 | ; For Win32 only. 1042 | ; http://php.net/sendmail-from 1043 | ;sendmail_from = me@example.com 1044 | 1045 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1046 | ; http://php.net/sendmail-path 1047 | ;sendmail_path = 1048 | 1049 | ; Force the addition of the specified parameters to be passed as extra parameters 1050 | ; to the sendmail binary. These parameters will always replace the value of 1051 | ; the 5th parameter to mail(), even in safe mode. 1052 | ;mail.force_extra_parameters = 1053 | 1054 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1055 | mail.add_x_header = On 1056 | 1057 | ; Log all mail() calls including the full path of the script, line #, to address and headers 1058 | ;mail.log = 1059 | 1060 | [SQL] 1061 | ; http://php.net/sql.safe-mode 1062 | sql.safe_mode = Off 1063 | 1064 | [ODBC] 1065 | ; http://php.net/odbc.default-db 1066 | ;odbc.default_db = Not yet implemented 1067 | 1068 | ; http://php.net/odbc.default-user 1069 | ;odbc.default_user = Not yet implemented 1070 | 1071 | ; http://php.net/odbc.default-pw 1072 | ;odbc.default_pw = Not yet implemented 1073 | 1074 | ; Controls the ODBC cursor model. 1075 | ; Default: SQL_CURSOR_STATIC (default). 1076 | ;odbc.default_cursortype 1077 | 1078 | ; Allow or prevent persistent links. 1079 | ; http://php.net/odbc.allow-persistent 1080 | odbc.allow_persistent = On 1081 | 1082 | ; Check that a connection is still valid before reuse. 1083 | ; http://php.net/odbc.check-persistent 1084 | odbc.check_persistent = On 1085 | 1086 | ; Maximum number of persistent links. -1 means no limit. 1087 | ; http://php.net/odbc.max-persistent 1088 | odbc.max_persistent = -1 1089 | 1090 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1091 | ; http://php.net/odbc.max-links 1092 | odbc.max_links = -1 1093 | 1094 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1095 | ; passthru. 1096 | ; http://php.net/odbc.defaultlrl 1097 | odbc.defaultlrl = 4096 1098 | 1099 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1100 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1101 | ; of odbc.defaultlrl and odbc.defaultbinmode 1102 | ; http://php.net/odbc.defaultbinmode 1103 | odbc.defaultbinmode = 1 1104 | 1105 | ;birdstep.max_links = -1 1106 | 1107 | [Interbase] 1108 | ; Allow or prevent persistent links. 1109 | ibase.allow_persistent = 1 1110 | 1111 | ; Maximum number of persistent links. -1 means no limit. 1112 | ibase.max_persistent = -1 1113 | 1114 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1115 | ibase.max_links = -1 1116 | 1117 | ; Default database name for ibase_connect(). 1118 | ;ibase.default_db = 1119 | 1120 | ; Default username for ibase_connect(). 1121 | ;ibase.default_user = 1122 | 1123 | ; Default password for ibase_connect(). 1124 | ;ibase.default_password = 1125 | 1126 | ; Default charset for ibase_connect(). 1127 | ;ibase.default_charset = 1128 | 1129 | ; Default timestamp format. 1130 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1131 | 1132 | ; Default date format. 1133 | ibase.dateformat = "%Y-%m-%d" 1134 | 1135 | ; Default time format. 1136 | ibase.timeformat = "%H:%M:%S" 1137 | 1138 | [MySQL] 1139 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1140 | ; http://php.net/mysql.allow_local_infile 1141 | mysql.allow_local_infile = On 1142 | 1143 | ; Allow or prevent persistent links. 1144 | ; http://php.net/mysql.allow-persistent 1145 | mysql.allow_persistent = On 1146 | 1147 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1148 | ; http://php.net/mysql.cache_size 1149 | mysql.cache_size = 2000 1150 | 1151 | ; Maximum number of persistent links. -1 means no limit. 1152 | ; http://php.net/mysql.max-persistent 1153 | mysql.max_persistent = -1 1154 | 1155 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1156 | ; http://php.net/mysql.max-links 1157 | mysql.max_links = -1 1158 | 1159 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1160 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1161 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1162 | ; at MYSQL_PORT. 1163 | ; http://php.net/mysql.default-port 1164 | mysql.default_port = 1165 | 1166 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1167 | ; MySQL defaults. 1168 | ; http://php.net/mysql.default-socket 1169 | mysql.default_socket = 1170 | 1171 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1172 | ; http://php.net/mysql.default-host 1173 | mysql.default_host = 1174 | 1175 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1176 | ; http://php.net/mysql.default-user 1177 | mysql.default_user = 1178 | 1179 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1180 | ; Note that this is generally a *bad* idea to store passwords in this file. 1181 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1182 | ; and reveal this password! And of course, any users with read access to this 1183 | ; file will be able to reveal the password as well. 1184 | ; http://php.net/mysql.default-password 1185 | mysql.default_password = 1186 | 1187 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1188 | ; http://php.net/mysql.connect-timeout 1189 | mysql.connect_timeout = 60 1190 | 1191 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1192 | ; SQL-Errors will be displayed. 1193 | ; http://php.net/mysql.trace-mode 1194 | mysql.trace_mode = Off 1195 | 1196 | [MySQLi] 1197 | 1198 | ; Maximum number of persistent links. -1 means no limit. 1199 | ; http://php.net/mysqli.max-persistent 1200 | mysqli.max_persistent = -1 1201 | 1202 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1203 | ; http://php.net/mysqli.allow_local_infile 1204 | ;mysqli.allow_local_infile = On 1205 | 1206 | ; Allow or prevent persistent links. 1207 | ; http://php.net/mysqli.allow-persistent 1208 | mysqli.allow_persistent = On 1209 | 1210 | ; Maximum number of links. -1 means no limit. 1211 | ; http://php.net/mysqli.max-links 1212 | mysqli.max_links = -1 1213 | 1214 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1215 | ; http://php.net/mysqli.cache_size 1216 | mysqli.cache_size = 2000 1217 | 1218 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1219 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1220 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1221 | ; at MYSQL_PORT. 1222 | ; http://php.net/mysqli.default-port 1223 | mysqli.default_port = 3306 1224 | 1225 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1226 | ; MySQL defaults. 1227 | ; http://php.net/mysqli.default-socket 1228 | mysqli.default_socket = 1229 | 1230 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1231 | ; http://php.net/mysqli.default-host 1232 | mysqli.default_host = 1233 | 1234 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1235 | ; http://php.net/mysqli.default-user 1236 | mysqli.default_user = 1237 | 1238 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1239 | ; Note that this is generally a *bad* idea to store passwords in this file. 1240 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1241 | ; and reveal this password! And of course, any users with read access to this 1242 | ; file will be able to reveal the password as well. 1243 | ; http://php.net/mysqli.default-pw 1244 | mysqli.default_pw = 1245 | 1246 | ; Allow or prevent reconnect 1247 | mysqli.reconnect = Off 1248 | 1249 | [mysqlnd] 1250 | ; Enable / Disable collection of general statstics by mysqlnd which can be 1251 | ; used to tune and monitor MySQL operations. 1252 | ; http://php.net/mysqlnd.collect_statistics 1253 | mysqlnd.collect_statistics = On 1254 | 1255 | ; Enable / Disable collection of memory usage statstics by mysqlnd which can be 1256 | ; used to tune and monitor MySQL operations. 1257 | ; http://php.net/mysqlnd.collect_memory_statistics 1258 | mysqlnd.collect_memory_statistics = Off 1259 | 1260 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1261 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1262 | ;mysqlnd.net_cmd_buffer_size = 2048 1263 | 1264 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1265 | ; bytes. 1266 | ; http://php.net/mysqlnd.net_read_buffer_size 1267 | ;mysqlnd.net_read_buffer_size = 32768 1268 | 1269 | [OCI8] 1270 | 1271 | ; Connection: Enables privileged connections using external 1272 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1273 | ; http://php.net/oci8.privileged-connect 1274 | ;oci8.privileged_connect = Off 1275 | 1276 | ; Connection: The maximum number of persistent OCI8 connections per 1277 | ; process. Using -1 means no limit. 1278 | ; http://php.net/oci8.max-persistent 1279 | ;oci8.max_persistent = -1 1280 | 1281 | ; Connection: The maximum number of seconds a process is allowed to 1282 | ; maintain an idle persistent connection. Using -1 means idle 1283 | ; persistent connections will be maintained forever. 1284 | ; http://php.net/oci8.persistent-timeout 1285 | ;oci8.persistent_timeout = -1 1286 | 1287 | ; Connection: The number of seconds that must pass before issuing a 1288 | ; ping during oci_pconnect() to check the connection validity. When 1289 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1290 | ; pings completely. 1291 | ; http://php.net/oci8.ping-interval 1292 | ;oci8.ping_interval = 60 1293 | 1294 | ; Connection: Set this to a user chosen connection class to be used 1295 | ; for all pooled server requests with Oracle 11g Database Resident 1296 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1297 | ; the same string for all web servers running the same application, 1298 | ; the database pool must be configured, and the connection string must 1299 | ; specify to use a pooled server. 1300 | ;oci8.connection_class = 1301 | 1302 | ; High Availability: Using On lets PHP receive Fast Application 1303 | ; Notification (FAN) events generated when a database node fails. The 1304 | ; database must also be configured to post FAN events. 1305 | ;oci8.events = Off 1306 | 1307 | ; Tuning: This option enables statement caching, and specifies how 1308 | ; many statements to cache. Using 0 disables statement caching. 1309 | ; http://php.net/oci8.statement-cache-size 1310 | ;oci8.statement_cache_size = 20 1311 | 1312 | ; Tuning: Enables statement prefetching and sets the default number of 1313 | ; rows that will be fetched automatically after statement execution. 1314 | ; http://php.net/oci8.default-prefetch 1315 | ;oci8.default_prefetch = 100 1316 | 1317 | ; Compatibility. Using On means oci_close() will not close 1318 | ; oci_connect() and oci_new_connect() connections. 1319 | ; http://php.net/oci8.old-oci-close-semantics 1320 | ;oci8.old_oci_close_semantics = Off 1321 | 1322 | [PostgresSQL] 1323 | ; Allow or prevent persistent links. 1324 | ; http://php.net/pgsql.allow-persistent 1325 | pgsql.allow_persistent = On 1326 | 1327 | ; Detect broken persistent links always with pg_pconnect(). 1328 | ; Auto reset feature requires a little overheads. 1329 | ; http://php.net/pgsql.auto-reset-persistent 1330 | pgsql.auto_reset_persistent = Off 1331 | 1332 | ; Maximum number of persistent links. -1 means no limit. 1333 | ; http://php.net/pgsql.max-persistent 1334 | pgsql.max_persistent = -1 1335 | 1336 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1337 | ; http://php.net/pgsql.max-links 1338 | pgsql.max_links = -1 1339 | 1340 | ; Ignore PostgreSQL backends Notice message or not. 1341 | ; Notice message logging require a little overheads. 1342 | ; http://php.net/pgsql.ignore-notice 1343 | pgsql.ignore_notice = 0 1344 | 1345 | ; Log PostgreSQL backends Noitce message or not. 1346 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1347 | ; http://php.net/pgsql.log-notice 1348 | pgsql.log_notice = 0 1349 | 1350 | [Sybase-CT] 1351 | ; Allow or prevent persistent links. 1352 | ; http://php.net/sybct.allow-persistent 1353 | sybct.allow_persistent = On 1354 | 1355 | ; Maximum number of persistent links. -1 means no limit. 1356 | ; http://php.net/sybct.max-persistent 1357 | sybct.max_persistent = -1 1358 | 1359 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1360 | ; http://php.net/sybct.max-links 1361 | sybct.max_links = -1 1362 | 1363 | ; Minimum server message severity to display. 1364 | ; http://php.net/sybct.min-server-severity 1365 | sybct.min_server_severity = 10 1366 | 1367 | ; Minimum client message severity to display. 1368 | ; http://php.net/sybct.min-client-severity 1369 | sybct.min_client_severity = 10 1370 | 1371 | ; Set per-context timeout 1372 | ; http://php.net/sybct.timeout 1373 | ;sybct.timeout= 1374 | 1375 | ;sybct.packet_size 1376 | 1377 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1378 | ; Default: one minute 1379 | ;sybct.login_timeout= 1380 | 1381 | ; The name of the host you claim to be connecting from, for display by sp_who. 1382 | ; Default: none 1383 | ;sybct.hostname= 1384 | 1385 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1386 | ; Default: 0 1387 | ;sybct.deadlock_retry_count= 1388 | 1389 | [bcmath] 1390 | ; Number of decimal digits for all bcmath functions. 1391 | ; http://php.net/bcmath.scale 1392 | bcmath.scale = 0 1393 | 1394 | [browscap] 1395 | ; http://php.net/browscap 1396 | ;browscap = extra/browscap.ini 1397 | 1398 | [Session] 1399 | ; Handler used to store/retrieve data. 1400 | ; http://php.net/session.save-handler 1401 | session.save_handler = files 1402 | 1403 | ; Argument passed to save_handler. In the case of files, this is the path 1404 | ; where data files are stored. Note: Windows users have to change this 1405 | ; variable in order to use PHP's session functions. 1406 | ; 1407 | ; The path can be defined as: 1408 | ; 1409 | ; session.save_path = "N;/path" 1410 | ; 1411 | ; where N is an integer. Instead of storing all the session files in 1412 | ; /path, what this will do is use subdirectories N-levels deep, and 1413 | ; store the session data in those directories. This is useful if you 1414 | ; or your OS have problems with lots of files in one directory, and is 1415 | ; a more efficient layout for servers that handle lots of sessions. 1416 | ; 1417 | ; NOTE 1: PHP will not create this directory structure automatically. 1418 | ; You can use the script in the ext/session dir for that purpose. 1419 | ; NOTE 2: See the section on garbage collection below if you choose to 1420 | ; use subdirectories for session storage 1421 | ; 1422 | ; The file storage module creates files using mode 600 by default. 1423 | ; You can change that by using 1424 | ; 1425 | ; session.save_path = "N;MODE;/path" 1426 | ; 1427 | ; where MODE is the octal representation of the mode. Note that this 1428 | ; does not overwrite the process's umask. 1429 | ; http://php.net/session.save-path 1430 | ;session.save_path = "/tmp" 1431 | 1432 | ; Whether to use cookies. 1433 | ; http://php.net/session.use-cookies 1434 | session.use_cookies = 1 1435 | 1436 | ; http://php.net/session.cookie-secure 1437 | ;session.cookie_secure = 1438 | 1439 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1440 | ; the session id. We encourage this operation as it's very helpful in combatting 1441 | ; session hijacking when not specifying and managing your own session id. It is 1442 | ; not the end all be all of session hijacking defense, but it's a good start. 1443 | ; http://php.net/session.use-only-cookies 1444 | session.use_only_cookies = 1 1445 | 1446 | ; Name of the session (used as cookie name). 1447 | ; http://php.net/session.name 1448 | session.name = PHPSESSID 1449 | 1450 | ; Initialize session on request startup. 1451 | ; http://php.net/session.auto-start 1452 | session.auto_start = 0 1453 | 1454 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1455 | ; http://php.net/session.cookie-lifetime 1456 | session.cookie_lifetime = 0 1457 | 1458 | ; The path for which the cookie is valid. 1459 | ; http://php.net/session.cookie-path 1460 | session.cookie_path = / 1461 | 1462 | ; The domain for which the cookie is valid. 1463 | ; http://php.net/session.cookie-domain 1464 | session.cookie_domain = 1465 | 1466 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1467 | ; http://php.net/session.cookie-httponly 1468 | session.cookie_httponly = 1469 | 1470 | ; Handler used to serialize data. php is the standard serializer of PHP. 1471 | ; http://php.net/session.serialize-handler 1472 | session.serialize_handler = php 1473 | 1474 | ; Defines the probability that the 'garbage collection' process is started 1475 | ; on every session initialization. The probability is calculated by using 1476 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1477 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1478 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1479 | ; the gc will run on any give request. 1480 | ; Default Value: 1 1481 | ; Development Value: 1 1482 | ; Production Value: 1 1483 | ; http://php.net/session.gc-probability 1484 | session.gc_probability = 1 1485 | 1486 | ; Defines the probability that the 'garbage collection' process is started on every 1487 | ; session initialization. The probability is calculated by using the following equation: 1488 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1489 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1490 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1491 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1492 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1493 | ; this is a more efficient approach. 1494 | ; Default Value: 100 1495 | ; Development Value: 1000 1496 | ; Production Value: 1000 1497 | ; http://php.net/session.gc-divisor 1498 | session.gc_divisor = 1000 1499 | 1500 | ; After this number of seconds, stored data will be seen as 'garbage' and 1501 | ; cleaned up by the garbage collection process. 1502 | ; http://php.net/session.gc-maxlifetime 1503 | session.gc_maxlifetime = 1440 1504 | 1505 | ; NOTE: If you are using the subdirectory option for storing session files 1506 | ; (see session.save_path above), then garbage collection does *not* 1507 | ; happen automatically. You will need to do your own garbage 1508 | ; collection through a shell script, cron entry, or some other method. 1509 | ; For example, the following script would is the equivalent of 1510 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1511 | ; cd /path/to/sessions; find -cmin +24 | xargs rm 1512 | 1513 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to 1514 | ; to initialize a session variable in the global scope, even when register_globals 1515 | ; is disabled. PHP 4.3 and later will warn you, if this feature is used. 1516 | ; You can disable the feature and the warning separately. At this time, 1517 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature 1518 | ; introduces some serious security problems if not handled correctly. It's 1519 | ; recommended that you do not use this feature on production servers. But you 1520 | ; should enable this on development servers and enable the warning as well. If you 1521 | ; do not enable the feature on development servers, you won't be warned when it's 1522 | ; used and debugging errors caused by this can be difficult to track down. 1523 | ; Default Value: On 1524 | ; Development Value: On 1525 | ; Production Value: Off 1526 | ; http://php.net/session.bug-compat-42 1527 | session.bug_compat_42 = Off 1528 | 1529 | ; This setting controls whether or not you are warned by PHP when initializing a 1530 | ; session value into the global space. session.bug_compat_42 must be enabled before 1531 | ; these warnings can be issued by PHP. See the directive above for more information. 1532 | ; Default Value: On 1533 | ; Development Value: On 1534 | ; Production Value: Off 1535 | ; http://php.net/session.bug-compat-warn 1536 | session.bug_compat_warn = Off 1537 | 1538 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1539 | ; HTTP_REFERER has to contain this substring for the session to be 1540 | ; considered as valid. 1541 | ; http://php.net/session.referer-check 1542 | session.referer_check = 1543 | 1544 | ; How many bytes to read from the file. 1545 | ; http://php.net/session.entropy-length 1546 | session.entropy_length = 0 1547 | 1548 | ; Specified here to create the session id. 1549 | ; http://php.net/session.entropy-file 1550 | ;session.entropy_file = /dev/urandom 1551 | session.entropy_file = 1552 | 1553 | ; http://php.net/session.entropy-length 1554 | ;session.entropy_length = 16 1555 | 1556 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1557 | ; or leave this empty to avoid sending anti-caching headers. 1558 | ; http://php.net/session.cache-limiter 1559 | session.cache_limiter = nocache 1560 | 1561 | ; Document expires after n minutes. 1562 | ; http://php.net/session.cache-expire 1563 | session.cache_expire = 180 1564 | 1565 | ; trans sid support is disabled by default. 1566 | ; Use of trans sid may risk your users security. 1567 | ; Use this option with caution. 1568 | ; - User may send URL contains active session ID 1569 | ; to other person via. email/irc/etc. 1570 | ; - URL that contains active session ID may be stored 1571 | ; in publically accessible computer. 1572 | ; - User may access your site with the same session ID 1573 | ; always using URL stored in browser's history or bookmarks. 1574 | ; http://php.net/session.use-trans-sid 1575 | session.use_trans_sid = 0 1576 | 1577 | ; Select a hash function for use in generating session ids. 1578 | ; Possible Values 1579 | ; 0 (MD5 128 bits) 1580 | ; 1 (SHA-1 160 bits) 1581 | ; This option may also be set to the name of any hash function supported by 1582 | ; the hash extension. A list of available hashes is returned by the hash_alogs() 1583 | ; function. 1584 | ; http://php.net/session.hash-function 1585 | session.hash_function = 0 1586 | 1587 | ; Define how many bits are stored in each character when converting 1588 | ; the binary hash data to something readable. 1589 | ; Possible values: 1590 | ; 4 (4 bits: 0-9, a-f) 1591 | ; 5 (5 bits: 0-9, a-v) 1592 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1593 | ; Default Value: 4 1594 | ; Development Value: 5 1595 | ; Production Value: 5 1596 | ; http://php.net/session.hash-bits-per-character 1597 | session.hash_bits_per_character = 5 1598 | 1599 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1600 | ; form/fieldset are special; if you include them here, the rewriter will 1601 | ; add a hidden field with the info which is otherwise appended 1602 | ; to URLs. If you want XHTML conformity, remove the form entry. 1603 | ; Note that all valid entries require a "=", even if no value follows. 1604 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1605 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1606 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1607 | ; http://php.net/url-rewriter.tags 1608 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1609 | 1610 | [MSSQL] 1611 | ; Allow or prevent persistent links. 1612 | mssql.allow_persistent = On 1613 | 1614 | ; Maximum number of persistent links. -1 means no limit. 1615 | mssql.max_persistent = -1 1616 | 1617 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1618 | mssql.max_links = -1 1619 | 1620 | ; Minimum error severity to display. 1621 | mssql.min_error_severity = 10 1622 | 1623 | ; Minimum message severity to display. 1624 | mssql.min_message_severity = 10 1625 | 1626 | ; Compatibility mode with old versions of PHP 3.0. 1627 | mssql.compatability_mode = Off 1628 | 1629 | ; Connect timeout 1630 | ;mssql.connect_timeout = 5 1631 | 1632 | ; Query timeout 1633 | ;mssql.timeout = 60 1634 | 1635 | ; Valid range 0 - 2147483647. Default = 4096. 1636 | ;mssql.textlimit = 4096 1637 | 1638 | ; Valid range 0 - 2147483647. Default = 4096. 1639 | ;mssql.textsize = 4096 1640 | 1641 | ; Limits the number of records in each batch. 0 = all records in one batch. 1642 | ;mssql.batchsize = 0 1643 | 1644 | ; Specify how datetime and datetim4 columns are returned 1645 | ; On => Returns data converted to SQL server settings 1646 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1647 | ;mssql.datetimeconvert = On 1648 | 1649 | ; Use NT authentication when connecting to the server 1650 | mssql.secure_connection = Off 1651 | 1652 | ; Specify max number of processes. -1 = library default 1653 | ; msdlib defaults to 25 1654 | ; FreeTDS defaults to 4096 1655 | ;mssql.max_procs = -1 1656 | 1657 | ; Specify client character set. 1658 | ; If empty or not set the client charset from freetds.comf is used 1659 | ; This is only used when compiled with FreeTDS 1660 | ;mssql.charset = "ISO-8859-1" 1661 | 1662 | [Assertion] 1663 | ; Assert(expr); active by default. 1664 | ; http://php.net/assert.active 1665 | ;assert.active = On 1666 | 1667 | ; Issue a PHP warning for each failed assertion. 1668 | ; http://php.net/assert.warning 1669 | ;assert.warning = On 1670 | 1671 | ; Don't bail out by default. 1672 | ; http://php.net/assert.bail 1673 | ;assert.bail = Off 1674 | 1675 | ; User-function to be called if an assertion fails. 1676 | ; http://php.net/assert.callback 1677 | ;assert.callback = 0 1678 | 1679 | ; Eval the expression with current error_reporting(). Set to true if you want 1680 | ; error_reporting(0) around the eval(). 1681 | ; http://php.net/assert.quiet-eval 1682 | ;assert.quiet_eval = 0 1683 | 1684 | [COM] 1685 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1686 | ; http://php.net/com.typelib-file 1687 | ;com.typelib_file = 1688 | 1689 | ; allow Distributed-COM calls 1690 | ; http://php.net/com.allow-dcom 1691 | ;com.allow_dcom = true 1692 | 1693 | ; autoregister constants of a components typlib on com_load() 1694 | ; http://php.net/com.autoregister-typelib 1695 | ;com.autoregister_typelib = true 1696 | 1697 | ; register constants casesensitive 1698 | ; http://php.net/com.autoregister-casesensitive 1699 | ;com.autoregister_casesensitive = false 1700 | 1701 | ; show warnings on duplicate constant registrations 1702 | ; http://php.net/com.autoregister-verbose 1703 | ;com.autoregister_verbose = true 1704 | 1705 | ; The default character set code-page to use when passing strings to and from COM objects. 1706 | ; Default: system ANSI code page 1707 | ;com.code_page= 1708 | 1709 | [mbstring] 1710 | ; language for internal character representation. 1711 | ; http://php.net/mbstring.language 1712 | ;mbstring.language = Japanese 1713 | 1714 | ; internal/script encoding. 1715 | ; Some encoding cannot work as internal encoding. 1716 | ; (e.g. SJIS, BIG5, ISO-2022-*) 1717 | ; http://php.net/mbstring.internal-encoding 1718 | ;mbstring.internal_encoding = EUC-JP 1719 | 1720 | ; http input encoding. 1721 | ; http://php.net/mbstring.http-input 1722 | ;mbstring.http_input = auto 1723 | 1724 | ; http output encoding. mb_output_handler must be 1725 | ; registered as output buffer to function 1726 | ; http://php.net/mbstring.http-output 1727 | ;mbstring.http_output = SJIS 1728 | 1729 | ; enable automatic encoding translation according to 1730 | ; mbstring.internal_encoding setting. Input chars are 1731 | ; converted to internal encoding by setting this to On. 1732 | ; Note: Do _not_ use automatic encoding translation for 1733 | ; portable libs/applications. 1734 | ; http://php.net/mbstring.encoding-translation 1735 | ;mbstring.encoding_translation = Off 1736 | 1737 | ; automatic encoding detection order. 1738 | ; auto means 1739 | ; http://php.net/mbstring.detect-order 1740 | ;mbstring.detect_order = auto 1741 | 1742 | ; substitute_character used when character cannot be converted 1743 | ; one from another 1744 | ; http://php.net/mbstring.substitute-character 1745 | ;mbstring.substitute_character = none; 1746 | 1747 | ; overload(replace) single byte functions by mbstring functions. 1748 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1749 | ; etc. Possible values are 0,1,2,4 or combination of them. 1750 | ; For example, 7 for overload everything. 1751 | ; 0: No overload 1752 | ; 1: Overload mail() function 1753 | ; 2: Overload str*() functions 1754 | ; 4: Overload ereg*() functions 1755 | ; http://php.net/mbstring.func-overload 1756 | ;mbstring.func_overload = 0 1757 | 1758 | ; enable strict encoding detection. 1759 | ;mbstring.strict_detection = Off 1760 | 1761 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1762 | ; is activated. 1763 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1764 | ;mbstring.http_output_conv_mimetype= 1765 | 1766 | ; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte 1767 | ; Default: "" 1768 | ;mbstring.script_encoding= 1769 | 1770 | [gd] 1771 | ; Tell the jpeg decode to ignore warnings and try to create 1772 | ; a gd image. The warning will then be displayed as notices 1773 | ; disabled by default 1774 | ; http://php.net/gd.jpeg-ignore-warning 1775 | ;gd.jpeg_ignore_warning = 0 1776 | 1777 | [exif] 1778 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1779 | ; With mbstring support this will automatically be converted into the encoding 1780 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1781 | ; is used. For the decode settings you can distinguish between motorola and 1782 | ; intel byte order. A decode setting cannot be empty. 1783 | ; http://php.net/exif.encode-unicode 1784 | ;exif.encode_unicode = ISO-8859-15 1785 | 1786 | ; http://php.net/exif.decode-unicode-motorola 1787 | ;exif.decode_unicode_motorola = UCS-2BE 1788 | 1789 | ; http://php.net/exif.decode-unicode-intel 1790 | ;exif.decode_unicode_intel = UCS-2LE 1791 | 1792 | ; http://php.net/exif.encode-jis 1793 | ;exif.encode_jis = 1794 | 1795 | ; http://php.net/exif.decode-jis-motorola 1796 | ;exif.decode_jis_motorola = JIS 1797 | 1798 | ; http://php.net/exif.decode-jis-intel 1799 | ;exif.decode_jis_intel = JIS 1800 | 1801 | [Tidy] 1802 | ; The path to a default tidy configuration file to use when using tidy 1803 | ; http://php.net/tidy.default-config 1804 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1805 | 1806 | ; Should tidy clean and repair output automatically? 1807 | ; WARNING: Do not use this option if you are generating non-html content 1808 | ; such as dynamic images 1809 | ; http://php.net/tidy.clean-output 1810 | tidy.clean_output = Off 1811 | 1812 | [soap] 1813 | ; Enables or disables WSDL caching feature. 1814 | ; http://php.net/soap.wsdl-cache-enabled 1815 | soap.wsdl_cache_enabled=1 1816 | 1817 | ; Sets the directory name where SOAP extension will put cache files. 1818 | ; http://php.net/soap.wsdl-cache-dir 1819 | soap.wsdl_cache_dir="/tmp" 1820 | 1821 | ; (time to live) Sets the number of second while cached file will be used 1822 | ; instead of original one. 1823 | ; http://php.net/soap.wsdl-cache-ttl 1824 | soap.wsdl_cache_ttl=86400 1825 | 1826 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1827 | soap.wsdl_cache_limit = 5 1828 | 1829 | [sysvshm] 1830 | ; A default size of the shared memory segment 1831 | ;sysvshm.init_mem = 10000 1832 | 1833 | [ldap] 1834 | ; Sets the maximum number of open links or -1 for unlimited. 1835 | ldap.max_links = -1 1836 | 1837 | [mcrypt] 1838 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1839 | 1840 | ; Directory where to load mcrypt algorithms 1841 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1842 | ;mcrypt.algorithms_dir= 1843 | 1844 | ; Directory where to load mcrypt modes 1845 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1846 | ;mcrypt.modes_dir= 1847 | 1848 | [dba] 1849 | ;dba.default_handler= 1850 | 1851 | ; Local Variables: 1852 | ; tab-width: 4 1853 | ; End: 1854 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-php5-conf-d-apc-ini.j2: -------------------------------------------------------------------------------- 1 | extension = apc.so 2 | apc.rfc1867 = {{ apc_rfc1867 }} 3 | apc.shm_size = {{ apc_shm_size }} 4 | apc.shm_segments = {{ apc_shm_segments }} 5 | apc.num_files_hint = {{ apc_num_files_hint }} 6 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/etc-php5-conf-d-memcache-ini.j2: -------------------------------------------------------------------------------- 1 | extension=memcache.so 2 | memcache.hash_strategy="{{ memcache_hash_strategy }}" 3 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/templates/root-my-cnf.j2: -------------------------------------------------------------------------------- 1 | [client] 2 | user=root 3 | pass={{ mysql_root_password }} 4 | -------------------------------------------------------------------------------- /ubuntu-10.04-lamp-dev/vars/default-settings.yml: -------------------------------------------------------------------------------- 1 | # Settings that are applied to the templates. This file should be copied to 2 | # the base folder of the play and renamed settings.yml, then modified to suit 3 | # your needs. 4 | 5 | --- 6 | # Hostname is important as we need to delete an anonymous MySQL 7 | # user that is created with this name, make sure you match this 8 | # up with the output of the command 'hostname' on the server. 9 | server_hostname: 'example' 10 | 11 | # php.ini 12 | php_max_execution_time: '90' 13 | php_display_errors: 'On' 14 | php_display_startup_errors: 'On' 15 | php_html_errors: 'On' 16 | php_post_max_size: '32M' 17 | php_upload_max_filesize: '32M' 18 | php_date_timezone: 'US/Central' 19 | 20 | # apc.ini 21 | apc_rfc1867: '1' 22 | apc_shm_size: '96' 23 | apc_shm_segments: '1' 24 | apc_num_files_hint: '0' 25 | 26 | # memcached.conf 27 | memcached_memory: '128' 28 | 29 | # memcache.ini 30 | memcache_hash_strategy: 'consistent' 31 | 32 | # my.cnf 33 | mysql_max_allowed_packet: '128M' 34 | mysql_character_set_server: 'utf8' 35 | mysql_collation_server: 'utf8_general_ci' 36 | innodb_file_per_table: 'innodb_file_per_table' 37 | 38 | # mysql 39 | mysql_root_password: 'password' 40 | 41 | # apache 42 | apache_server_admin: 'webmaster@example.com' 43 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/README.md: -------------------------------------------------------------------------------- 1 | Ubuntu 12.04 LAMP Dev Server 2 | --------------------------- 3 | 4 | Use `./run-local-all` to run all the tags, otherwise directly run the parts you 5 | need using: 6 | 7 | ansible-playbook -c local --tags="common,..." ./setup.yml 8 | 9 | This server is configured for multiple developers who need to work on many 10 | projects simultaneously. The most notable piece of configuration is the way 11 | Apache is setup, it has a variable document root. This allows a developer to 12 | organise their home folder in the following way: 13 | 14 | /home/username/www/project1 15 | /home/username/www/project2 16 | /home/username/www/project3 17 | 18 | And access each of the sites by going to URLs formatted as follows: 19 | 20 | http://username.project1.example.com/ 21 | http://username.project2.example.com/ 22 | http://username.project3.example.com/ 23 | 24 | Packages tagged `common`: Apache, MySQL, APC cache, PHP. 25 | 26 | Other optional tags: 27 | 28 | +--------------------------------------------------------------+ 29 | | drush | Drupal shell. | 30 | +--------------------------------------------------------------+ 31 | | ftp | VSFtp daemon | 32 | +--------------------------------------------------------------+ 33 | | nodejs | node.js and npm (latest from ppa) | 34 | +--------------------------------------------------------------+ 35 | | redis | redis server | 36 | +--------------------------------------------------------------+ 37 | | css | SASS, Susy, Compass, Respond-to | 38 | +--------------------------------------------------------------+ 39 | | dotcloud | The CLI for interacting with dotcloud hosting | 40 | +--------------------------------------------------------------+ 41 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/files/etc-update-motd-d-95-ansible: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 4 | echo " ********************************************************" 5 | echo " * This server is configured using Ansible." 6 | echo " * To change configuration, modify the playbooks vars in" 7 | echo " * /root/server-playbooks, and re-run the play." 8 | echo " * " 9 | echo " * See https://github.com/fourkitchens/server-playbooks" 10 | echo " ********************************************************" 11 | echo 12 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/run-local-all: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Script for running the play on the localhost, everything included. 4 | ansible-playbook -c local --tags="common,drush,ftp,nodejs,redis,css,dotcloud" ./setup.yml 5 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/setup.yml: -------------------------------------------------------------------------------- 1 | ## 2 | # Ansible playbook for setting up a LAMP development server on Ubuntu 12.04. 3 | # 4 | 5 | --- 6 | - hosts: all 7 | user: root 8 | 9 | vars_files: 10 | - settings.yml 11 | 12 | tasks: 13 | ## 14 | # Apt package installation of required software. 15 | # 16 | - name: General | Install required packages. 17 | action: apt pkg={{ item }} state=installed 18 | tags: common 19 | with_items: 20 | - php5 21 | - apache2 22 | - mysql-server 23 | - mysql-client 24 | - php5-mysql 25 | - php-apc 26 | - php5-xmlrpc 27 | - php-soap 28 | - php5-gd 29 | - sendmail 30 | - unzip 31 | - python-mysqldb 32 | 33 | ## 34 | # Message of the day explaining server is under control of Ansible. 35 | # 36 | - name: General | Message of the day explaining server is under Ansible control. 37 | action: copy src=files/etc-update-motd-d-95-ansible dest=/etc/update-motd.d/95-ansible mode=755 38 | tags: common 39 | 40 | ## 41 | # PHP Setup. 42 | # 43 | - name: PHP | Configuration file, php.ini 44 | action: template src=templates/etc-php5-apache2-php-ini.j2 dest=/etc/php5/apache2/php.ini 45 | tags: common 46 | 47 | - name: APC | Cache configuration file, apc.ini 48 | action: template src=templates/etc-php5-conf-d-apc-ini.j2 dest=/etc/php5/conf.d/apc.ini 49 | tags: common 50 | 51 | ## 52 | # MySQL database setup. 53 | # 54 | - name: MySQL | Configuration file, my.cnf 55 | action: template src=templates/etc-mysql-my-cnf.j2 dest=/etc/mysql/my.cnf 56 | tags: common 57 | 58 | - include: ../common-tasks/mysql-secure.yml 59 | 60 | ## 61 | # Apache2 setup. 62 | # 63 | - name: Apache | Enable some required modules 64 | action: command a2enmod rewrite vhost_alias 65 | tags: common 66 | 67 | - name: Apache | Configuration file for our site 68 | action: template src=templates/etc-apache2-sites-available-devserver.j2 dest=/etc/apache2/sites-available/devserver 69 | tags: common 70 | 71 | - name: Apache | Disable the default site 72 | action: command a2dissite default 73 | tags: common 74 | 75 | - name: Apache | Enable our new site 76 | action: command a2ensite devserver 77 | tags: common 78 | 79 | ## 80 | # FTP server setup. 81 | # 82 | - name: FTP | vsftpd daemon package 83 | action: apt pkg=vsftpd state=installed 84 | tags: ftp 85 | 86 | - name: FTP | Configuration setup 87 | action: template src=templates/etc-vsftpd-conf.j2 dest=/etc/vsftpd.conf 88 | tags: ftp 89 | 90 | ## 91 | # Drush install, a Drupal shell tool. 92 | # 93 | - include: ../common-tasks/ubuntu-drush.yml 94 | 95 | ## 96 | # node.js installation (latest stable instead of Ubuntu's out-of-date one) 97 | # 98 | - name: Node.js | Package prerequisites for node.js 99 | action: apt pkg=python-software-properties state=installed 100 | tags: nodejs 101 | 102 | - name: Node.js | Add the node.js PPA 103 | action: command add-apt-repository -y ppa:chris-lea/node.js creates=/etc/apt/sources.list.d/chris-lea-node_js-precise.list 104 | tags: nodejs 105 | 106 | - name: Node.js | Update the apt cache for the new repository 107 | action: apt update-cache=yes 108 | tags: nodejs 109 | 110 | - name: Node.js | Install nodejs and npm 111 | action: apt pkg={{ item }} state=installed 112 | tags: nodejs 113 | with_items: 114 | - nodejs 115 | - npm 116 | 117 | ## 118 | # Redis server. 119 | # 120 | - name: Redis | Install redis 121 | action: apt pkg=redis-server state=installed 122 | tags: redis 123 | 124 | ## 125 | # CSS compiling tools. 126 | # 127 | - name: CSS | Install rubygems package 128 | action: apt pkg=rubygems state=installed 129 | tags: css 130 | 131 | - name: CSS | Install SASS 132 | action: command gem install sass creates=/usr/local/bin/sass 133 | tags: css 134 | 135 | - name: CSS | Install Susy (no more --pre required as it is 1.0 now) 136 | action: command gem install susy 137 | tags: css 138 | 139 | - name: CSS | Install Compass 140 | action: command gem install compass creates=/usr/local/bin/compass 141 | tags: css 142 | 143 | - name: CSS | Install Aurora (which will install breakpoint, sass-buttons, respond-to) 144 | action: command gem install compass-aurora 145 | tags: css 146 | 147 | ## 148 | # Dotcloud support 149 | # 150 | - name: Dotcloud | Python pip for dotcloud 151 | action: apt pkg=python-pip state=installed 152 | tags: dotcloud 153 | 154 | - name: Dotcloud | Install dotcloud cli 155 | action: command pip install dotcloud creates=/usr/local/bin/dotcloud 156 | tags: dotcloud 157 | 158 | ## 159 | # Restart services 160 | # 161 | - name: Restart Apache 162 | action: service name=apache2 state=restarted 163 | tags: common 164 | 165 | - name: Restart MySQL 166 | action: service name=mysql state=restarted 167 | tags: common 168 | 169 | - name: Restart vsftpd 170 | action: service name=vsftpd state=restarted 171 | tags: ftp 172 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/etc-apache2-sites-available-devserver.j2: -------------------------------------------------------------------------------- 1 | ## 2 | # Ansible provided setup. See https://github.com/fourkitchens/server-playbooks. 3 | ## 4 | 5 | ## 6 | # This server allows a wildcard VirtualHost, so for example, going to: 7 | # 8 | # http://pete.training.example.com 9 | # 10 | # ... will set the webroot for the request to /home/pete/www/training 11 | # 12 | 13 | ServerAdmin {{ apache_server_admin }} 14 | ServerAlias {{ apache_server_alias }} 15 | 16 | VirtualDocumentRoot /home/%-4/www/%-3 17 | 18 | 19 | Options Indexes FollowSymLinks MultiViews 20 | AllowOverride All 21 | Order allow,deny 22 | allow from all 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/etc-mysql-my-cnf.j2: -------------------------------------------------------------------------------- 1 | # 2 | # The MySQL database server configuration file. 3 | # 4 | # You can copy this to one of: 5 | # - "/etc/mysql/my.cnf" to set global options, 6 | # - "~/.my.cnf" to set user-specific options. 7 | # 8 | # One can use all long options that the program supports. 9 | # Run program with --help to get a list of available options and with 10 | # --print-defaults to see which it would actually understand and use. 11 | # 12 | # For explanations see 13 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html 14 | 15 | # This will be passed to all mysql clients 16 | # It has been reported that passwords should be enclosed with ticks/quotes 17 | # escpecially if they contain "#" chars... 18 | # Remember to edit /etc/mysql/debian.cnf when changing the socket location. 19 | [client] 20 | port = 3306 21 | socket = /var/run/mysqld/mysqld.sock 22 | 23 | # Here is entries for some specific programs 24 | # The following values assume you have at least 32M ram 25 | 26 | # This was formally known as [safe_mysqld]. Both versions are currently parsed. 27 | [mysqld_safe] 28 | socket = /var/run/mysqld/mysqld.sock 29 | nice = 0 30 | 31 | [mysqld] 32 | # 33 | # * Basic Settings 34 | # 35 | user = mysql 36 | pid-file = /var/run/mysqld/mysqld.pid 37 | socket = /var/run/mysqld/mysqld.sock 38 | port = 3306 39 | basedir = /usr 40 | datadir = /var/lib/mysql 41 | tmpdir = /tmp 42 | lc-messages-dir = /usr/share/mysql 43 | skip-external-locking 44 | # 45 | # Instead of skip-networking the default is now to listen only on 46 | # localhost which is more compatible and is not less secure. 47 | bind-address = 127.0.0.1 48 | # 49 | # * Fine Tuning 50 | # 51 | key_buffer = 16M 52 | max_allowed_packet = {{ mysql_max_allowed_packet }} 53 | thread_stack = 192K 54 | thread_cache_size = 8 55 | # This replaces the startup script and checks MyISAM tables if needed 56 | # the first time they are touched 57 | myisam-recover = BACKUP 58 | #max_connections = 100 59 | #table_cache = 64 60 | #thread_concurrency = 10 61 | # 62 | # * Query Cache Configuration 63 | # 64 | query_cache_limit = 1M 65 | query_cache_size = 16M 66 | # 67 | # * Logging and Replication 68 | # 69 | # Both location gets rotated by the cronjob. 70 | # Be aware that this log type is a performance killer. 71 | # As of 5.1 you can enable the log at runtime! 72 | #general_log_file = /var/log/mysql/mysql.log 73 | #general_log = 1 74 | # 75 | # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. 76 | # 77 | # Here you can see queries with especially long duration 78 | #log_slow_queries = /var/log/mysql/mysql-slow.log 79 | #long_query_time = 2 80 | #log-queries-not-using-indexes 81 | # 82 | # The following can be used as easy to replay backup logs or for replication. 83 | # note: if you are setting up a replication slave, see README.Debian about 84 | # other settings you may need to change. 85 | #server-id = 1 86 | #log_bin = /var/log/mysql/mysql-bin.log 87 | expire_logs_days = 10 88 | max_binlog_size = 100M 89 | #binlog_do_db = include_database_name 90 | #binlog_ignore_db = include_database_name 91 | # 92 | # * InnoDB 93 | # 94 | # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. 95 | # Read the manual for more InnoDB related options. There are many! 96 | # 97 | # * Security Features 98 | # 99 | # Read the manual, too, if you want chroot! 100 | # chroot = /var/lib/mysql/ 101 | # 102 | # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". 103 | # 104 | # ssl-ca=/etc/mysql/cacert.pem 105 | # ssl-cert=/etc/mysql/server-cert.pem 106 | # ssl-key=/etc/mysql/server-key.pem 107 | 108 | {{ innodb_file_per_table }} 109 | character_set_server = {{ mysql_character_set_server }} 110 | collation_server = {{ mysql_collation_server }} 111 | 112 | [mysqldump] 113 | quick 114 | quote-names 115 | max_allowed_packet = {{ mysql_max_allowed_packet }} 116 | 117 | [mysql] 118 | #no-auto-rehash # faster start of mysql but no tab completition 119 | 120 | [isamchk] 121 | key_buffer = 16M 122 | 123 | # 124 | # * IMPORTANT: Additional settings that can override those from this file! 125 | # The files must end with '.cnf', otherwise they'll be ignored. 126 | # 127 | !includedir /etc/mysql/conf.d/ 128 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/etc-php5-apache2-php-ini.j2: -------------------------------------------------------------------------------- 1 | [PHP] 2 | 3 | ;;;;;;;;;;;;;;;;;;; 4 | ; About php.ini ; 5 | ;;;;;;;;;;;;;;;;;;; 6 | ; PHP's initialization file, generally called php.ini, is responsible for 7 | ; configuring many of the aspects of PHP's behavior. 8 | 9 | ; PHP attempts to find and load this configuration from a number of locations. 10 | ; The following is a summary of its search order: 11 | ; 1. SAPI module specific location. 12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0) 13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) 14 | ; 4. Current working directory (except CLI) 15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP 16 | ; (otherwise in Windows) 17 | ; 6. The directory from the --with-config-file-path compile time option, or the 18 | ; Windows directory (C:\windows or C:\winnt) 19 | ; See the PHP docs for more specific information. 20 | ; http://php.net/configuration.file 21 | 22 | ; The syntax of the file is extremely simple. Whitespace and Lines 23 | ; beginning with a semicolon are silently ignored (as you probably guessed). 24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though 25 | ; they might mean something in the future. 26 | 27 | ; Directives following the section heading [PATH=/www/mysite] only 28 | ; apply to PHP files in the /www/mysite directory. Directives 29 | ; following the section heading [HOST=www.example.com] only apply to 30 | ; PHP files served from www.example.com. Directives set in these 31 | ; special sections cannot be overridden by user-defined INI files or 32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under 33 | ; CGI/FastCGI. 34 | ; http://php.net/ini.sections 35 | 36 | ; Directives are specified using the following syntax: 37 | ; directive = value 38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. 39 | ; Directives are variables used to configure PHP or PHP extensions. 40 | ; There is no name validation. If PHP can't find an expected 41 | ; directive because it is not set or is mistyped, a default value will be used. 42 | 43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one 44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression 45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a 46 | ; previously set variable or directive (e.g. ${foo}) 47 | 48 | ; Expressions in the INI file are limited to bitwise operators and parentheses: 49 | ; | bitwise OR 50 | ; ^ bitwise XOR 51 | ; & bitwise AND 52 | ; ~ bitwise NOT 53 | ; ! boolean NOT 54 | 55 | ; Boolean flags can be turned on using the values 1, On, True or Yes. 56 | ; They can be turned off using the values 0, Off, False or No. 57 | 58 | ; An empty string can be denoted by simply not writing anything after the equal 59 | ; sign, or by using the None keyword: 60 | 61 | ; foo = ; sets foo to an empty string 62 | ; foo = None ; sets foo to an empty string 63 | ; foo = "None" ; sets foo to the string 'None' 64 | 65 | ; If you use constants in your value, and these constants belong to a 66 | ; dynamically loaded extension (either a PHP extension or a Zend extension), 67 | ; you may only use these constants *after* the line that loads the extension. 68 | 69 | ;;;;;;;;;;;;;;;;;;; 70 | ; About this file ; 71 | ;;;;;;;;;;;;;;;;;;; 72 | ; PHP comes packaged with two INI files. One that is recommended to be used 73 | ; in production environments and one that is recommended to be used in 74 | ; development environments. 75 | 76 | ; php.ini-production contains settings which hold security, performance and 77 | ; best practices at its core. But please be aware, these settings may break 78 | ; compatibility with older or less security conscience applications. We 79 | ; recommending using the production ini in production and testing environments. 80 | 81 | ; php.ini-development is very similar to its production variant, except it's 82 | ; much more verbose when it comes to errors. We recommending using the 83 | ; development version only in development environments as errors shown to 84 | ; application users can inadvertently leak otherwise secure information. 85 | 86 | ;;;;;;;;;;;;;;;;;;; 87 | ; Quick Reference ; 88 | ;;;;;;;;;;;;;;;;;;; 89 | ; The following are all the settings which are different in either the production 90 | ; or development versions of the INIs with respect to PHP's default behavior. 91 | ; Please see the actual settings later in the document for more details as to why 92 | ; we recommend these changes in PHP's behavior. 93 | 94 | ; allow_call_time_pass_reference 95 | ; Default Value: On 96 | ; Development Value: Off 97 | ; Production Value: Off 98 | 99 | ; display_errors 100 | ; Default Value: On 101 | ; Development Value: On 102 | ; Production Value: Off 103 | 104 | ; display_startup_errors 105 | ; Default Value: Off 106 | ; Development Value: On 107 | ; Production Value: Off 108 | 109 | ; error_reporting 110 | ; Default Value: E_ALL & ~E_NOTICE 111 | ; Development Value: E_ALL | E_STRICT 112 | ; Production Value: E_ALL & ~E_DEPRECATED 113 | 114 | ; html_errors 115 | ; Default Value: On 116 | ; Development Value: On 117 | ; Production value: Off 118 | 119 | ; log_errors 120 | ; Default Value: Off 121 | ; Development Value: On 122 | ; Production Value: On 123 | 124 | ; magic_quotes_gpc 125 | ; Default Value: On 126 | ; Development Value: Off 127 | ; Production Value: Off 128 | 129 | ; max_input_time 130 | ; Default Value: -1 (Unlimited) 131 | ; Development Value: 60 (60 seconds) 132 | ; Production Value: 60 (60 seconds) 133 | 134 | ; output_buffering 135 | ; Default Value: Off 136 | ; Development Value: 4096 137 | ; Production Value: 4096 138 | 139 | ; register_argc_argv 140 | ; Default Value: On 141 | ; Development Value: Off 142 | ; Production Value: Off 143 | 144 | ; register_long_arrays 145 | ; Default Value: On 146 | ; Development Value: Off 147 | ; Production Value: Off 148 | 149 | ; request_order 150 | ; Default Value: None 151 | ; Development Value: "GP" 152 | ; Production Value: "GP" 153 | 154 | ; session.bug_compat_42 155 | ; Default Value: On 156 | ; Development Value: On 157 | ; Production Value: Off 158 | 159 | ; session.bug_compat_warn 160 | ; Default Value: On 161 | ; Development Value: On 162 | ; Production Value: Off 163 | 164 | ; session.gc_divisor 165 | ; Default Value: 100 166 | ; Development Value: 1000 167 | ; Production Value: 1000 168 | 169 | ; session.hash_bits_per_character 170 | ; Default Value: 4 171 | ; Development Value: 5 172 | ; Production Value: 5 173 | 174 | ; short_open_tag 175 | ; Default Value: On 176 | ; Development Value: Off 177 | ; Production Value: Off 178 | 179 | ; track_errors 180 | ; Default Value: Off 181 | ; Development Value: On 182 | ; Production Value: Off 183 | 184 | ; url_rewriter.tags 185 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 186 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 187 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 188 | 189 | ; variables_order 190 | ; Default Value: "EGPCS" 191 | ; Development Value: "GPCS" 192 | ; Production Value: "GPCS" 193 | 194 | ;;;;;;;;;;;;;;;;;;;; 195 | ; php.ini Options ; 196 | ;;;;;;;;;;;;;;;;;;;; 197 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini" 198 | ;user_ini.filename = ".user.ini" 199 | 200 | ; To disable this feature set this option to empty value 201 | ;user_ini.filename = 202 | 203 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) 204 | ;user_ini.cache_ttl = 300 205 | 206 | ;;;;;;;;;;;;;;;;;;;; 207 | ; Language Options ; 208 | ;;;;;;;;;;;;;;;;;;;; 209 | 210 | ; Enable the PHP scripting language engine under Apache. 211 | ; http://php.net/engine 212 | engine = On 213 | 214 | ; This directive determines whether or not PHP will recognize code between 215 | ; tags as PHP source which should be processed as such. It's been 216 | ; recommended for several years that you not use the short tag "short cut" and 217 | ; instead to use the full tag combination. With the wide spread use 218 | ; of XML and use of these tags by other languages, the server can become easily 219 | ; confused and end up parsing the wrong code in the wrong context. But because 220 | ; this short cut has been a feature for such a long time, it's currently still 221 | ; supported for backwards compatibility, but we recommend you don't use them. 222 | ; Default Value: On 223 | ; Development Value: Off 224 | ; Production Value: Off 225 | ; http://php.net/short-open-tag 226 | short_open_tag = On 227 | 228 | ; Allow ASP-style <% %> tags. 229 | ; http://php.net/asp-tags 230 | asp_tags = Off 231 | 232 | ; The number of significant digits displayed in floating point numbers. 233 | ; http://php.net/precision 234 | precision = 14 235 | 236 | ; Enforce year 2000 compliance (will cause problems with non-compliant browsers) 237 | ; http://php.net/y2k-compliance 238 | y2k_compliance = On 239 | 240 | ; Output buffering is a mechanism for controlling how much output data 241 | ; (excluding headers and cookies) PHP should keep internally before pushing that 242 | ; data to the client. If your application's output exceeds this setting, PHP 243 | ; will send that data in chunks of roughly the size you specify. 244 | ; Turning on this setting and managing its maximum buffer size can yield some 245 | ; interesting side-effects depending on your application and web server. 246 | ; You may be able to send headers and cookies after you've already sent output 247 | ; through print or echo. You also may see performance benefits if your server is 248 | ; emitting less packets due to buffered output versus PHP streaming the output 249 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance 250 | ; reasons. 251 | ; Note: Output buffering can also be controlled via Output Buffering Control 252 | ; functions. 253 | ; Possible Values: 254 | ; On = Enabled and buffer is unlimited. (Use with caution) 255 | ; Off = Disabled 256 | ; Integer = Enables the buffer and sets its maximum size in bytes. 257 | ; Note: This directive is hardcoded to Off for the CLI SAPI 258 | ; Default Value: Off 259 | ; Development Value: 4096 260 | ; Production Value: 4096 261 | ; http://php.net/output-buffering 262 | output_buffering = 4096 263 | 264 | ; You can redirect all of the output of your scripts to a function. For 265 | ; example, if you set output_handler to "mb_output_handler", character 266 | ; encoding will be transparently converted to the specified encoding. 267 | ; Setting any output handler automatically turns on output buffering. 268 | ; Note: People who wrote portable scripts should not depend on this ini 269 | ; directive. Instead, explicitly set the output handler using ob_start(). 270 | ; Using this ini directive may cause problems unless you know what script 271 | ; is doing. 272 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" 273 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression". 274 | ; Note: output_handler must be empty if this is set 'On' !!!! 275 | ; Instead you must use zlib.output_handler. 276 | ; http://php.net/output-handler 277 | ;output_handler = 278 | 279 | ; Transparent output compression using the zlib library 280 | ; Valid values for this option are 'off', 'on', or a specific buffer size 281 | ; to be used for compression (default is 4KB) 282 | ; Note: Resulting chunk size may vary due to nature of compression. PHP 283 | ; outputs chunks that are few hundreds bytes each as a result of 284 | ; compression. If you prefer a larger chunk size for better 285 | ; performance, enable output_buffering in addition. 286 | ; Note: You need to use zlib.output_handler instead of the standard 287 | ; output_handler, or otherwise the output will be corrupted. 288 | ; http://php.net/zlib.output-compression 289 | zlib.output_compression = Off 290 | 291 | ; http://php.net/zlib.output-compression-level 292 | ;zlib.output_compression_level = -1 293 | 294 | ; You cannot specify additional output handlers if zlib.output_compression 295 | ; is activated here. This setting does the same as output_handler but in 296 | ; a different order. 297 | ; http://php.net/zlib.output-handler 298 | ;zlib.output_handler = 299 | 300 | ; Implicit flush tells PHP to tell the output layer to flush itself 301 | ; automatically after every output block. This is equivalent to calling the 302 | ; PHP function flush() after each and every call to print() or echo() and each 303 | ; and every HTML block. Turning this option on has serious performance 304 | ; implications and is generally recommended for debugging purposes only. 305 | ; http://php.net/implicit-flush 306 | ; Note: This directive is hardcoded to On for the CLI SAPI 307 | implicit_flush = Off 308 | 309 | ; The unserialize callback function will be called (with the undefined class' 310 | ; name as parameter), if the unserializer finds an undefined class 311 | ; which should be instantiated. A warning appears if the specified function is 312 | ; not defined, or if the function doesn't include/implement the missing class. 313 | ; So only set this entry, if you really want to implement such a 314 | ; callback-function. 315 | unserialize_callback_func = 316 | 317 | ; When floats & doubles are serialized store serialize_precision significant 318 | ; digits after the floating point. The default value ensures that when floats 319 | ; are decoded with unserialize, the data will remain the same. 320 | serialize_precision = 17 321 | 322 | ; This directive allows you to enable and disable warnings which PHP will issue 323 | ; if you pass a value by reference at function call time. Passing values by 324 | ; reference at function call time is a deprecated feature which will be removed 325 | ; from PHP at some point in the near future. The acceptable method for passing a 326 | ; value by reference to a function is by declaring the reference in the functions 327 | ; definition, not at call time. This directive does not disable this feature, it 328 | ; only determines whether PHP will warn you about it or not. These warnings 329 | ; should enabled in development environments only. 330 | ; Default Value: On (Suppress warnings) 331 | ; Development Value: Off (Issue warnings) 332 | ; Production Value: Off (Issue warnings) 333 | ; http://php.net/allow-call-time-pass-reference 334 | allow_call_time_pass_reference = Off 335 | 336 | ; Safe Mode 337 | ; http://php.net/safe-mode 338 | safe_mode = Off 339 | 340 | ; By default, Safe Mode does a UID compare check when 341 | ; opening files. If you want to relax this to a GID compare, 342 | ; then turn on safe_mode_gid. 343 | ; http://php.net/safe-mode-gid 344 | safe_mode_gid = Off 345 | 346 | ; When safe_mode is on, UID/GID checks are bypassed when 347 | ; including files from this directory and its subdirectories. 348 | ; (directory must also be in include_path or full path must 349 | ; be used when including) 350 | ; http://php.net/safe-mode-include-dir 351 | safe_mode_include_dir = 352 | 353 | ; When safe_mode is on, only executables located in the safe_mode_exec_dir 354 | ; will be allowed to be executed via the exec family of functions. 355 | ; http://php.net/safe-mode-exec-dir 356 | safe_mode_exec_dir = 357 | 358 | ; Setting certain environment variables may be a potential security breach. 359 | ; This directive contains a comma-delimited list of prefixes. In Safe Mode, 360 | ; the user may only alter environment variables whose names begin with the 361 | ; prefixes supplied here. By default, users will only be able to set 362 | ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR). 363 | ; Note: If this directive is empty, PHP will let the user modify ANY 364 | ; environment variable! 365 | ; http://php.net/safe-mode-allowed-env-vars 366 | safe_mode_allowed_env_vars = PHP_ 367 | 368 | ; This directive contains a comma-delimited list of environment variables that 369 | ; the end user won't be able to change using putenv(). These variables will be 370 | ; protected even if safe_mode_allowed_env_vars is set to allow to change them. 371 | ; http://php.net/safe-mode-protected-env-vars 372 | safe_mode_protected_env_vars = LD_LIBRARY_PATH 373 | 374 | ; open_basedir, if set, limits all file operations to the defined directory 375 | ; and below. This directive makes most sense if used in a per-directory 376 | ; or per-virtualhost web server configuration file. This directive is 377 | ; *NOT* affected by whether Safe Mode is turned On or Off. 378 | ; http://php.net/open-basedir 379 | ;open_basedir = 380 | 381 | ; This directive allows you to disable certain functions for security reasons. 382 | ; It receives a comma-delimited list of function names. This directive is 383 | ; *NOT* affected by whether Safe Mode is turned On or Off. 384 | ; http://php.net/disable-functions 385 | disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, 386 | 387 | ; This directive allows you to disable certain classes for security reasons. 388 | ; It receives a comma-delimited list of class names. This directive is 389 | ; *NOT* affected by whether Safe Mode is turned On or Off. 390 | ; http://php.net/disable-classes 391 | disable_classes = 392 | 393 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in 394 | ; would work. 395 | ; http://php.net/syntax-highlighting 396 | ;highlight.string = #DD0000 397 | ;highlight.comment = #FF9900 398 | ;highlight.keyword = #007700 399 | ;highlight.bg = #FFFFFF 400 | ;highlight.default = #0000BB 401 | ;highlight.html = #000000 402 | 403 | ; If enabled, the request will be allowed to complete even if the user aborts 404 | ; the request. Consider enabling it if executing long requests, which may end up 405 | ; being interrupted by the user or a browser timing out. PHP's default behavior 406 | ; is to disable this feature. 407 | ; http://php.net/ignore-user-abort 408 | ;ignore_user_abort = On 409 | 410 | ; Determines the size of the realpath cache to be used by PHP. This value should 411 | ; be increased on systems where PHP opens many files to reflect the quantity of 412 | ; the file operations performed. 413 | ; http://php.net/realpath-cache-size 414 | ;realpath_cache_size = 16k 415 | 416 | ; Duration of time, in seconds for which to cache realpath information for a given 417 | ; file or directory. For systems with rarely changing files, consider increasing this 418 | ; value. 419 | ; http://php.net/realpath-cache-ttl 420 | ;realpath_cache_ttl = 120 421 | 422 | ; Enables or disables the circular reference collector. 423 | ; http://php.net/zend.enable-gc 424 | zend.enable_gc = On 425 | 426 | ;;;;;;;;;;;;;;;;; 427 | ; Miscellaneous ; 428 | ;;;;;;;;;;;;;;;;; 429 | 430 | ; Decides whether PHP may expose the fact that it is installed on the server 431 | ; (e.g. by adding its signature to the Web server header). It is no security 432 | ; threat in any way, but it makes it possible to determine whether you use PHP 433 | ; on your server or not. 434 | ; http://php.net/expose-php 435 | expose_php = On 436 | 437 | ;;;;;;;;;;;;;;;;;;; 438 | ; Resource Limits ; 439 | ;;;;;;;;;;;;;;;;;;; 440 | 441 | ; Maximum execution time of each script, in seconds 442 | ; http://php.net/max-execution-time 443 | ; Note: This directive is hardcoded to 0 for the CLI SAPI 444 | max_execution_time = {{ php_max_execution_time }} 445 | 446 | ; Maximum amount of time each script may spend parsing request data. It's a good 447 | ; idea to limit this time on productions servers in order to eliminate unexpectedly 448 | ; long running scripts. 449 | ; Note: This directive is hardcoded to -1 for the CLI SAPI 450 | ; Default Value: -1 (Unlimited) 451 | ; Development Value: 60 (60 seconds) 452 | ; Production Value: 60 (60 seconds) 453 | ; http://php.net/max-input-time 454 | max_input_time = 60 455 | 456 | ; Maximum input variable nesting level 457 | ; http://php.net/max-input-nesting-level 458 | ;max_input_nesting_level = 64 459 | 460 | ; How many GET/POST/COOKIE input variables may be accepted 461 | ; max_input_vars = 1000 462 | 463 | ; Maximum amount of memory a script may consume (128MB) 464 | ; http://php.net/memory-limit 465 | memory_limit = 128M 466 | 467 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 468 | ; Error handling and logging ; 469 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 470 | 471 | ; This directive informs PHP of which errors, warnings and notices you would like 472 | ; it to take action for. The recommended way of setting values for this 473 | ; directive is through the use of the error level constants and bitwise 474 | ; operators. The error level constants are below here for convenience as well as 475 | ; some common settings and their meanings. 476 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT 477 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and 478 | ; recommended coding standards in PHP. For performance reasons, this is the 479 | ; recommend error reporting setting. Your production server shouldn't be wasting 480 | ; resources complaining about best practices and coding standards. That's what 481 | ; development servers and development settings are for. 482 | ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This 483 | ; means it pretty much reports everything which is exactly what you want during 484 | ; development and early testing. 485 | ; 486 | ; Error Level Constants: 487 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0) 488 | ; E_ERROR - fatal run-time errors 489 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors 490 | ; E_WARNING - run-time warnings (non-fatal errors) 491 | ; E_PARSE - compile-time parse errors 492 | ; E_NOTICE - run-time notices (these are warnings which often result 493 | ; from a bug in your code, but it's possible that it was 494 | ; intentional (e.g., using an uninitialized variable and 495 | ; relying on the fact it's automatically initialized to an 496 | ; empty string) 497 | ; E_STRICT - run-time notices, enable to have PHP suggest changes 498 | ; to your code which will ensure the best interoperability 499 | ; and forward compatibility of your code 500 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup 501 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's 502 | ; initial startup 503 | ; E_COMPILE_ERROR - fatal compile-time errors 504 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) 505 | ; E_USER_ERROR - user-generated error message 506 | ; E_USER_WARNING - user-generated warning message 507 | ; E_USER_NOTICE - user-generated notice message 508 | ; E_DEPRECATED - warn about code that will not work in future versions 509 | ; of PHP 510 | ; E_USER_DEPRECATED - user-generated deprecation warnings 511 | ; 512 | ; Common Values: 513 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) 514 | ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) 515 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) 516 | ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) 517 | ; Default Value: E_ALL & ~E_NOTICE 518 | ; Development Value: E_ALL | E_STRICT 519 | ; Production Value: E_ALL & ~E_DEPRECATED 520 | ; http://php.net/error-reporting 521 | error_reporting = E_ALL & ~E_DEPRECATED 522 | 523 | ; This directive controls whether or not and where PHP will output errors, 524 | ; notices and warnings too. Error output is very useful during development, but 525 | ; it could be very dangerous in production environments. Depending on the code 526 | ; which is triggering the error, sensitive information could potentially leak 527 | ; out of your application such as database usernames and passwords or worse. 528 | ; It's recommended that errors be logged on production servers rather than 529 | ; having the errors sent to STDOUT. 530 | ; Possible Values: 531 | ; Off = Do not display any errors 532 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!) 533 | ; On or stdout = Display errors to STDOUT 534 | ; Default Value: On 535 | ; Development Value: On 536 | ; Production Value: Off 537 | ; http://php.net/display-errors 538 | display_errors = {{ php_display_errors }} 539 | 540 | ; The display of errors which occur during PHP's startup sequence are handled 541 | ; separately from display_errors. PHP's default behavior is to suppress those 542 | ; errors from clients. Turning the display of startup errors on can be useful in 543 | ; debugging configuration problems. But, it's strongly recommended that you 544 | ; leave this setting off on production servers. 545 | ; Default Value: Off 546 | ; Development Value: On 547 | ; Production Value: Off 548 | ; http://php.net/display-startup-errors 549 | display_startup_errors = {{ php_display_startup_errors }} 550 | 551 | ; Besides displaying errors, PHP can also log errors to locations such as a 552 | ; server-specific log, STDERR, or a location specified by the error_log 553 | ; directive found below. While errors should not be displayed on productions 554 | ; servers they should still be monitored and logging is a great way to do that. 555 | ; Default Value: Off 556 | ; Development Value: On 557 | ; Production Value: On 558 | ; http://php.net/log-errors 559 | log_errors = On 560 | 561 | ; Set maximum length of log_errors. In error_log information about the source is 562 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all. 563 | ; http://php.net/log-errors-max-len 564 | log_errors_max_len = 1024 565 | 566 | ; Do not log repeated messages. Repeated errors must occur in same file on same 567 | ; line unless ignore_repeated_source is set true. 568 | ; http://php.net/ignore-repeated-errors 569 | ignore_repeated_errors = Off 570 | 571 | ; Ignore source of message when ignoring repeated messages. When this setting 572 | ; is On you will not log errors with repeated messages from different files or 573 | ; source lines. 574 | ; http://php.net/ignore-repeated-source 575 | ignore_repeated_source = Off 576 | 577 | ; If this parameter is set to Off, then memory leaks will not be shown (on 578 | ; stdout or in the log). This has only effect in a debug compile, and if 579 | ; error reporting includes E_WARNING in the allowed list 580 | ; http://php.net/report-memleaks 581 | report_memleaks = On 582 | 583 | ; This setting is on by default. 584 | ;report_zend_debug = 0 585 | 586 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value 587 | ; to On can assist in debugging and is appropriate for development servers. It should 588 | ; however be disabled on production servers. 589 | ; Default Value: Off 590 | ; Development Value: On 591 | ; Production Value: Off 592 | ; http://php.net/track-errors 593 | track_errors = Off 594 | 595 | ; Turn off normal error reporting and emit XML-RPC error XML 596 | ; http://php.net/xmlrpc-errors 597 | ;xmlrpc_errors = 0 598 | 599 | ; An XML-RPC faultCode 600 | ;xmlrpc_error_number = 0 601 | 602 | ; When PHP displays or logs an error, it has the capability of inserting html 603 | ; links to documentation related to that error. This directive controls whether 604 | ; those HTML links appear in error messages or not. For performance and security 605 | ; reasons, it's recommended you disable this on production servers. 606 | ; Note: This directive is hardcoded to Off for the CLI SAPI 607 | ; Default Value: On 608 | ; Development Value: On 609 | ; Production value: Off 610 | ; http://php.net/html-errors 611 | html_errors = {{ php_html_errors }} 612 | 613 | ; If html_errors is set On PHP produces clickable error messages that direct 614 | ; to a page describing the error or function causing the error in detail. 615 | ; You can download a copy of the PHP manual from http://php.net/docs 616 | ; and change docref_root to the base URL of your local copy including the 617 | ; leading '/'. You must also specify the file extension being used including 618 | ; the dot. PHP's default behavior is to leave these settings empty. 619 | ; Note: Never use this feature for production boxes. 620 | ; http://php.net/docref-root 621 | ; Examples 622 | ;docref_root = "/phpmanual/" 623 | 624 | ; http://php.net/docref-ext 625 | ;docref_ext = .html 626 | 627 | ; String to output before an error message. PHP's default behavior is to leave 628 | ; this setting blank. 629 | ; http://php.net/error-prepend-string 630 | ; Example: 631 | ;error_prepend_string = "" 632 | 633 | ; String to output after an error message. PHP's default behavior is to leave 634 | ; this setting blank. 635 | ; http://php.net/error-append-string 636 | ; Example: 637 | ;error_append_string = "" 638 | 639 | ; Log errors to specified file. PHP's default behavior is to leave this value 640 | ; empty. 641 | ; http://php.net/error-log 642 | ; Example: 643 | ;error_log = php_errors.log 644 | ; Log errors to syslog (Event Log on NT, not valid in Windows 95). 645 | ;error_log = syslog 646 | 647 | ;windows.show_crt_warning 648 | ; Default value: 0 649 | ; Development value: 0 650 | ; Production value: 0 651 | 652 | ;;;;;;;;;;;;;;;;; 653 | ; Data Handling ; 654 | ;;;;;;;;;;;;;;;;; 655 | 656 | ; The separator used in PHP generated URLs to separate arguments. 657 | ; PHP's default setting is "&". 658 | ; http://php.net/arg-separator.output 659 | ; Example: 660 | ;arg_separator.output = "&" 661 | 662 | ; List of separator(s) used by PHP to parse input URLs into variables. 663 | ; PHP's default setting is "&". 664 | ; NOTE: Every character in this directive is considered as separator! 665 | ; http://php.net/arg-separator.input 666 | ; Example: 667 | ;arg_separator.input = ";&" 668 | 669 | ; This directive determines which super global arrays are registered when PHP 670 | ; starts up. If the register_globals directive is enabled, it also determines 671 | ; what order variables are populated into the global space. G,P,C,E & S are 672 | ; abbreviations for the following respective super globals: GET, POST, COOKIE, 673 | ; ENV and SERVER. There is a performance penalty paid for the registration of 674 | ; these arrays and because ENV is not as commonly used as the others, ENV is 675 | ; is not recommended on productions servers. You can still get access to 676 | ; the environment variables through getenv() should you need to. 677 | ; Default Value: "EGPCS" 678 | ; Development Value: "GPCS" 679 | ; Production Value: "GPCS"; 680 | ; http://php.net/variables-order 681 | variables_order = "GPCS" 682 | 683 | ; This directive determines which super global data (G,P,C,E & S) should 684 | ; be registered into the super global array REQUEST. If so, it also determines 685 | ; the order in which that data is registered. The values for this directive are 686 | ; specified in the same manner as the variables_order directive, EXCEPT one. 687 | ; Leaving this value empty will cause PHP to use the value set in the 688 | ; variables_order directive. It does not mean it will leave the super globals 689 | ; array REQUEST empty. 690 | ; Default Value: None 691 | ; Development Value: "GP" 692 | ; Production Value: "GP" 693 | ; http://php.net/request-order 694 | request_order = "GP" 695 | 696 | ; Whether or not to register the EGPCS variables as global variables. You may 697 | ; want to turn this off if you don't want to clutter your scripts' global scope 698 | ; with user data. 699 | ; You should do your best to write your scripts so that they do not require 700 | ; register_globals to be on; Using form variables as globals can easily lead 701 | ; to possible security problems, if the code is not very well thought of. 702 | ; http://php.net/register-globals 703 | register_globals = Off 704 | 705 | ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables 706 | ; are registered by PHP or not. As they are deprecated, we obviously don't 707 | ; recommend you use them. They are on by default for compatibility reasons but 708 | ; they are not recommended on production servers. 709 | ; Default Value: On 710 | ; Development Value: Off 711 | ; Production Value: Off 712 | ; http://php.net/register-long-arrays 713 | register_long_arrays = Off 714 | 715 | ; This directive determines whether PHP registers $argv & $argc each time it 716 | ; runs. $argv contains an array of all the arguments passed to PHP when a script 717 | ; is invoked. $argc contains an integer representing the number of arguments 718 | ; that were passed when the script was invoked. These arrays are extremely 719 | ; useful when running scripts from the command line. When this directive is 720 | ; enabled, registering these variables consumes CPU cycles and memory each time 721 | ; a script is executed. For performance reasons, this feature should be disabled 722 | ; on production servers. 723 | ; Note: This directive is hardcoded to On for the CLI SAPI 724 | ; Default Value: On 725 | ; Development Value: Off 726 | ; Production Value: Off 727 | ; http://php.net/register-argc-argv 728 | register_argc_argv = Off 729 | 730 | ; When enabled, the SERVER and ENV variables are created when they're first 731 | ; used (Just In Time) instead of when the script starts. If these variables 732 | ; are not used within a script, having this directive on will result in a 733 | ; performance gain. The PHP directives register_globals, register_long_arrays, 734 | ; and register_argc_argv must be disabled for this directive to have any affect. 735 | ; http://php.net/auto-globals-jit 736 | auto_globals_jit = On 737 | 738 | ; Maximum size of POST data that PHP will accept. 739 | ; http://php.net/post-max-size 740 | post_max_size = {{ php_post_max_size }} 741 | 742 | ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to 743 | ; escape any character sequences in GET, POST, COOKIE and ENV data which might 744 | ; otherwise corrupt data being placed in resources such as databases before 745 | ; making that data available to you. Because of character encoding issues and 746 | ; non-standard SQL implementations across many databases, it's not currently 747 | ; possible for this feature to be 100% accurate. PHP's default behavior is to 748 | ; enable the feature. We strongly recommend you use the escaping mechanisms 749 | ; designed specifically for the database your using instead of relying on this 750 | ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is 751 | ; scheduled for removal in PHP 6. 752 | ; Default Value: On 753 | ; Development Value: Off 754 | ; Production Value: Off 755 | ; http://php.net/magic-quotes-gpc 756 | magic_quotes_gpc = Off 757 | 758 | ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. 759 | ; http://php.net/magic-quotes-runtime 760 | magic_quotes_runtime = Off 761 | 762 | ; Use Sybase-style magic quotes (escape ' with '' instead of \'). 763 | ; http://php.net/magic-quotes-sybase 764 | magic_quotes_sybase = Off 765 | 766 | ; Automatically add files before PHP document. 767 | ; http://php.net/auto-prepend-file 768 | auto_prepend_file = 769 | 770 | ; Automatically add files after PHP document. 771 | ; http://php.net/auto-append-file 772 | auto_append_file = 773 | 774 | ; By default, PHP will output a character encoding using 775 | ; the Content-type: header. To disable sending of the charset, simply 776 | ; set it to be empty. 777 | ; 778 | ; PHP's built-in default is text/html 779 | ; http://php.net/default-mimetype 780 | default_mimetype = "text/html" 781 | 782 | ; PHP's default character set is set to empty. 783 | ; http://php.net/default-charset 784 | ;default_charset = "iso-8859-1" 785 | 786 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is 787 | ; to disable this feature. 788 | ; http://php.net/always-populate-raw-post-data 789 | ;always_populate_raw_post_data = On 790 | 791 | ;;;;;;;;;;;;;;;;;;;;;;;;; 792 | ; Paths and Directories ; 793 | ;;;;;;;;;;;;;;;;;;;;;;;;; 794 | 795 | ; UNIX: "/path1:/path2" 796 | ;include_path = ".:/usr/share/php" 797 | ; 798 | ; Windows: "\path1;\path2" 799 | ;include_path = ".;c:\php\includes" 800 | ; 801 | ; PHP's default setting for include_path is ".;/path/to/php/pear" 802 | ; http://php.net/include-path 803 | 804 | ; The root of the PHP pages, used only if nonempty. 805 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 806 | ; if you are running php as a CGI under any web server (other than IIS) 807 | ; see documentation for security issues. The alternate is to use the 808 | ; cgi.force_redirect configuration below 809 | ; http://php.net/doc-root 810 | doc_root = 811 | 812 | ; The directory under which PHP opens the script using /~username used only 813 | ; if nonempty. 814 | ; http://php.net/user-dir 815 | user_dir = 816 | 817 | ; Directory in which the loadable extensions (modules) reside. 818 | ; http://php.net/extension-dir 819 | ; extension_dir = "./" 820 | ; On windows: 821 | ; extension_dir = "ext" 822 | 823 | ; Whether or not to enable the dl() function. The dl() function does NOT work 824 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically 825 | ; disabled on them. 826 | ; http://php.net/enable-dl 827 | enable_dl = Off 828 | 829 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under 830 | ; most web servers. Left undefined, PHP turns this on by default. You can 831 | ; turn it off here AT YOUR OWN RISK 832 | ; **You CAN safely turn this off for IIS, in fact, you MUST.** 833 | ; http://php.net/cgi.force-redirect 834 | ;cgi.force_redirect = 1 835 | 836 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with 837 | ; every request. PHP's default behavior is to disable this feature. 838 | ;cgi.nph = 1 839 | 840 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 841 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP 842 | ; will look for to know it is OK to continue execution. Setting this variable MAY 843 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST. 844 | ; http://php.net/cgi.redirect-status-env 845 | ;cgi.redirect_status_env = ; 846 | 847 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's 848 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok 849 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting 850 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting 851 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts 852 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. 853 | ; http://php.net/cgi.fix-pathinfo 854 | ;cgi.fix_pathinfo=1 855 | 856 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate 857 | ; security tokens of the calling client. This allows IIS to define the 858 | ; security context that the request runs under. mod_fastcgi under Apache 859 | ; does not currently support this feature (03/17/2002) 860 | ; Set to 1 if running under IIS. Default is zero. 861 | ; http://php.net/fastcgi.impersonate 862 | ;fastcgi.impersonate = 1; 863 | 864 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable 865 | ; this feature. 866 | ;fastcgi.logging = 0 867 | 868 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to 869 | ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that 870 | ; is supported by Apache. When this option is set to 1 PHP will send 871 | ; RFC2616 compliant header. 872 | ; Default is zero. 873 | ; http://php.net/cgi.rfc2616-headers 874 | ;cgi.rfc2616_headers = 0 875 | 876 | ;;;;;;;;;;;;;;;; 877 | ; File Uploads ; 878 | ;;;;;;;;;;;;;;;; 879 | 880 | ; Whether to allow HTTP file uploads. 881 | ; http://php.net/file-uploads 882 | file_uploads = On 883 | 884 | ; Temporary directory for HTTP uploaded files (will use system default if not 885 | ; specified). 886 | ; http://php.net/upload-tmp-dir 887 | ;upload_tmp_dir = 888 | 889 | ; Maximum allowed size for uploaded files. 890 | ; http://php.net/upload-max-filesize 891 | upload_max_filesize = {{ php_upload_max_filesize }} 892 | 893 | ; Maximum number of files that can be uploaded via a single request 894 | max_file_uploads = 20 895 | 896 | ;;;;;;;;;;;;;;;;;; 897 | ; Fopen wrappers ; 898 | ;;;;;;;;;;;;;;;;;; 899 | 900 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. 901 | ; http://php.net/allow-url-fopen 902 | allow_url_fopen = On 903 | 904 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files. 905 | ; http://php.net/allow-url-include 906 | allow_url_include = Off 907 | 908 | ; Define the anonymous ftp password (your email address). PHP's default setting 909 | ; for this is empty. 910 | ; http://php.net/from 911 | ;from="john@doe.com" 912 | 913 | ; Define the User-Agent string. PHP's default setting for this is empty. 914 | ; http://php.net/user-agent 915 | ;user_agent="PHP" 916 | 917 | ; Default timeout for socket based streams (seconds) 918 | ; http://php.net/default-socket-timeout 919 | default_socket_timeout = 60 920 | 921 | ; If your scripts have to deal with files from Macintosh systems, 922 | ; or you are running on a Mac and need to deal with files from 923 | ; unix or win32 systems, setting this flag will cause PHP to 924 | ; automatically detect the EOL character in those files so that 925 | ; fgets() and file() will work regardless of the source of the file. 926 | ; http://php.net/auto-detect-line-endings 927 | ;auto_detect_line_endings = Off 928 | 929 | ;;;;;;;;;;;;;;;;;;;;;; 930 | ; Dynamic Extensions ; 931 | ;;;;;;;;;;;;;;;;;;;;;; 932 | 933 | ; If you wish to have an extension loaded automatically, use the following 934 | ; syntax: 935 | ; 936 | ; extension=modulename.extension 937 | ; 938 | ; For example, on Windows: 939 | ; 940 | ; extension=msql.dll 941 | ; 942 | ; ... or under UNIX: 943 | ; 944 | ; extension=msql.so 945 | ; 946 | ; ... or with a path: 947 | ; 948 | ; extension=/path/to/extension/msql.so 949 | ; 950 | ; If you only provide the name of the extension, PHP will look for it in its 951 | ; default extension directory. 952 | 953 | ;;;;;;;;;;;;;;;;;;; 954 | ; Module Settings ; 955 | ;;;;;;;;;;;;;;;;;;; 956 | 957 | [Date] 958 | ; Defines the default timezone used by the date functions 959 | ; http://php.net/date.timezone 960 | date.timezone = {{ php_date_timezone }} 961 | 962 | ; http://php.net/date.default-latitude 963 | ;date.default_latitude = 31.7667 964 | 965 | ; http://php.net/date.default-longitude 966 | ;date.default_longitude = 35.2333 967 | 968 | ; http://php.net/date.sunrise-zenith 969 | ;date.sunrise_zenith = 90.583333 970 | 971 | ; http://php.net/date.sunset-zenith 972 | ;date.sunset_zenith = 90.583333 973 | 974 | [filter] 975 | ; http://php.net/filter.default 976 | ;filter.default = unsafe_raw 977 | 978 | ; http://php.net/filter.default-flags 979 | ;filter.default_flags = 980 | 981 | [iconv] 982 | ;iconv.input_encoding = ISO-8859-1 983 | ;iconv.internal_encoding = ISO-8859-1 984 | ;iconv.output_encoding = ISO-8859-1 985 | 986 | [intl] 987 | ;intl.default_locale = 988 | ; This directive allows you to produce PHP errors when some error 989 | ; happens within intl functions. The value is the level of the error produced. 990 | ; Default is 0, which does not produce any errors. 991 | ;intl.error_level = E_WARNING 992 | 993 | [sqlite] 994 | ; http://php.net/sqlite.assoc-case 995 | ;sqlite.assoc_case = 0 996 | 997 | [sqlite3] 998 | ;sqlite3.extension_dir = 999 | 1000 | [Pcre] 1001 | ;PCRE library backtracking limit. 1002 | ; http://php.net/pcre.backtrack-limit 1003 | ;pcre.backtrack_limit=100000 1004 | 1005 | ;PCRE library recursion limit. 1006 | ;Please note that if you set this value to a high number you may consume all 1007 | ;the available process stack and eventually crash PHP (due to reaching the 1008 | ;stack size limit imposed by the Operating System). 1009 | ; http://php.net/pcre.recursion-limit 1010 | ;pcre.recursion_limit=100000 1011 | 1012 | [Pdo] 1013 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" 1014 | ; http://php.net/pdo-odbc.connection-pooling 1015 | ;pdo_odbc.connection_pooling=strict 1016 | 1017 | ;pdo_odbc.db2_instance_name 1018 | 1019 | [Pdo_mysql] 1020 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1021 | ; http://php.net/pdo_mysql.cache_size 1022 | pdo_mysql.cache_size = 2000 1023 | 1024 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1025 | ; MySQL defaults. 1026 | ; http://php.net/pdo_mysql.default-socket 1027 | pdo_mysql.default_socket= 1028 | 1029 | [Phar] 1030 | ; http://php.net/phar.readonly 1031 | ;phar.readonly = On 1032 | 1033 | ; http://php.net/phar.require-hash 1034 | ;phar.require_hash = On 1035 | 1036 | ;phar.cache_list = 1037 | 1038 | [Syslog] 1039 | ; Whether or not to define the various syslog variables (e.g. $LOG_PID, 1040 | ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In 1041 | ; runtime, you can define these variables by calling define_syslog_variables(). 1042 | ; http://php.net/define-syslog-variables 1043 | define_syslog_variables = Off 1044 | 1045 | [mail function] 1046 | ; For Win32 only. 1047 | ; http://php.net/smtp 1048 | SMTP = localhost 1049 | ; http://php.net/smtp-port 1050 | smtp_port = 25 1051 | 1052 | ; For Win32 only. 1053 | ; http://php.net/sendmail-from 1054 | ;sendmail_from = me@example.com 1055 | 1056 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 1057 | ; http://php.net/sendmail-path 1058 | ;sendmail_path = 1059 | 1060 | ; Force the addition of the specified parameters to be passed as extra parameters 1061 | ; to the sendmail binary. These parameters will always replace the value of 1062 | ; the 5th parameter to mail(), even in safe mode. 1063 | ;mail.force_extra_parameters = 1064 | 1065 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename 1066 | mail.add_x_header = On 1067 | 1068 | ; The path to a log file that will log all mail() calls. Log entries include 1069 | ; the full path of the script, line number, To address and headers. 1070 | ;mail.log = 1071 | 1072 | [SQL] 1073 | ; http://php.net/sql.safe-mode 1074 | sql.safe_mode = Off 1075 | 1076 | [ODBC] 1077 | ; http://php.net/odbc.default-db 1078 | ;odbc.default_db = Not yet implemented 1079 | 1080 | ; http://php.net/odbc.default-user 1081 | ;odbc.default_user = Not yet implemented 1082 | 1083 | ; http://php.net/odbc.default-pw 1084 | ;odbc.default_pw = Not yet implemented 1085 | 1086 | ; Controls the ODBC cursor model. 1087 | ; Default: SQL_CURSOR_STATIC (default). 1088 | ;odbc.default_cursortype 1089 | 1090 | ; Allow or prevent persistent links. 1091 | ; http://php.net/odbc.allow-persistent 1092 | odbc.allow_persistent = On 1093 | 1094 | ; Check that a connection is still valid before reuse. 1095 | ; http://php.net/odbc.check-persistent 1096 | odbc.check_persistent = On 1097 | 1098 | ; Maximum number of persistent links. -1 means no limit. 1099 | ; http://php.net/odbc.max-persistent 1100 | odbc.max_persistent = -1 1101 | 1102 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1103 | ; http://php.net/odbc.max-links 1104 | odbc.max_links = -1 1105 | 1106 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means 1107 | ; passthru. 1108 | ; http://php.net/odbc.defaultlrl 1109 | odbc.defaultlrl = 4096 1110 | 1111 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char. 1112 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation 1113 | ; of odbc.defaultlrl and odbc.defaultbinmode 1114 | ; http://php.net/odbc.defaultbinmode 1115 | odbc.defaultbinmode = 1 1116 | 1117 | ;birdstep.max_links = -1 1118 | 1119 | [Interbase] 1120 | ; Allow or prevent persistent links. 1121 | ibase.allow_persistent = 1 1122 | 1123 | ; Maximum number of persistent links. -1 means no limit. 1124 | ibase.max_persistent = -1 1125 | 1126 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1127 | ibase.max_links = -1 1128 | 1129 | ; Default database name for ibase_connect(). 1130 | ;ibase.default_db = 1131 | 1132 | ; Default username for ibase_connect(). 1133 | ;ibase.default_user = 1134 | 1135 | ; Default password for ibase_connect(). 1136 | ;ibase.default_password = 1137 | 1138 | ; Default charset for ibase_connect(). 1139 | ;ibase.default_charset = 1140 | 1141 | ; Default timestamp format. 1142 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S" 1143 | 1144 | ; Default date format. 1145 | ibase.dateformat = "%Y-%m-%d" 1146 | 1147 | ; Default time format. 1148 | ibase.timeformat = "%H:%M:%S" 1149 | 1150 | [MySQL] 1151 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1152 | ; http://php.net/mysql.allow_local_infile 1153 | mysql.allow_local_infile = On 1154 | 1155 | ; Allow or prevent persistent links. 1156 | ; http://php.net/mysql.allow-persistent 1157 | mysql.allow_persistent = On 1158 | 1159 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1160 | ; http://php.net/mysql.cache_size 1161 | mysql.cache_size = 2000 1162 | 1163 | ; Maximum number of persistent links. -1 means no limit. 1164 | ; http://php.net/mysql.max-persistent 1165 | mysql.max_persistent = -1 1166 | 1167 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1168 | ; http://php.net/mysql.max-links 1169 | mysql.max_links = -1 1170 | 1171 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 1172 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1173 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1174 | ; at MYSQL_PORT. 1175 | ; http://php.net/mysql.default-port 1176 | mysql.default_port = 1177 | 1178 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1179 | ; MySQL defaults. 1180 | ; http://php.net/mysql.default-socket 1181 | mysql.default_socket = 1182 | 1183 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1184 | ; http://php.net/mysql.default-host 1185 | mysql.default_host = 1186 | 1187 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1188 | ; http://php.net/mysql.default-user 1189 | mysql.default_user = 1190 | 1191 | ; Default password for mysql_connect() (doesn't apply in safe mode). 1192 | ; Note that this is generally a *bad* idea to store passwords in this file. 1193 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 1194 | ; and reveal this password! And of course, any users with read access to this 1195 | ; file will be able to reveal the password as well. 1196 | ; http://php.net/mysql.default-password 1197 | mysql.default_password = 1198 | 1199 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 1200 | ; http://php.net/mysql.connect-timeout 1201 | mysql.connect_timeout = 60 1202 | 1203 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 1204 | ; SQL-Errors will be displayed. 1205 | ; http://php.net/mysql.trace-mode 1206 | mysql.trace_mode = Off 1207 | 1208 | [MySQLi] 1209 | 1210 | ; Maximum number of persistent links. -1 means no limit. 1211 | ; http://php.net/mysqli.max-persistent 1212 | mysqli.max_persistent = -1 1213 | 1214 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 1215 | ; http://php.net/mysqli.allow_local_infile 1216 | ;mysqli.allow_local_infile = On 1217 | 1218 | ; Allow or prevent persistent links. 1219 | ; http://php.net/mysqli.allow-persistent 1220 | mysqli.allow_persistent = On 1221 | 1222 | ; Maximum number of links. -1 means no limit. 1223 | ; http://php.net/mysqli.max-links 1224 | mysqli.max_links = -1 1225 | 1226 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 1227 | ; http://php.net/mysqli.cache_size 1228 | mysqli.cache_size = 2000 1229 | 1230 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use 1231 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 1232 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 1233 | ; at MYSQL_PORT. 1234 | ; http://php.net/mysqli.default-port 1235 | mysqli.default_port = 3306 1236 | 1237 | ; Default socket name for local MySQL connects. If empty, uses the built-in 1238 | ; MySQL defaults. 1239 | ; http://php.net/mysqli.default-socket 1240 | mysqli.default_socket = 1241 | 1242 | ; Default host for mysql_connect() (doesn't apply in safe mode). 1243 | ; http://php.net/mysqli.default-host 1244 | mysqli.default_host = 1245 | 1246 | ; Default user for mysql_connect() (doesn't apply in safe mode). 1247 | ; http://php.net/mysqli.default-user 1248 | mysqli.default_user = 1249 | 1250 | ; Default password for mysqli_connect() (doesn't apply in safe mode). 1251 | ; Note that this is generally a *bad* idea to store passwords in this file. 1252 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw") 1253 | ; and reveal this password! And of course, any users with read access to this 1254 | ; file will be able to reveal the password as well. 1255 | ; http://php.net/mysqli.default-pw 1256 | mysqli.default_pw = 1257 | 1258 | ; Allow or prevent reconnect 1259 | mysqli.reconnect = Off 1260 | 1261 | [mysqlnd] 1262 | ; Enable / Disable collection of general statistics by mysqlnd which can be 1263 | ; used to tune and monitor MySQL operations. 1264 | ; http://php.net/mysqlnd.collect_statistics 1265 | mysqlnd.collect_statistics = On 1266 | 1267 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be 1268 | ; used to tune and monitor MySQL operations. 1269 | ; http://php.net/mysqlnd.collect_memory_statistics 1270 | mysqlnd.collect_memory_statistics = Off 1271 | 1272 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1273 | ; http://php.net/mysqlnd.net_cmd_buffer_size 1274 | ;mysqlnd.net_cmd_buffer_size = 2048 1275 | 1276 | ; Size of a pre-allocated buffer used for reading data sent by the server in 1277 | ; bytes. 1278 | ; http://php.net/mysqlnd.net_read_buffer_size 1279 | ;mysqlnd.net_read_buffer_size = 32768 1280 | 1281 | [OCI8] 1282 | 1283 | ; Connection: Enables privileged connections using external 1284 | ; credentials (OCI_SYSOPER, OCI_SYSDBA) 1285 | ; http://php.net/oci8.privileged-connect 1286 | ;oci8.privileged_connect = Off 1287 | 1288 | ; Connection: The maximum number of persistent OCI8 connections per 1289 | ; process. Using -1 means no limit. 1290 | ; http://php.net/oci8.max-persistent 1291 | ;oci8.max_persistent = -1 1292 | 1293 | ; Connection: The maximum number of seconds a process is allowed to 1294 | ; maintain an idle persistent connection. Using -1 means idle 1295 | ; persistent connections will be maintained forever. 1296 | ; http://php.net/oci8.persistent-timeout 1297 | ;oci8.persistent_timeout = -1 1298 | 1299 | ; Connection: The number of seconds that must pass before issuing a 1300 | ; ping during oci_pconnect() to check the connection validity. When 1301 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables 1302 | ; pings completely. 1303 | ; http://php.net/oci8.ping-interval 1304 | ;oci8.ping_interval = 60 1305 | 1306 | ; Connection: Set this to a user chosen connection class to be used 1307 | ; for all pooled server requests with Oracle 11g Database Resident 1308 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to 1309 | ; the same string for all web servers running the same application, 1310 | ; the database pool must be configured, and the connection string must 1311 | ; specify to use a pooled server. 1312 | ;oci8.connection_class = 1313 | 1314 | ; High Availability: Using On lets PHP receive Fast Application 1315 | ; Notification (FAN) events generated when a database node fails. The 1316 | ; database must also be configured to post FAN events. 1317 | ;oci8.events = Off 1318 | 1319 | ; Tuning: This option enables statement caching, and specifies how 1320 | ; many statements to cache. Using 0 disables statement caching. 1321 | ; http://php.net/oci8.statement-cache-size 1322 | ;oci8.statement_cache_size = 20 1323 | 1324 | ; Tuning: Enables statement prefetching and sets the default number of 1325 | ; rows that will be fetched automatically after statement execution. 1326 | ; http://php.net/oci8.default-prefetch 1327 | ;oci8.default_prefetch = 100 1328 | 1329 | ; Compatibility. Using On means oci_close() will not close 1330 | ; oci_connect() and oci_new_connect() connections. 1331 | ; http://php.net/oci8.old-oci-close-semantics 1332 | ;oci8.old_oci_close_semantics = Off 1333 | 1334 | [PostgreSQL] 1335 | ; Allow or prevent persistent links. 1336 | ; http://php.net/pgsql.allow-persistent 1337 | pgsql.allow_persistent = On 1338 | 1339 | ; Detect broken persistent links always with pg_pconnect(). 1340 | ; Auto reset feature requires a little overheads. 1341 | ; http://php.net/pgsql.auto-reset-persistent 1342 | pgsql.auto_reset_persistent = Off 1343 | 1344 | ; Maximum number of persistent links. -1 means no limit. 1345 | ; http://php.net/pgsql.max-persistent 1346 | pgsql.max_persistent = -1 1347 | 1348 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1349 | ; http://php.net/pgsql.max-links 1350 | pgsql.max_links = -1 1351 | 1352 | ; Ignore PostgreSQL backends Notice message or not. 1353 | ; Notice message logging require a little overheads. 1354 | ; http://php.net/pgsql.ignore-notice 1355 | pgsql.ignore_notice = 0 1356 | 1357 | ; Log PostgreSQL backends Notice message or not. 1358 | ; Unless pgsql.ignore_notice=0, module cannot log notice message. 1359 | ; http://php.net/pgsql.log-notice 1360 | pgsql.log_notice = 0 1361 | 1362 | [Sybase-CT] 1363 | ; Allow or prevent persistent links. 1364 | ; http://php.net/sybct.allow-persistent 1365 | sybct.allow_persistent = On 1366 | 1367 | ; Maximum number of persistent links. -1 means no limit. 1368 | ; http://php.net/sybct.max-persistent 1369 | sybct.max_persistent = -1 1370 | 1371 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 1372 | ; http://php.net/sybct.max-links 1373 | sybct.max_links = -1 1374 | 1375 | ; Minimum server message severity to display. 1376 | ; http://php.net/sybct.min-server-severity 1377 | sybct.min_server_severity = 10 1378 | 1379 | ; Minimum client message severity to display. 1380 | ; http://php.net/sybct.min-client-severity 1381 | sybct.min_client_severity = 10 1382 | 1383 | ; Set per-context timeout 1384 | ; http://php.net/sybct.timeout 1385 | ;sybct.timeout= 1386 | 1387 | ;sybct.packet_size 1388 | 1389 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure. 1390 | ; Default: one minute 1391 | ;sybct.login_timeout= 1392 | 1393 | ; The name of the host you claim to be connecting from, for display by sp_who. 1394 | ; Default: none 1395 | ;sybct.hostname= 1396 | 1397 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever". 1398 | ; Default: 0 1399 | ;sybct.deadlock_retry_count= 1400 | 1401 | [bcmath] 1402 | ; Number of decimal digits for all bcmath functions. 1403 | ; http://php.net/bcmath.scale 1404 | bcmath.scale = 0 1405 | 1406 | [browscap] 1407 | ; http://php.net/browscap 1408 | ;browscap = extra/browscap.ini 1409 | 1410 | [Session] 1411 | ; Handler used to store/retrieve data. 1412 | ; http://php.net/session.save-handler 1413 | session.save_handler = files 1414 | 1415 | ; Argument passed to save_handler. In the case of files, this is the path 1416 | ; where data files are stored. Note: Windows users have to change this 1417 | ; variable in order to use PHP's session functions. 1418 | ; 1419 | ; The path can be defined as: 1420 | ; 1421 | ; session.save_path = "N;/path" 1422 | ; 1423 | ; where N is an integer. Instead of storing all the session files in 1424 | ; /path, what this will do is use subdirectories N-levels deep, and 1425 | ; store the session data in those directories. This is useful if you 1426 | ; or your OS have problems with lots of files in one directory, and is 1427 | ; a more efficient layout for servers that handle lots of sessions. 1428 | ; 1429 | ; NOTE 1: PHP will not create this directory structure automatically. 1430 | ; You can use the script in the ext/session dir for that purpose. 1431 | ; NOTE 2: See the section on garbage collection below if you choose to 1432 | ; use subdirectories for session storage 1433 | ; 1434 | ; The file storage module creates files using mode 600 by default. 1435 | ; You can change that by using 1436 | ; 1437 | ; session.save_path = "N;MODE;/path" 1438 | ; 1439 | ; where MODE is the octal representation of the mode. Note that this 1440 | ; does not overwrite the process's umask. 1441 | ; http://php.net/session.save-path 1442 | ;session.save_path = "/tmp" 1443 | 1444 | ; Whether to use cookies. 1445 | ; http://php.net/session.use-cookies 1446 | session.use_cookies = 1 1447 | 1448 | ; http://php.net/session.cookie-secure 1449 | ;session.cookie_secure = 1450 | 1451 | ; This option forces PHP to fetch and use a cookie for storing and maintaining 1452 | ; the session id. We encourage this operation as it's very helpful in combatting 1453 | ; session hijacking when not specifying and managing your own session id. It is 1454 | ; not the end all be all of session hijacking defense, but it's a good start. 1455 | ; http://php.net/session.use-only-cookies 1456 | session.use_only_cookies = 1 1457 | 1458 | ; Name of the session (used as cookie name). 1459 | ; http://php.net/session.name 1460 | session.name = PHPSESSID 1461 | 1462 | ; Initialize session on request startup. 1463 | ; http://php.net/session.auto-start 1464 | session.auto_start = 0 1465 | 1466 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted. 1467 | ; http://php.net/session.cookie-lifetime 1468 | session.cookie_lifetime = 0 1469 | 1470 | ; The path for which the cookie is valid. 1471 | ; http://php.net/session.cookie-path 1472 | session.cookie_path = / 1473 | 1474 | ; The domain for which the cookie is valid. 1475 | ; http://php.net/session.cookie-domain 1476 | session.cookie_domain = 1477 | 1478 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript. 1479 | ; http://php.net/session.cookie-httponly 1480 | session.cookie_httponly = 1481 | 1482 | ; Handler used to serialize data. php is the standard serializer of PHP. 1483 | ; http://php.net/session.serialize-handler 1484 | session.serialize_handler = php 1485 | 1486 | ; Defines the probability that the 'garbage collection' process is started 1487 | ; on every session initialization. The probability is calculated by using 1488 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator 1489 | ; and gc_divisor is the denominator in the equation. Setting this value to 1 1490 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1491 | ; the gc will run on any give request. 1492 | ; Default Value: 1 1493 | ; Development Value: 1 1494 | ; Production Value: 1 1495 | ; http://php.net/session.gc-probability 1496 | session.gc_probability = 0 1497 | 1498 | ; Defines the probability that the 'garbage collection' process is started on every 1499 | ; session initialization. The probability is calculated by using the following equation: 1500 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and 1501 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1 1502 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance 1503 | ; the gc will run on any give request. Increasing this value to 1000 will give you 1504 | ; a 0.1% chance the gc will run on any give request. For high volume production servers, 1505 | ; this is a more efficient approach. 1506 | ; Default Value: 100 1507 | ; Development Value: 1000 1508 | ; Production Value: 1000 1509 | ; http://php.net/session.gc-divisor 1510 | session.gc_divisor = 1000 1511 | 1512 | ; After this number of seconds, stored data will be seen as 'garbage' and 1513 | ; cleaned up by the garbage collection process. 1514 | ; http://php.net/session.gc-maxlifetime 1515 | session.gc_maxlifetime = 1440 1516 | 1517 | ; NOTE: If you are using the subdirectory option for storing session files 1518 | ; (see session.save_path above), then garbage collection does *not* 1519 | ; happen automatically. You will need to do your own garbage 1520 | ; collection through a shell script, cron entry, or some other method. 1521 | ; For example, the following script would is the equivalent of 1522 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): 1523 | ; find /path/to/sessions -cmin +24 | xargs rm 1524 | 1525 | ; PHP 4.2 and less have an undocumented feature/bug that allows you to 1526 | ; to initialize a session variable in the global scope, even when register_globals 1527 | ; is disabled. PHP 4.3 and later will warn you, if this feature is used. 1528 | ; You can disable the feature and the warning separately. At this time, 1529 | ; the warning is only displayed, if bug_compat_42 is enabled. This feature 1530 | ; introduces some serious security problems if not handled correctly. It's 1531 | ; recommended that you do not use this feature on production servers. But you 1532 | ; should enable this on development servers and enable the warning as well. If you 1533 | ; do not enable the feature on development servers, you won't be warned when it's 1534 | ; used and debugging errors caused by this can be difficult to track down. 1535 | ; Default Value: On 1536 | ; Development Value: On 1537 | ; Production Value: Off 1538 | ; http://php.net/session.bug-compat-42 1539 | session.bug_compat_42 = Off 1540 | 1541 | ; This setting controls whether or not you are warned by PHP when initializing a 1542 | ; session value into the global space. session.bug_compat_42 must be enabled before 1543 | ; these warnings can be issued by PHP. See the directive above for more information. 1544 | ; Default Value: On 1545 | ; Development Value: On 1546 | ; Production Value: Off 1547 | ; http://php.net/session.bug-compat-warn 1548 | session.bug_compat_warn = Off 1549 | 1550 | ; Check HTTP Referer to invalidate externally stored URLs containing ids. 1551 | ; HTTP_REFERER has to contain this substring for the session to be 1552 | ; considered as valid. 1553 | ; http://php.net/session.referer-check 1554 | session.referer_check = 1555 | 1556 | ; How many bytes to read from the file. 1557 | ; http://php.net/session.entropy-length 1558 | session.entropy_length = 0 1559 | 1560 | ; Specified here to create the session id. 1561 | ; http://php.net/session.entropy-file 1562 | ; On systems that don't have /dev/urandom /dev/arandom can be used 1563 | ; On windows, setting the entropy_length setting will activate the 1564 | ; Windows random source (using the CryptoAPI) 1565 | ;session.entropy_file = /dev/urandom 1566 | 1567 | ; Set to {nocache,private,public,} to determine HTTP caching aspects 1568 | ; or leave this empty to avoid sending anti-caching headers. 1569 | ; http://php.net/session.cache-limiter 1570 | session.cache_limiter = nocache 1571 | 1572 | ; Document expires after n minutes. 1573 | ; http://php.net/session.cache-expire 1574 | session.cache_expire = 180 1575 | 1576 | ; trans sid support is disabled by default. 1577 | ; Use of trans sid may risk your users security. 1578 | ; Use this option with caution. 1579 | ; - User may send URL contains active session ID 1580 | ; to other person via. email/irc/etc. 1581 | ; - URL that contains active session ID may be stored 1582 | ; in publically accessible computer. 1583 | ; - User may access your site with the same session ID 1584 | ; always using URL stored in browser's history or bookmarks. 1585 | ; http://php.net/session.use-trans-sid 1586 | session.use_trans_sid = 0 1587 | 1588 | ; Select a hash function for use in generating session ids. 1589 | ; Possible Values 1590 | ; 0 (MD5 128 bits) 1591 | ; 1 (SHA-1 160 bits) 1592 | ; This option may also be set to the name of any hash function supported by 1593 | ; the hash extension. A list of available hashes is returned by the hash_algos() 1594 | ; function. 1595 | ; http://php.net/session.hash-function 1596 | session.hash_function = 0 1597 | 1598 | ; Define how many bits are stored in each character when converting 1599 | ; the binary hash data to something readable. 1600 | ; Possible values: 1601 | ; 4 (4 bits: 0-9, a-f) 1602 | ; 5 (5 bits: 0-9, a-v) 1603 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",") 1604 | ; Default Value: 4 1605 | ; Development Value: 5 1606 | ; Production Value: 5 1607 | ; http://php.net/session.hash-bits-per-character 1608 | session.hash_bits_per_character = 5 1609 | 1610 | ; The URL rewriter will look for URLs in a defined set of HTML tags. 1611 | ; form/fieldset are special; if you include them here, the rewriter will 1612 | ; add a hidden field with the info which is otherwise appended 1613 | ; to URLs. If you want XHTML conformity, remove the form entry. 1614 | ; Note that all valid entries require a "=", even if no value follows. 1615 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset=" 1616 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1617 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 1618 | ; http://php.net/url-rewriter.tags 1619 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" 1620 | 1621 | [MSSQL] 1622 | ; Allow or prevent persistent links. 1623 | mssql.allow_persistent = On 1624 | 1625 | ; Maximum number of persistent links. -1 means no limit. 1626 | mssql.max_persistent = -1 1627 | 1628 | ; Maximum number of links (persistent+non persistent). -1 means no limit. 1629 | mssql.max_links = -1 1630 | 1631 | ; Minimum error severity to display. 1632 | mssql.min_error_severity = 10 1633 | 1634 | ; Minimum message severity to display. 1635 | mssql.min_message_severity = 10 1636 | 1637 | ; Compatibility mode with old versions of PHP 3.0. 1638 | mssql.compatability_mode = Off 1639 | 1640 | ; Connect timeout 1641 | ;mssql.connect_timeout = 5 1642 | 1643 | ; Query timeout 1644 | ;mssql.timeout = 60 1645 | 1646 | ; Valid range 0 - 2147483647. Default = 4096. 1647 | ;mssql.textlimit = 4096 1648 | 1649 | ; Valid range 0 - 2147483647. Default = 4096. 1650 | ;mssql.textsize = 4096 1651 | 1652 | ; Limits the number of records in each batch. 0 = all records in one batch. 1653 | ;mssql.batchsize = 0 1654 | 1655 | ; Specify how datetime and datetim4 columns are returned 1656 | ; On => Returns data converted to SQL server settings 1657 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss 1658 | ;mssql.datetimeconvert = On 1659 | 1660 | ; Use NT authentication when connecting to the server 1661 | mssql.secure_connection = Off 1662 | 1663 | ; Specify max number of processes. -1 = library default 1664 | ; msdlib defaults to 25 1665 | ; FreeTDS defaults to 4096 1666 | ;mssql.max_procs = -1 1667 | 1668 | ; Specify client character set. 1669 | ; If empty or not set the client charset from freetds.conf is used 1670 | ; This is only used when compiled with FreeTDS 1671 | ;mssql.charset = "ISO-8859-1" 1672 | 1673 | [Assertion] 1674 | ; Assert(expr); active by default. 1675 | ; http://php.net/assert.active 1676 | ;assert.active = On 1677 | 1678 | ; Issue a PHP warning for each failed assertion. 1679 | ; http://php.net/assert.warning 1680 | ;assert.warning = On 1681 | 1682 | ; Don't bail out by default. 1683 | ; http://php.net/assert.bail 1684 | ;assert.bail = Off 1685 | 1686 | ; User-function to be called if an assertion fails. 1687 | ; http://php.net/assert.callback 1688 | ;assert.callback = 0 1689 | 1690 | ; Eval the expression with current error_reporting(). Set to true if you want 1691 | ; error_reporting(0) around the eval(). 1692 | ; http://php.net/assert.quiet-eval 1693 | ;assert.quiet_eval = 0 1694 | 1695 | [COM] 1696 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs 1697 | ; http://php.net/com.typelib-file 1698 | ;com.typelib_file = 1699 | 1700 | ; allow Distributed-COM calls 1701 | ; http://php.net/com.allow-dcom 1702 | ;com.allow_dcom = true 1703 | 1704 | ; autoregister constants of a components typlib on com_load() 1705 | ; http://php.net/com.autoregister-typelib 1706 | ;com.autoregister_typelib = true 1707 | 1708 | ; register constants casesensitive 1709 | ; http://php.net/com.autoregister-casesensitive 1710 | ;com.autoregister_casesensitive = false 1711 | 1712 | ; show warnings on duplicate constant registrations 1713 | ; http://php.net/com.autoregister-verbose 1714 | ;com.autoregister_verbose = true 1715 | 1716 | ; The default character set code-page to use when passing strings to and from COM objects. 1717 | ; Default: system ANSI code page 1718 | ;com.code_page= 1719 | 1720 | [mbstring] 1721 | ; language for internal character representation. 1722 | ; http://php.net/mbstring.language 1723 | ;mbstring.language = Japanese 1724 | 1725 | ; internal/script encoding. 1726 | ; Some encoding cannot work as internal encoding. 1727 | ; (e.g. SJIS, BIG5, ISO-2022-*) 1728 | ; http://php.net/mbstring.internal-encoding 1729 | ;mbstring.internal_encoding = EUC-JP 1730 | 1731 | ; http input encoding. 1732 | ; http://php.net/mbstring.http-input 1733 | ;mbstring.http_input = auto 1734 | 1735 | ; http output encoding. mb_output_handler must be 1736 | ; registered as output buffer to function 1737 | ; http://php.net/mbstring.http-output 1738 | ;mbstring.http_output = SJIS 1739 | 1740 | ; enable automatic encoding translation according to 1741 | ; mbstring.internal_encoding setting. Input chars are 1742 | ; converted to internal encoding by setting this to On. 1743 | ; Note: Do _not_ use automatic encoding translation for 1744 | ; portable libs/applications. 1745 | ; http://php.net/mbstring.encoding-translation 1746 | ;mbstring.encoding_translation = Off 1747 | 1748 | ; automatic encoding detection order. 1749 | ; auto means 1750 | ; http://php.net/mbstring.detect-order 1751 | ;mbstring.detect_order = auto 1752 | 1753 | ; substitute_character used when character cannot be converted 1754 | ; one from another 1755 | ; http://php.net/mbstring.substitute-character 1756 | ;mbstring.substitute_character = none; 1757 | 1758 | ; overload(replace) single byte functions by mbstring functions. 1759 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), 1760 | ; etc. Possible values are 0,1,2,4 or combination of them. 1761 | ; For example, 7 for overload everything. 1762 | ; 0: No overload 1763 | ; 1: Overload mail() function 1764 | ; 2: Overload str*() functions 1765 | ; 4: Overload ereg*() functions 1766 | ; http://php.net/mbstring.func-overload 1767 | ;mbstring.func_overload = 0 1768 | 1769 | ; enable strict encoding detection. 1770 | ;mbstring.strict_detection = Off 1771 | 1772 | ; This directive specifies the regex pattern of content types for which mb_output_handler() 1773 | ; is activated. 1774 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml) 1775 | ;mbstring.http_output_conv_mimetype= 1776 | 1777 | ; Allows to set script encoding. Only affects if PHP is compiled with --enable-zend-multibyte 1778 | ; Default: "" 1779 | ;mbstring.script_encoding= 1780 | 1781 | [gd] 1782 | ; Tell the jpeg decode to ignore warnings and try to create 1783 | ; a gd image. The warning will then be displayed as notices 1784 | ; disabled by default 1785 | ; http://php.net/gd.jpeg-ignore-warning 1786 | ;gd.jpeg_ignore_warning = 0 1787 | 1788 | [exif] 1789 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. 1790 | ; With mbstring support this will automatically be converted into the encoding 1791 | ; given by corresponding encode setting. When empty mbstring.internal_encoding 1792 | ; is used. For the decode settings you can distinguish between motorola and 1793 | ; intel byte order. A decode setting cannot be empty. 1794 | ; http://php.net/exif.encode-unicode 1795 | ;exif.encode_unicode = ISO-8859-15 1796 | 1797 | ; http://php.net/exif.decode-unicode-motorola 1798 | ;exif.decode_unicode_motorola = UCS-2BE 1799 | 1800 | ; http://php.net/exif.decode-unicode-intel 1801 | ;exif.decode_unicode_intel = UCS-2LE 1802 | 1803 | ; http://php.net/exif.encode-jis 1804 | ;exif.encode_jis = 1805 | 1806 | ; http://php.net/exif.decode-jis-motorola 1807 | ;exif.decode_jis_motorola = JIS 1808 | 1809 | ; http://php.net/exif.decode-jis-intel 1810 | ;exif.decode_jis_intel = JIS 1811 | 1812 | [Tidy] 1813 | ; The path to a default tidy configuration file to use when using tidy 1814 | ; http://php.net/tidy.default-config 1815 | ;tidy.default_config = /usr/local/lib/php/default.tcfg 1816 | 1817 | ; Should tidy clean and repair output automatically? 1818 | ; WARNING: Do not use this option if you are generating non-html content 1819 | ; such as dynamic images 1820 | ; http://php.net/tidy.clean-output 1821 | tidy.clean_output = Off 1822 | 1823 | [soap] 1824 | ; Enables or disables WSDL caching feature. 1825 | ; http://php.net/soap.wsdl-cache-enabled 1826 | soap.wsdl_cache_enabled=1 1827 | 1828 | ; Sets the directory name where SOAP extension will put cache files. 1829 | ; http://php.net/soap.wsdl-cache-dir 1830 | soap.wsdl_cache_dir="/tmp" 1831 | 1832 | ; (time to live) Sets the number of second while cached file will be used 1833 | ; instead of original one. 1834 | ; http://php.net/soap.wsdl-cache-ttl 1835 | soap.wsdl_cache_ttl=86400 1836 | 1837 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache) 1838 | soap.wsdl_cache_limit = 5 1839 | 1840 | [sysvshm] 1841 | ; A default size of the shared memory segment 1842 | ;sysvshm.init_mem = 10000 1843 | 1844 | [ldap] 1845 | ; Sets the maximum number of open links or -1 for unlimited. 1846 | ldap.max_links = -1 1847 | 1848 | [mcrypt] 1849 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open 1850 | 1851 | ; Directory where to load mcrypt algorithms 1852 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1853 | ;mcrypt.algorithms_dir= 1854 | 1855 | ; Directory where to load mcrypt modes 1856 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) 1857 | ;mcrypt.modes_dir= 1858 | 1859 | [dba] 1860 | ;dba.default_handler= 1861 | 1862 | [xsl] 1863 | ; Write operations from within XSLT are disabled by default. 1864 | ; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44 1865 | ; Set it to 0 to allow all operations 1866 | ;xsl.security_prefs = 44 1867 | 1868 | ; Local Variables: 1869 | ; tab-width: 4 1870 | ; End: 1871 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/etc-php5-conf-d-apc-ini.j2: -------------------------------------------------------------------------------- 1 | extension = apc.so 2 | apc.rfc1867 = {{ apc_rfc1867 }} 3 | apc.shm_size = {{ apc_shm_size }} 4 | apc.shm_segments = {{ apc_shm_segments }} 5 | apc.num_files_hint = {{ apc_num_files_hint }} 6 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/etc-vsftpd-conf.j2: -------------------------------------------------------------------------------- 1 | # Example config file /etc/vsftpd.conf 2 | # 3 | # The default compiled in settings are fairly paranoid. This sample file 4 | # loosens things up a bit, to make the ftp daemon more usable. 5 | # Please see vsftpd.conf.5 for all compiled in defaults. 6 | # 7 | # READ THIS: This example file is NOT an exhaustive list of vsftpd options. 8 | # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's 9 | # capabilities. 10 | # 11 | # 12 | # Run standalone? vsftpd can run either from an inetd or as a standalone 13 | # daemon started from an initscript. 14 | listen=YES 15 | # 16 | # Run standalone with IPv6? 17 | # Like the listen parameter, except vsftpd will listen on an IPv6 socket 18 | # instead of an IPv4 one. This parameter and the listen parameter are mutually 19 | # exclusive. 20 | #listen_ipv6=YES 21 | # 22 | # Allow anonymous FTP? (Beware - allowed by default if you comment this out). 23 | anonymous_enable={{ vsftpd_anonymous_enable }} 24 | # 25 | # Uncomment this to allow local users to log in. 26 | local_enable={{ vsftpd_local_enable }} 27 | # 28 | # Uncomment this to enable any form of FTP write command. 29 | write_enable={{ vsftpd_write_enable }} 30 | # 31 | # Default umask for local users is 077. You may wish to change this to 022, 32 | # if your users expect that (022 is used by most other ftpd's) 33 | local_umask={{ vsftpd_local_umask }} 34 | # 35 | # Uncomment this to allow the anonymous FTP user to upload files. This only 36 | # has an effect if the above global write enable is activated. Also, you will 37 | # obviously need to create a directory writable by the FTP user. 38 | #anon_upload_enable=YES 39 | # 40 | # Uncomment this if you want the anonymous FTP user to be able to create 41 | # new directories. 42 | #anon_mkdir_write_enable=YES 43 | # 44 | # Activate directory messages - messages given to remote users when they 45 | # go into a certain directory. 46 | dirmessage_enable=YES 47 | # 48 | # If enabled, vsftpd will display directory listings with the time 49 | # in your local time zone. The default is to display GMT. The 50 | # times returned by the MDTM FTP command are also affected by this 51 | # option. 52 | use_localtime=YES 53 | # 54 | # Activate logging of uploads/downloads. 55 | xferlog_enable=YES 56 | # 57 | # Make sure PORT transfer connections originate from port 20 (ftp-data). 58 | connect_from_port_20=YES 59 | # 60 | # If you want, you can arrange for uploaded anonymous files to be owned by 61 | # a different user. Note! Using "root" for uploaded files is not 62 | # recommended! 63 | #chown_uploads=YES 64 | #chown_username=whoever 65 | # 66 | # You may override where the log file goes if you like. The default is shown 67 | # below. 68 | #xferlog_file=/var/log/vsftpd.log 69 | # 70 | # If you want, you can have your log file in standard ftpd xferlog format. 71 | # Note that the default log file location is /var/log/xferlog in this case. 72 | #xferlog_std_format=YES 73 | # 74 | # You may change the default value for timing out an idle session. 75 | #idle_session_timeout=600 76 | # 77 | # You may change the default value for timing out a data connection. 78 | #data_connection_timeout=120 79 | # 80 | # It is recommended that you define on your system a unique user which the 81 | # ftp server can use as a totally isolated and unprivileged user. 82 | #nopriv_user=ftpsecure 83 | # 84 | # Enable this and the server will recognise asynchronous ABOR requests. Not 85 | # recommended for security (the code is non-trivial). Not enabling it, 86 | # however, may confuse older FTP clients. 87 | #async_abor_enable=YES 88 | # 89 | # By default the server will pretend to allow ASCII mode but in fact ignore 90 | # the request. Turn on the below options to have the server actually do ASCII 91 | # mangling on files when in ASCII mode. 92 | # Beware that on some FTP servers, ASCII support allows a denial of service 93 | # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd 94 | # predicted this attack and has always been safe, reporting the size of the 95 | # raw file. 96 | # ASCII mangling is a horrible feature of the protocol. 97 | #ascii_upload_enable=YES 98 | #ascii_download_enable=YES 99 | # 100 | # You may fully customise the login banner string: 101 | #ftpd_banner=Welcome to blah FTP service. 102 | # 103 | # You may specify a file of disallowed anonymous e-mail addresses. Apparently 104 | # useful for combatting certain DoS attacks. 105 | #deny_email_enable=YES 106 | # (default follows) 107 | #banned_email_file=/etc/vsftpd.banned_emails 108 | # 109 | # You may restrict local users to their home directories. See the FAQ for 110 | # the possible risks in this before using chroot_local_user or 111 | # chroot_list_enable below. 112 | #chroot_local_user=YES 113 | # 114 | # You may specify an explicit list of local users to chroot() to their home 115 | # directory. If chroot_local_user is YES, then this list becomes a list of 116 | # users to NOT chroot(). 117 | # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that 118 | # the user does not have write access to the top level directory within the 119 | # chroot) 120 | #chroot_local_user=YES 121 | #chroot_list_enable=YES 122 | # (default follows) 123 | #chroot_list_file=/etc/vsftpd.chroot_list 124 | # 125 | # You may activate the "-R" option to the builtin ls. This is disabled by 126 | # default to avoid remote users being able to cause excessive I/O on large 127 | # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume 128 | # the presence of the "-R" option, so there is a strong case for enabling it. 129 | #ls_recurse_enable=YES 130 | # 131 | # Customization 132 | # 133 | # Some of vsftpd's settings don't fit the filesystem layout by 134 | # default. 135 | # 136 | # This option should be the name of a directory which is empty. Also, the 137 | # directory should not be writable by the ftp user. This directory is used 138 | # as a secure chroot() jail at times vsftpd does not require filesystem 139 | # access. 140 | secure_chroot_dir=/var/run/vsftpd/empty 141 | # 142 | # This string is the name of the PAM service vsftpd will use. 143 | pam_service_name=vsftpd 144 | # 145 | # This option specifies the location of the RSA certificate to use for SSL 146 | # encrypted connections. 147 | rsa_cert_file=/etc/ssl/private/vsftpd.pem 148 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/templates/root-my-cnf.j2: -------------------------------------------------------------------------------- 1 | [client] 2 | user=root 3 | pass={{ mysql_root_password }} 4 | -------------------------------------------------------------------------------- /ubuntu-12.04-lamp-dev/vars/default-settings.yml: -------------------------------------------------------------------------------- 1 | # Settings that are applied to the templates. This file should be copied to 2 | # the base folder of the play and renamed settings.yml, then modified to suit 3 | # your needs. 4 | 5 | --- 6 | # Hostname is important as we need to delete an anonymous MySQL 7 | # user that is created with this name, make sure you match this 8 | # up with the output of the command 'hostname' on the server. 9 | server_hostname: 'example.com' 10 | 11 | # php.ini 12 | php_max_execution_time: '90' 13 | php_display_errors: 'On' 14 | php_display_startup_errors: 'On' 15 | php_html_errors: 'On' 16 | php_post_max_size: '32M' 17 | php_upload_max_filesize: '32M' 18 | php_date_timezone: 'US/Central' 19 | 20 | # apc.ini 21 | apc_rfc1867: '1' 22 | apc_shm_size: '256M' 23 | apc_shm_segments: '1' 24 | apc_num_files_hint: '0' 25 | 26 | # my.cnf 27 | mysql_max_allowed_packet: '128M' 28 | mysql_character_set_server: 'utf8' 29 | mysql_collation_server: 'utf8_general_ci' 30 | innodb_file_per_table: 'innodb_file_per_table' 31 | 32 | # mysql 33 | mysql_root_password: 'password' 34 | 35 | # apache 36 | apache_server_admin: 'webmaster@example.com' 37 | apache_server_alias: '*.*.example.com' 38 | 39 | # vsftpd 40 | vsftpd_anonymous_enable: 'NO' 41 | vsftpd_local_enable: 'YES' 42 | vsftpd_write_enable: 'YES' 43 | vsftpd_local_umask: '002' 44 | --------------------------------------------------------------------------------