Dr_Death_UAE |
10-31-2006 06:08 AM |
cpanel issue
Hi, my cpanel server on FreeBSD6.1 stop running after upgrade the server services and ports, it show error with python,mysql,apache,php
cpanel info:
Quote:
WHM 10.8.0 cPanel 10.9.0-S58
FreeBSD 6.1-RELEASE i386 - WHM X v3.1.0
|
when i run /usr/local/cpanel/startup I get :
Quote:
# ./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 :
Quote:
# /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
|
I tried to recompile apache with select php 4.4.4 in easyapche:
Quote:
./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:
Quote:
# 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:
Quote:
/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 :
Quote:
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
|
sorry for my English
any adivce !:scratch:
|