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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PDO extension

Reply
 
Thread Tools Display Modes
  #11  
Old 05-27-2011, 03:24 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
your extension directory should be "/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626" or "/usr/local/lsws/lsphp5/lib/php/extensions/20090626" for php 5.3.*. please double check if directory exists.

another option is compile with '--enable-pdo' instead of '--enable-pdo=shared'

Last edited by webizen; 05-27-2011 at 03:39 PM..
Reply With Quote
  #12  
Old 05-27-2011, 04:00 PM
tophostingcenter tophostingcenter is offline
Member
 
Join Date: Nov 2010
Posts: 32
Hello ,

Thank you !

Here what is we have, I don't see any folders that you mentioned, what we should do now ?

--
[root@xxxxxx~]# ls -l /usr/local/lsws/phpbuild/php-5.3.2/ext/pdo
total 876
-rwxr-xr-x 1 lsadm lsadm 102 Mar 23 2006 CREDITS
-rw-r--r-- 1 lsadm lsadm 937 Sep 26 2007 Makefile.frag
-rwxr-xr-x 1 lsadm lsadm 2000 Sep 26 2007 README
-rwxr-xr-x 1 lsadm lsadm 2425 Jul 25 2007 TODO
-rwxr-xr-x 1 lsadm lsadm 1865 Jul 25 2008 config.m4
-rwxr-xr-x 1 lsadm lsadm 349 Jul 24 2008 config.w32
-rw-r--r-- 1 lsadm lsadm 5095 Jul 14 2009 package2.xml
-rwxr-xr-x 1 lsadm lsadm 10339 Jan 3 2010 pdo.c
-rw-r--r-- 1 lsadm lsadm 834 Jun 12 2010 pdo.la
-rw-r--r-- 1 lsadm lsadm 308 Jun 12 2010 pdo.lo
-rw-r--r-- 1 lsadm lsadm 71280 Jun 12 2010 pdo.o
-rwxr-xr-x 1 lsadm lsadm 1231 Sep 26 2007 pdo.php
-rwxr-xr-x 1 lsadm lsadm 48966 Jan 3 2010 pdo_dbh.c
-rw-r--r-- 1 lsadm lsadm 320 Jun 12 2010 pdo_dbh.lo
-rw-r--r-- 1 lsadm lsadm 150184 Jun 12 2010 pdo_dbh.o
-rw-r--r-- 1 lsadm lsadm 17152 Mar 3 2010 pdo_sql_parser.c
-rw-r--r-- 1 lsadm lsadm 17890 Mar 3 2010 pdo_sql_parser.c.orig
-rw-r--r-- 1 lsadm lsadm 341 Jun 12 2010 pdo_sql_parser.lo
-rw-r--r-- 1 lsadm lsadm 69808 Jun 12 2010 pdo_sql_parser.o
-rw-r--r-- 1 lsadm lsadm 14261 Jan 3 2010 pdo_sql_parser.re
-rw-r--r-- 1 lsadm lsadm 13777 Jan 3 2010 pdo_sqlstate.c
-rw-r--r-- 1 lsadm lsadm 335 Jun 12 2010 pdo_sqlstate.lo
-rw-r--r-- 1 lsadm lsadm 54264 Jun 12 2010 pdo_sqlstate.o
-rwxr-xr-x 1 lsadm lsadm 79258 Feb 11 2010 pdo_stmt.c
-rw-r--r-- 1 lsadm lsadm 323 Jun 12 2010 pdo_stmt.lo
-rw-r--r-- 1 lsadm lsadm 199960 Jun 12 2010 pdo_stmt.o
-rwxr-xr-x 1 lsadm lsadm 3141 Jan 3 2010 php_pdo.h
-rwxr-xr-x 1 lsadm lsadm 24214 Jan 3 2010 php_pdo_driver.h
-rwxr-xr-x 1 lsadm lsadm 3794 Jan 3 2010 php_pdo_int.h
drwxr-xr-x 2 lsadm lsadm 4096 Mar 3 2010 tests


--

regards
eric
__________________
http://www.tophostingcenter.com
Cloud SERVERS and Virtual DESKTOP
Reply With Quote
  #13  
Old 05-27-2011, 04:06 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
/usr/local/lsws/phpbuild/php-5.3.2/ext/pdo part of your php source NOT the compiled so file. the shared module should be in "/usr/local/lsws/lsphp5/lib/php/extensions/..." as pointed out previously. pls double check.
Reply With Quote
  #14  
Old 05-27-2011, 04:16 PM
tophostingcenter tophostingcenter is offline
Member
 
Join Date: Nov 2010
Posts: 32
Hello,

So, that means I will have to copy /usr/local/lsws/phpbuild/php-5.3.2/ext/pdo into /usr/local/lsws/lsphp5/lib/php/extensions/ , right or I'm wrong ?

Thanks
Eric
__________________
http://www.tophostingcenter.com
Cloud SERVERS and Virtual DESKTOP
Reply With Quote
  #15  
Old 05-27-2011, 04:40 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Do NOT copy source to extensions directory. It is useless. The shared module so files should be generated in the extensions directory automatically during php compile.
Reply With Quote
  #16  
Old 05-27-2011, 04:57 PM
tophostingcenter tophostingcenter is offline
Member
 
Join Date: Nov 2010
Posts: 32
Ok!

In the admin panel, you have an "extra path" when you compile PHP, is it there that we should add /usr/local/lsws/lsphp5/lib/php/extensions/ , because the way I can see it , the issue is PDO is not at the good place !

Thanks
eric
__________________
http://www.tophostingcenter.com
Cloud SERVERS and Virtual DESKTOP
Reply With Quote
  #17  
Old 05-27-2011, 07:46 PM
tophostingcenter tophostingcenter is offline
Member
 
Join Date: Nov 2010
Posts: 32
Hello,

Thank you for your good support.

The issue has been resolved by recompiling everything with --enable-pdo

Thank you, appreciated!

Eric
__________________
http://www.tophostingcenter.com
Cloud SERVERS and Virtual DESKTOP
Reply With Quote
  #18  
Old 05-27-2011, 08:23 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
the extra path in admin console is to tell lsws when compile php what extra path to look for tool like wget, patch. you can leave it empty.

the compile option --prefix=/usr/local/lsws/lsphp5 makes sure all the shared extensions get created in /usr/local/lsws/lsphp5/lib/php/extensions/

if building shared extension doesn't work for you, try using the following options to build static modules (no 'extension=...' needed in php.ini) as pointed out before.

Quote:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-bz2' '--enable-ctype' '--enable-dba' '--enable-ftp' '--with-gettext' '--enable-mbstring=all' '--with-gd' '--with-mhash' '--with-mcrypt=/usr' '--with-openssl=/usr' '--enable-overload' '--enable-posix' '--enable-session' '--enable-sockets' '--enable-standard' '--enable-tokenizer' '--with-xml' '--with-xsl' '--with-zip' '--with-zlib' '--with-zlib-dir' '--with-freetype-dir' '--with-png-dir' '--with-jpeg-dir' '--with-expat-dir' '--with-iconv-dir' '--with-libxml-dir' '--enable-gd-native-ttf' '--with-ttf' '--enable-mbstr-enc-trans' '--with-expat-dir' '--with-xslt-sablot' '--with-gnu-ld' '--with-curl' '--with-curlwrappers' '--with-dom' '--with-dom-xslt' '--with-dom-exsltd' '--with-dom' '--with-fileinfo' '--with-gmp' '--with-iconv' '--with-imap' '--with-imap-ssl' '--with-mcal' '--with-mysql=/usr' '--with-mysqli' '--with-pgsql=/usr' '--with-sqlite' '--enable-sqlite-utf8' '--with-xmlrpc' '--enable-htscanner' '--enable-track-vars' '--enable-trans-sid' '--enable-memory-limit' '--enable-magic-quotes' '--with-pear' '--with-mime-magic' '--with-inifile' '--with-flatfile' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-mysql' '--with-pdo-pgsql' '--enable-sysvshm' '--enable-sysvsem' '--enable-shmop' '--with-kerberos' '--enable-suhosin' '--with-litespeed'
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 04:28 AM.



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