Compiling PHP

baum

New Member
#1
I use Directadmin and Litespeed Webserver but after compiling php 5.6.8 the website didn't connect to mysql

--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-config-file-path=../php --with-mysql=../mysql --with-jpeg-dir=.. --with-png-dir=.. --with-zlib-dir=..
what can i do?

sry for my english
 

mistwang

LiteSpeed Staff
#2
check output of

lsws/fcgi-bin/lsphp5 -i

It should have mysql and mysqli module in the output, if not, you need to tweak PHP configuration and recompile. I think "--with-mysql=../mysql" does not work. you have to use the real path where mysql client libraries has been installed to.
make sure mysql client devel rpm has been installed properly.
 
Top