День добрый! Сразу к вопросику.
Ubuntu 13.10
Стандартная сборка apache2+php+mysql
Сайты работают, но прочитав лог apache2, немножко "ошалел"
[Mon Jun 16 11:57:00.224714 2014] [core:notice] [pid 1600] AH00051: child pid 3554 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Jun 16 11:57:00.224821 2014] [core:notice] [pid 1600] AH00051: child pid 3555 exit signal Segmentation fault (11), possible coredump in /etc/apache2
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
Начал разбираться. Пошел через отладчик gdb.
Program received signal SIGINT, Interrupt.
0xb76b1424 in __kernel_vsyscall ()
(gdb) backtrace
#0 0xb76b1424 in __kernel_vsyscall ()
#1 0xb7526f41 in select () at ../sysdeps/unix/syscall-template.S:81
#2 0xb762f065 in apr_sleep () from /usr/lib/libapr-1.so.0
#3 0xb77003f1 in ap_wait_or_timeout ()
#4 0xb734488e in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so
#5 0xb76ffb16 in ap_run_mpm ()
#6 0xb76f88eb in main ()
(gdb) backtrace full
#0 0xb76b1424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7526f41 in select () at ../sysdeps/unix/syscall-template.S:81
No locals.
#2 0xb762f065 in apr_sleep () from /usr/lib/libapr-1.so.0
No symbol table info available.
#3 0xb77003f1 in ap_wait_or_timeout ()
No symbol table info available.
#4 0xb734488e in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so
No symbol table info available.
#5 0xb76ffb16 in ap_run_mpm ()
No symbol table info available.
#6 0xb76f88eb in main ()
No symbol table info available.
(gdb)
Так вот не понимаю, как это исправить. Вычитал, что можно заменить модуль prefork на event, тогда вылетает другая ошибочка
service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
[Mon Jun 16 12:06:20.622164 2014] [:crit] [pid 6259:tid 3074337344] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.
The Apache error log may have more information.
Какие есть идеи? Как исправить эту ошибку!
Если вдруг, то dpkg --list \*apache2\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-=======================-=======================-=============================================================================
ii apache2 2.4.6-2ubuntu2.2 i386 Apache HTTP Server
un apache2-api-20120211 <none> (no description available)
ii apache2-bin 2.4.6-2ubuntu2.2 i386 Apache HTTP Server (binary files and modules)
ii apache2-data 2.4.6-2ubuntu2.2 all Apache HTTP Server (common files)
ii apache2-doc 2.4.6-2ubuntu2.2 all Apache HTTP Server (on-site documentation)
un apache2-mpm-event <none> (no description available)
un apache2-mpm-itk <none> (no description available)
ii apache2-mpm-prefork 2.4.6-2ubuntu2.2 i386 transitional prefork MPM package for apache2
ii apache2-mpm-worker 2.4.6-2ubuntu2.2 i386 transitional worker MPM package for apache2
ii apache2-suexec 2.4.6-2ubuntu2.2 i386 transitional package for apache2-suexec-pristine
un apache2-suexec-custom <none> (no description available)
ii apache2-suexec-pristine 2.4.6-2ubuntu2.2 i386 Apache HTTP Server standard suexec program for mod_suexec
ii apache2-utils 2.4.6-2ubuntu2.2 i386 Apache HTTP Server (utility programs for web servers)
un apache2.2-bin <none> (no description available)
un apache2.2-common <none> (no description available)
un libapache2-mod-apparmor <none> (no description available)
ii libapache2-mod-fastcgi 2.4.7~0910052141-1.1 i386 Apache 2 FastCGI module for long-running CGI scripts
ii libapache2-mod-fcgid 1:2.3.9-1 i386 FastCGI interface module for Apache 2
un libapache2-mod-macro <none> (no description available)
un libapache2-mod-php4 <none> (no description available)
rc libapache2-mod-php5 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php5filter 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (apache 2 filter module)
un libapache2-mod-proxy-html <none> (no description available)
ii libapache2-mod-python 3.3.1-11ubuntu1 i386 Python-embedding module for Apache 2
un libapache2-mod-python-doc <none> (no description available)
ii libapache2-mod-suphp 0.7.1-3.1 i386 Apache2 module to run PHP scripts with the owner permissions
И dpkg --list \*php\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-=======================-=======================-=============================================================================
un dh-php5 <none> (no description available)
un libapache2-mod-php4 <none> (no description available)
rc libapache2-mod-php5 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php5filter 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (apache 2 filter module)
ii libapache2-mod-suphp 0.7.1-3.1 i386 Apache2 module to run PHP scripts with the owner permissions
ii libssh2-php 0.11.3-0.1build2 i386 PHP Bindings for libssh2
un php-apc <none> (no description available)
ii php-auth 1.6.2-1ubuntu1 all PHP PEAR modules for creating an authentication system
ii php-auth-sasl 1.0.6-1 all Abstraction of various SASL mechanism responses
un php-crypt-gpg <none> (no description available)
ii php-gettext 1.0.11-1 all read gettext MO files directly, without requiring anything other than PHP
un php-log <none> (no description available)
ii php-mail-mime 1.8.4-1 all PHP PEAR module for creating MIME messages
ii php-mail-mimedecode 1.5.5-2 all Provides a class to decode mime messages
ii php-net-smtp 1.6.1-1 all PHP PEAR module implementing SMTP protocol
ii php-net-socket 1.0.14-1 all PHP PEAR Network Socket Interface module
ii php-pear 5.5.3+dfsg-1ubuntu2.3 all PEAR - PHP Extension and Application Repository
un php-soap <none> (no description available)
un php-xml-util <none> (no description available)
un php4-pear <none> (no description available)
ii php5 5.5.3+dfsg-1ubuntu2.3 all server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.5.3+dfsg-1ubuntu2.3 i386 command-line interpreter for the php5 scripting language
ii php5-common 5.5.3+dfsg-1ubuntu2.3 i386 Common files for packages built from the php5 source
ii php5-curl 5.5.3+dfsg-1ubuntu2.3 i386 CURL module for php5
ii php5-dev 5.5.3+dfsg-1ubuntu2.3 i386 Files for PHP5 module development
ii php5-ffmpeg 0.6.0-2.2fakesync1build i386 audio and video support via ffmpeg for php5
ii php5-fpm 5.5.3+dfsg-1ubuntu2.3 i386 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.5.3+dfsg-1ubuntu2.3 i386 GD module for php5
un php5-idn <none> (no description available)
ii php5-imagick 3.1.0~rc2-1 i386 ImageMagick module for php5
ii php5-imap 5.4.6-0ubuntu3 i386 IMAP module for php5
ii php5-intl 5.5.3+dfsg-1ubuntu2.3 i386 internationalisation module for php5
ii php5-json 1.3.1+dfsg-2 i386 JSON module for php5
ii php5-mcrypt 5.4.6-0ubuntu3 i386 MCrypt module for php5
ii php5-memcache 3.0.8-1build1 i386 memcache extension module for PHP5
ii php5-memcached 2.1.0-3build1 i386 memcached extension module for PHP5, uses libmemcached
un php5-mhash <none> (no description available)
ii php5-ming 1:0.4.5-1ubuntu1 i386 Ming module for php5
ii php5-mysql 5.5.3+dfsg-1ubuntu2.3 i386 MySQL module for php5
un php5-mysqli <none> (no description available)
un php5-mysqlnd <none> (no description available)
un php5-pgsql <none> (no description available)
ii php5-ps 1.3.7-1build1 i386 ps module for PHP 5
ii php5-pspell 5.5.3+dfsg-1ubuntu2.3 i386 pspell module for php5
ii php5-readline 5.5.3+dfsg-1ubuntu2.3 i386 Readline module for php5
ii php5-recode 5.5.3+dfsg-1ubuntu2.3 i386 recode module for php5
ii php5-snmp 5.5.3+dfsg-1ubuntu2.3 i386 SNMP module for php5
ii php5-sqlite 5.5.3+dfsg-1ubuntu2.3 i386 SQLite module for php5
un php5-suhosin <none> (no description available)
ii php5-tidy 5.5.3+dfsg-1ubuntu2.3 i386 tidy module for php5
un php5-user-cache <none> (no description available)
ii php5-xcache 3.1~svn1330-1 i386 Fast, stable PHP opcode cacher
un php5-xdebug <none> (no description available)
ii php5-xmlrpc 5.5.3+dfsg-1ubuntu2.3 i386 XML-RPC module for php5
ii php5-xsl 5.5.3+dfsg-1ubuntu2.3 i386 XSL module for php5
un phpapi-20121212 <none> (no description available)
ii phpmyadmin 4:4.0.6-1 all MySQL web administration tool
un pkg-php-tools <none> (no description available)
ii suphp-common 0.7.1-3.1 i386 Common files for mod suphp