What am i doing wrong?
Now error: Database connection error (2): Could not connect to MySQL.
[root@xxx ~]# /usr/local/lsws/fcgi-bin/lsphp5 -i | grep mysql
Configure Command => './configure' '--prefix=/usr/local/lsws/lsphp5' '--with-l
itespeed' '--with-libdir=lib64' '--disable-debug' '--with-pic' '--disable-rpath'
'--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/
usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--wit
hout-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '
--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm
' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop'
'--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-di
r=/usr' '--enable-xml' '--with-system-tzdata' '--enable-force-cgi-redirect' '--e
nable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '
--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared' '--enable-bcmath=sh
ared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-lda
p=shared' '--with-ldap-sasl' '--with-mysql=mysqlnd' '--with-mysql=/usr/lib64/mys
ql/mysql_config' '--with-mysqli=mysqlnd' '--with-mysqli=/usr/lib64/mysql/mysql_c
onfig' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--wit
h-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xm
lreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-
pdo' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-
dblib=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--with-readline
' '--with-ssh2' '--enable-dbase=shared' '--with-pspell=shared' '--with-mcrypt=sh
ared,/usr' '--with-mhash=shared,/usr' '--with-tidy=shared,/usr' '--enable-sysvms
g=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=sh
ared' '--with-unixODBC=shared,/usr' '--with-pdo-mysql' '--with-mysql-sock=/var/m
ysql/mysql.sock'
mysql
MYSQL_SOCKET => /var/mysql/mysql.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib64/mysql -lmysqlclient
mysql.allow_local_infile => On => On
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => /var/mysql/mysql.sock => /var/mysql/mysql.sock
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
mysqli
MYSQLI_SOCKET => /var/mysql/mysql.sock
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => /var/mysql/mysql.sock => /var/mysql/mysql.sock
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
PDO drivers => mysql
pdo_mysql
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.so
ck