You are here
Manuel O Costales - Mon, 2014/04/21 - 21:48
Hi, I need to enable opcache in your Moodle Instance, but I don't know what
I have to do. Can I upgrade the system?
Forum:
Hi, I need to enable opcache in your Moodle Instance, but I don't know what
I have to do. Can I upgrade the system?
Re from Jeremy Davis
I did a quick google for you and Moodle[2] suggests that
opcache can be installed via PECL. Googling that I found instructions on
how to go about that[3]. Note that those instructions include sudo which
won't be required on a TKL instance when you are running as root (so
just ommit the sudo from the start of each line that includes it).
[2] http://docs.moodle.org/26/en/OPcache
[3] http://fideloper.com/install-zend-opcache
The only other option would be to install a newer version of PHP (which
includes it by default). This is generally not recommended...
Regards,
Jeremy Davis
TurnKey Linux
Error: the connection was reset (firefox)
I just installed zend opcache, and when I check the php version I can see my zend cache module activated, but I'm getting an error when I try to visit my platform.
in firefox it says:
in google it says:
I tried installing the Zend Guard Loader (using this url http://www.adrianworlddesign.com/Knowledge-Base/Web-Hosting/Zend-Guard/Z...) but the problem persist.
Please, I need some help asap!
So this issue started when you installed opcache?
I'm not 100% sure but my suspicion is that perhaps it is conflicting with some other caching mechanism that may have already been enabled. What was the response when you restarted the services?:
Any errors or warnings?
Can you post the output of:
Also another thing that may be helpful is turning on php error reporting... Have a look at /etc/php5/apache2/php.ini There should be a line that says something along the lines of:
Which is probably commented out. Replace that with:
Then restart Apache:
Errors should be logged to /var/log/apache2/error.log
Hopefully that will give you some meaningful error which you can google...
From Manuel O Costales
Manuel is having issues posting so he emailed me:
I don't have installed php5-fpm, just php5:
This is the output of the php version:
I activated the ability to show all the errors. FYI this is a test server, in the real one we have installed an SSL certificate, I don't know if that have something related with this issue, anyway, here you have the error log of the apache:
Thanks for your help!
Ok... Looks like you are on v12.x
And that has php5.3 which I'm not even sure that it supports opcache...?
I think the best bet is probably to migrate your data to a v13.0 appliance first... TKLBAM would be the go IMO.
In the meantime you can try this if you want (it'll possibly apply to your new server anyway...
TBH I'm not sure whether or not you actually need PHP-FPM to use opcache but all the tutorials I found online seem to use it so I guess that's probably worth a shot...
Restart all your services again and see what happens...
Add new comment