I am running Centos 7 and installing moodle 3.1.9. Moodle suggest that I install and PHP-OPcache extension. PHP setting should be changed.
Message: PHP setting should be changed. PHP opcode caching improves performance and lowers memory requirements, OPcache extension is recommended and fully supported.
When i run the recommended update:yum install php-opcache.
These are the results below:
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink | 16 kB 00:00
extras | 3.4 kB 00:00
mysql-connectors-community | 2.5 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql56-community | 2.5 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
updates/7/x86_64/primary_db | 4.6 MB 00:03
Loading mirror speeds from cached hostfile
* base: mirror.vtti.vt.edu
* epel: mirror.pnl.gov
* extras: mirror.linux.duke.edu
* updates: mirror.team-cymru.org
* webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php71w-opcache.x86_64 0:7.1.11-1.w7 will be installed
--> Processing Dependency: php71w-common(x86-64) = 7.1.11-1.w7 for package: php71w-opcache-7.1.11-1.w7.x86_64
--> Running transaction check
---> Package php71w-common.x86_64 0:7.1.11-1.w7 will be installed
--> Processing Conflict: php71w-common-7.1.11-1.w7.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I also ran the suggested work arounds above:
[root@localhost ~]# yum install php-opcache --skip-broken
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repos-va.psychz.net
* epel: mirror.metrocast.net
* extras: mirror.net.cen.ct.gov
* updates: mirror.cs.pitt.edu
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php71w-opcache.x86_64 0:7.1.11-1.w7 will be installed
--> Processing Dependency: php71w-common(x86-64) = 7.1.11-1.w7 for package: php71w-opcache-7.1.11-1.w7.x86_64
--> Running transaction check
---> Package php71w-common.x86_64 0:7.1.11-1.w7 will be installed
--> Processing Conflict: php71w-common-7.1.11-1.w7.x86_64 conflicts php-common < 7.1
webtatic/x86_64/filelists_db | 74 kB 00:00
Packages skipped because of dependency problems:
php71w-common-7.1.11-1.w7.x86_64 from webtatic
php71w-opcache-7.1.11-1.w7.x86_64 from webtatic
[root@localhost ~]# rpm -Va --nofiles --nodigest (I ran command and just went back tp command prompt)
[root@localhost ~]#
I found a post on Centos forum pertaining to cent 6.5
viewtopic.php?f=14&t=62911&p=265215&hil ... 16#p265215
Ran the suggested command to see what I had installed
[root@localhost ~]# rpm -qa php\*
php-common-5.4.16-43.el7_4.x86_64
php-pecl-apcu-4.0.11-1.el7.x86_64
php-pear-1.9.4-21.el7.noarch
php-xmlrpc-5.4.16-43.el7_4.x86_64
php-process-5.4.16-43.el7_4.x86_64
php-5.4.16-43.el7_4.x86_64
php-soap-5.4.16-43.el7_4.x86_64
php-pdo-5.4.16-43.el7_4.x86_64
php-gd-5.4.16-43.el7_4.x86_64
php-ldap-5.4.16-43.el7_4.x86_64
php-mbstring-5.4.16-43.el7_4.x86_64
php-xml-5.4.16-43.el7_4.x86_64
php-intl-5.4.16-43.el7_4.x86_64
php-cli-5.4.16-43.el7_4.x86_64
php-mysql-5.4.16-43.el7_4.x86_64
[root@localhost ~]#
PHP-OPcache extension
Re: PHP-OPcache extension
My yum list \*opcache\* shows that IUS has phpXXu-opcache packages for 56, 70 and 71 but since you're using the distro php 5.4.16 I suspect you want the php-pecl-zendopcache.x86_64 from EPEL.
We don't recommend or support the webtatic repo.
We don't recommend or support the webtatic repo.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke