By chris324769
Making the switch from APC to Opcache now that it’s standard with Ubuntu 14.04. All the tutorials seemed to be on Apache so thought I’d share what I did. The first change and restarting php I believe is all you need to do while the other changes are for performance and will vary based on your needs. If others have recommendations or additional advice please pipe in!
sudo vim /etc/php5/fpm/php.ini
Change: ;opcache.enable=0 to opcache.enable=1
Change: ;opcache.memory_consumption=64 to opcache.memory_consumption=128
Change: ;opcache.max_accelerated_files=2000 to opcache.max_accelerated_files=4000
Change: ;opcache.revalidate_freq=2 to opcache.revalidate_freq=60
Then restart: sudo service php5-fpm restart
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
hi @asb , i have one question, should that configuration suite small droplets like 512 as well?
and thx for the info by the way @chris324769
Thanks for the tip! Here’s the full list of configuration options you can tweak: <br> <br>http://www.php.net/manual/en/opcache.configuration.php <br> <br>Anyone else have any recommendations? <br>
Yep, take a look ( will take this down after problem is resolved ) http://www.waxdev.com/opcache.php
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.