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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Configuring MySQL support for PHP

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2008, 07:00 AM
sagar sagar is offline
Member
 
Join Date: Oct 2008
Posts: 15
Default Configuring MySQL support for PHP

I migrated from Apache to Litespeed and all static content working fine. For PHP, I compiled 5.x version using litespeed webconsole. Now when I try to connect to mysql, I get following error:

Code:
This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.

I checked wiki/installation and did some search on google but could not figure it out.

I am a complete novice in all this, so would appreciate if some one could give me step by step instruction on how to setup mysql environment.
Reply With Quote
  #2  
Old 10-29-2008, 07:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Do you have a working PHP with Apache?
Are you using a hosting control panel?
Reply With Quote
  #3  
Old 10-29-2008, 08:18 AM
sagar sagar is offline
Member
 
Join Date: Oct 2008
Posts: 15
I had working PHP with Apache but I did this compilation thing thro' LS web console. I am using Parallel + LS no cpanel or any other standard CP
Reply With Quote
  #4  
Old 10-29-2008, 09:12 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Did you compile PHP with:

--with-mysqli
Reply With Quote
  #5  
Old 10-29-2008, 09:57 AM
sagar sagar is offline
Member
 
Join Date: Oct 2008
Posts: 15
I kept all default options as is
Reply With Quote
  #6  
Old 10-29-2008, 09:59 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Do you have WHM? If so, try compiling php from litespeed addon there. Click "build matching php binary"
Reply With Quote
  #7  
Old 10-29-2008, 10:04 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
try a phpinfo() page under Apache PHP, if it show the compile configuration, use the same configuration to compile lsphp5 from web console.
Otherwise, you have to find out what PHP module is enabled under Apache PHP and build a lsphp5 with similar configuration.
Reply With Quote
  #8  
Old 10-29-2008, 09:43 PM
sagar sagar is offline
Member
 
Join Date: Oct 2008
Posts: 15
Can you help me with the values for mysql configuration?

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.reconnect Off Off
Reply With Quote
  #9  
Old 10-29-2008, 09:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
mysql and mysqli are two different mysql module in PHP, they are not interchangeable. You have to build your PHP with configuration option
"--with-mysql=<dir_to_libmysqlclient_installation>".
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 09:36 PM.



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