Menu
Install a PHP AcceleratorperformanceSymfony2 is a flexible and powerful framework... that ends to a quite slow execution time. Of course, the prod environment is much faster than you usual dev environment, but that's not enough.
Install and/or enable a PHP accelerator (highly recommended). Posted November 13, 2017. Opcache was not checked, it is now.
In order to boost your application in production, it is very recommended to install a PHP Accelerator like APC.
![1.install And Enable A Php Accelerator Like Apc Highly Recommended 1.install And Enable A Php Accelerator Like Apc Highly Recommended](/uploads/1/2/5/4/125458910/968406626.png)
On a dedicated server
On Linux
To install APC on a debian-like linux distribution, simply execute:
Adapt the command to your distribution.
On Windows
Uncomment the concerned line in your
php.ini
:In all cases
After the installation, you have to activate the extension. This is done by adding this line at the end of your
php.ini
:On a shared hosting
If you are on a shared hosting, you must not have an SSH access. In that case, the best option is to contact the administrator. Say him it's better for its servers to have a PHP Accelerator installed.
- See APC on the PHP doc