|
|

11-05-2008, 02:20 PM
|
|
Member
|
|
Join Date: May 2008
Posts: 41
|
|
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
|

11-05-2008, 02:30 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 729
|
|
|
Did you set php5 for PHP in SCRIPT HANDLER?
|

11-05-2008, 02:42 PM
|
|
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
|

11-05-2008, 03:07 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,603
|
|
|
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.
|

11-05-2008, 03:13 PM
|
|
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 )
|

11-05-2008, 03:18 PM
|
|
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..
|

11-05-2008, 03:27 PM
|
|
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..
|

11-05-2008, 03:55 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,603
|
|
|
try "yum install bison flex lemon".
|

11-05-2008, 04:02 PM
|
|
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...
|

11-05-2008, 07:03 PM
|
|
Member
|
|
Join Date: May 2008
Posts: 41
|
|
|
I reinstalled litespeed and started over, everything is working now
Thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:35 AM.
|
|