LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > rebuilding php5 with mysql

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2008, 12:50 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
Default rebuilding php5 with mysql

I have been trying to rebuild mysql (4.1) with php5 but keep getting the error

Quote:
checking for specified location of the MySQL UNIX socket... /var/lib/mysql/mysql.sock
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
this is what my config.log says
Quote:
configure:59329: $? = 0
configure:59332: test -s conftest
configure:59335: $? = 0
configure:59347: result: yes
configure:60034: checking if iconv is glibc's
configure:60052: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm >&5
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.a when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.a when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
configure:60058: $? = 0
configure:60062: test -z
|| test ! -s conftest.err
configure:60065: $? = 0
configure:60068: test -s conftest
configure:60071: $? = 0
configure:60074: result: yes
configure:60361: checking if iconv supports errno
configure:60403: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm >&5
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.a when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.a when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
configure:60406: $? = 0
configure:60408: ./conftest
configure:60411: $? = 0
configure:60414: result: yes
configure:60447: checking if your cpp allows macro usage in include lines
configure:60468: gcc -c -I/usr/include -g -O2 conftest.c >&5
configure:60474: $? = 0
configure:60478: test -z
|| test ! -s conftest.err
configure:60481: $? = 0
can't find any info on this, can anyone suggest a fix?
Reply With Quote
  #2  
Old 07-22-2008, 01:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 6,646
If you were building 64bit PHP binary, you should add "--with-libdir=lib64" option.
With this option, seems the "--with-mysql=/usr" works without expanding mysql package under "/usr/local/mysql".
Reply With Quote
  #3  
Old 07-22-2008, 01:39 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
Quote:
Originally Posted by mistwang View Post
If you were building 64bit PHP binary, you should add "--with-libdir=lib64" option.
With this option, seems the "--with-mysql=/usr" works without expanding mysql package under "/usr/local/mysql".
does this make sense?

--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-simplexml --with-libdir=lib64
Reply With Quote
  #4  
Old 07-22-2008, 01:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 6,646
looks fine to me.
Reply With Quote
  #5  
Old 07-22-2008, 01:56 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
looks all good

how can i test to see if the connection is there and is ok?

my site still seems to be coming up blank therefore the connection must be broken.

edit: just checked, phpmyadmin just verified that
Reply With Quote
  #6  
Old 07-22-2008, 02:02 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
sorted, added include_path = ".:/usr/local/lsws/lsphp5/lib/php" to my php.ini and a restart.

cheers mistwang
Reply With Quote
  #7  
Old 07-22-2008, 02:09 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
Quote:
Originally Posted by mistwang View Post
If you were building 64bit PHP binary, you should add "--with-libdir=lib64" option.
With this option, seems the "--with-mysql=/usr" works without expanding mysql package under "/usr/local/mysql".
mistwang, where did you get that info, i'm going to post some info on my blog which may be helpful to others, however i would like to know the background to those great suggestions

cheers
Reply With Quote
  #8  
Old 07-22-2008, 04:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 6,646
Just notice that another forum user posts his PHP configuration parameter, I give it a try and it works.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:59 PM.



- Archive - Top
© Copyright 2003-2007 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.