Hello, VPS, UBUNTU-14.04, PHP 5.5.9 9 (mod cgi), MOODLE 3.1,
my problem is - apache2 error log -
PHP Warning: Module 'Zend OPcache' already loaded in Unknown on line 0
PHP Warning: Zend OPcache: module registration failed! in Unknown on line 0
My php.ini opcache configuratio:
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.max_accelerated_files = 8000
opcache.revalidate_freq = 60
;opcache.fast_shutdown=1
zend_extension=/usr/lib/php5/20121212/opcache.so
; Required for Moodle
opcache.use_cwd = 1
opcache.validate_timestamps = 1
opcache.save_comments = 1
opcache.enable_file_override = 0
and when command:
$ php -i | grep Configure
...
solr
sysvsem
sysvshm
tidy
tokenizer
wddx
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
...
[Zend Modules]
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
Zend OPcache
So i have the same extension compiled into the build php and dynamic modules...
when deleting the opcache configuration in the php.ini, But when accessing moodle => administration => any link...
I am redirected to url - www.mydomainname.com/moodle/admin/index.php?cache=1
currently unable to handle this request. error 500
and apache error log :
*** Error in `/usr/bin/php-cgi': free(): invalid pointer: 0x00007f2d4815eb30 ***
[Wed Jul 13 09:41:22.454736 2016] [mpm_prefork:notice] [pid 18495] AH00169: caught SIGTERM, shutting down
[Wed Jul 13 09:41:22.802975 2016] [fcgid:error] [pid 18500] mod_fcgid: process /var/www/php-fcgi-scripts/web3/.php-fcgi-starter(18589) exit(shutting down), get signal 6, possible coredump generated
[Wed Jul 13 09:41:23.484421 2016] [suexec:notice] [pid 18844] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Jul 13 09:41:23.504708 2016] [auth_digest:notice] [pid 18846] AH01757: generating secret for digest authentication ...
[Wed Jul 13 09:41:23.508156 2016] [:notice] [pid 18849] FastCGI: process manager initialized (pid 18849)
[Wed Jul 13 09:41:23.544415 2016] [:notice] [pid 18846] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed Jul 13 09:41:23.544442 2016] [:notice] [pid 18846] mod_python: using mutex_directory /tmp
$ php -v
PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
FOR NOW I DISABLED THE OPCACHE EXTENSION IN THE PHP.INI
How can i fix it?
Thank you