Upgraded MySQL to 5.1 and then run php n now php doesn't work anymore???

janton

Verified User
Joined
Sep 17, 2009
Messages
145
I thought to update my mysql from 5.0 to 5.1
then i needed to run build php n

now when i go to my DRUPAL and PHPMYADMIN site i ger error page directly.
If i check apache log i see:

[Thu Sep 15 10:39:23 2011] [notice] child pid 7935 exit signal Segmentation fault (11)


What could be wrong?
I checked a different site on the same machine, wordpress works ok... so stainge...
 
Last edited:
i read in a different forum it could be some php modules

i have this php -m
bcmath
calendar
Core
ctype
curl
date
dom
ereg
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib


make clean, redo the phpize and rebuild.. how do i do this?
 
-bash-3.2# php -v
PHP 5.3.8 (cli) (built: Aug 25 2011 11:32:18)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
 
I can't find anywhere how to run php in debug mode so i can maybe locate the problem. How can i compile php to run debug with directadmin? or how do i run php in debug mode?
 
lucky i had a snapshot.. i restored it to the old state.
I will try to update MYSQL soon again.. is V5.0 so out of date?
 
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build mysql d
./build php n
 
YES thx

Somehow it now worked.. last time I didn't run update build:
http://help.directadmin.com/item.php?id=240
and update clean..

on that help page they don't say i needed to run update :confused:

Also when i run ./build php n
i see this error 5x times:

usr/loacl/bin/php:error while loading shared libraries: libnysqlclient.so.15:cannot open shared object file: no such file or directory
usr/loacl/bin/php:error while loading shared libraries: libnysqlclient.so.15:cannot open shared object file: no such file or directory
usr/loacl/bin/php:error while loading shared libraries: libnysqlclient.so.15:cannot open shared object file: no such file or directory
usr/loacl/bin/php:error while loading shared libraries: libnysqlclient.so.15:cannot open shared object file: no such file or directory
usr/loacl/bin/php:error while loading shared libraries: libnysqlclient.so.15:cannot open shared object file: no such file or directory


but all seems to work nice now... I mean is it bad that error? or is this normal when i run ./build php n?
 
Last edited:
That's normal, because when you installed a new version of MySQL, file libnysqlclient.so.15 got deleted, but your PHP was compiled against that file. Since you re-installed PHP it was compiled against a new version of libnysqlclient.so
 
ok thx for the confirmation! and good to learn this things.. so i will know this for the future..
thx again for all the support
 
Back
Top