Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: HACKERSOFT2011 on March 11, 2016, 05:01:52 AM

Title: OPCache php setting
Post by: HACKERSOFT2011 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!
Title: Re: OPCache php setting
Post by: guest22 on March 11, 2016, 09:01:27 AM
Maybe this helps http://stackoverflow.com/questions/17224798/how-to-use-php-opcache
Title: Re: OPCache php setting
Post by: Stefano 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
Title: Re: OPCache php setting
Post by: guest22 on March 11, 2016, 12:06:37 PM
And don't forget https://wiki.contribs.org/XCache
Title: Re: OPCache php setting
Post by: HACKERSOFT2011 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!