WebFaction
Community site: login faq

I'm using PHP 5.5 via FastCGI. I'd like to enable the opcode cache OPcache, which apparently has to be done via a line in php.ini (or .user.ini under FastCGI). What do I have to add to that file to enable it?

asked 08 Jul '14, 19:47

PeterA
10431224
accept rate: 14%


I found out from Webfaction support staff that it is not currently possible to use OPcache on Webfaction unless you build your own Apache and PHP from source and run it as a custom application.

permanent link

answered 11 Jul '14, 14:02

PeterA
10431224
accept rate: 14%

Hello,

The line you need to add to that file is:

zend_extension = opcache.so

Hope this helps!

permanent link

answered 09 Jul '14, 07:38

NickR ♦♦
4665
accept rate: 20%

Hi Nick, thanks. I tried your suggestion, but it doesn't appear to be working. I ran a couple of scripts that confirm that OPcache is loaded, and they came back negative. Maybe it needs a path to opcache.so?

(09 Jul '14, 14:53) PeterA

OPcache should be enabled by default without FastCGI, but you can't use extension or zend_extension with FastCGI on the shared Apache instance because these directives will have no effect inside a ".user.ini" file. You can use regular CGI, or set up your own Apache using a custom application, set PHPIniDir, and then specify your extensions in the main php.ini file. This guide will help you set up your own Apache (an extra SSH user is not required).

(09 Jul '14, 15:23) yulian

Here is the full path to the extension, should you need it:

/usr/local/lib/php55/extensions/no-debug-non-zts-20121212/opcache.so

(09 Jul '14, 15:25) yulian
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2
×1

question asked: 08 Jul '14, 19:47

question was seen: 2,554 times

last updated: 11 Jul '14, 14:02

Related questions

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM