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

Go Back   LiteSpeed Support Forums > External Applications > PHP > php error

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2013, 04:18 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
Default php error

Hello i take this error
.. work around for libtool problem: sys_lib_dlsearch_path_spec should use lib64
/usr/local/lsws/phpbuild/buildphp_1368703253.9.install.sh: line 91: make: command not found
How can fix it?
Reply With Quote
  #2  
Old 05-16-2013, 06:36 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
You need to install 'make' on your server. if you run CentOS, do something like 'yum install make'.
Reply With Quote
  #3  
Old 05-16-2013, 07:06 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
Thank you thats work.. My problem is can connect to mysql
I run centos with plesk 10.4
what i doing wrong?

[root@xxx lsws-4.2.2]# /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-mysqli=mysqlnd' '--e
nable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shar
ed,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=sha
red' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-pdo=shared'
'--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dbli
b=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--with-readline' '-
-with-ssh2' '--enable-dbase=shared' '--with-pspell=shared' '--with-mcrypt=shared
,/usr' '--with-mhash=shared,/usr' '--with-tidy=shared,/usr' '--enable-sysvmsg=sh
ared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared
' '--with-unixODBC=shared,/usr' '--with-pdo-mysql=shared'
mysql
Client API version => mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b2324
87a435ee0372157 $
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 => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
mysqli
Client API library version => mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3
752b232487a435ee0372157 $
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 => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqlnd
mysqlnd => enabled
Version => mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee037
2157 $
Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_nati ve_password,
auth_plugin_mysql_clear_password
API Extensions => mysqli,mysql
mysqlnd statistics =>
Reply With Quote
  #4  
Old 05-16-2013, 07:21 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
since you are using mysqlnd (native driver), you should replace compile option '--with-pdo-mysql=shared' with '--with-pdo-mysql=mysqlnd'.
Reply With Quote
  #5  
Old 05-16-2013, 07:37 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
if i use '--with-pdo-mysql=mysqlnd' i take this error:

You've configured extension pdo_mysql to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build pdo_mysql shared or build pdo statically for the
build to be successful.
Reply With Quote
  #6  
Old 05-16-2013, 07:40 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
and if i use '--with-pdo-mysql=shared' i take this error:

configure: error: PDO_MYSQL configure failed. Please check config.log for more information.
**ERROR** Could not configure PHP build
Reply With Quote
  #7  
Old 05-17-2013, 07:42 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Quote:
Originally Posted by mythoss View Post
if i use '--with-pdo-mysql=mysqlnd' i take this error:

You've configured extension pdo_mysql to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build pdo_mysql shared or build pdo statically for the
build to be successful.
use '--enable-pdo' instead of '--enable-pdo=shared'.
Reply With Quote
  #8  
Old 05-17-2013, 08:34 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
new error

Database connection error (1): The MySQL adapter 'mysql' is not available.

Reply With Quote
  #9  
Old 05-17-2013, 09:09 AM
mythoss mythoss is offline
Member
 
Join Date: May 2013
Posts: 11
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
Reply With Quote
  #10  
Old 05-17-2013, 02:02 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
run your mysql db with socket at /var/mysql/mysql.sock (set socket in my.cnf).
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 11:23 PM.



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