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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP4 show in phpinfo ( not PHP5 )

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2008, 02:20 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
Default PHP4 show in phpinfo ( not PHP5 )

I have installed the enterprise version of litespeed, and everything seemed good, but when I look at my phpinfo file, php4 show not php5. I recompiled successfully, tried again - no luck.

So I deleted the isphp4 from the server -> settings, restarted,

it still show php4!

Any idea where I could have gone wrong?

THanks
Reply With Quote
  #2  
Old 11-05-2008, 02:30 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Did you set php5 for PHP in SCRIPT HANDLER?
Reply With Quote
  #3  
Old 11-05-2008, 02:42 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
thanks for the reply , yes isphp5 and litespeed server api is set in script handler at the server level
Reply With Quote
  #4  
Old 11-05-2008, 03:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You need build PHP5 binary either from web console, cPanel plugin, or manually.

The executable should be named lsws/fcgi-bin/lsphp5, right now it is a symbolic link to lsws/fcgi-bin/lsphp4.
Reply With Quote
  #5  
Old 11-05-2008, 03:13 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
Ok I did compile php from the litespeed web console, a couple times and restarted.

I am building it again right now, and will check the log for any errors, then post back.

Miststang, your always here, I really appreciate that ( and also one of the reasons Im running your enterprise version on 3 servers right now )
Reply With Quote
  #6  
Old 11-05-2008, 03:18 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
I found this in the build log.... a clue?

checking for PHP prefix... /opt/lsws/lsphp5
checking for PHP includes... -I/opt/lsws/lsphp5/include/php -I/opt/lsws/lsphp5/include/php/main -I/opt/lsws/lsphp5/include/php/TSRM -I/opt/lsws/lsphp5/include/php/Zend -I/opt/lsws/lsphp5/include/php/ext -I/opt/lsws/lsphp5/include/php/ext/date/lib
checking for PHP extension directory... /opt/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /opt/lsws/lsphp5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.

Im going to yum install re2c and recompile php and see if that works out...

Last edited by zep; 11-05-2008 at 03:21 PM..
Reply With Quote
  #7  
Old 11-05-2008, 03:27 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
no dice - Im open to suggestions...

I also found a couple other lines that may be of some interest
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).
configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: none)
configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none).

Last edited by zep; 11-05-2008 at 03:30 PM..
Reply With Quote
  #8  
Old 11-05-2008, 03:55 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
try "yum install bison flex lemon".
Reply With Quote
  #9  
Old 11-05-2008, 04:02 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
I tried this, the error I get is

Error unpacking rpm package bison - 2.3-4.fc8.x86_64
error: unpacking of archive failed on file /usr/share/locale/id/LC_MESSAGES/bison.mo;491233cc: cpio: mkdir

I tried rebuilding php, and restarted.

I dont knwo whats wrong, I havent had this issue before...
Reply With Quote
  #10  
Old 11-05-2008, 07:03 PM
zep zep is offline
Member
 
Join Date: May 2008
Posts: 41
I reinstalled litespeed and started over, everything is working now

Thanks
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 06:09 AM.



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