Bug #14333 Updated: Apache processes consume all CPU

From: Date: Sat, 08 Dec 2001 15:14:24 +0000
Subject: Bug #14333 Updated: Apache processes consume all CPU
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72938@lists.php.net to get a copy of this message
ID: 14333 Updated by: derick Reported By: tauren@servlets.net Status: Feedback Bug Type: Apache related Operating System: RH 6.2 SMP PHP Version: 4.0.6 New Comment: The RPm is called MySQL-shared BTW. Previous Comments: ------------------------------------------------------------------------ [2001-12-08 10:12:49] sniper@php.net What would help us to narrow down the possible places where this bug might be is that you build PHP with minimal amount of extensions ie. remove all the options and leave only the apache option there. --Jani ------------------------------------------------------------------------ [2001-12-08 05:14:21] tauren@servlets.net I just installed the MySQL-devel-3.23.40-1.i386.rpm RPM. It installed the following files: [root@s1 lib]# rpm -q -l MySQL-devel /usr/bin/comp_err /usr/bin/mysql_config /usr/include/mysql /usr/include/mysql/chardefs.h /usr/include/mysql/dbug.h /usr/include/mysql/errmsg.h /usr/include/mysql/history.h /usr/include/mysql/keymaps.h /usr/include/mysql/m_ctype.h /usr/include/mysql/m_string.h /usr/include/mysql/my_config.h /usr/include/mysql/my_global.h /usr/include/mysql/my_list.h /usr/include/mysql/my_net.h /usr/include/mysql/my_no_pthread.h /usr/include/mysql/my_pthread.h /usr/include/mysql/my_sys.h /usr/include/mysql/mysql.h /usr/include/mysql/mysql_com.h /usr/include/mysql/mysql_version.h /usr/include/mysql/mysqld_error.h /usr/include/mysql/raid.h /usr/include/mysql/readline.h /usr/include/mysql/sslopt-case.h /usr/include/mysql/sslopt-longopts.h /usr/include/mysql/sslopt-usage.h /usr/include/mysql/sslopt-vars.h /usr/include/mysql/tilde.h /usr/lib/mysql /usr/lib/mysql/libdbug.a /usr/lib/mysql/libheap.a /usr/lib/mysql/libmerge.a /usr/lib/mysql/libmyisam.a /usr/lib/mysql/libmyisammrg.a /usr/lib/mysql/libmysqlclient.a /usr/lib/mysql/libmysqlclient.la /usr/lib/mysql/libmystrings.a /usr/lib/mysql/libmysys.a /usr/lib/mysql/libnisam.a There isn't a libmysqlclient.so in this list, but there is a libmysqlclient.a. However, it is in /usr/lib/mysql. What line should I use to configure PHP? Is it still: --with-mysql=/usr Or would it be: --with-mysql=/usr/lib/mysql Or something else? Thanks! ------------------------------------------------------------------------ [2001-12-05 01:26:37] derick@php.net If you use other module for apache, then PHP only, you _must_ use the MySQL libraries that are installed on your system, but not the bundled once. You should indeed try if --without-mysql would work for you. (Simply leaving out --with-mysql does not work, it's on by default). Derick ------------------------------------------------------------------------ [2001-12-04 17:57:03] tauren@servlets.net I can't find the libmysqlclient.so file on my system (and definitely not in /usr/lib). MySQL-3.23.40-1 was installed from RPM, not from ApacheToolbox. I don't think I've installed the MySQL-devel package. Do you think this has something to do with the PHP problem? I could try compiling it without the --with-mysql to see if that helps at all. Were the backtraces helpful at all? Thanks again for the help! ------------------------------------------------------------------------ [2001-12-04 08:22:51] derick@php.net You can try this: Edit the ./configure line for PHP that APT generated: remove: --with-mysql add: --with-mysql=/usr (if libmysqlclient.so is in /usr/lib/) and the rebuild both PHP and apache. Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=14333 Edit this bug report at http://bugs.php.net/?id=14333&edit=1

« previous php.dev (#72938) next »