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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > updgrade to php5 problem

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2008, 02:15 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
Default updgrade to php5 problem

when trying to upgrade to php5 via CP is seem to get the following error.

Code:
........

checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for Kerberos support... no
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... no
checking if we should use cURL for url streams... no
checking for long... (cached) yes
checking size of long... (cached) 8
checking for int... (cached) yes
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... 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
If configure fails try --with-jpeg-dir=
configure: error: libpng.(a|so) not found.
i have install the following rpm's

yum install libxml2 libxml2-devel

but can't get any further, any ideas

Last edited by karloff; 07-16-2008 at 02:30 PM..
Reply With Quote
  #2  
Old 07-16-2008, 02:32 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
i may have found a fix

http://litespeedtech.com/support/for...php/t-399.html

however, is there anyway to integrate this into the cp install feature or does it have to be implemented manually?
Reply With Quote
  #3  
Old 07-16-2008, 02:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You need to install libpng-devel and libjpeg-devel
Reply With Quote
  #4  
Old 07-16-2008, 03:10 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
i have managed to install php5, however when i check the verion i get

fcgi-bin/lsphp -v
PHP 4.4.8 (litespeed) (built: Jan 8 2008 14:37:45)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


why would that be? do i need to reconfigure anything, or must i reboot the entire server?



edit: i tried to restart my server and still get the old version showing, also my sql has stop.. typical

Last edited by karloff; 07-16-2008 at 03:46 PM..
Reply With Quote
  #5  
Old 07-16-2008, 04:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
change "php" "Script Handler" configuration at server level from lsphp4 to lsphp5.
Reply With Quote
  #6  
Old 07-17-2008, 04:00 AM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
do i need to edit the current script handlers or create a new one? i can't see and option for that?
Reply With Quote
  #7  
Old 07-17-2008, 02:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
http://www.litespeedtech.com/docs/we...scripthandler/

Under "Server"->"Script Handler" tab, you should have a script handler configuration for "php". the "Handler Name" should be lsphp4 or phpLsapi, try to change it to "lsphp5", if it does not show up in the drop down list, you need to create a "lsphp5" External app under "External App" tab using the lsphp5 binary you have built.
Just use the existing external app configuration as an example.
Reply With Quote
  #8  
Old 07-17-2008, 02:29 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
i have done that but the php version does not seem to have changed
Reply With Quote
  #9  
Old 07-17-2008, 02:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
run "/opt/lsws/fcgi-bin/lsphp5 -i" from command line see if it is really PHP5.

Make sure to restart the server after the configuration change.
Reply With Quote
  #10  
Old 07-17-2008, 02:51 PM
karloff karloff is offline
Member
 
Join Date: Jan 2008
Posts: 45
i have restarted the server and web serrver, however i still get the smae message.

if i run

/usr/local/lsws/fcgi-bin/lsphp5 -v


i get the correct version.

do i need to remove the lsphp file and rename the lsphp5 file as lsphp?
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 03:35 AM.



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