46 |
47 |
48 |
--------------------------------------------------------------------------------
/webroot/app/Exceptions/Handler.php:
--------------------------------------------------------------------------------
1 | getMessage(), $e);
47 | }
48 |
49 | return parent::render($request, $e);
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/webroot/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'pusher'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Broadcast Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may define all of the broadcast connections that will be used
24 | | to broadcast events to other systems or over websockets. Samples of
25 | | each available type of connection are provided inside this array.
26 | |
27 | */
28 |
29 | 'connections' => [
30 |
31 | 'pusher' => [
32 | 'driver' => 'pusher',
33 | 'key' => env('PUSHER_KEY'),
34 | 'secret' => env('PUSHER_SECRET'),
35 | 'app_id' => env('PUSHER_APP_ID'),
36 | ],
37 |
38 | 'redis' => [
39 | 'driver' => 'redis',
40 | 'connection' => 'default',
41 | ],
42 |
43 | 'log' => [
44 | 'driver' => 'log',
45 | ],
46 |
47 | ],
48 |
49 | ];
50 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:6
2 | MAINTAINER jamlee
3 |
4 | ENV code_root /code
5 | ENV httpd_conf ${code_root}/config/apache/httpd.conf
6 |
7 | #change the software repo
8 |
9 | RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm \
10 | && rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm \
11 | && sed -i -e "s|plugins=1|plugins=0 |" /etc/yum.conf
12 | ADD ./config/sys/*.repo /etc/yum.repos.d/
13 |
14 | RUN yum install -y httpd
15 | RUN yum install --enablerepo=epel,remi-php56,remi -y \
16 | php \
17 | php-cli \
18 | php-gd \
19 | php-mbstring \
20 | php-mcrypt \
21 | php-mysqlnd \
22 | php-pdo \
23 | php-xml \
24 | php-xdebug \
25 | tcpdump
26 | RUN yum install -y vim git
27 | RUN sed -i -e "s|^;date.timezone =.*$|date.timezone = PRC |" /etc/php.ini \
28 | && mv /usr/sbin/tcpdump /usr/local/bin
29 | RUN curl -sS https://getcomposer.org/installer | php \
30 | && mv composer.phar /usr/local/bin/composer \
31 | && curl -O https://phar.phpunit.de/phpunit.phar \
32 | && chmod +x phpunit.phar \
33 | && mv phpunit.phar /usr/local/bin/phpunit
34 | ADD ./config/php/config.json /root/.composer/
35 | RUN composer global require "laravel/installer=~1.1"
36 | ENV PATH=$PATH:/root/.composer/vendor/bin
37 | ADD . $code_root
38 | RUN test -e $httpd_conf && echo "Include $httpd_conf" >> /etc/httpd/conf/httpd.conf
39 | EXPOSE 80
40 | CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]
41 |
42 |
--------------------------------------------------------------------------------
/webroot/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "description": "The Laravel Framework.",
4 | "keywords": ["framework", "laravel"],
5 | "license": "MIT",
6 | "type": "project",
7 | "require": {
8 | "php": ">=5.5.9",
9 | "laravel/framework": "5.1.*"
10 | },
11 | "require-dev": {
12 | "fzaninotto/faker": "~1.4",
13 | "mockery/mockery": "0.9.*",
14 | "phpunit/phpunit": "~4.0",
15 | "phpspec/phpspec": "~2.1",
16 | "phpmd/phpmd": "^2.2",
17 | "phing/phing": "^2.12",
18 | "phploc/phploc": "^2.1",
19 | "sebastian/phpcpd": "^2.0",
20 | "sebastian/phpdcd": "^1.0",
21 | "phpdocumentor/phpdocumentor": "^2.8",
22 | "squizlabs/php_codesniffer": "*",
23 | "pdepend/pdepend": "^2.1"
24 | },
25 | "autoload": {
26 | "classmap": [
27 | "database"
28 | ],
29 | "psr-4": {
30 | "App\\": "app/"
31 | }
32 | },
33 | "autoload-dev": {
34 | "classmap": [
35 | "tests/TestCase.php"
36 | ]
37 | },
38 | "scripts": {
39 | "post-install-cmd": [
40 | "php artisan clear-compiled",
41 | "php artisan optimize"
42 | ],
43 | "pre-update-cmd": [
44 | "php artisan clear-compiled"
45 | ],
46 | "post-update-cmd": [
47 | "php artisan optimize"
48 | ],
49 | "post-root-package-install": [
50 | "php -r \"copy('.env.example', '.env');\""
51 | ],
52 | "post-create-project-cmd": [
53 | "php artisan key:generate"
54 | ]
55 | },
56 | "config": {
57 | "preferred-install": "dist"
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/webroot/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | singleton(
30 | Illuminate\Contracts\Http\Kernel::class,
31 | App\Http\Kernel::class
32 | );
33 |
34 | $app->singleton(
35 | Illuminate\Contracts\Console\Kernel::class,
36 | App\Console\Kernel::class
37 | );
38 |
39 | $app->singleton(
40 | Illuminate\Contracts\Debug\ExceptionHandler::class,
41 | App\Exceptions\Handler::class
42 | );
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Return The Application
47 | |--------------------------------------------------------------------------
48 | |
49 | | This script returns the application instance. The instance is given to
50 | | the calling script so we can separate the building of the instances
51 | | from the actual running of the application and sending responses.
52 | |
53 | */
54 |
55 | return $app;
56 |
--------------------------------------------------------------------------------
/webroot/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | make(Illuminate\Contracts\Console\Kernel::class);
32 |
33 | $status = $kernel->handle(
34 | $input = new Symfony\Component\Console\Input\ArgvInput,
35 | new Symfony\Component\Console\Output\ConsoleOutput
36 | );
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Shutdown The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once Artisan has finished running. We will fire off the shutdown events
44 | | so that any final work may be done by the application before we shut
45 | | down the process. This is the last thing to happen to the request.
46 | |
47 | */
48 |
49 | $kernel->terminate($input, $status);
50 |
51 | exit($status);
52 |
--------------------------------------------------------------------------------
/webroot/readme.md:
--------------------------------------------------------------------------------
1 | ## Laravel PHP Framework
2 |
3 | [](https://travis-ci.org/laravel/framework)
4 | [](https://packagist.org/packages/laravel/framework)
5 | [](https://packagist.org/packages/laravel/framework)
6 | [](https://packagist.org/packages/laravel/framework)
7 | [](https://packagist.org/packages/laravel/framework)
8 |
9 | Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
10 |
11 | Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
12 |
13 | ## Official Documentation
14 |
15 | Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
16 |
17 | ## Contributing
18 |
19 | Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
20 |
21 | ## Security Vulnerabilities
22 |
23 | If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
24 |
25 | ### License
26 |
27 | The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
28 |
--------------------------------------------------------------------------------
/webroot/public/index.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | /*
11 | |--------------------------------------------------------------------------
12 | | Register The Auto Loader
13 | |--------------------------------------------------------------------------
14 | |
15 | | Composer provides a convenient, automatically generated class loader for
16 | | our application. We just need to utilize it! We'll simply require it
17 | | into the script here so that we don't have to worry about manual
18 | | loading any of our classes later on. It feels nice to relax.
19 | |
20 | */
21 |
22 | require __DIR__.'/../bootstrap/autoload.php';
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Turn On The Lights
27 | |--------------------------------------------------------------------------
28 | |
29 | | We need to illuminate PHP development, so let us turn on the lights.
30 | | This bootstraps the framework and gets it ready for use, then it
31 | | will load up this application so that we can run it and send
32 | | the responses back to the browser and delight our users.
33 | |
34 | */
35 |
36 | $app = require_once __DIR__.'/../bootstrap/app.php';
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Run The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once we have the application, we can handle the incoming request
44 | | through the kernel, and send the associated response back to
45 | | the client's browser allowing them to enjoy the creative
46 | | and wonderful application we have prepared for them.
47 | |
48 | */
49 |
50 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
51 |
52 | $response = $kernel->handle(
53 | $request = Illuminate\Http\Request::capture()
54 | );
55 |
56 | $response->send();
57 |
58 | $kernel->terminate($request, $response);
59 |
--------------------------------------------------------------------------------
/webroot/app/Http/Controllers/Auth/AuthController.php:
--------------------------------------------------------------------------------
1 | middleware('guest', ['except' => 'getLogout']);
34 | }
35 |
36 | /**
37 | * Get a validator for an incoming registration request.
38 | *
39 | * @param array $data
40 | * @return \Illuminate\Contracts\Validation\Validator
41 | */
42 | protected function validator(array $data)
43 | {
44 | return Validator::make($data, [
45 | 'name' => 'required|max:255',
46 | 'email' => 'required|email|max:255|unique:users',
47 | 'password' => 'required|confirmed|min:6',
48 | ]);
49 | }
50 |
51 | /**
52 | * Create a new user instance after a valid registration.
53 | *
54 | * @param array $data
55 | * @return User
56 | */
57 | protected function create(array $data)
58 | {
59 | return User::create([
60 | 'name' => $data['name'],
61 | 'email' => $data['email'],
62 | 'password' => bcrypt($data['password']),
63 | ]);
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/config/sys/CentOS-Base.repo:
--------------------------------------------------------------------------------
1 | # CentOS-Base.repo
2 | #
3 | # The mirror system uses the connecting IP address of the client and the
4 | # update status of each mirror to pick mirrors that are updated to and
5 | # geographically close to the client. You should use this for CentOS updates
6 | # unless you are manually picking other mirrors.
7 | #
8 | # If the mirrorlist= does not work for you, as a fall back you can try the
9 | # remarked out baseurl= line instead.
10 | #
11 | #
12 |
13 | [base]
14 | name=CentOS-$releasever - Base - mirrors.ustc.edu.cn
15 | baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/os/$basearch/
16 | #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
17 | gpgcheck=1
18 | gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
19 |
20 | #released updates
21 | [updates]
22 | name=CentOS-$releasever - Updates - mirrors.ustc.edu.cn
23 | baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/updates/$basearch/
24 | #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
25 | gpgcheck=1
26 | gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
27 |
28 | #additional packages that may be useful
29 | [extras]
30 | name=CentOS-$releasever - Extras - mirrors.ustc.edu.cn
31 | baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/extras/$basearch/
32 | #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
33 | gpgcheck=1
34 | gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
35 |
36 | #additional packages that extend functionality of existing packages
37 | [centosplus]
38 | name=CentOS-$releasever - Plus - mirrors.ustc.edu.cn
39 | baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
40 | #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
41 | gpgcheck=1
42 | enabled=0
43 | gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
44 |
45 | #contrib - packages by Centos Users
46 | [contrib]
47 | name=CentOS-$releasever - Contrib - mirrors.ustc.edu.cn
48 | baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/contrib/$basearch/
49 | #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
50 | gpgcheck=1
51 | enabled=0
52 | gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
--------------------------------------------------------------------------------
/webroot/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Cache Stores
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may define all of the cache "stores" for your application as
24 | | well as their drivers. You may even define multiple stores for the
25 | | same cache driver to group types of items stored in your caches.
26 | |
27 | */
28 |
29 | 'stores' => [
30 |
31 | 'apc' => [
32 | 'driver' => 'apc',
33 | ],
34 |
35 | 'array' => [
36 | 'driver' => 'array',
37 | ],
38 |
39 | 'database' => [
40 | 'driver' => 'database',
41 | 'table' => 'cache',
42 | 'connection' => null,
43 | ],
44 |
45 | 'file' => [
46 | 'driver' => 'file',
47 | 'path' => storage_path('framework/cache'),
48 | ],
49 |
50 | 'memcached' => [
51 | 'driver' => 'memcached',
52 | 'servers' => [
53 | [
54 | 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
55 | ],
56 | ],
57 | ],
58 |
59 | 'redis' => [
60 | 'driver' => 'redis',
61 | 'connection' => 'default',
62 | ],
63 |
64 | ],
65 |
66 | /*
67 | |--------------------------------------------------------------------------
68 | | Cache Key Prefix
69 | |--------------------------------------------------------------------------
70 | |
71 | | When utilizing a RAM based store such as APC or Memcached, there might
72 | | be other applications utilizing the same cache. So, we'll specify a
73 | | value to get prefixed to all our keys so we can avoid collisions.
74 | |
75 | */
76 |
77 | 'prefix' => 'laravel',
78 |
79 | ];
80 |
--------------------------------------------------------------------------------
/webroot/config/auth.php:
--------------------------------------------------------------------------------
1 | 'eloquent',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Authentication Model
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "Eloquent" authentication driver, we need to know which
26 | | Eloquent model should be used to retrieve your users. Of course, it
27 | | is often just the "User" model but you may use whatever you like.
28 | |
29 | */
30 |
31 | 'model' => App\User::class,
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Authentication Table
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "Database" authentication driver, we need to know which
39 | | table should be used to retrieve your users. We have chosen a basic
40 | | default value but you may easily change it to any table you like.
41 | |
42 | */
43 |
44 | 'table' => 'users',
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Password Reset Settings
49 | |--------------------------------------------------------------------------
50 | |
51 | | Here you may set the options for resetting passwords including the view
52 | | that is your password reset e-mail. You can also set the name of the
53 | | table that maintains all of the reset tokens for your application.
54 | |
55 | | The expire time is the number of minutes that the reset token should be
56 | | considered valid. This security feature keeps tokens short-lived so
57 | | they have less time to be guessed. You may change this as needed.
58 | |
59 | */
60 |
61 | 'password' => [
62 | 'email' => 'emails.password',
63 | 'table' => 'password_resets',
64 | 'expire' => 60,
65 | ],
66 |
67 | ];
68 |
--------------------------------------------------------------------------------
/webroot/config/filesystems.php:
--------------------------------------------------------------------------------
1 | 'local',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Default Cloud Filesystem Disk
23 | |--------------------------------------------------------------------------
24 | |
25 | | Many applications store files both locally and in the cloud. For this
26 | | reason, you may specify a default "cloud" driver here. This driver
27 | | will be bound as the Cloud disk implementation in the container.
28 | |
29 | */
30 |
31 | 'cloud' => 's3',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Filesystem Disks
36 | |--------------------------------------------------------------------------
37 | |
38 | | Here you may configure as many filesystem "disks" as you wish, and you
39 | | may even configure multiple disks of the same driver. Defaults have
40 | | been setup for each driver as an example of the required options.
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'ftp' => [
52 | 'driver' => 'ftp',
53 | 'host' => 'ftp.example.com',
54 | 'username' => 'your-username',
55 | 'password' => 'your-password',
56 |
57 | // Optional FTP Settings...
58 | // 'port' => 21,
59 | // 'root' => '',
60 | // 'passive' => true,
61 | // 'ssl' => true,
62 | // 'timeout' => 30,
63 | ],
64 |
65 | 's3' => [
66 | 'driver' => 's3',
67 | 'key' => 'your-key',
68 | 'secret' => 'your-secret',
69 | 'region' => 'your-region',
70 | 'bucket' => 'your-bucket',
71 | ],
72 |
73 | 'rackspace' => [
74 | 'driver' => 'rackspace',
75 | 'username' => 'your-username',
76 | 'key' => 'your-key',
77 | 'container' => 'your-container',
78 | 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
79 | 'region' => 'IAD',
80 | 'url_type' => 'publicURL',
81 | ],
82 |
83 | ],
84 |
85 | ];
86 |
--------------------------------------------------------------------------------
/webroot/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_DRIVER', 'sync'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Queue Connections
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may configure the connection information for each server that
27 | | is used by your application. A default configuration has been added
28 | | for each back-end shipped with Laravel. You are free to add more.
29 | |
30 | */
31 |
32 | 'connections' => [
33 |
34 | 'sync' => [
35 | 'driver' => 'sync',
36 | ],
37 |
38 | 'database' => [
39 | 'driver' => 'database',
40 | 'table' => 'jobs',
41 | 'queue' => 'default',
42 | 'expire' => 60,
43 | ],
44 |
45 | 'beanstalkd' => [
46 | 'driver' => 'beanstalkd',
47 | 'host' => 'localhost',
48 | 'queue' => 'default',
49 | 'ttr' => 60,
50 | ],
51 |
52 | 'sqs' => [
53 | 'driver' => 'sqs',
54 | 'key' => 'your-public-key',
55 | 'secret' => 'your-secret-key',
56 | 'queue' => 'your-queue-url',
57 | 'region' => 'us-east-1',
58 | ],
59 |
60 | 'iron' => [
61 | 'driver' => 'iron',
62 | 'host' => 'mq-aws-us-east-1.iron.io',
63 | 'token' => 'your-token',
64 | 'project' => 'your-project-id',
65 | 'queue' => 'your-queue-name',
66 | 'encrypt' => true,
67 | ],
68 |
69 | 'redis' => [
70 | 'driver' => 'redis',
71 | 'connection' => 'default',
72 | 'queue' => 'default',
73 | 'expire' => 60,
74 | ],
75 |
76 | ],
77 |
78 | /*
79 | |--------------------------------------------------------------------------
80 | | Failed Queue Jobs
81 | |--------------------------------------------------------------------------
82 | |
83 | | These options configure the behavior of failed queue job logging so you
84 | | can control which database and table are used to store the jobs that
85 | | have failed. You may change them to any database / table you wish.
86 | |
87 | */
88 |
89 | 'failed' => [
90 | 'database' => 'mysql', 'table' => 'failed_jobs',
91 | ],
92 |
93 | ];
94 |
--------------------------------------------------------------------------------
/webroot/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => env('DB_CONNECTION', 'mysql'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Database Connections
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here are each of the database connections setup for your application.
37 | | Of course, examples of configuring each database platform that is
38 | | supported by Laravel is shown below to make development simple.
39 | |
40 | |
41 | | All database work in Laravel is done through the PHP PDO facilities
42 | | so make sure you have the driver for your particular database of
43 | | choice installed on your machine before you begin development.
44 | |
45 | */
46 |
47 | 'connections' => [
48 |
49 | 'sqlite' => [
50 | 'driver' => 'sqlite',
51 | 'database' => storage_path('database.sqlite'),
52 | 'prefix' => '',
53 | ],
54 |
55 | 'mysql' => [
56 | 'driver' => 'mysql',
57 | 'host' => env('DB_HOST', 'localhost'),
58 | 'database' => env('DB_DATABASE', 'forge'),
59 | 'username' => env('DB_USERNAME', 'forge'),
60 | 'password' => env('DB_PASSWORD', ''),
61 | 'charset' => 'utf8',
62 | 'collation' => 'utf8_unicode_ci',
63 | 'prefix' => '',
64 | 'strict' => false,
65 | ],
66 |
67 | 'pgsql' => [
68 | 'driver' => 'pgsql',
69 | 'host' => env('DB_HOST', 'localhost'),
70 | 'database' => env('DB_DATABASE', 'forge'),
71 | 'username' => env('DB_USERNAME', 'forge'),
72 | 'password' => env('DB_PASSWORD', ''),
73 | 'charset' => 'utf8',
74 | 'prefix' => '',
75 | 'schema' => 'public',
76 | ],
77 |
78 | 'sqlsrv' => [
79 | 'driver' => 'sqlsrv',
80 | 'host' => env('DB_HOST', 'localhost'),
81 | 'database' => env('DB_DATABASE', 'forge'),
82 | 'username' => env('DB_USERNAME', 'forge'),
83 | 'password' => env('DB_PASSWORD', ''),
84 | 'charset' => 'utf8',
85 | 'prefix' => '',
86 | ],
87 |
88 | ],
89 |
90 | /*
91 | |--------------------------------------------------------------------------
92 | | Migration Repository Table
93 | |--------------------------------------------------------------------------
94 | |
95 | | This table keeps track of all the migrations that have already run for
96 | | your application. Using this information, we can determine which of
97 | | the migrations on disk haven't actually been run in the database.
98 | |
99 | */
100 |
101 | 'migrations' => 'migrations',
102 |
103 | /*
104 | |--------------------------------------------------------------------------
105 | | Redis Databases
106 | |--------------------------------------------------------------------------
107 | |
108 | | Redis is an open source, fast, and advanced key-value store that also
109 | | provides a richer set of commands than a typical key-value systems
110 | | such as APC or Memcached. Laravel makes it easy to dig right in.
111 | |
112 | */
113 |
114 | 'redis' => [
115 |
116 | 'cluster' => false,
117 |
118 | 'default' => [
119 | 'host' => '127.0.0.1',
120 | 'port' => 6379,
121 | 'database' => 0,
122 | ],
123 |
124 | ],
125 |
126 | ];
127 |
--------------------------------------------------------------------------------
/webroot/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | SMTP Host Address
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may provide the host address of the SMTP server used by your
26 | | applications. A default option is provided that is compatible with
27 | | the Mailgun mail service which will provide reliable deliveries.
28 | |
29 | */
30 |
31 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | SMTP Host Port
36 | |--------------------------------------------------------------------------
37 | |
38 | | This is the SMTP port used by your application to deliver e-mails to
39 | | users of the application. Like the host we have set this value to
40 | | stay compatible with the Mailgun e-mail application by default.
41 | |
42 | */
43 |
44 | 'port' => env('MAIL_PORT', 587),
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Global "From" Address
49 | |--------------------------------------------------------------------------
50 | |
51 | | You may wish for all e-mails sent by your application to be sent from
52 | | the same address. Here, you may specify a name and address that is
53 | | used globally for all e-mails that are sent by your application.
54 | |
55 | */
56 |
57 | 'from' => ['address' => null, 'name' => null],
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | E-Mail Encryption Protocol
62 | |--------------------------------------------------------------------------
63 | |
64 | | Here you may specify the encryption protocol that should be used when
65 | | the application send e-mail messages. A sensible default using the
66 | | transport layer security protocol should provide great security.
67 | |
68 | */
69 |
70 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | SMTP Server Username
75 | |--------------------------------------------------------------------------
76 | |
77 | | If your SMTP server requires a username for authentication, you should
78 | | set it here. This will get used to authenticate with your server on
79 | | connection. You may also set the "password" value below this one.
80 | |
81 | */
82 |
83 | 'username' => env('MAIL_USERNAME'),
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | SMTP Server Password
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may set the password required by your SMTP server to send out
91 | | messages from your application. This will be given to the server on
92 | | connection so that the application will be able to send messages.
93 | |
94 | */
95 |
96 | 'password' => env('MAIL_PASSWORD'),
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Sendmail System Path
101 | |--------------------------------------------------------------------------
102 | |
103 | | When using the "sendmail" driver to send e-mails, we will need to know
104 | | the path to where Sendmail lives on this server. A default path has
105 | | been provided here, which will work well on most of your systems.
106 | |
107 | */
108 |
109 | 'sendmail' => '/usr/sbin/sendmail -bs',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Mail "Pretend"
114 | |--------------------------------------------------------------------------
115 | |
116 | | When this option is enabled, e-mail will not actually be sent over the
117 | | web and will instead be written to your application's logs files so
118 | | you may inspect the message. This is great for local development.
119 | |
120 | */
121 |
122 | 'pretend' => false,
123 |
124 | ];
125 |
--------------------------------------------------------------------------------
/webroot/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/webroot/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Sweeping Lottery
91 | |--------------------------------------------------------------------------
92 | |
93 | | Some session drivers must manually sweep their storage location to get
94 | | rid of old sessions from storage. Here are the chances that it will
95 | | happen on a given request. By default, the odds are 2 out of 100.
96 | |
97 | */
98 |
99 | 'lottery' => [2, 100],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Name
104 | |--------------------------------------------------------------------------
105 | |
106 | | Here you may change the name of the cookie used to identify a session
107 | | instance by ID. The name specified here will get used every time a
108 | | new session cookie is created by the framework for every driver.
109 | |
110 | */
111 |
112 | 'cookie' => 'laravel_session',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Path
117 | |--------------------------------------------------------------------------
118 | |
119 | | The session cookie path determines the path for which the cookie will
120 | | be regarded as available. Typically, this will be the root path of
121 | | your application but you are free to change this when necessary.
122 | |
123 | */
124 |
125 | 'path' => '/',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Domain
130 | |--------------------------------------------------------------------------
131 | |
132 | | Here you may change the domain of the cookie used to identify a session
133 | | in your application. This will determine which domains the cookie is
134 | | available to in your application. A sensible default has been set.
135 | |
136 | */
137 |
138 | 'domain' => null,
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | HTTPS Only Cookies
143 | |--------------------------------------------------------------------------
144 | |
145 | | By setting this option to true, session cookies will only be sent back
146 | | to the server if the browser has a HTTPS connection. This will keep
147 | | the cookie from being sent to you if it can not be done securely.
148 | |
149 | */
150 |
151 | 'secure' => false,
152 |
153 | ];
154 |
--------------------------------------------------------------------------------
/webroot/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'alpha' => 'The :attribute may only contain letters.',
20 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
21 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
22 | 'array' => 'The :attribute must be an array.',
23 | 'before' => 'The :attribute must be a date before :date.',
24 | 'between' => [
25 | 'numeric' => 'The :attribute must be between :min and :max.',
26 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
27 | 'string' => 'The :attribute must be between :min and :max characters.',
28 | 'array' => 'The :attribute must have between :min and :max items.',
29 | ],
30 | 'boolean' => 'The :attribute field must be true or false.',
31 | 'confirmed' => 'The :attribute confirmation does not match.',
32 | 'date' => 'The :attribute is not a valid date.',
33 | 'date_format' => 'The :attribute does not match the format :format.',
34 | 'different' => 'The :attribute and :other must be different.',
35 | 'digits' => 'The :attribute must be :digits digits.',
36 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
37 | 'email' => 'The :attribute must be a valid email address.',
38 | 'exists' => 'The selected :attribute is invalid.',
39 | 'filled' => 'The :attribute field is required.',
40 | 'image' => 'The :attribute must be an image.',
41 | 'in' => 'The selected :attribute is invalid.',
42 | 'integer' => 'The :attribute must be an integer.',
43 | 'ip' => 'The :attribute must be a valid IP address.',
44 | 'json' => 'The :attribute must be a valid JSON string.',
45 | 'max' => [
46 | 'numeric' => 'The :attribute may not be greater than :max.',
47 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
48 | 'string' => 'The :attribute may not be greater than :max characters.',
49 | 'array' => 'The :attribute may not have more than :max items.',
50 | ],
51 | 'mimes' => 'The :attribute must be a file of type: :values.',
52 | 'min' => [
53 | 'numeric' => 'The :attribute must be at least :min.',
54 | 'file' => 'The :attribute must be at least :min kilobytes.',
55 | 'string' => 'The :attribute must be at least :min characters.',
56 | 'array' => 'The :attribute must have at least :min items.',
57 | ],
58 | 'not_in' => 'The selected :attribute is invalid.',
59 | 'numeric' => 'The :attribute must be a number.',
60 | 'regex' => 'The :attribute format is invalid.',
61 | 'required' => 'The :attribute field is required.',
62 | 'required_if' => 'The :attribute field is required when :other is :value.',
63 | 'required_with' => 'The :attribute field is required when :values is present.',
64 | 'required_with_all' => 'The :attribute field is required when :values is present.',
65 | 'required_without' => 'The :attribute field is required when :values is not present.',
66 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
67 | 'same' => 'The :attribute and :other must match.',
68 | 'size' => [
69 | 'numeric' => 'The :attribute must be :size.',
70 | 'file' => 'The :attribute must be :size kilobytes.',
71 | 'string' => 'The :attribute must be :size characters.',
72 | 'array' => 'The :attribute must contain :size items.',
73 | ],
74 | 'string' => 'The :attribute must be a string.',
75 | 'timezone' => 'The :attribute must be a valid zone.',
76 | 'unique' => 'The :attribute has already been taken.',
77 | 'url' => 'The :attribute format is invalid.',
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Custom Validation Language Lines
82 | |--------------------------------------------------------------------------
83 | |
84 | | Here you may specify custom validation messages for attributes using the
85 | | convention "attribute.rule" to name the lines. This makes it quick to
86 | | specify a specific custom language line for a given attribute rule.
87 | |
88 | */
89 |
90 | 'custom' => [
91 | 'attribute-name' => [
92 | 'rule-name' => 'custom-message',
93 | ],
94 | ],
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Custom Validation Attributes
99 | |--------------------------------------------------------------------------
100 | |
101 | | The following language lines are used to swap attribute place-holders
102 | | with something more reader friendly such as E-Mail Address instead
103 | | of "email". This simply helps us make messages a little cleaner.
104 | |
105 | */
106 |
107 | 'attributes' => [],
108 |
109 | ];
110 |
--------------------------------------------------------------------------------
/webroot/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_DEBUG', false),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application URL
21 | |--------------------------------------------------------------------------
22 | |
23 | | This URL is used by the console to properly generate URLs when using
24 | | the Artisan command line tool. You should set this to the root of
25 | | your application so that it is used when running Artisan tasks.
26 | |
27 | */
28 |
29 | 'url' => 'http://localhost',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application Timezone
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may specify the default timezone for your application, which
37 | | will be used by the PHP date and date-time functions. We have gone
38 | | ahead and set this to a sensible default for you out of the box.
39 | |
40 | */
41 |
42 | 'timezone' => 'UTC',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Locale Configuration
47 | |--------------------------------------------------------------------------
48 | |
49 | | The application locale determines the default locale that will be used
50 | | by the translation service provider. You are free to set this value
51 | | to any of the locales which will be supported by the application.
52 | |
53 | */
54 |
55 | 'locale' => 'en',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Application Fallback Locale
60 | |--------------------------------------------------------------------------
61 | |
62 | | The fallback locale determines the locale to use when the current one
63 | | is not available. You may change the value to correspond to any of
64 | | the language folders that are provided through your application.
65 | |
66 | */
67 |
68 | 'fallback_locale' => 'en',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Encryption Key
73 | |--------------------------------------------------------------------------
74 | |
75 | | This key is used by the Illuminate encrypter service and should be set
76 | | to a random, 32 character string, otherwise these encrypted strings
77 | | will not be safe. Please do this before deploying an application!
78 | |
79 | */
80 |
81 | 'key' => env('APP_KEY', 'SomeRandomString'),
82 |
83 | 'cipher' => 'AES-256-CBC',
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | Logging Configuration
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may configure the log settings for your application. Out of
91 | | the box, Laravel uses the Monolog PHP logging library. This gives
92 | | you a variety of powerful log handlers / formatters to utilize.
93 | |
94 | | Available Settings: "single", "daily", "syslog", "errorlog"
95 | |
96 | */
97 |
98 | 'log' => 'single',
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Autoloaded Service Providers
103 | |--------------------------------------------------------------------------
104 | |
105 | | The service providers listed here will be automatically loaded on the
106 | | request to your application. Feel free to add your own services to
107 | | this array to grant expanded functionality to your applications.
108 | |
109 | */
110 |
111 | 'providers' => [
112 |
113 | /*
114 | * Laravel Framework Service Providers...
115 | */
116 | Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
117 | Illuminate\Auth\AuthServiceProvider::class,
118 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
119 | Illuminate\Bus\BusServiceProvider::class,
120 | Illuminate\Cache\CacheServiceProvider::class,
121 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
122 | Illuminate\Routing\ControllerServiceProvider::class,
123 | Illuminate\Cookie\CookieServiceProvider::class,
124 | Illuminate\Database\DatabaseServiceProvider::class,
125 | Illuminate\Encryption\EncryptionServiceProvider::class,
126 | Illuminate\Filesystem\FilesystemServiceProvider::class,
127 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
128 | Illuminate\Hashing\HashServiceProvider::class,
129 | Illuminate\Mail\MailServiceProvider::class,
130 | Illuminate\Pagination\PaginationServiceProvider::class,
131 | Illuminate\Pipeline\PipelineServiceProvider::class,
132 | Illuminate\Queue\QueueServiceProvider::class,
133 | Illuminate\Redis\RedisServiceProvider::class,
134 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
135 | Illuminate\Session\SessionServiceProvider::class,
136 | Illuminate\Translation\TranslationServiceProvider::class,
137 | Illuminate\Validation\ValidationServiceProvider::class,
138 | Illuminate\View\ViewServiceProvider::class,
139 |
140 | /*
141 | * Application Service Providers...
142 | */
143 | App\Providers\AppServiceProvider::class,
144 | App\Providers\AuthServiceProvider::class,
145 | App\Providers\EventServiceProvider::class,
146 | App\Providers\RouteServiceProvider::class,
147 |
148 | ],
149 |
150 | /*
151 | |--------------------------------------------------------------------------
152 | | Class Aliases
153 | |--------------------------------------------------------------------------
154 | |
155 | | This array of class aliases will be registered when this application
156 | | is started. However, feel free to register as many as you wish as
157 | | the aliases are "lazy" loaded so they don't hinder performance.
158 | |
159 | */
160 |
161 | 'aliases' => [
162 |
163 | 'App' => Illuminate\Support\Facades\App::class,
164 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
165 | 'Auth' => Illuminate\Support\Facades\Auth::class,
166 | 'Blade' => Illuminate\Support\Facades\Blade::class,
167 | 'Bus' => Illuminate\Support\Facades\Bus::class,
168 | 'Cache' => Illuminate\Support\Facades\Cache::class,
169 | 'Config' => Illuminate\Support\Facades\Config::class,
170 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
171 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
172 | 'DB' => Illuminate\Support\Facades\DB::class,
173 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
174 | 'Event' => Illuminate\Support\Facades\Event::class,
175 | 'File' => Illuminate\Support\Facades\File::class,
176 | 'Gate' => Illuminate\Support\Facades\Gate::class,
177 | 'Hash' => Illuminate\Support\Facades\Hash::class,
178 | 'Input' => Illuminate\Support\Facades\Input::class,
179 | 'Inspiring' => Illuminate\Foundation\Inspiring::class,
180 | 'Lang' => Illuminate\Support\Facades\Lang::class,
181 | 'Log' => Illuminate\Support\Facades\Log::class,
182 | 'Mail' => Illuminate\Support\Facades\Mail::class,
183 | 'Password' => Illuminate\Support\Facades\Password::class,
184 | 'Queue' => Illuminate\Support\Facades\Queue::class,
185 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
186 | 'Redis' => Illuminate\Support\Facades\Redis::class,
187 | 'Request' => Illuminate\Support\Facades\Request::class,
188 | 'Response' => Illuminate\Support\Facades\Response::class,
189 | 'Route' => Illuminate\Support\Facades\Route::class,
190 | 'Schema' => Illuminate\Support\Facades\Schema::class,
191 | 'Session' => Illuminate\Support\Facades\Session::class,
192 | 'Storage' => Illuminate\Support\Facades\Storage::class,
193 | 'URL' => Illuminate\Support\Facades\URL::class,
194 | 'Validator' => Illuminate\Support\Facades\Validator::class,
195 | 'View' => Illuminate\Support\Facades\View::class,
196 |
197 | ],
198 |
199 | ];
200 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
203 |
--------------------------------------------------------------------------------
/config/php/php.ini:
--------------------------------------------------------------------------------
1 | [PHP]
2 |
3 | ;;;;;;;;;;;;;;;;;;;
4 | ; About php.ini ;
5 | ;;;;;;;;;;;;;;;;;;;
6 | ; PHP's initialization file, generally called php.ini, is responsible for
7 | ; configuring many of the aspects of PHP's behavior.
8 |
9 | ; PHP attempts to find and load this configuration from a number of locations.
10 | ; The following is a summary of its search order:
11 | ; 1. SAPI module specific location.
12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
14 | ; 4. Current working directory (except CLI)
15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP
16 | ; (otherwise in Windows)
17 | ; 6. The directory from the --with-config-file-path compile time option, or the
18 | ; Windows directory (C:\windows or C:\winnt)
19 | ; See the PHP docs for more specific information.
20 | ; http://php.net/configuration.file
21 |
22 | ; The syntax of the file is extremely simple. Whitespace and lines
23 | ; beginning with a semicolon are silently ignored (as you probably guessed).
24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though
25 | ; they might mean something in the future.
26 |
27 | ; Directives following the section heading [PATH=/www/mysite] only
28 | ; apply to PHP files in the /www/mysite directory. Directives
29 | ; following the section heading [HOST=www.example.com] only apply to
30 | ; PHP files served from www.example.com. Directives set in these
31 | ; special sections cannot be overridden by user-defined INI files or
32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
33 | ; CGI/FastCGI.
34 | ; http://php.net/ini.sections
35 |
36 | ; Directives are specified using the following syntax:
37 | ; directive = value
38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
39 | ; Directives are variables used to configure PHP or PHP extensions.
40 | ; There is no name validation. If PHP can't find an expected
41 | ; directive because it is not set or is mistyped, a default value will be used.
42 |
43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
46 | ; previously set variable or directive (e.g. ${foo})
47 |
48 | ; Expressions in the INI file are limited to bitwise operators and parentheses:
49 | ; | bitwise OR
50 | ; ^ bitwise XOR
51 | ; & bitwise AND
52 | ; ~ bitwise NOT
53 | ; ! boolean NOT
54 |
55 | ; Boolean flags can be turned on using the values 1, On, True or Yes.
56 | ; They can be turned off using the values 0, Off, False or No.
57 |
58 | ; An empty string can be denoted by simply not writing anything after the equal
59 | ; sign, or by using the None keyword:
60 |
61 | ; foo = ; sets foo to an empty string
62 | ; foo = None ; sets foo to an empty string
63 | ; foo = "None" ; sets foo to the string 'None'
64 |
65 | ; If you use constants in your value, and these constants belong to a
66 | ; dynamically loaded extension (either a PHP extension or a Zend extension),
67 | ; you may only use these constants *after* the line that loads the extension.
68 |
69 | ;;;;;;;;;;;;;;;;;;;
70 | ; About this file ;
71 | ;;;;;;;;;;;;;;;;;;;
72 | ; PHP comes packaged with two INI files. One that is recommended to be used
73 | ; in production environments and one that is recommended to be used in
74 | ; development environments.
75 |
76 | ; php.ini-production contains settings which hold security, performance and
77 | ; best practices at its core. But please be aware, these settings may break
78 | ; compatibility with older or less security conscience applications. We
79 | ; recommending using the production ini in production and testing environments.
80 |
81 | ; php.ini-development is very similar to its production variant, except it is
82 | ; much more verbose when it comes to errors. We recommend using the
83 | ; development version only in development environments, as errors shown to
84 | ; application users can inadvertently leak otherwise secure information.
85 |
86 | ; This is php.ini-production INI file.
87 |
88 | ;;;;;;;;;;;;;;;;;;;
89 | ; Quick Reference ;
90 | ;;;;;;;;;;;;;;;;;;;
91 | ; The following are all the settings which are different in either the production
92 | ; or development versions of the INIs with respect to PHP's default behavior.
93 | ; Please see the actual settings later in the document for more details as to why
94 | ; we recommend these changes in PHP's behavior.
95 |
96 | ; display_errors
97 | ; Default Value: On
98 | ; Development Value: On
99 | ; Production Value: Off
100 |
101 | ; display_startup_errors
102 | ; Default Value: Off
103 | ; Development Value: On
104 | ; Production Value: Off
105 |
106 | ; error_reporting
107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
108 | ; Development Value: E_ALL
109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110 |
111 | ; html_errors
112 | ; Default Value: On
113 | ; Development Value: On
114 | ; Production value: On
115 |
116 | ; log_errors
117 | ; Default Value: Off
118 | ; Development Value: On
119 | ; Production Value: On
120 |
121 | ; max_input_time
122 | ; Default Value: -1 (Unlimited)
123 | ; Development Value: 60 (60 seconds)
124 | ; Production Value: 60 (60 seconds)
125 |
126 | ; output_buffering
127 | ; Default Value: Off
128 | ; Development Value: 4096
129 | ; Production Value: 4096
130 |
131 | ; register_argc_argv
132 | ; Default Value: On
133 | ; Development Value: Off
134 | ; Production Value: Off
135 |
136 | ; request_order
137 | ; Default Value: None
138 | ; Development Value: "GP"
139 | ; Production Value: "GP"
140 |
141 | ; session.gc_divisor
142 | ; Default Value: 100
143 | ; Development Value: 1000
144 | ; Production Value: 1000
145 |
146 | ; session.hash_bits_per_character
147 | ; Default Value: 4
148 | ; Development Value: 5
149 | ; Production Value: 5
150 |
151 | ; short_open_tag
152 | ; Default Value: On
153 | ; Development Value: Off
154 | ; Production Value: Off
155 |
156 | ; track_errors
157 | ; Default Value: Off
158 | ; Development Value: On
159 | ; Production Value: Off
160 |
161 | ; url_rewriter.tags
162 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
163 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
164 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
165 |
166 | ; variables_order
167 | ; Default Value: "EGPCS"
168 | ; Development Value: "GPCS"
169 | ; Production Value: "GPCS"
170 |
171 | ;;;;;;;;;;;;;;;;;;;;
172 | ; php.ini Options ;
173 | ;;;;;;;;;;;;;;;;;;;;
174 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
175 | ;user_ini.filename = ".user.ini"
176 |
177 | ; To disable this feature set this option to empty value
178 | ;user_ini.filename =
179 |
180 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
181 | ;user_ini.cache_ttl = 300
182 |
183 | ;;;;;;;;;;;;;;;;;;;;
184 | ; Language Options ;
185 | ;;;;;;;;;;;;;;;;;;;;
186 |
187 | ; Enable the PHP scripting language engine under Apache.
188 | ; http://php.net/engine
189 | engine = On
190 |
191 | ; This directive determines whether or not PHP will recognize code between
192 | ; and ?> tags as PHP source which should be processed as such. It is
193 | ; generally recommended that should be used and that this feature
194 | ; should be disabled, as enabling it may result in issues when generating XML
195 | ; documents, however this remains supported for backward compatibility reasons.
196 | ; Note that this directive does not control the = shorthand tag, which can be
197 | ; used regardless of this directive.
198 | ; Default Value: On
199 | ; Development Value: Off
200 | ; Production Value: Off
201 | ; http://php.net/short-open-tag
202 | short_open_tag = Off
203 |
204 | ; Allow ASP-style <% %> tags.
205 | ; http://php.net/asp-tags
206 | asp_tags = Off
207 |
208 | ; The number of significant digits displayed in floating point numbers.
209 | ; http://php.net/precision
210 | precision = 14
211 |
212 | ; Output buffering is a mechanism for controlling how much output data
213 | ; (excluding headers and cookies) PHP should keep internally before pushing that
214 | ; data to the client. If your application's output exceeds this setting, PHP
215 | ; will send that data in chunks of roughly the size you specify.
216 | ; Turning on this setting and managing its maximum buffer size can yield some
217 | ; interesting side-effects depending on your application and web server.
218 | ; You may be able to send headers and cookies after you've already sent output
219 | ; through print or echo. You also may see performance benefits if your server is
220 | ; emitting less packets due to buffered output versus PHP streaming the output
221 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance
222 | ; reasons.
223 | ; Note: Output buffering can also be controlled via Output Buffering Control
224 | ; functions.
225 | ; Possible Values:
226 | ; On = Enabled and buffer is unlimited. (Use with caution)
227 | ; Off = Disabled
228 | ; Integer = Enables the buffer and sets its maximum size in bytes.
229 | ; Note: This directive is hardcoded to Off for the CLI SAPI
230 | ; Default Value: Off
231 | ; Development Value: 4096
232 | ; Production Value: 4096
233 | ; http://php.net/output-buffering
234 | output_buffering = 4096
235 |
236 | ; You can redirect all of the output of your scripts to a function. For
237 | ; example, if you set output_handler to "mb_output_handler", character
238 | ; encoding will be transparently converted to the specified encoding.
239 | ; Setting any output handler automatically turns on output buffering.
240 | ; Note: People who wrote portable scripts should not depend on this ini
241 | ; directive. Instead, explicitly set the output handler using ob_start().
242 | ; Using this ini directive may cause problems unless you know what script
243 | ; is doing.
244 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
245 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
246 | ; Note: output_handler must be empty if this is set 'On' !!!!
247 | ; Instead you must use zlib.output_handler.
248 | ; http://php.net/output-handler
249 | ;output_handler =
250 |
251 | ; Transparent output compression using the zlib library
252 | ; Valid values for this option are 'off', 'on', or a specific buffer size
253 | ; to be used for compression (default is 4KB)
254 | ; Note: Resulting chunk size may vary due to nature of compression. PHP
255 | ; outputs chunks that are few hundreds bytes each as a result of
256 | ; compression. If you prefer a larger chunk size for better
257 | ; performance, enable output_buffering in addition.
258 | ; Note: You need to use zlib.output_handler instead of the standard
259 | ; output_handler, or otherwise the output will be corrupted.
260 | ; http://php.net/zlib.output-compression
261 | zlib.output_compression = Off
262 |
263 | ; http://php.net/zlib.output-compression-level
264 | ;zlib.output_compression_level = -1
265 |
266 | ; You cannot specify additional output handlers if zlib.output_compression
267 | ; is activated here. This setting does the same as output_handler but in
268 | ; a different order.
269 | ; http://php.net/zlib.output-handler
270 | ;zlib.output_handler =
271 |
272 | ; Implicit flush tells PHP to tell the output layer to flush itself
273 | ; automatically after every output block. This is equivalent to calling the
274 | ; PHP function flush() after each and every call to print() or echo() and each
275 | ; and every HTML block. Turning this option on has serious performance
276 | ; implications and is generally recommended for debugging purposes only.
277 | ; http://php.net/implicit-flush
278 | ; Note: This directive is hardcoded to On for the CLI SAPI
279 | implicit_flush = Off
280 |
281 | ; The unserialize callback function will be called (with the undefined class'
282 | ; name as parameter), if the unserializer finds an undefined class
283 | ; which should be instantiated. A warning appears if the specified function is
284 | ; not defined, or if the function doesn't include/implement the missing class.
285 | ; So only set this entry, if you really want to implement such a
286 | ; callback-function.
287 | unserialize_callback_func =
288 |
289 | ; When floats & doubles are serialized store serialize_precision significant
290 | ; digits after the floating point. The default value ensures that when floats
291 | ; are decoded with unserialize, the data will remain the same.
292 | serialize_precision = 17
293 |
294 | ; open_basedir, if set, limits all file operations to the defined directory
295 | ; and below. This directive makes most sense if used in a per-directory
296 | ; or per-virtualhost web server configuration file. This directive is
297 | ; *NOT* affected by whether Safe Mode is turned On or Off.
298 | ; http://php.net/open-basedir
299 | ;open_basedir =
300 |
301 | ; This directive allows you to disable certain functions for security reasons.
302 | ; It receives a comma-delimited list of function names. This directive is
303 | ; *NOT* affected by whether Safe Mode is turned On or Off.
304 | ; http://php.net/disable-functions
305 | disable_functions =
306 |
307 | ; This directive allows you to disable certain classes for security reasons.
308 | ; It receives a comma-delimited list of class names. This directive is
309 | ; *NOT* affected by whether Safe Mode is turned On or Off.
310 | ; http://php.net/disable-classes
311 | disable_classes =
312 |
313 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in
314 | ; would work.
315 | ; http://php.net/syntax-highlighting
316 | ;highlight.string = #DD0000
317 | ;highlight.comment = #FF9900
318 | ;highlight.keyword = #007700
319 | ;highlight.default = #0000BB
320 | ;highlight.html = #000000
321 |
322 | ; If enabled, the request will be allowed to complete even if the user aborts
323 | ; the request. Consider enabling it if executing long requests, which may end up
324 | ; being interrupted by the user or a browser timing out. PHP's default behavior
325 | ; is to disable this feature.
326 | ; http://php.net/ignore-user-abort
327 | ;ignore_user_abort = On
328 |
329 | ; Determines the size of the realpath cache to be used by PHP. This value should
330 | ; be increased on systems where PHP opens many files to reflect the quantity of
331 | ; the file operations performed.
332 | ; http://php.net/realpath-cache-size
333 | ;realpath_cache_size = 16k
334 |
335 | ; Duration of time, in seconds for which to cache realpath information for a given
336 | ; file or directory. For systems with rarely changing files, consider increasing this
337 | ; value.
338 | ; http://php.net/realpath-cache-ttl
339 | ;realpath_cache_ttl = 120
340 |
341 | ; Enables or disables the circular reference collector.
342 | ; http://php.net/zend.enable-gc
343 | zend.enable_gc = On
344 |
345 | ; If enabled, scripts may be written in encodings that are incompatible with
346 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
347 | ; encodings. To use this feature, mbstring extension must be enabled.
348 | ; Default: Off
349 | ;zend.multibyte = Off
350 |
351 | ; Allows to set the default encoding for the scripts. This value will be used
352 | ; unless "declare(encoding=...)" directive appears at the top of the script.
353 | ; Only affects if zend.multibyte is set.
354 | ; Default: ""
355 | ;zend.script_encoding =
356 |
357 | ;;;;;;;;;;;;;;;;;
358 | ; Miscellaneous ;
359 | ;;;;;;;;;;;;;;;;;
360 |
361 | ; Decides whether PHP may expose the fact that it is installed on the server
362 | ; (e.g. by adding its signature to the Web server header). It is no security
363 | ; threat in any way, but it makes it possible to determine whether you use PHP
364 | ; on your server or not.
365 | ; http://php.net/expose-php
366 | expose_php = On
367 |
368 | ;;;;;;;;;;;;;;;;;;;
369 | ; Resource Limits ;
370 | ;;;;;;;;;;;;;;;;;;;
371 |
372 | ; Maximum execution time of each script, in seconds
373 | ; http://php.net/max-execution-time
374 | ; Note: This directive is hardcoded to 0 for the CLI SAPI
375 | max_execution_time = 30
376 |
377 | ; Maximum amount of time each script may spend parsing request data. It's a good
378 | ; idea to limit this time on productions servers in order to eliminate unexpectedly
379 | ; long running scripts.
380 | ; Note: This directive is hardcoded to -1 for the CLI SAPI
381 | ; Default Value: -1 (Unlimited)
382 | ; Development Value: 60 (60 seconds)
383 | ; Production Value: 60 (60 seconds)
384 | ; http://php.net/max-input-time
385 | max_input_time = 60
386 |
387 | ; Maximum input variable nesting level
388 | ; http://php.net/max-input-nesting-level
389 | ;max_input_nesting_level = 64
390 |
391 | ; How many GET/POST/COOKIE input variables may be accepted
392 | ; max_input_vars = 1000
393 |
394 | ; Maximum amount of memory a script may consume (128MB)
395 | ; http://php.net/memory-limit
396 | memory_limit = 1024m
397 |
398 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
399 | ; Error handling and logging ;
400 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
401 |
402 | ; This directive informs PHP of which errors, warnings and notices you would like
403 | ; it to take action for. The recommended way of setting values for this
404 | ; directive is through the use of the error level constants and bitwise
405 | ; operators. The error level constants are below here for convenience as well as
406 | ; some common settings and their meanings.
407 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
408 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and
409 | ; recommended coding standards in PHP. For performance reasons, this is the
410 | ; recommend error reporting setting. Your production server shouldn't be wasting
411 | ; resources complaining about best practices and coding standards. That's what
412 | ; development servers and development settings are for.
413 | ; Note: The php.ini-development file has this setting as E_ALL. This
414 | ; means it pretty much reports everything which is exactly what you want during
415 | ; development and early testing.
416 | ;
417 | ; Error Level Constants:
418 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
419 | ; E_ERROR - fatal run-time errors
420 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors
421 | ; E_WARNING - run-time warnings (non-fatal errors)
422 | ; E_PARSE - compile-time parse errors
423 | ; E_NOTICE - run-time notices (these are warnings which often result
424 | ; from a bug in your code, but it's possible that it was
425 | ; intentional (e.g., using an uninitialized variable and
426 | ; relying on the fact it is automatically initialized to an
427 | ; empty string)
428 | ; E_STRICT - run-time notices, enable to have PHP suggest changes
429 | ; to your code which will ensure the best interoperability
430 | ; and forward compatibility of your code
431 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
432 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
433 | ; initial startup
434 | ; E_COMPILE_ERROR - fatal compile-time errors
435 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
436 | ; E_USER_ERROR - user-generated error message
437 | ; E_USER_WARNING - user-generated warning message
438 | ; E_USER_NOTICE - user-generated notice message
439 | ; E_DEPRECATED - warn about code that will not work in future versions
440 | ; of PHP
441 | ; E_USER_DEPRECATED - user-generated deprecation warnings
442 | ;
443 | ; Common Values:
444 | ; E_ALL (Show all errors, warnings and notices including coding standards.)
445 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices)
446 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
447 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
448 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
449 | ; Development Value: E_ALL
450 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
451 | ; http://php.net/error-reporting
452 | error_reporting = E_ALL
453 |
454 | ; This directive controls whether or not and where PHP will output errors,
455 | ; notices and warnings too. Error output is very useful during development, but
456 | ; it could be very dangerous in production environments. Depending on the code
457 | ; which is triggering the error, sensitive information could potentially leak
458 | ; out of your application such as database usernames and passwords or worse.
459 | ; For production environments, we recommend logging errors rather than
460 | ; sending them to STDOUT.
461 | ; Possible Values:
462 | ; Off = Do not display any errors
463 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
464 | ; On or stdout = Display errors to STDOUT
465 | ; Default Value: On
466 | ; Development Value: On
467 | ; Production Value: Off
468 | ; http://php.net/display-errors
469 | display_errors = On
470 |
471 | ; The display of errors which occur during PHP's startup sequence are handled
472 | ; separately from display_errors. PHP's default behavior is to suppress those
473 | ; errors from clients. Turning the display of startup errors on can be useful in
474 | ; debugging configuration problems. We strongly recommend you
475 | ; set this to 'off' for production servers.
476 | ; Default Value: Off
477 | ; Development Value: On
478 | ; Production Value: Off
479 | ; http://php.net/display-startup-errors
480 | display_startup_errors = Off
481 |
482 | ; Besides displaying errors, PHP can also log errors to locations such as a
483 | ; server-specific log, STDERR, or a location specified by the error_log
484 | ; directive found below. While errors should not be displayed on productions
485 | ; servers they should still be monitored and logging is a great way to do that.
486 | ; Default Value: Off
487 | ; Development Value: On
488 | ; Production Value: On
489 | ; http://php.net/log-errors
490 | log_errors = On
491 |
492 | ; Set maximum length of log_errors. In error_log information about the source is
493 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
494 | ; http://php.net/log-errors-max-len
495 | log_errors_max_len = 1024
496 |
497 | ; Do not log repeated messages. Repeated errors must occur in same file on same
498 | ; line unless ignore_repeated_source is set true.
499 | ; http://php.net/ignore-repeated-errors
500 | ignore_repeated_errors = Off
501 |
502 | ; Ignore source of message when ignoring repeated messages. When this setting
503 | ; is On you will not log errors with repeated messages from different files or
504 | ; source lines.
505 | ; http://php.net/ignore-repeated-source
506 | ignore_repeated_source = Off
507 |
508 | ; If this parameter is set to Off, then memory leaks will not be shown (on
509 | ; stdout or in the log). This has only effect in a debug compile, and if
510 | ; error reporting includes E_WARNING in the allowed list
511 | ; http://php.net/report-memleaks
512 | report_memleaks = On
513 |
514 | ; This setting is on by default.
515 | ;report_zend_debug = 0
516 |
517 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
518 | ; to On can assist in debugging and is appropriate for development servers. It should
519 | ; however be disabled on production servers.
520 | ; Default Value: Off
521 | ; Development Value: On
522 | ; Production Value: Off
523 | ; http://php.net/track-errors
524 | track_errors = Off
525 |
526 | ; Turn off normal error reporting and emit XML-RPC error XML
527 | ; http://php.net/xmlrpc-errors
528 | ;xmlrpc_errors = 0
529 |
530 | ; An XML-RPC faultCode
531 | ;xmlrpc_error_number = 0
532 |
533 | ; When PHP displays or logs an error, it has the capability of formatting the
534 | ; error message as HTML for easier reading. This directive controls whether
535 | ; the error message is formatted as HTML or not.
536 | ; Note: This directive is hardcoded to Off for the CLI SAPI
537 | ; Default Value: On
538 | ; Development Value: On
539 | ; Production value: On
540 | ; http://php.net/html-errors
541 | html_errors = On
542 |
543 | ; If html_errors is set to On *and* docref_root is not empty, then PHP
544 | ; produces clickable error messages that direct to a page describing the error
545 | ; or function causing the error in detail.
546 | ; You can download a copy of the PHP manual from http://php.net/docs
547 | ; and change docref_root to the base URL of your local copy including the
548 | ; leading '/'. You must also specify the file extension being used including
549 | ; the dot. PHP's default behavior is to leave these settings empty, in which
550 | ; case no links to documentation are generated.
551 | ; Note: Never use this feature for production boxes.
552 | ; http://php.net/docref-root
553 | ; Examples
554 | ;docref_root = "/phpmanual/"
555 |
556 | ; http://php.net/docref-ext
557 | ;docref_ext = .html
558 |
559 | ; String to output before an error message. PHP's default behavior is to leave
560 | ; this setting blank.
561 | ; http://php.net/error-prepend-string
562 | ; Example:
563 | ;error_prepend_string = ""
564 |
565 | ; String to output after an error message. PHP's default behavior is to leave
566 | ; this setting blank.
567 | ; http://php.net/error-append-string
568 | ; Example:
569 | ;error_append_string = ""
570 |
571 | ; Log errors to specified file. PHP's default behavior is to leave this value
572 | ; empty.
573 | ; http://php.net/error-log
574 | ; Example:
575 | ;error_log = php_errors.log
576 | ; Log errors to syslog.
577 | ;error_log = syslog
578 |
579 | ;windows.show_crt_warning
580 | ; Default value: 0
581 | ; Development value: 0
582 | ; Production value: 0
583 |
584 | ;;;;;;;;;;;;;;;;;
585 | ; Data Handling ;
586 | ;;;;;;;;;;;;;;;;;
587 |
588 | ; The separator used in PHP generated URLs to separate arguments.
589 | ; PHP's default setting is "&".
590 | ; http://php.net/arg-separator.output
591 | ; Example:
592 | ;arg_separator.output = "&"
593 |
594 | ; List of separator(s) used by PHP to parse input URLs into variables.
595 | ; PHP's default setting is "&".
596 | ; NOTE: Every character in this directive is considered as separator!
597 | ; http://php.net/arg-separator.input
598 | ; Example:
599 | ;arg_separator.input = ";&"
600 |
601 | ; This directive determines which super global arrays are registered when PHP
602 | ; starts up. G,P,C,E & S are abbreviations for the following respective super
603 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
604 | ; paid for the registration of these arrays and because ENV is not as commonly
605 | ; used as the others, ENV is not recommended on productions servers. You
606 | ; can still get access to the environment variables through getenv() should you
607 | ; need to.
608 | ; Default Value: "EGPCS"
609 | ; Development Value: "GPCS"
610 | ; Production Value: "GPCS";
611 | ; http://php.net/variables-order
612 | variables_order = "GPCS"
613 |
614 | ; This directive determines which super global data (G,P,C,E & S) should
615 | ; be registered into the super global array REQUEST. If so, it also determines
616 | ; the order in which that data is registered. The values for this directive are
617 | ; specified in the same manner as the variables_order directive, EXCEPT one.
618 | ; Leaving this value empty will cause PHP to use the value set in the
619 | ; variables_order directive. It does not mean it will leave the super globals
620 | ; array REQUEST empty.
621 | ; Default Value: None
622 | ; Development Value: "GP"
623 | ; Production Value: "GP"
624 | ; http://php.net/request-order
625 | request_order = "GP"
626 |
627 | ; This directive determines whether PHP registers $argv & $argc each time it
628 | ; runs. $argv contains an array of all the arguments passed to PHP when a script
629 | ; is invoked. $argc contains an integer representing the number of arguments
630 | ; that were passed when the script was invoked. These arrays are extremely
631 | ; useful when running scripts from the command line. When this directive is
632 | ; enabled, registering these variables consumes CPU cycles and memory each time
633 | ; a script is executed. For performance reasons, this feature should be disabled
634 | ; on production servers.
635 | ; Note: This directive is hardcoded to On for the CLI SAPI
636 | ; Default Value: On
637 | ; Development Value: Off
638 | ; Production Value: Off
639 | ; http://php.net/register-argc-argv
640 | register_argc_argv = Off
641 |
642 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're
643 | ; first used (Just In Time) instead of when the script starts. If these
644 | ; variables are not used within a script, having this directive on will result
645 | ; in a performance gain. The PHP directive register_argc_argv must be disabled
646 | ; for this directive to have any affect.
647 | ; http://php.net/auto-globals-jit
648 | auto_globals_jit = On
649 |
650 | ; Whether PHP will read the POST data.
651 | ; This option is enabled by default.
652 | ; Most likely, you won't want to disable this option globally. It causes $_POST
653 | ; and $_FILES to always be empty; the only way you will be able to read the
654 | ; POST data will be through the php://input stream wrapper. This can be useful
655 | ; to proxy requests or to process the POST data in a memory efficient fashion.
656 | ; http://php.net/enable-post-data-reading
657 | ;enable_post_data_reading = Off
658 |
659 | ; Maximum size of POST data that PHP will accept.
660 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading
661 | ; is disabled through enable_post_data_reading.
662 | ; http://php.net/post-max-size
663 | post_max_size = 8M
664 |
665 | ; Automatically add files before PHP document.
666 | ; http://php.net/auto-prepend-file
667 | auto_prepend_file =
668 |
669 | ; Automatically add files after PHP document.
670 | ; http://php.net/auto-append-file
671 | auto_append_file =
672 |
673 | ; By default, PHP will output a character encoding using
674 | ; the Content-type: header. To disable sending of the charset, simply
675 | ; set it to be empty.
676 | ;
677 | ; PHP's built-in default is text/html
678 | ; http://php.net/default-mimetype
679 | default_mimetype = "text/html"
680 |
681 | ; PHP's default character set is set to empty.
682 | ; http://php.net/default-charset
683 | default_charset = "UTF-8"
684 |
685 | ; PHP internal character encoding is set to empty.
686 | ; If empty, default_charset is used.
687 | ; http://php.net/internal-encoding
688 | ;internal_encoding =
689 |
690 | ; PHP input character encoding is set to empty.
691 | ; http://php.net/input-encoding
692 | ;input_encoding =
693 |
694 | ; PHP output character encoding is set to empty.
695 | ; mbstring or iconv output handler is used.
696 | ; See also output_buffer.
697 | ; http://php.net/output-encoding
698 | ;output_encoding =
699 |
700 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
701 | ; to disable this feature and it will be removed in a future version.
702 | ; If post reading is disabled through enable_post_data_reading,
703 | ; $HTTP_RAW_POST_DATA is *NOT* populated.
704 | ; http://php.net/always-populate-raw-post-data
705 | ;always_populate_raw_post_data = -1
706 |
707 | ;;;;;;;;;;;;;;;;;;;;;;;;;
708 | ; Paths and Directories ;
709 | ;;;;;;;;;;;;;;;;;;;;;;;;;
710 |
711 | ; UNIX: "/path1:/path2"
712 | ;include_path = ".:/php/includes"
713 | ;
714 | ; Windows: "\path1;\path2"
715 | ;include_path = ".;c:\php\includes"
716 | ;
717 | ; PHP's default setting for include_path is ".;/path/to/php/pear"
718 | ; http://php.net/include-path
719 |
720 | ; The root of the PHP pages, used only if nonempty.
721 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
722 | ; if you are running php as a CGI under any web server (other than IIS)
723 | ; see documentation for security issues. The alternate is to use the
724 | ; cgi.force_redirect configuration below
725 | ; http://php.net/doc-root
726 | doc_root =
727 |
728 | ; The directory under which PHP opens the script using /~username used only
729 | ; if nonempty.
730 | ; http://php.net/user-dir
731 | user_dir =
732 |
733 | ; Directory in which the loadable extensions (modules) reside.
734 | ; http://php.net/extension-dir
735 | ; extension_dir = "./"
736 | ; On windows:
737 | ; extension_dir = "ext"
738 |
739 | ; Directory where the temporary files should be placed.
740 | ; Defaults to the system default (see sys_get_temp_dir)
741 | ; sys_temp_dir = "/tmp"
742 |
743 | ; Whether or not to enable the dl() function. The dl() function does NOT work
744 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
745 | ; disabled on them.
746 | ; http://php.net/enable-dl
747 | enable_dl = Off
748 |
749 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
750 | ; most web servers. Left undefined, PHP turns this on by default. You can
751 | ; turn it off here AT YOUR OWN RISK
752 | ; **You CAN safely turn this off for IIS, in fact, you MUST.**
753 | ; http://php.net/cgi.force-redirect
754 | ;cgi.force_redirect = 1
755 |
756 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
757 | ; every request. PHP's default behavior is to disable this feature.
758 | ;cgi.nph = 1
759 |
760 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
761 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
762 | ; will look for to know it is OK to continue execution. Setting this variable MAY
763 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
764 | ; http://php.net/cgi.redirect-status-env
765 | ;cgi.redirect_status_env =
766 |
767 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
768 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
769 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
770 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
771 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
772 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
773 | ; http://php.net/cgi.fix-pathinfo
774 | ;cgi.fix_pathinfo=1
775 |
776 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
777 | ; security tokens of the calling client. This allows IIS to define the
778 | ; security context that the request runs under. mod_fastcgi under Apache
779 | ; does not currently support this feature (03/17/2002)
780 | ; Set to 1 if running under IIS. Default is zero.
781 | ; http://php.net/fastcgi.impersonate
782 | ;fastcgi.impersonate = 1
783 |
784 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable
785 | ; this feature.
786 | ;fastcgi.logging = 0
787 |
788 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
789 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that
790 | ; is supported by Apache. When this option is set to 1, PHP will send
791 | ; RFC2616 compliant header.
792 | ; Default is zero.
793 | ; http://php.net/cgi.rfc2616-headers
794 | ;cgi.rfc2616_headers = 0
795 |
796 | ;;;;;;;;;;;;;;;;
797 | ; File Uploads ;
798 | ;;;;;;;;;;;;;;;;
799 |
800 | ; Whether to allow HTTP file uploads.
801 | ; http://php.net/file-uploads
802 | file_uploads = On
803 |
804 | ; Temporary directory for HTTP uploaded files (will use system default if not
805 | ; specified).
806 | ; http://php.net/upload-tmp-dir
807 | ;upload_tmp_dir =
808 |
809 | ; Maximum allowed size for uploaded files.
810 | ; http://php.net/upload-max-filesize
811 | upload_max_filesize = 2M
812 |
813 | ; Maximum number of files that can be uploaded via a single request
814 | max_file_uploads = 20
815 |
816 | ;;;;;;;;;;;;;;;;;;
817 | ; Fopen wrappers ;
818 | ;;;;;;;;;;;;;;;;;;
819 |
820 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
821 | ; http://php.net/allow-url-fopen
822 | allow_url_fopen = On
823 |
824 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
825 | ; http://php.net/allow-url-include
826 | allow_url_include = Off
827 |
828 | ; Define the anonymous ftp password (your email address). PHP's default setting
829 | ; for this is empty.
830 | ; http://php.net/from
831 | ;from="john@doe.com"
832 |
833 | ; Define the User-Agent string. PHP's default setting for this is empty.
834 | ; http://php.net/user-agent
835 | ;user_agent="PHP"
836 |
837 | ; Default timeout for socket based streams (seconds)
838 | ; http://php.net/default-socket-timeout
839 | default_socket_timeout = 60
840 |
841 | ; If your scripts have to deal with files from Macintosh systems,
842 | ; or you are running on a Mac and need to deal with files from
843 | ; unix or win32 systems, setting this flag will cause PHP to
844 | ; automatically detect the EOL character in those files so that
845 | ; fgets() and file() will work regardless of the source of the file.
846 | ; http://php.net/auto-detect-line-endings
847 | ;auto_detect_line_endings = Off
848 |
849 | ;;;;;;;;;;;;;;;;;;;;;;
850 | ; Dynamic Extensions ;
851 | ;;;;;;;;;;;;;;;;;;;;;;
852 |
853 | ; If you wish to have an extension loaded automatically, use the following
854 | ; syntax:
855 | ;
856 | ; extension=modulename.extension
857 | ;
858 | ; For example, on Windows:
859 | ;
860 | ; extension=msql.dll
861 | ;
862 | ; ... or under UNIX:
863 | ;
864 | ; extension=msql.so
865 | ;
866 | ; ... or with a path:
867 | ;
868 | ; extension=/path/to/extension/msql.so
869 | ;
870 | ; If you only provide the name of the extension, PHP will look for it in its
871 | ; default extension directory.
872 |
873 | ;;;;
874 | ; Note: packaged extension modules are now loaded via the .ini files
875 | ; found in the directory /etc/php.d; these are loaded by default.
876 | ;;;;
877 |
878 | ;;;;;;;;;;;;;;;;;;;
879 | ; Module Settings ;
880 | ;;;;;;;;;;;;;;;;;;;
881 |
882 | [CLI Server]
883 | ; Whether the CLI web server uses ANSI color coding in its terminal output.
884 | cli_server.color = On
885 |
886 | [Date]
887 | ; Defines the default timezone used by the date functions
888 | ; http://php.net/date.timezone
889 | date.timezone = PRC
890 |
891 | ; http://php.net/date.default-latitude
892 | ;date.default_latitude = 31.7667
893 |
894 | ; http://php.net/date.default-longitude
895 | ;date.default_longitude = 35.2333
896 |
897 | ; http://php.net/date.sunrise-zenith
898 | ;date.sunrise_zenith = 90.583333
899 |
900 | ; http://php.net/date.sunset-zenith
901 | ;date.sunset_zenith = 90.583333
902 |
903 | [filter]
904 | ; http://php.net/filter.default
905 | ;filter.default = unsafe_raw
906 |
907 | ; http://php.net/filter.default-flags
908 | ;filter.default_flags =
909 |
910 | [iconv]
911 | ; Use of this INI entry is deprecated, use global input_encoding instead.
912 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
913 | ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
914 | ;iconv.input_encoding =
915 |
916 | ; Use of this INI entry is deprecated, use global internal_encoding instead.
917 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
918 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
919 | ;iconv.internal_encoding =
920 |
921 | ; Use of this INI entry is deprecated, use global output_encoding instead.
922 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used.
923 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding
924 | ; To use an output encoding conversion, iconv's output handler must be set
925 | ; otherwise output encoding conversion cannot be performed.
926 | ;iconv.output_encoding =
927 |
928 | [intl]
929 | ;intl.default_locale =
930 | ; This directive allows you to produce PHP errors when some error
931 | ; happens within intl functions. The value is the level of the error produced.
932 | ; Default is 0, which does not produce any errors.
933 | ;intl.error_level = E_WARNING
934 |
935 | [sqlite]
936 | ; http://php.net/sqlite.assoc-case
937 | ;sqlite.assoc_case = 0
938 |
939 | [sqlite3]
940 | ;sqlite3.extension_dir =
941 |
942 | [Pcre]
943 | ;PCRE library backtracking limit.
944 | ; http://php.net/pcre.backtrack-limit
945 | ;pcre.backtrack_limit=100000
946 |
947 | ;PCRE library recursion limit.
948 | ;Please note that if you set this value to a high number you may consume all
949 | ;the available process stack and eventually crash PHP (due to reaching the
950 | ;stack size limit imposed by the Operating System).
951 | ; http://php.net/pcre.recursion-limit
952 | ;pcre.recursion_limit=100000
953 |
954 | [Pdo]
955 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
956 | ; http://php.net/pdo-odbc.connection-pooling
957 | ;pdo_odbc.connection_pooling=strict
958 |
959 | ;pdo_odbc.db2_instance_name
960 |
961 | [Pdo_mysql]
962 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
963 | ; http://php.net/pdo_mysql.cache_size
964 | pdo_mysql.cache_size = 2000
965 |
966 | ; Default socket name for local MySQL connects. If empty, uses the built-in
967 | ; MySQL defaults.
968 | ; http://php.net/pdo_mysql.default-socket
969 | pdo_mysql.default_socket=
970 |
971 | [Phar]
972 | ; http://php.net/phar.readonly
973 | ;phar.readonly = On
974 |
975 | ; http://php.net/phar.require-hash
976 | ;phar.require_hash = On
977 |
978 | ;phar.cache_list =
979 |
980 | [mail function]
981 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
982 | ; http://php.net/sendmail-path
983 | sendmail_path = /usr/sbin/sendmail -t -i
984 |
985 | ; Force the addition of the specified parameters to be passed as extra parameters
986 | ; to the sendmail binary. These parameters will always replace the value of
987 | ; the 5th parameter to mail(), even in safe mode.
988 | ;mail.force_extra_parameters =
989 |
990 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
991 | mail.add_x_header = On
992 |
993 | ; The path to a log file that will log all mail() calls. Log entries include
994 | ; the full path of the script, line number, To address and headers.
995 | ;mail.log =
996 | ; Log mail to syslog;
997 | ;mail.log = syslog
998 |
999 | [SQL]
1000 | ; http://php.net/sql.safe-mode
1001 | sql.safe_mode = Off
1002 |
1003 | [ODBC]
1004 | ; http://php.net/odbc.default-db
1005 | ;odbc.default_db = Not yet implemented
1006 |
1007 | ; http://php.net/odbc.default-user
1008 | ;odbc.default_user = Not yet implemented
1009 |
1010 | ; http://php.net/odbc.default-pw
1011 | ;odbc.default_pw = Not yet implemented
1012 |
1013 | ; Controls the ODBC cursor model.
1014 | ; Default: SQL_CURSOR_STATIC (default).
1015 | ;odbc.default_cursortype
1016 |
1017 | ; Allow or prevent persistent links.
1018 | ; http://php.net/odbc.allow-persistent
1019 | odbc.allow_persistent = On
1020 |
1021 | ; Check that a connection is still valid before reuse.
1022 | ; http://php.net/odbc.check-persistent
1023 | odbc.check_persistent = On
1024 |
1025 | ; Maximum number of persistent links. -1 means no limit.
1026 | ; http://php.net/odbc.max-persistent
1027 | odbc.max_persistent = -1
1028 |
1029 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1030 | ; http://php.net/odbc.max-links
1031 | odbc.max_links = -1
1032 |
1033 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means
1034 | ; passthru.
1035 | ; http://php.net/odbc.defaultlrl
1036 | odbc.defaultlrl = 4096
1037 |
1038 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
1039 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
1040 | ; of odbc.defaultlrl and odbc.defaultbinmode
1041 | ; http://php.net/odbc.defaultbinmode
1042 | odbc.defaultbinmode = 1
1043 |
1044 | ;birdstep.max_links = -1
1045 |
1046 | [Interbase]
1047 | ; Allow or prevent persistent links.
1048 | ibase.allow_persistent = 1
1049 |
1050 | ; Maximum number of persistent links. -1 means no limit.
1051 | ibase.max_persistent = -1
1052 |
1053 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1054 | ibase.max_links = -1
1055 |
1056 | ; Default database name for ibase_connect().
1057 | ;ibase.default_db =
1058 |
1059 | ; Default username for ibase_connect().
1060 | ;ibase.default_user =
1061 |
1062 | ; Default password for ibase_connect().
1063 | ;ibase.default_password =
1064 |
1065 | ; Default charset for ibase_connect().
1066 | ;ibase.default_charset =
1067 |
1068 | ; Default timestamp format.
1069 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1070 |
1071 | ; Default date format.
1072 | ibase.dateformat = "%Y-%m-%d"
1073 |
1074 | ; Default time format.
1075 | ibase.timeformat = "%H:%M:%S"
1076 |
1077 | [MySQL]
1078 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1079 | ; http://php.net/mysql.allow_local_infile
1080 | mysql.allow_local_infile = On
1081 |
1082 | ; Allow or prevent persistent links.
1083 | ; http://php.net/mysql.allow-persistent
1084 | mysql.allow_persistent = On
1085 |
1086 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1087 | ; http://php.net/mysql.cache_size
1088 | mysql.cache_size = 2000
1089 |
1090 | ; Maximum number of persistent links. -1 means no limit.
1091 | ; http://php.net/mysql.max-persistent
1092 | mysql.max_persistent = -1
1093 |
1094 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1095 | ; http://php.net/mysql.max-links
1096 | mysql.max_links = -1
1097 |
1098 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use
1099 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1100 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1101 | ; at MYSQL_PORT.
1102 | ; http://php.net/mysql.default-port
1103 | mysql.default_port =
1104 |
1105 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1106 | ; MySQL defaults.
1107 | ; http://php.net/mysql.default-socket
1108 | mysql.default_socket =
1109 |
1110 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1111 | ; http://php.net/mysql.default-host
1112 | mysql.default_host =
1113 |
1114 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1115 | ; http://php.net/mysql.default-user
1116 | mysql.default_user =
1117 |
1118 | ; Default password for mysql_connect() (doesn't apply in safe mode).
1119 | ; Note that this is generally a *bad* idea to store passwords in this file.
1120 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1121 | ; and reveal this password! And of course, any users with read access to this
1122 | ; file will be able to reveal the password as well.
1123 | ; http://php.net/mysql.default-password
1124 | mysql.default_password =
1125 |
1126 | ; Maximum time (in seconds) for connect timeout. -1 means no limit
1127 | ; http://php.net/mysql.connect-timeout
1128 | mysql.connect_timeout = 60
1129 |
1130 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1131 | ; SQL-Errors will be displayed.
1132 | ; http://php.net/mysql.trace-mode
1133 | mysql.trace_mode = Off
1134 |
1135 | [MySQLi]
1136 |
1137 | ; Maximum number of persistent links. -1 means no limit.
1138 | ; http://php.net/mysqli.max-persistent
1139 | mysqli.max_persistent = -1
1140 |
1141 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1142 | ; http://php.net/mysqli.allow_local_infile
1143 | ;mysqli.allow_local_infile = On
1144 |
1145 | ; Allow or prevent persistent links.
1146 | ; http://php.net/mysqli.allow-persistent
1147 | mysqli.allow_persistent = On
1148 |
1149 | ; Maximum number of links. -1 means no limit.
1150 | ; http://php.net/mysqli.max-links
1151 | mysqli.max_links = -1
1152 |
1153 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1154 | ; http://php.net/mysqli.cache_size
1155 | mysqli.cache_size = 2000
1156 |
1157 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1158 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1159 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1160 | ; at MYSQL_PORT.
1161 | ; http://php.net/mysqli.default-port
1162 | mysqli.default_port = 3306
1163 |
1164 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1165 | ; MySQL defaults.
1166 | ; http://php.net/mysqli.default-socket
1167 | mysqli.default_socket =
1168 |
1169 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1170 | ; http://php.net/mysqli.default-host
1171 | mysqli.default_host =
1172 |
1173 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1174 | ; http://php.net/mysqli.default-user
1175 | mysqli.default_user =
1176 |
1177 | ; Default password for mysqli_connect() (doesn't apply in safe mode).
1178 | ; Note that this is generally a *bad* idea to store passwords in this file.
1179 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1180 | ; and reveal this password! And of course, any users with read access to this
1181 | ; file will be able to reveal the password as well.
1182 | ; http://php.net/mysqli.default-pw
1183 | mysqli.default_pw =
1184 |
1185 | ; Allow or prevent reconnect
1186 | mysqli.reconnect = Off
1187 |
1188 | [mysqlnd]
1189 | ; Enable / Disable collection of general statistics by mysqlnd which can be
1190 | ; used to tune and monitor MySQL operations.
1191 | ; http://php.net/mysqlnd.collect_statistics
1192 | mysqlnd.collect_statistics = On
1193 |
1194 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
1195 | ; used to tune and monitor MySQL operations.
1196 | ; http://php.net/mysqlnd.collect_memory_statistics
1197 | mysqlnd.collect_memory_statistics = Off
1198 |
1199 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1200 | ; http://php.net/mysqlnd.net_cmd_buffer_size
1201 | ;mysqlnd.net_cmd_buffer_size = 2048
1202 |
1203 | ; Size of a pre-allocated buffer used for reading data sent by the server in
1204 | ; bytes.
1205 | ; http://php.net/mysqlnd.net_read_buffer_size
1206 | ;mysqlnd.net_read_buffer_size = 32768
1207 |
1208 | [OCI8]
1209 |
1210 | ; Connection: Enables privileged connections using external
1211 | ; credentials (OCI_SYSOPER, OCI_SYSDBA)
1212 | ; http://php.net/oci8.privileged-connect
1213 | ;oci8.privileged_connect = Off
1214 |
1215 | ; Connection: The maximum number of persistent OCI8 connections per
1216 | ; process. Using -1 means no limit.
1217 | ; http://php.net/oci8.max-persistent
1218 | ;oci8.max_persistent = -1
1219 |
1220 | ; Connection: The maximum number of seconds a process is allowed to
1221 | ; maintain an idle persistent connection. Using -1 means idle
1222 | ; persistent connections will be maintained forever.
1223 | ; http://php.net/oci8.persistent-timeout
1224 | ;oci8.persistent_timeout = -1
1225 |
1226 | ; Connection: The number of seconds that must pass before issuing a
1227 | ; ping during oci_pconnect() to check the connection validity. When
1228 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1229 | ; pings completely.
1230 | ; http://php.net/oci8.ping-interval
1231 | ;oci8.ping_interval = 60
1232 |
1233 | ; Connection: Set this to a user chosen connection class to be used
1234 | ; for all pooled server requests with Oracle 11g Database Resident
1235 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to
1236 | ; the same string for all web servers running the same application,
1237 | ; the database pool must be configured, and the connection string must
1238 | ; specify to use a pooled server.
1239 | ;oci8.connection_class =
1240 |
1241 | ; High Availability: Using On lets PHP receive Fast Application
1242 | ; Notification (FAN) events generated when a database node fails. The
1243 | ; database must also be configured to post FAN events.
1244 | ;oci8.events = Off
1245 |
1246 | ; Tuning: This option enables statement caching, and specifies how
1247 | ; many statements to cache. Using 0 disables statement caching.
1248 | ; http://php.net/oci8.statement-cache-size
1249 | ;oci8.statement_cache_size = 20
1250 |
1251 | ; Tuning: Enables statement prefetching and sets the default number of
1252 | ; rows that will be fetched automatically after statement execution.
1253 | ; http://php.net/oci8.default-prefetch
1254 | ;oci8.default_prefetch = 100
1255 |
1256 | ; Compatibility. Using On means oci_close() will not close
1257 | ; oci_connect() and oci_new_connect() connections.
1258 | ; http://php.net/oci8.old-oci-close-semantics
1259 | ;oci8.old_oci_close_semantics = Off
1260 |
1261 | [PostgreSQL]
1262 | ; Allow or prevent persistent links.
1263 | ; http://php.net/pgsql.allow-persistent
1264 | pgsql.allow_persistent = On
1265 |
1266 | ; Detect broken persistent links always with pg_pconnect().
1267 | ; Auto reset feature requires a little overheads.
1268 | ; http://php.net/pgsql.auto-reset-persistent
1269 | pgsql.auto_reset_persistent = Off
1270 |
1271 | ; Maximum number of persistent links. -1 means no limit.
1272 | ; http://php.net/pgsql.max-persistent
1273 | pgsql.max_persistent = -1
1274 |
1275 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1276 | ; http://php.net/pgsql.max-links
1277 | pgsql.max_links = -1
1278 |
1279 | ; Ignore PostgreSQL backends Notice message or not.
1280 | ; Notice message logging require a little overheads.
1281 | ; http://php.net/pgsql.ignore-notice
1282 | pgsql.ignore_notice = 0
1283 |
1284 | ; Log PostgreSQL backends Notice message or not.
1285 | ; Unless pgsql.ignore_notice=0, module cannot log notice message.
1286 | ; http://php.net/pgsql.log-notice
1287 | pgsql.log_notice = 0
1288 |
1289 | [Sybase-CT]
1290 | ; Allow or prevent persistent links.
1291 | ; http://php.net/sybct.allow-persistent
1292 | sybct.allow_persistent = On
1293 |
1294 | ; Maximum number of persistent links. -1 means no limit.
1295 | ; http://php.net/sybct.max-persistent
1296 | sybct.max_persistent = -1
1297 |
1298 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1299 | ; http://php.net/sybct.max-links
1300 | sybct.max_links = -1
1301 |
1302 | ; Minimum server message severity to display.
1303 | ; http://php.net/sybct.min-server-severity
1304 | sybct.min_server_severity = 10
1305 |
1306 | ; Minimum client message severity to display.
1307 | ; http://php.net/sybct.min-client-severity
1308 | sybct.min_client_severity = 10
1309 |
1310 | ; Set per-context timeout
1311 | ; http://php.net/sybct.timeout
1312 | ;sybct.timeout=
1313 |
1314 | ;sybct.packet_size
1315 |
1316 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
1317 | ; Default: one minute
1318 | ;sybct.login_timeout=
1319 |
1320 | ; The name of the host you claim to be connecting from, for display by sp_who.
1321 | ; Default: none
1322 | ;sybct.hostname=
1323 |
1324 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
1325 | ; Default: 0
1326 | ;sybct.deadlock_retry_count=
1327 |
1328 | [bcmath]
1329 | ; Number of decimal digits for all bcmath functions.
1330 | ; http://php.net/bcmath.scale
1331 | bcmath.scale = 0
1332 |
1333 | [browscap]
1334 | ; http://php.net/browscap
1335 | ;browscap = extra/browscap.ini
1336 |
1337 | [Session]
1338 | ; Handler used to store/retrieve data.
1339 | ; http://php.net/session.save-handler
1340 | session.save_handler = files
1341 |
1342 | ; Argument passed to save_handler. In the case of files, this is the path
1343 | ; where data files are stored. Note: Windows users have to change this
1344 | ; variable in order to use PHP's session functions.
1345 | ;
1346 | ; The path can be defined as:
1347 | ;
1348 | ; session.save_path = "N;/path"
1349 | ;
1350 | ; where N is an integer. Instead of storing all the session files in
1351 | ; /path, what this will do is use subdirectories N-levels deep, and
1352 | ; store the session data in those directories. This is useful if
1353 | ; your OS has problems with many files in one directory, and is
1354 | ; a more efficient layout for servers that handle many sessions.
1355 | ;
1356 | ; NOTE 1: PHP will not create this directory structure automatically.
1357 | ; You can use the script in the ext/session dir for that purpose.
1358 | ; NOTE 2: See the section on garbage collection below if you choose to
1359 | ; use subdirectories for session storage
1360 | ;
1361 | ; The file storage module creates files using mode 600 by default.
1362 | ; You can change that by using
1363 | ;
1364 | ; session.save_path = "N;MODE;/path"
1365 | ;
1366 | ; where MODE is the octal representation of the mode. Note that this
1367 | ; does not overwrite the process's umask.
1368 | ; http://php.net/session.save-path
1369 |
1370 | ; RPM note : session directory must be owned by process owner
1371 | ; for mod_php, see /etc/httpd/conf.d/php.conf
1372 | ; for php-fpm, see /etc/php-fpm.d/*conf
1373 | ;session.save_path = "/tmp"
1374 |
1375 | ; Whether to use strict session mode.
1376 | ; Strict session mode does not accept uninitialized session ID and regenerate
1377 | ; session ID if browser sends uninitialized session ID. Strict mode protects
1378 | ; applications from session fixation via session adoption vulnerability. It is
1379 | ; disabled by default for maximum compatibility, but enabling it is encouraged.
1380 | ; https://wiki.php.net/rfc/strict_sessions
1381 | session.use_strict_mode = 0
1382 |
1383 | ; Whether to use cookies.
1384 | ; http://php.net/session.use-cookies
1385 | session.use_cookies = 1
1386 |
1387 | ; http://php.net/session.cookie-secure
1388 | ;session.cookie_secure =
1389 |
1390 | ; This option forces PHP to fetch and use a cookie for storing and maintaining
1391 | ; the session id. We encourage this operation as it's very helpful in combating
1392 | ; session hijacking when not specifying and managing your own session id. It is
1393 | ; not the be-all and end-all of session hijacking defense, but it's a good start.
1394 | ; http://php.net/session.use-only-cookies
1395 | session.use_only_cookies = 1
1396 |
1397 | ; Name of the session (used as cookie name).
1398 | ; http://php.net/session.name
1399 | session.name = PHPSESSID
1400 |
1401 | ; Initialize session on request startup.
1402 | ; http://php.net/session.auto-start
1403 | session.auto_start = 0
1404 |
1405 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
1406 | ; http://php.net/session.cookie-lifetime
1407 | session.cookie_lifetime = 0
1408 |
1409 | ; The path for which the cookie is valid.
1410 | ; http://php.net/session.cookie-path
1411 | session.cookie_path = /
1412 |
1413 | ; The domain for which the cookie is valid.
1414 | ; http://php.net/session.cookie-domain
1415 | session.cookie_domain =
1416 |
1417 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1418 | ; http://php.net/session.cookie-httponly
1419 | session.cookie_httponly =
1420 |
1421 | ; Handler used to serialize data. php is the standard serializer of PHP.
1422 | ; http://php.net/session.serialize-handler
1423 | session.serialize_handler = php
1424 |
1425 | ; Defines the probability that the 'garbage collection' process is started
1426 | ; on every session initialization. The probability is calculated by using
1427 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1428 | ; and gc_divisor is the denominator in the equation. Setting this value to 1
1429 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1430 | ; the gc will run on any give request.
1431 | ; Default Value: 1
1432 | ; Development Value: 1
1433 | ; Production Value: 1
1434 | ; http://php.net/session.gc-probability
1435 | session.gc_probability = 1
1436 |
1437 | ; Defines the probability that the 'garbage collection' process is started on every
1438 | ; session initialization. The probability is calculated by using the following equation:
1439 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1440 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1441 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1442 | ; the gc will run on any give request. Increasing this value to 1000 will give you
1443 | ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1444 | ; this is a more efficient approach.
1445 | ; Default Value: 100
1446 | ; Development Value: 1000
1447 | ; Production Value: 1000
1448 | ; http://php.net/session.gc-divisor
1449 | session.gc_divisor = 1000
1450 |
1451 | ; After this number of seconds, stored data will be seen as 'garbage' and
1452 | ; cleaned up by the garbage collection process.
1453 | ; http://php.net/session.gc-maxlifetime
1454 | session.gc_maxlifetime = 1440
1455 |
1456 | ; NOTE: If you are using the subdirectory option for storing session files
1457 | ; (see session.save_path above), then garbage collection does *not*
1458 | ; happen automatically. You will need to do your own garbage
1459 | ; collection through a shell script, cron entry, or some other method.
1460 | ; For example, the following script would is the equivalent of
1461 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1462 | ; find /path/to/sessions -cmin +24 -type f | xargs rm
1463 |
1464 | ; Check HTTP Referer to invalidate externally stored URLs containing ids.
1465 | ; HTTP_REFERER has to contain this substring for the session to be
1466 | ; considered as valid.
1467 | ; http://php.net/session.referer-check
1468 | session.referer_check =
1469 |
1470 | ; How many bytes to read from the file.
1471 | ; http://php.net/session.entropy-length
1472 | ;session.entropy_length = 32
1473 |
1474 | ; Specified here to create the session id.
1475 | ; http://php.net/session.entropy-file
1476 | ; Defaults to /dev/urandom
1477 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
1478 | ; If neither are found at compile time, the default is no entropy file.
1479 | ; On windows, setting the entropy_length setting will activate the
1480 | ; Windows random source (using the CryptoAPI)
1481 | ;session.entropy_file = /dev/urandom
1482 |
1483 | ; Set to {nocache,private,public,} to determine HTTP caching aspects
1484 | ; or leave this empty to avoid sending anti-caching headers.
1485 | ; http://php.net/session.cache-limiter
1486 | session.cache_limiter = nocache
1487 |
1488 | ; Document expires after n minutes.
1489 | ; http://php.net/session.cache-expire
1490 | session.cache_expire = 180
1491 |
1492 | ; trans sid support is disabled by default.
1493 | ; Use of trans sid may risk your users' security.
1494 | ; Use this option with caution.
1495 | ; - User may send URL contains active session ID
1496 | ; to other person via. email/irc/etc.
1497 | ; - URL that contains active session ID may be stored
1498 | ; in publicly accessible computer.
1499 | ; - User may access your site with the same session ID
1500 | ; always using URL stored in browser's history or bookmarks.
1501 | ; http://php.net/session.use-trans-sid
1502 | session.use_trans_sid = 0
1503 |
1504 | ; Select a hash function for use in generating session ids.
1505 | ; Possible Values
1506 | ; 0 (MD5 128 bits)
1507 | ; 1 (SHA-1 160 bits)
1508 | ; This option may also be set to the name of any hash function supported by
1509 | ; the hash extension. A list of available hashes is returned by the hash_algos()
1510 | ; function.
1511 | ; http://php.net/session.hash-function
1512 | session.hash_function = 0
1513 |
1514 | ; Define how many bits are stored in each character when converting
1515 | ; the binary hash data to something readable.
1516 | ; Possible values:
1517 | ; 4 (4 bits: 0-9, a-f)
1518 | ; 5 (5 bits: 0-9, a-v)
1519 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
1520 | ; Default Value: 4
1521 | ; Development Value: 5
1522 | ; Production Value: 5
1523 | ; http://php.net/session.hash-bits-per-character
1524 | session.hash_bits_per_character = 5
1525 |
1526 | ; The URL rewriter will look for URLs in a defined set of HTML tags.
1527 | ; form/fieldset are special; if you include them here, the rewriter will
1528 | ; add a hidden field with the info which is otherwise appended
1529 | ; to URLs. If you want XHTML conformity, remove the form entry.
1530 | ; Note that all valid entries require a "=", even if no value follows.
1531 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
1532 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1533 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1534 | ; http://php.net/url-rewriter.tags
1535 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1536 |
1537 | ; Enable upload progress tracking in $_SESSION
1538 | ; Default Value: On
1539 | ; Development Value: On
1540 | ; Production Value: On
1541 | ; http://php.net/session.upload-progress.enabled
1542 | ;session.upload_progress.enabled = On
1543 |
1544 | ; Cleanup the progress information as soon as all POST data has been read
1545 | ; (i.e. upload completed).
1546 | ; Default Value: On
1547 | ; Development Value: On
1548 | ; Production Value: On
1549 | ; http://php.net/session.upload-progress.cleanup
1550 | ;session.upload_progress.cleanup = On
1551 |
1552 | ; A prefix used for the upload progress key in $_SESSION
1553 | ; Default Value: "upload_progress_"
1554 | ; Development Value: "upload_progress_"
1555 | ; Production Value: "upload_progress_"
1556 | ; http://php.net/session.upload-progress.prefix
1557 | ;session.upload_progress.prefix = "upload_progress_"
1558 |
1559 | ; The index name (concatenated with the prefix) in $_SESSION
1560 | ; containing the upload progress information
1561 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
1562 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
1563 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
1564 | ; http://php.net/session.upload-progress.name
1565 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
1566 |
1567 | ; How frequently the upload progress should be updated.
1568 | ; Given either in percentages (per-file), or in bytes
1569 | ; Default Value: "1%"
1570 | ; Development Value: "1%"
1571 | ; Production Value: "1%"
1572 | ; http://php.net/session.upload-progress.freq
1573 | ;session.upload_progress.freq = "1%"
1574 |
1575 | ; The minimum delay between updates, in seconds
1576 | ; Default Value: 1
1577 | ; Development Value: 1
1578 | ; Production Value: 1
1579 | ; http://php.net/session.upload-progress.min-freq
1580 | ;session.upload_progress.min_freq = "1"
1581 |
1582 | [MSSQL]
1583 | ; Allow or prevent persistent links.
1584 | mssql.allow_persistent = On
1585 |
1586 | ; Maximum number of persistent links. -1 means no limit.
1587 | mssql.max_persistent = -1
1588 |
1589 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1590 | mssql.max_links = -1
1591 |
1592 | ; Minimum error severity to display.
1593 | mssql.min_error_severity = 10
1594 |
1595 | ; Minimum message severity to display.
1596 | mssql.min_message_severity = 10
1597 |
1598 | ; Compatibility mode with old versions of PHP 3.0.
1599 | mssql.compatibility_mode = Off
1600 |
1601 | ; Connect timeout
1602 | ;mssql.connect_timeout = 5
1603 |
1604 | ; Query timeout
1605 | ;mssql.timeout = 60
1606 |
1607 | ; Valid range 0 - 2147483647. Default = 4096.
1608 | ;mssql.textlimit = 4096
1609 |
1610 | ; Valid range 0 - 2147483647. Default = 4096.
1611 | ;mssql.textsize = 4096
1612 |
1613 | ; Limits the number of records in each batch. 0 = all records in one batch.
1614 | ;mssql.batchsize = 0
1615 |
1616 | ; Specify how datetime and datetim4 columns are returned
1617 | ; On => Returns data converted to SQL server settings
1618 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss
1619 | ;mssql.datetimeconvert = On
1620 |
1621 | ; Use NT authentication when connecting to the server
1622 | mssql.secure_connection = Off
1623 |
1624 | ; Specify max number of processes. -1 = library default
1625 | ; msdlib defaults to 25
1626 | ; FreeTDS defaults to 4096
1627 | ;mssql.max_procs = -1
1628 |
1629 | ; Specify client character set.
1630 | ; If empty or not set the client charset from freetds.conf is used
1631 | ; This is only used when compiled with FreeTDS
1632 | ;mssql.charset = "ISO-8859-1"
1633 |
1634 | [Assertion]
1635 | ; Assert(expr); active by default.
1636 | ; http://php.net/assert.active
1637 | ;assert.active = On
1638 |
1639 | ; Issue a PHP warning for each failed assertion.
1640 | ; http://php.net/assert.warning
1641 | ;assert.warning = On
1642 |
1643 | ; Don't bail out by default.
1644 | ; http://php.net/assert.bail
1645 | ;assert.bail = Off
1646 |
1647 | ; User-function to be called if an assertion fails.
1648 | ; http://php.net/assert.callback
1649 | ;assert.callback = 0
1650 |
1651 | ; Eval the expression with current error_reporting(). Set to true if you want
1652 | ; error_reporting(0) around the eval().
1653 | ; http://php.net/assert.quiet-eval
1654 | ;assert.quiet_eval = 0
1655 |
1656 | [mbstring]
1657 | ; language for internal character representation.
1658 | ; This affects mb_send_mail() and mbstrig.detect_order.
1659 | ; http://php.net/mbstring.language
1660 | ;mbstring.language = Japanese
1661 |
1662 | ; Use of this INI entry is deprecated, use global internal_encoding instead.
1663 | ; internal/script encoding.
1664 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
1665 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
1666 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
1667 | ;mbstring.internal_encoding =
1668 |
1669 | ; Use of this INI entry is deprecated, use global input_encoding instead.
1670 | ; http input encoding.
1671 | ; mbstring.encoding_traslation = On is needed to use this setting.
1672 | ; If empty, default_charset or input_encoding or mbstring.input is used.
1673 | ; The precedence is: default_charset < intput_encoding < mbsting.http_input
1674 | ; http://php.net/mbstring.http-input
1675 | ;mbstring.http_input =
1676 |
1677 | ; Use of this INI entry is deprecated, use global output_encoding instead.
1678 | ; http output encoding.
1679 | ; mb_output_handler must be registered as output buffer to function.
1680 | ; If empty, default_charset or output_encoding or mbstring.http_output is used.
1681 | ; The precedence is: default_charset < output_encoding < mbstring.http_output
1682 | ; To use an output encoding conversion, mbstring's output handler must be set
1683 | ; otherwise output encoding conversion cannot be performed.
1684 | ; http://php.net/mbstring.http-output
1685 | ;mbstring.http_output =
1686 |
1687 | ; enable automatic encoding translation according to
1688 | ; mbstring.internal_encoding setting. Input chars are
1689 | ; converted to internal encoding by setting this to On.
1690 | ; Note: Do _not_ use automatic encoding translation for
1691 | ; portable libs/applications.
1692 | ; http://php.net/mbstring.encoding-translation
1693 | ;mbstring.encoding_translation = Off
1694 |
1695 | ; automatic encoding detection order.
1696 | ; "auto" detect order is changed according to mbstring.language
1697 | ; http://php.net/mbstring.detect-order
1698 | ;mbstring.detect_order = auto
1699 |
1700 | ; substitute_character used when character cannot be converted
1701 | ; one from another
1702 | ; http://php.net/mbstring.substitute-character
1703 | ;mbstring.substitute_character = none
1704 |
1705 | ; overload(replace) single byte functions by mbstring functions.
1706 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1707 | ; etc. Possible values are 0,1,2,4 or combination of them.
1708 | ; For example, 7 for overload everything.
1709 | ; 0: No overload
1710 | ; 1: Overload mail() function
1711 | ; 2: Overload str*() functions
1712 | ; 4: Overload ereg*() functions
1713 | ; http://php.net/mbstring.func-overload
1714 | ;mbstring.func_overload = 0
1715 |
1716 | ; enable strict encoding detection.
1717 | ; Default: Off
1718 | ;mbstring.strict_detection = On
1719 |
1720 | ; This directive specifies the regex pattern of content types for which mb_output_handler()
1721 | ; is activated.
1722 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1723 | ;mbstring.http_output_conv_mimetype=
1724 |
1725 | [gd]
1726 | ; Tell the jpeg decode to ignore warnings and try to create
1727 | ; a gd image. The warning will then be displayed as notices
1728 | ; disabled by default
1729 | ; http://php.net/gd.jpeg-ignore-warning
1730 | ;gd.jpeg_ignore_warning = 0
1731 |
1732 | [exif]
1733 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
1734 | ; With mbstring support this will automatically be converted into the encoding
1735 | ; given by corresponding encode setting. When empty mbstring.internal_encoding
1736 | ; is used. For the decode settings you can distinguish between motorola and
1737 | ; intel byte order. A decode setting cannot be empty.
1738 | ; http://php.net/exif.encode-unicode
1739 | ;exif.encode_unicode = ISO-8859-15
1740 |
1741 | ; http://php.net/exif.decode-unicode-motorola
1742 | ;exif.decode_unicode_motorola = UCS-2BE
1743 |
1744 | ; http://php.net/exif.decode-unicode-intel
1745 | ;exif.decode_unicode_intel = UCS-2LE
1746 |
1747 | ; http://php.net/exif.encode-jis
1748 | ;exif.encode_jis =
1749 |
1750 | ; http://php.net/exif.decode-jis-motorola
1751 | ;exif.decode_jis_motorola = JIS
1752 |
1753 | ; http://php.net/exif.decode-jis-intel
1754 | ;exif.decode_jis_intel = JIS
1755 |
1756 | [Tidy]
1757 | ; The path to a default tidy configuration file to use when using tidy
1758 | ; http://php.net/tidy.default-config
1759 | ;tidy.default_config = /usr/local/lib/php/default.tcfg
1760 |
1761 | ; Should tidy clean and repair output automatically?
1762 | ; WARNING: Do not use this option if you are generating non-html content
1763 | ; such as dynamic images
1764 | ; http://php.net/tidy.clean-output
1765 | tidy.clean_output = Off
1766 |
1767 | [soap]
1768 | ; Enables or disables WSDL caching feature.
1769 | ; http://php.net/soap.wsdl-cache-enabled
1770 | soap.wsdl_cache_enabled=1
1771 |
1772 | ; Sets the directory name where SOAP extension will put cache files.
1773 | ; http://php.net/soap.wsdl-cache-dir
1774 |
1775 | ; RPM note : cache directory must be owned by process owner
1776 | ; for mod_php, see /etc/httpd/conf.d/php.conf
1777 | ; for php-fpm, see /etc/php-fpm.d/*conf
1778 | soap.wsdl_cache_dir="/tmp"
1779 |
1780 | ; (time to live) Sets the number of second while cached file will be used
1781 | ; instead of original one.
1782 | ; http://php.net/soap.wsdl-cache-ttl
1783 | soap.wsdl_cache_ttl=86400
1784 |
1785 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
1786 | soap.wsdl_cache_limit = 5
1787 |
1788 | [sysvshm]
1789 | ; A default size of the shared memory segment
1790 | ;sysvshm.init_mem = 10000
1791 |
1792 | [ldap]
1793 | ; Sets the maximum number of open links or -1 for unlimited.
1794 | ldap.max_links = -1
1795 |
1796 | [mcrypt]
1797 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open
1798 |
1799 | ; Directory where to load mcrypt algorithms
1800 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1801 | ;mcrypt.algorithms_dir=
1802 |
1803 | ; Directory where to load mcrypt modes
1804 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1805 | ;mcrypt.modes_dir=
1806 |
1807 | [dba]
1808 | ;dba.default_handler=
1809 |
1810 | [curl]
1811 | ; A default value for the CURLOPT_CAINFO option. This is required to be an
1812 | ; absolute path.
1813 | ;curl.cainfo =
1814 |
1815 | [openssl]
1816 | ; The location of a Certificate Authority (CA) file on the local filesystem
1817 | ; to use when verifying the identity of SSL/TLS peers. Most users should
1818 | ; not specify a value for this directive as PHP will attempt to use the
1819 | ; OS-managed cert stores in its absence. If specified, this value may still
1820 | ; be overridden on a per-stream basis via the "cafile" SSL stream context
1821 | ; option.
1822 | ;openssl.cafile=
1823 |
1824 | ; If openssl.cafile is not specified or if the CA file is not found, the
1825 | ; directory pointed to by openssl.capath is searched for a suitable
1826 | ; certificate. This value must be a correctly hashed certificate directory.
1827 | ; Most users should not specify a value for this directive as PHP will
1828 | ; attempt to use the OS-managed cert stores in its absence. If specified,
1829 | ; this value may still be overridden on a per-stream basis via the "capath"
1830 | ; SSL stream context option.
1831 | ;openssl.capath=
1832 |
1833 | ; Local Variables:
1834 | ; tab-width: 4
1835 | ; End:
1836 |
1837 | ;;;;;;;;;;;;;;;;;;jamlee begin;;;;;;;;;;;;;;;;;;;
1838 | [XDebug]
1839 | xdebug.profiler_enable = 1
1840 | xdebug.profiler_enable_trigger = 0
1841 | xdebug.remote_enable = 1
1842 | xdebug.remote_handler = "dbgp"
1843 | xdebug.remote_host = "172.17.42.1"
1844 |
1845 |
--------------------------------------------------------------------------------