I was checking my moodle version (3.1.2) & PHP environment (5.6.31) and found this warning:
PHP setting should be changed.PHP opcode caching improves performance and lowers memory requirements, OPcache extension is recommended and fully supported.
This directed me to a page on how to configure the php.ini file.
First question is: Where can I find the php.ini file?
Second bigger question.... once I've found the file do I make sure it says the following (as per the instructions on the link) by adding and deleting text?:
PHP.ini settings:
[opcache] opcache.enable = 1 opcache.memory_consumption = 64 opcache.max_accelerated_files = 8000 opcache.revalidate_freq = 60 ; Required for Moodle opcache.use_cwd = 1 opcache.validate_timestamps = 1 opcache.save_comments = 1 opcache.enable_file_override = 0 ; If something does not work in Moodle ;opcache.revalidate_path = 1 ; May fix problems with include paths ;opcache.mmap_base = 0x20000000 ; (Windows only) fix OPcache crashes with event id 487 ; Experimental for Moodle 2.6 and later ;opcache.fast_shutdown = 1 ;opcache.enable_cli = 1 ; Speeds up CLI cron ;opcache.load_comments = 0 ; May lower memory use, might not be compatible with add-ons and other apps.
Third question. I am using a non-Windows platform. Below are instructions. Do I add that text to the bottom of the settings listed above?
When using non-Windows platforms, you have to use the zend_extension configuration to load the OPcache extension into PHP by adding to php.ini.
zend_extension=/full/path/to/opcache.so
I feel way out of my depth here! Thanks in advance for your help!!
Best,
Rachel