LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-31-2006, 06:08 AM   #1
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Rep: Reputation: 30
Question 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 !
 
Old 11-01-2006, 03:00 PM   #2
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
Try to use

/scripts/upcp --force

This will do a forced cpanel update.Tell me if it works.
 
Old 11-02-2006, 01:23 AM   #3
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
stell the same error with python socket appear with upcp --force

Quote:
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)
Content-type: text/html
 
Old 11-03-2006, 10:23 AM   #4
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
copy /usr/src/include/netdb.h back over the /usr/include/netdb.h
 
Old 11-03-2006, 10:23 AM   #5
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
then try again the update
 
Old 11-04-2006, 03:52 AM   #6
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
hi bin_asc , stell the same.

Quote:
# /etc/init.d/httpd start
Syntax error on line 217 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"
/etc/init.d/httpd start: httpd could not be started
Quote:
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...
 
Old 11-05-2006, 11:04 AM   #7
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
Did you try to recompile apache from SSH ?
/scripts/easyapache and use the defaults. I also recall that python apache module can cause problems. Try to compile apache with the defaults. And then get back at me.
 
Old 11-10-2006, 05:21 PM   #8
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
yes my friend i did that from the console and WHM. the same issue.

i think iam going to formate the box and install cpanel again.

i will try to update every serve separate and see which update will cause the problem.

thanks man.
 
Old 11-11-2006, 07:50 AM   #9
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
I would continue giving solutions, but if I had access to your box, I would debug it much faster.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
addon domains in cpanel..urgent issue I_AM Linux - General 1 11-03-2006 10:30 AM
cPanel? ImpactDNI Linux - Software 3 11-03-2006 10:28 AM
Cpanel quozt Linux - General 2 11-03-2006 10:27 AM
Cpanel Fredstar Linux - Newbie 5 11-03-2006 10:26 AM
CPanel trouble Ab3n Linux - Software 2 11-03-2006 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration