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

Go Back   LiteSpeed Support Forums > External Applications > PHP > [solved] Error while Compile PHP with LSAPI

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2012, 01:22 AM
smartcard smartcard is offline
New Member
 
Join Date: Jan 2012
Posts: 8
Default [solved] Error while Compile PHP with LSAPI

Hello, I am getting the following error while trying to compile the PHP 5

Quote:
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution
**ERROR** Could not configure PHP build

Last edited by NiteWave; 01-31-2012 at 04:53 PM..
Reply With Quote
  #2  
Old 01-30-2012, 10:16 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
http://www.litespeedtech.com/support...i:troubleshoot

compile php with following option:
'--with-mysqli=shared,/usr/bin/mysql_config'
or
'--with-mysqli=/usr/bin/mysql_config'

make sure you have mysql rpm (contains /usr/bin/mysql_config) install.
Reply With Quote
  #3  
Old 01-30-2012, 10:25 AM
smartcard smartcard is offline
New Member
 
Join Date: Jan 2012
Posts: 8
Thanks for the reply.
I am done with the PHP 5 compile, but can't connect to MySql


Code:
/home/me/lsws/fcgi-bin/lsphp5 -i|grep default_socket
is giving the following result

Quote:
mysqli.default_socket => no value => no value
default_socket_timeout => 60 => 60
Reply With Quote
  #4  
Old 01-30-2012, 10:49 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
you can define mysqli.default_socket in php.ini used by lsphp5 or define socket in my.cnf.
Reply With Quote
  #5  
Old 01-31-2012, 12:29 AM
smartcard smartcard is offline
New Member
 
Join Date: Jan 2012
Posts: 8
I solved the problem by combiling PHP5 with the following

Quote:
'--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-gd-native-ttf' '--with-pdo-mysql' '--enable-pdo' '--with-libdir=lib' '--with-mysql' '--with-mcrypt' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-png' '--with-jpeg' '--with-sqlite'
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 10:07 PM.



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