root/eaccelerator/tags/0.9.4-rc1/eaccelerator.ini

Revision 134, 4.9 kB (checked in by zoeloelip, 3 years ago)

* Removed executor hooks, they weren't used anyway.
* Check if eA has a valid cache directory.
* Make the init of php fail if the initialisation of the shared memory

or cache directory failes.

* set shared memory size in eaccelerator.ini to 0 so the default OS

size is used.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 [eaccelerator]
2
3 ;;;;;;;;;;;;;;;;;;;
4 ; About this file ;
5 ;;;;;;;;;;;;;;;;;;;
6 ;
7 ; eAccelerator is compatible with Zend Optimizer's loader. Zend Optimizer
8 ; must be installed after eAccelerator in php.ini. If you don't use scripts
9 ; encoded with Zend Encoder then we do not recommend you install Zend Optimizer
10 ; with eAccelerator.
11
12
13 ; You must uncomment one (and only one) line from the following to load
14 ; eAccelerator extension.
15 ;extension="eaccelerator.so"
16 zend_extension="/usr/lib/php4/eaccelerator.so"
17 ;zend_extension_ts="/usr/lib/php4/eaccelerator.so"
18 ;extension="eaccelerator.dll"
19 ;zend_extension_ts="c:\php4\eaccelerator.dll"
20 ;zend_extension="c:\php4\eaccelerator.dll"
21
22 ; The amount of shared memory (in megabytes) that eAccelerator will use.
23 ; "0" means OS default. Default value is "0".
24 eaccelerator.shm_size = "0"
25
26 ; The directory that is used for disk cache. eAccelerator stores precompiled
27 ; code, session data, content and user entries  here. The same data can be
28 ; stored in shared memory also (for more quick access). Default value is
29 ; "/tmp/eaccelerator".
30 eaccelerator.cache_dir = "/tmp/eaccelerator"
31
32 ; Enables or disables eAccelerator. Should be "1" for enabling or
33 ; "0" for disabling. Default value is "1".
34 eaccelerator.enable = "1"
35
36 ; Enables or disables internal peephole optimizer which may speed up code
37 ; execution. Should be "1" for enabling or "0" for disabling.
38 ; Default value is "1".
39 eaccelerator.optimizer = "1"
40
41 ; Enables or disables debug logging. Setting this to 1 will print information
42 ; to the log file about the cach hits of a file.
43 eaccelerator.debug = 0
44
45 ; Set the log file for eaccelerator. When this option isn't set then the data
46 ; will be logged to stderr
47 eaccelerator.log_file = "/var/log/httpd/eaccelerator_log"
48
49 ; A string that's prepended to all keys. This allows two applications that use the
50 ; same key names to run on the same host by setting this in .htaccess
51 eaccelerator.name_space = ""
52
53 ; Enables or disables PHP file modification checking. Should be "1"
54 ; for enabling or "0" for disabling. You should set it to "1" if you want
55 ; to recompile PHP files after modification. Default value is "1".
56 eaccelerator.check_mtime = "1"
57
58 ; Determine which PHP files must be cached. You may specify the number of
59 ; patterns (for example "*.php *.phtml") which specifies to cache or
60 ; not to cache. If pattern starts with the character "!", it means to ignore
61 ; files which are matched by the following pattern. Default value is "" that
62 ; means - all PHP scripts will be cached.
63 eaccelerator.filter = ""
64
65 ; Disables putting large values into shared memory by "eaccelerator_put()"
66 ; function.
67 ; It indicates the largest allowed size in bytes (10240, 10K, 1M). The "0"
68 ; disables the limit. Default value is "0".
69 eaccelerator.shm_max = "0"
70
71 ; When eAccelerator fails to get shared memory for new script it removes
72 ; all scripts which were not accessed at last "shm_ttl" seconds from shared
73 ; memory. Default value is "0" that means - don't remove any files from
74 ; shared memory.
75 eaccelerator.shm_ttl = "0"
76
77 ; When eAccelerator fails to get shared memory for new script it tryes to
78 ; remove old script if the previous try was made more then "shm_prune_period"
79 ; seconds ago. Default value is "0" that means - don't try to remove any
80 ; files from shared memory.
81 eaccelerator.shm_prune_period = "0"
82
83 ; Enables or disables caching of compiled scripts on disk. It has no effect
84 ; on session data and content caching.
85 ; Default value is "0" that means - use disk and shared memory for caching.
86 eaccelerator.shm_only = "0"
87
88 ; Enables or disables cached content compression. Default value is "1" that
89 ; means enable compression.
90 eaccelerator.compress = "1"
91
92 ; Compression level used for content caching.  Default value is "9" which i
93 ; is the maximum compression level
94 eaccelerator.compress_level = "9"
95
96 ; Determine where keys, session data and content will be cached. The possible
97 ; values are:
98 ; "shm_and_disk" - cache data in shared memory and on disk (default value)
99 ; "shm"          - cache data in shared memory or on disk if shared memory
100 ;                  is full or data size greater then "eaccelerator.shm_max"
101 ; "shm_only"     - cache data in shared memory
102 ; "disk_only"    - cache data on disk
103 ; "none"         - don't cache data
104 eaccelerator.keys     = "shm_and_disk"
105 eaccelerator.sessions = "shm_and_disk"
106 eaccelerator.content  = "shm_and_disk"
107
108 ; eAccelerator can be managed through web interface script  eaccelerator.php. So
109 ; you need to put this file on  your  web  site.  For  security  reasons  it  is
110 ; recommended to restrict the usage of this script by your local IP.
111 ;
112 ; To create the eAccelerator password type
113 ;
114 ; php -q eaccelerator_password.php
115 ; Changing password for eAccelerator Web Interface (eaccelerator.php)
116 ;
117 ; Enter admin name: admin
118 ; New admin password: eaccelerator
119 ; Retype new admin password: eaccelerator
120
121 eaccelerator.admin.name="yourusername"
122 eaccelerator.admin.password="yourpassword"
Note: See TracBrowser for help on using the browser.