Ben kullanıyorum salt
herşey doğru koşuyorum her zaman yüklüyor rağmen hükmüne sunucularımın ve sadece php 7 yükseltmeye çalıştı ve php -v
ya herhangi bir çıkışın başında bu atmak herhangi php şey çalıştırın: Cannot load Zend OPcache - it was already loaded
. Bunu görürsem kaldırırsam,Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory
İşte yüklü php-v
olan ve çıkan tam çıkış php-opcache
.
İle
Cannot load Zend OPcache - it was already loaded
PHP 7.0.1 (cli) (built: Dec 16 2015 15:31:55) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
with Xdebug v2.4.0RC3, Copyright (c) 2002-2015, by Derick Rethans
Dışarıda
Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory
PHP 7.0.1 (cli) (built: Dec 16 2015 15:31:55) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
with Xdebug v2.4.0RC3, Copyright (c) 2002-2015, by Derick Rethans
Bununla yüklüyorum (tuz durumu dosyasına)
remi-php70-repo:
pkgrepo.managed:
- humanname: Remi PHP 7 Repository
- baseurl: http://rpms.famillecollet.com/enterprise/$releasever/php70/$basearch/
- gpgcheck: 0
- require_in:
- pkg: php-fpm
php-fpm:
pkg.latest:
- pkgs:
- php-fpm
php-opcache:
pkg.latest:
- pkgs:
- php-opcache
Ve biliyorum bir sonra 7,0 repo yükleme bir yum install php-opcache
ve sonra birphp -v
terminal çıkışı
[root@mage2appblock vagrant]# yum install php-opcache
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 14 kB 00:00
* base: mirror.spro.net
* epel: mirrors.cat.pdx.edu
* extras: mirror.keystealth.org
* updates: mirror-centos.hostingswift.com
base | 3.7 kB 00:00
centos-plus-repo | 3.4 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db 35% [============- ] 0.0 B/s | 2.1 MB --:-- ETA epel/primary_db | 5.7 MB 00:00
extras | 2.9 kB 00:00
mysql56-community-repo | 2.5 kB 00:00
remi-php70-repo | 2.9 kB 00:00
remi-rep | 2.9 kB 00:00
remi-rep/primary_db 7% [== ] 0.0 B/s | 97 kB --:-- ETA remi-rep/primary_db 37% [============= ] 655 kB/s | 510 kB 00:01 ETA remi-rep/primary_db | 1.3 MB 00:00
repo-saltstack-el6 | 2.9 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package php-opcache.x86_64 0:7.0.1-1.el6.remi will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
php-opcache x86_64 7.0.1-1.el6.remi remi-php70-repo 135 k
Transaction Summary
========================================================================================================================
Install 1 Package(s)
Total download size: 135 k
Installed size: 378 k
Is this ok [y/N]: y
Downloading Packages:
php-opcache-7.0.1-1.el6.remi.x86_64.rpm 18% [======- ] 0.0 B/s | 25 kB --:-- ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 31% [=========== ] 27 kB/s | 43 kB 00:03 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 38% [=============- ] 28 kB/s | 52 kB 00:02 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 48% [================- ] 29 kB/s | 65 kB 00:02 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 55% [===================- ] 29 kB/s | 75 kB 00:02 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 69% [======================== ] 31 kB/s | 94 kB 00:01 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm 90% [===============================- ] 35 kB/s | 122 kB 00:00 ETA php-opcache-7.0.1-1.el6.remi.x86_64.rpm | 135 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-opcache-7.0.1-1.el6.remi.x86_64 1/1
Verifying : php-opcache-7.0.1-1.el6.remi.x86_64 1/1
Installed:
php-opcache.x86_64 0:7.0.1-1.el6.remi
Complete!
[root@mage2appblock vagrant]# php -v
Cannot load Zend OPcache - it was already loaded
PHP 7.0.1 (cli) (built: Dec 16 2015 15:31:55) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
with Xdebug v2.4.0RC3, Copyright (c) 2002-2015, by Derick Rethans
Bununla ilgili hiçbir şey bulamadım. Herhangi bir fikir harika olurdu.
Yararlı olabilecek notlar:- Bu,
vagrant
CentOS 6.5 yükleyen bir sunucudur - Temel hazırlık
salt
- kurulum
salt
çalıştığında temiz
Güncellemeler
Bu yüzden php 7 ile uyulduğu düşünerek Zen Opcache yüklemeyi denedim, öyle değil. Ne yükleme ya da ben sağlamak opcache.ini dosyası ile ilgili bir sorun varsa bakmaya çalışıyorum. Belki de php5 bu alanda php 7 hareketli bazı yeni ayarlar var.