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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Solved] Fatal Error

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2011, 02:03 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
Default [Solved] Fatal Error

Fatal error: Call to undefined function mysql_connect()

Doesn't happen with Apache.

Im probably missing something obvious, anyone care to point it out.
Reply With Quote
  #2  
Old 07-01-2011, 02:11 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
build php for lsws, matching php for apache.

you can compare phpinfo() under apache and lsws.

refer wiki:
http://www.litespeedtech.com/support...wiki:php:lsapi
Reply With Quote
  #3  
Old 07-01-2011, 02:21 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
From researching it seems i need --with-mysql


However when I try to compile php I get this:
=============================================
Compile PHP with LSAPI

fail to save current configuration.

Fail to generate build script, please try to manually fix the error first.
Failed to create manual install script: /usr/local/lsws/phpbuild/buildphp_manual_run.sh
==============================================
Reply With Quote
  #4  
Old 07-01-2011, 03:28 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
Having no luck with this...
Reply With Quote
  #5  
Old 07-01-2011, 07:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You may change some permission manually under /usr/local/lsws, the default should work fine. Please do a reinstall.
Make sure there are enough disk space available under /usr/local/lsws.
Reply With Quote
  #6  
Old 07-01-2011, 09:26 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
lsws is 755, and Ive tried reinstalling several times already.

I will try 777 I guess and reinstall.
Reply With Quote
  #7  
Old 07-01-2011, 09:36 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
Little farther.

Now Im getting configure: error: libpng.(a|so) not found.
**ERROR** Could not configure PHP build
Reply With Quote
  #8  
Old 07-01-2011, 09:48 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
http://www.litespeedtech.com/support...i:troubleshoot
Reply With Quote
  #9  
Old 07-01-2011, 10:30 AM
speedingsoft speedingsoft is offline
Member
 
Join Date: Jun 2011
Posts: 10
Added in:
--with-jpeg-dir=/usr/lib64


it went about 10 lines farter in the compling process but still comes back.
=========
checking for the location of libjpeg... /usr/lib64
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.
**ERROR** Could not configure PHP build
=========
Also:
Package libjpeg-devel-6b-37.x86_64 already installed and latest version
libjpeg is there at /usr/lib64
===
I even tried:
--with-jpeg-dir=/usr/lib64/libjpeg.so

Last edited by speedingsoft; 07-01-2011 at 11:09 AM..
Reply With Quote
  #10  
Old 07-01-2011, 11:36 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
have you add "--libdir=lib64"?
Just use "--with-jpeg-dir=/usr".
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:53 AM.



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