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