Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Общие вопросы
  • Search

Подскажите правильно установить APC-PHP

Общие вопросы о панели управления Vesta
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
StreamK
Posts: 11
Joined: Mon Mar 10, 2014 6:59 pm

Подскажите правильно установить APC-PHP
  • Quote

Post by StreamK » Thu Feb 26, 2015 6:19 pm

Для работы скрипта нужно чтобы на сервере работал обязательно PHP-APC
Пробую установить

Code: Select all

pecl install apc
Выдает ошибку

Code: Select all

[root@CentOS-66-64-minimal ~]# pecl install apc
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed
Судя по ошибке не установлен php-devel
Но его тоже не могу поставить

Code: Select all

[root@CentOS-66-64-minimal ~]# yum install php-devel
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centosmirror.netcup.net
 * epel: mirrors.n-ix.net
 * extras: centosmirror.netcup.net
 * updates: centosmirror.netcup.net
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-40.el6_6 for package: php-devel-5.3.3-40.el6_6.x86_64
--> Processing Dependency: automake for package: php-devel-5.3.3-40.el6_6.x86_64
--> Processing Dependency: autoconf for package: php-devel-5.3.3-40.el6_6.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
---> Package php-devel.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-40.el6_6 for package: php-devel-5.3.3-40.el6_6.x86_64
--> Finished Dependency Resolution
Error: Package: php-devel-5.3.3-40.el6_6.x86_64 (updates)
           Requires: php(x86-64) = 5.3.3-40.el6_6
           Installed: php-5.4.37-1.el6.remi.x86_64 (@remi)
               php(x86-64) = 5.4.37-1.el6.remi
           Available: php-5.3.3-38.el6.x86_64 (base)
               php(x86-64) = 5.3.3-38.el6
           Available: php-5.3.3-40.el6_6.x86_64 (updates)
               php(x86-64) = 5.3.3-40.el6_6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@CentOS-66-64-minimal ~]#

Команда php -v

Code: Select all

[root@CentOS-66-64-minimal ~]# php -v
PHP 5.4.37 (cli) (built: Jan 21 2015 11:11:59)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@CentOS-66-64-minimal ~]#

И как правильно удалить или остановить zend opcache, чтобы не было конфликтов
Подскажите пожалуйста что делать
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Подскажите правильно установить APC-PHP
  • Quote

Post by skurudo » Fri Feb 27, 2015 6:53 am

Здесь вот вроде дельно написано, попробуйте:
http://adnota.ru/blogs/zametki-na-pamja ... entos.html
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Подскажите правильно установить APC-PHP
  • Quote

Post by imperio » Fri Feb 27, 2015 5:17 pm

Странно, что это обязательное условие. APC - кешер, к тому же глючный. Мы от него давно отказались.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Общие вопросы”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password