The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: how to enable php_opcache under php_fcgid?  (Read 3983 times)

chromerep

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 63
how to enable php_opcache under php_fcgid?
« on: August 31, 2014, 02:58:21 AM »

I install php 5.6 and run php via php_fcgid.

Is there any good way(directives) to run php_opcache extension?And,will it get good performance to enable php_opcache?
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: how to enable php_opcache under php_fcgid?
« Reply #1 on: September 01, 2014, 10:29:50 AM »

just add the following at the end of the extension list.
Code: [Select]
zend_extension=php_opcache.dll
Logged

chromerep

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 63
Re: how to enable php_opcache under php_fcgid?
« Reply #2 on: September 02, 2014, 02:06:04 PM »

Does it need to add these directives below?

opcache.enable = 1
opcache.enable_cli = 1
opcache.memory_consumption = 256
opcache.interned_strings_buffer = 8
opcache.max_accelerated_files = 4096
opcache.max_wasted_percentage = 5
opcache.validate_timestamps = 1
opcache.revalidate_freq = 60
opcache.fast_shutdown = 1
opcache.optimization_level = 0xffffffff
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: how to enable php_opcache under php_fcgid?
« Reply #3 on: September 02, 2014, 02:42:29 PM »

At the end of your php.ini should be a section with

[opcache]

if not, you can simply add it. In the example config php.ini-development there is that section at the very end.
Logged

chromerep

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 63
Re: how to enable php_opcache under php_fcgid?
« Reply #4 on: September 03, 2014, 12:08:15 AM »

And another...

Sometimes,I doubt that the php-opcache can increase the performance under fcgid app...
Does it make sense to enable php-opcache if it use fcgid to run php scrips(at php5.6 version)?
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: how to enable php_opcache under php_fcgid?
« Reply #5 on: September 04, 2014, 02:02:58 PM »

it does make scense, cause fcgid does not let the cgi process die. So the cache increases the performance.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13