Another ~eaccelerator. [Mounting Step]

Source: Internet
Author: User
Tags bz2 php and sessions zts zend

wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2 tar jxf eaccelerator-0.9.5.2.tar.bz2 [@wcms_web eaccelerator-0.9.5.2]# export php_prefix=\ '/usr/local/bin\ '
[@wcms_web eaccelerator-0.9.5.2]# $PHP _prefix/phpize
★./configure--enable-eaccelerator=shared--with-php-config= $PHP _prefix/php-config (PHP4 version compiled) ./configure-- enable-eaccelerator=shared--with-eaccelerator-shared-memory--with-php-config= $PHP _prefix/php-config (php5 version needs to be added- -with-eaccelerator-shared-memory) #上面 ~ need to spell Whereis phpize/usr/local/bin/phpize this directory can [@wcms_web eaccelerator-0.9.5.2]# make
[@wcms_web eaccelerator-0.9.5.2]# make install
Installing Shared extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20050922/
To create a dedicated cache directory:
Mkdir/tmp/eaccelerator
chmod 0777/tmp/eaccelerator Then set the php.ini and restart Apache:
/home/apache/bin/apachectl Restart explains that PHP and Eaccelerator also need to be version symmetric. Now PHP Version 5.1.6 and ~eaccelerator-0.9.5.1 can be ~ ################################################################### ######## settings php.ini the following settings:; eaccelerator
extension= "/usr/local/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so"
Eaccelerator.shm_size = "1024"
Eaccelerator.cache_dir = "/var/cache/eacache"
eaccelerator.enable = "1"
Eaccelerator.optimizer = "1"
Eaccelerator.debug = "0"
Eaccelerator.check_mtime = "1"
Eaccelerator.filter = ""
Eaccelerator.shm_max = "0"
Eaccelerator.shm_ttl = "7200"
Eaccelerator.shm_only = "1"
eaccelerator.compress = "1"
Eaccelerator.compress_level = "3"
Eaccelerator.keys = "Shm_only"
Eaccelerator.sessions = "Shm_only"
Eaccelerator.content = "Shm_only"
--------------------------------------------------------------------------------
; extension= "Eaccelerator.so"
zend_extension= "/usr/lib/php4/eaccelerator.so"
; zend_extension_ts= "/usr/lib/php4/eaccelerator.so"
; extension= "Eaccelerator.dll"
; zend_extension_ts= "C:\\php4\\eaccelerator.dll"
zend_extension= "C:\\php4\\eaccelerator.dll" You must cancel a comment (and only one is canceled) to load the eaccelerator extension using the following description.
Eaccelerator compatible with Zend Optimizer ' s loader. Zend Optimizer must be configured in php.ini after the installation of Eaccelerator is complete. If you do not use ZEND Encoder encoded with a script, then we do not recommend that you install the Zend Optimizer plus eaccelerator this mode.
--------------------------------------------------------------------------------
Eaccelerator.shm_size = "Eaccelerator" The amount of shared memory that can be used (in megabytes). "0" refers to the default value of the operating system. The default value is "0".
--------------------------------------------------------------------------------
Eaccelerator.cache_dir = "/tmp/eaccelerator" This directory is used for disk caching. Eaccelerator Stores precompiled code, process data, content, and user-defined content here. The same data can also be stored in shared memory (which can improve access speed). The default setting is "/tmp/eaccelerator".
--------------------------------------------------------------------------------
eaccelerator.enable = "1" turns on or off eaccelerator. "1" means to open, "0" means to close. The default value is "1".
--------------------------------------------------------------------------------
Eaccelerator.optimizer = "1" turns on or off the built-in peephole optimizer, which can increase the speed of code execution. "1" means to open, "0" means to close. The default value is "1".
--------------------------------------------------------------------------------
Eaccelerator.debug = "0" turns debug logging on or off. "1" means to open, "0" means to close. The default value is "0".
--------------------------------------------------------------------------------
Eaccelerator.check_mtime = "1" turns on or off PHP's file modification check. "1" means to open, "0" means to close. If you recompile the PHP file after the modification, you should set it to "1". The default value is "1".
--------------------------------------------------------------------------------
Eaccelerator.filter = "" Determines which PHP files should be cached. You can specify a range (such as "*.php *.phtml") so that the specified file is cached or expelled. If you use the character "!" to specify this range, files that match this range are expelled. The default value is "", which means that all PHP scripts are cached.
--------------------------------------------------------------------------------
Eaccelerator.shm_max = "0" uses the "Eaccelerator_put ()" feature option to turn off loading large amounts of data in shared memory. It indicates the largest promised size, in bytes (10240, 10K, 1M). Use "0" to turn off this restriction. The default value is "0".


--------------------------------------------------------------------------------
Eaccelerator.shm_ttl = "0" when Eaccelerator tries to obtain data from shared memory to create a new script cache but fails, it deletes all scripts that have not been accessed at least "shm_ttl" seconds from shared memory. The default value is "0", meaning-do not delete any files from shared memory.
--------------------------------------------------------------------------------
Eaccelerator.shm_prune_period = "0" When Eaccelerator tries to get data from shared memory to create a new script cache but fails, it tries to delete the old script, provided that before this attempt is over "Shm_prune_ Period "seconds before being executed. The default value is "0", meaning-do not attempt to delete any files from shared memory.
--------------------------------------------------------------------------------
Eaccelerator.shm_only = "0" turns on or off cached compiled scripts on disk. This parameter has no effect on session data and content caching. The default value is "0", which means that the disk and shared memory are used to cache.
--------------------------------------------------------------------------------
eaccelerator.compress = "1" turns on or off cached content compression. The default value is "1", which means that the compression is turned on.
--------------------------------------------------------------------------------
Eaccelerator.compress_level = the degree to which the content of "9" is compressed after being cached. The default value is "9", meaning that the maximum compression rate is used.
--------------------------------------------------------------------------------
Eaccelerator.keys = "Shm_and_disk"
Eaccelerator.sessions = "Shm_and_disk"
Eaccelerator.content = "Shm_and_disk" determines which keys, session data, and content are cached. Possible values are: "Shm_and_disk", caching data in shared memory and on disk (default)
"SHM", which caches data in shared memory or on disk, if the shared memory has been used more than the scope defined by "Eaccelerator.shm_max".
"Shm_only", caching data in shared memory
"Disk_only", caching data on disk
' None ' and does not cache any data--------------------------------------------------------------------------------
Eaccelerator.admin.name= "YourUserName"
Eaccelerator.admin.password= "YourPassword" You can use eaccelerator.php to manage eaccelerator through pages of pages. You should put this file on your website. For security purposes, it is recommended that you do not access this script through your local IP address. Create the eaccelerator password php-q eaccelerator_password.php
Change page page mode access (eaccelerator.php) access password for this file Enter admin name:admin
New Admin Password:eaccelerator
Retype new admin Password:eaccelerator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.