[solved] Error while Compile PHP with LSAPI

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

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 a moderator:
#3
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

mysqli.default_socket => no value => no value
default_socket_timeout => 60 => 60
 
#5
I solved the problem by combiling PHP5 with the following

'--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'
 
Top