Dr.Death

Member
Oct 10, 2006
7
0
151
Hi, my cpanel server stoped running , when i run /usr/local/cpanel/startup I get :

# ./startup
Waiting for cpaneld to shutdown......Done
Waiting for webmaild to shutdown......Done
Waiting for cppop to shutdown......Done
Waiting for cppop-ssl to shutdown......Done
Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 103, in ?
import socket
File "/usr/local/lib/python2.4/socket.py", line 45, in ?
import _socket
ImportError: /usr/local/lib/python2.4/lib-dynload/_socket.so: Undefined symbol "__h_errno"
No matching processes were found
Waiting for cpsrvd to shutdown......Done
Waiting for cpsrvd-ssl to shutdown......Done
Waiting for whostmgrd to shutdown......Done
==> cPanel Log Daemon version 22.2
==> Shared RRDTOOL support enabled
==> Starting cpbandwd (bandwidth monitoring for IMAP/POP)
cpbandwd is already running.
Waiting for cppop to shutdown......Done
Waiting for cppop-ssl to shutdown......Done
Died at /usr/local/cpanel/bin/eximstats line 35.
Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 103, in ?
import socket
File "/usr/local/lib/python2.4/socket.py", line 45, in ?
import _socket
ImportError: /usr/local/lib/python2.4/lib-dynload/_socket.so: Undefined symbol "__h_errno"
==> Starting SSL tunnel...
Using Native SSL support (stunnel not needed)
Listening on port 2084...

this appear with apachectl and httpd:

# /usr/local/apache/bin/apachectl start
Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/lib/mysql/libmysqlclient.so.15: Undefined symbol "gethostbyname_r"
/usr/local/apache/bin/apachectl start: httpd could not be started
WHM 10.8.0 cPanel 10.9.0-S58
FreeBSD 6.1-RELEASE i386 - WHM X v3.1.0

any help plz
 
Last edited:

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Hello.

Did you upgrade MySQL ? Anyway, I advise you to recompile PHP using:
/script/easyapache

and upgrade python. It should resolve the issue.
 

Dr.Death

Member
Oct 10, 2006
7
0
151
Hi Krava,

yes my cpanel did the upgrade automatic, i run /script/easyapache, but it failed:

Untarring php....Done
Applying CURL curl_formfree patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ext/curl/curl.c Thu Jul 15 23:22:20 2004
|+++ ext/curl/curl.c Thu Jul 15 23:22:46 2004
--------------------------
Patching file ext/curl/curl.c using Plan A...
Hunk #1 succeeded at 724 (offset 179 lines).
Hunk #2 succeeded at 904 (offset 19 lines).
done
Running configure:
LDFLAGS="-L/usr/X11R6/lib64" /usr/home/cpapachebuild/buildapache/callbacklog --prog configure --dir /usr/home/cpapachebuild/buildapache/build-log -- --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib
./configure [@php-4.4.3]...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib)...................Done
configure: error: mysql configure failed. Please check config.log for more information.
make [@php-4.4.3]...(-j 4 clean)....Done
Can't open Makefile: No such file or directory.
make [@php-4.4.3]...(-j 4)....Done
make [@php-4.4.3]...(install)....Done
Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/lib/mysql/libmysqlclient.so.15: Undefined symbol "gethostbyname_r"
/usr/local/etc/rc.d/030httpd.sh start: httpd could not be started
./configure [@php-4.4.3]...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).................Done
configure: error: mysql configure failed. Please check config.log for more information.
make [@php-4.4.3]...(-j 4 clean)....Done
Can't open Makefile: No such file or directory.
make [@php-4.4.3]...(-j 4)....Done
make [@php-4.4.3]...(install)....Done
initfpsuexec: using apache 1.x support
chflags: _vti_bin/fpexe: Operation not permitted
chflags: _vti_bin/fpexe: Operation not permitted
PHP version file is up to date
Executing /scripts/postbuildapache (if exists)...Done
Syntax error on line 212 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/lib/mysql/libmysqlclient.so.15: Undefined symbol "gethostbyname_r"
/usr/local/etc/rc.d/030httpd.sh start: httpd could not be started
initfpsuexec: using apache 1.x support
chflags: _vti_bin/fpexe: Operation not permitted
chflags: _vti_bin/fpexe: Operation not permitted
Waiting for httpd to restart.........No matching processes were found
.....finished.


httpd has failed, please contact the sysadmin.
:(
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Check the file:

/etc/make.conf

and comment all optimization keys, then update cPanel:
/script/upcp --force

and recompile apache/php. Moreover, select php 4.4.4 in easyapche. As I see currently you want to compile php 4.4.3.

One more thing, did you try to remove the php module from httpd.conf and compile apahce/php using easyapache ?

Also, look here:

****
Running configure:
LDFLAGS="-L/usr/X11R6/lib64" /usr/home/cpapachebuild/buildapache/callbacklog --prog configure --dir /usr/home/cpapachebuild/buildapache/build-log -- --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib
./configure [@php-4.4.3]...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib)...................Done
configure: error: mysql configure failed. Please check config.log for more information.
****

Seems you can find what is causign the problem in config.log.
 
Last edited:

Dr.Death

Member
Oct 10, 2006
7
0
151
Hi Krava,

I did what you suggest, and still the same error. :(

./configure [@php-4.4.4]...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr/local --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... . . . . . . . . . . . . . . . . . Done

configure: error: mysql configure failed. Please check config.log for more information.
this is config.log error messages:
# more /usr/home/cpapachebuild/buildapache/php-4.4.4/config.log | grep error
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
configure:14804: error: `intmax_t' undeclared (first use in this function)
configure:14804: error: (Each undeclared identifier is reported only once
configure:14804: error: for each function it appears in.)
configure:14882: error: `ssize_t' undeclared (first use in this function)
configure:14882: error: (Each undeclared identifier is reported only once
configure:14882: error: for each function it appears in.)
configure:14921: error: `ptrdiff_t' undeclared (first use in this function)
configure:14921: error: (Each undeclared identifier is reported only once
configure:14921: error: for each function it appears in.)
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
configure:15543: checking for gai_strerror
/* Override any gcc2 internal prototype to avoid an error. */
configure:15543: checking for perror
/* Override any gcc2 internal prototype to avoid an error. */
configure:15543: checking for strerror
configure:16091: error: too many arguments to function `asctime_r'
configure:16121: error: too many arguments to function `asctime_r'
configure:61903: error: syntax error before "foo"
configure:61904: error: `foo' undeclared (first use in this function)
configure:61904: error: (Each undeclared identifier is reported only once
configure:61904: error: for each function it appears in.)
configure:61946: error: syntax error before "foo"
configure:61947: error: `foo' undeclared (first use in this function)
configure:61947: error: (Each undeclared identifier is reported only once
configure:61947: error: for each function it appears in.)
configure:62086: error: syntax error before "i"
/* Override any gcc2 internal prototype to avoid an error. */
configure:62849: checking for mysql_error in -lmysqlclient
/* Override any gcc2 internal prototype to avoid an error. */
char mysql_error();
mysql_error()
this when run mysql:

/usr/local/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").
and this is /var/db/mysql/hostname.err :

061031 12:08:18 mysqld started
061031 12:08:18 InnoDB: Started; log sequence number 0 65258
061031 12:08:18 [ERROR] Can't start server : Bind on unix socket: Permission den
ied
061031 12:08:18 [ERROR] Do you already have another mysqld server running on soc
ket: /tmp/mysql.sock ?
061031 12:08:18 [ERROR] Aborting

061031 12:08:18 InnoDB: Starting shutdown...
061031 12:08:21 InnoDB: Shutdown completed; log sequence number 0 65258
061031 12:08:21 [Note] /usr/local/libexec/mysqld: Shutdown complete

061031 12:08:21 mysqld ended
thankx
 
Last edited: