Using Eaccelerator in PHP

Source: Internet
Author: User

One, about Eaccelerator to PHP version of support

Eaccelerator to php5.5 version can be very good support, after 5.5 version cannot compile through

will report this error eaccelerator.c:66:23:fatal error:php_logos.h:no such file or directory

This eaccelerator github the last discussion https://github.com/eaccelerator/eaccelerator/issues/33

Look at the update on the GitHub, actually eaccelerator has not been updated for a long time

Second, in the php5.5 (including 5.5) before the installation of the version, I used the XAMPP

1, to download https://github.com/eaccelerator/eaccelerator download source Package

2, TAR-ZXVF eaccelerator-eaccelerator-42067ac.tar.gz
3. CD EACCELERATOR-EACCELERATOR-42067AC

4./configure--enable-eaccelerator=shared--with-php-config=/opt/lampp/bin/php-config

If prompted cannot find autoconf. Please check your autoconf installation and the
$PHP _autoconf environment variable. Then, rerun this script.

Then install the autoconf

5, Make&make Install

6. Edit/opt/lampp/etc/php.ini

; Disabled in XAMPP 1.7.2 because incompatible with PHP 5.3.0
extension= "eaccelerator.so"
eaccelerator.shm_size= "Eaccelerator.cache_dir=" "
/opt/lampp/temp/eaccelerator"
eaccelerator.enable= "1"
Eaccelerator.optimizer= "1"
eaccelerator.check_mtime= "1"
eaccelerator.debug= "0"
Eaccelerator.filter = "" "
eaccelerator.shm_max=" 0 "eaccelerator.shm_ttl="
0 "
eaccelerator.shm_prune_period=" 0 "
eaccelerator.shm_only= "0"
eaccelerator.compress= "1"
eaccelerator.compress_level= "9"
In fact, this is a hint that xampp 1.7.2 is not used after eaccelerator

Iii. Use of Opcache

PHP5.5 has integrated the Opcache, and the performance is good.

can be very convenient to use

Just open it in the XAMPP.

Zend_extension=opcache.so

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.