When Symfony2 is installed in Windows, the PHP accelerator error is returned.

Source: Internet
Author: User
Tags apc ini zend

Install symfony2 in windows, open the ingress route http: // localhost/symfony2/web/config. php configuration, and an error is reported.


1. Install and/or enable a PHP accelerator (highly recommended ).

Installation or use of a PHP accelerator (strongly recommended)

In fact, Zend Opcache has been integrated in php5.5. In the past, APC was generally used, but Opcache was used in PHP5.5 and later. The cache speed is faster than APC. The Zend Opcache extension dll file is in the php extension directory ext, and the file name is php_opcache.dll.

Configure in the php. Ini file to use

The code is as follows: Copy code

Use the zend_extension command to load the OPcache extension to PHP.
; Actual path of the php_opcache.dll file
Zend_extension = D: \ php \ ext \ php_opcache.dll
; Use the following recommended settings to achieve better performance
Opcache. memory_consumption = 128
Opcache. interned_strings_buffer = 8
Opcache. max_accelerated_files = 4000
Opcache. revalidate_freq = 60
Opcache. fast_shutdown = 1
Opcache. enable_cli = 1

Restart the apache server and refresh the page.

Installed successfully!
Open the php. Ini file and add

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.