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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Your PHP installation appears to be missing the MySQL extension

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2012, 08:48 PM
tedy tedy is offline
New Member
 
Join Date: Nov 2012
Posts: 3
Default [solved] Your PHP installation appears to be missing the MySQL extension

Hi,

I have read all topic on this and other forums related to this topic, but still didn't find solution for me.

When I've installed litespeed and configured php I've received this message when visited site on wordpress:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.


After 100x+ recompiling, I'm getting "Error establishing a database connection" now.

Let me tell that this only happens with litespeed. If I shut it down and run apache - websites work with no problem.

I'm running CentOS 6.3 64bit on VPS.


Thank you for support.

Last edited by NiteWave; 11-28-2012 at 08:42 PM..
Reply With Quote
  #2  
Old 11-28-2012, 02:26 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
what's your php version and php build options ?
Reply With Quote
  #3  
Old 11-28-2012, 09:20 AM
tedy tedy is offline
New Member
 
Join Date: Nov 2012
Posts: 3
PHP 5.4.8 (litespeed) (built: Nov 28 2012 12:38:36)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies


'--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--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' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--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-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mysql=/var/lib/mysql/' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--with-litespeed' '--with-libdir=lib64' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd'
Reply With Quote
  #4  
Old 11-28-2012, 10:13 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
according to php manual (http://us1.php.net/manual/en/mysql.installation.php), you just use '--with-mysql' for mysqlnd in php 5.4.*. no need for '--with-mysql=/var/lib/mysql/', '--with-mysql=mysqlnd' or '--with-mysqli=mysqlnd'.
Reply With Quote
  #5  
Old 11-28-2012, 07:31 PM
tedy tedy is offline
New Member
 
Join Date: Nov 2012
Posts: 3
It works!

Looks like I have added too many options during search on forums.

Thank you very much for support!
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 07:46 AM.



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