У меня на сервере был centos 6.5. Я обновился до centos 7.
С этим обновлением у меня php 5.4 вместо php 5.3.
Все работает нормально, кроме расширения APC и xhprof.
Вот ошибка, которую я получаю, когда пытаюсь перезапустить apache или любое другое действие, касающееся веб-сервера.
PHP Warning: PHP Startup: apc: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: xhprof: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.16 (cli) (built: Oct 31 2014 12:59:36)
Кто-нибудь, чтобы помочь, пожалуйста!
Вероятно, вы установили apc через pecl. Если да, вам придется переустановить APC и xhprof через pecl, чтобы они перекомпилировались для вашей текущей версии PHP.
pecl install apc
pecl install xhprof