Warning: PHP Startup: apc: Unable to initialize module Module compiled with module

Alfaman

Member
Jan 6, 2012
17
2
53
cPanel Access Level
Root Administrator
Just found this error.

Yesterday I enabled root's mail to be sent my email address. Server Contacts > Edit system mail preferences > Root's mail.

Anyway since I enabled that I keep getting this email approx every 5/10mins.

Subject:
Cron <root@server> /usr/local/bin/php /usr/local/etc/sphinx-cron.php delta 2>&1 > /dev/null

Message:
Warning: PHP Startup: apc: Unable to initialize module Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0

I done some googling and found this command this by entering php -v command:

root@server [~]# php -v

Warning: PHP Startup: apc: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.10 (cli) (built: Mar 25 2012 18:22:22)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.0.12, Copyright (c) 2002-2011, by ionCube Ltd., and
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
root@server [~]#


Any ideas how to fix this anyone please?
 
Last edited by a moderator:

Alfaman

Member
Jan 6, 2012
17
2
53
cPanel Access Level
Root Administrator
Just done some searching, here's part of my php.ini

Code:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information 
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

You can install APC via:

"WHM Home » Software » Module Installers » PHP Pecl"

Keep in mind that APC is an opcode cacher so it has no beneficial use with suPHP. Also, the pcre-devel package is required before installing APC. EX:

Code:
# yum install prce-devel
Thank you.