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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP Error: Fatal error: Call to undefined function mysql_connect()

Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2009, 04:41 PM
sagar sagar is offline
Member
 
Join Date: Oct 2008
Posts: 15
Default PHP Error: Fatal error: Call to undefined function mysql_connect()

Getting this error. I recompiled php thorugh console twice but no luck

Code:
Fatal error: Call to undefined function mysql_connect()
Reply With Quote
  #2  
Old 12-22-2009, 05:24 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,294
recompile php with --with-mysql option.

http://www.php.net/manual/en/mysql.installation.php
Quote:
PHP 5+

MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to include MySQL 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 08:31 AM.



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