Koozali.org: home of the SME Server

OPCache php setting

Offline HACKERSOFT2011

  • **
  • 31
  • +0/-0
  • HACKERSOFT
    • Adventist International Mission School
OPCache php setting
« on: March 11, 2016, 05:01:52 AM »
Hi!

Is there a way to enable opcache settings in php? I'm installing the latest moodle and it is recommended to enable this settings but have no idea where to do it in smeserver 9.1 yet.

I have upgraded the php version to 5.5.30 via remi repo

Any help is thankfully accepted!

Best regards!

guest22

Re: OPCache php setting
« Reply #1 on: March 11, 2016, 09:01:27 AM »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: OPCache php setting
« Reply #2 on: March 11, 2016, 11:54:30 AM »
you need a custom fragment to enable it in php.ini

I'm quite sure that here and in the wiki you'll find all the example you need to create it

guest22

Re: OPCache php setting
« Reply #3 on: March 11, 2016, 12:06:37 PM »

Offline HACKERSOFT2011

  • **
  • 31
  • +0/-0
  • HACKERSOFT
    • Adventist International Mission School
Re: OPCache php setting
« Reply #4 on: March 14, 2016, 04:03:34 AM »
I got it sorted out and configured by installing opcache:

 yum install php55-php-opcache --enablerepo=remi

then restarting httpd:

service httpd-e-smith restart

Thank you by the way for all your replies.

Best regards!