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

Go Back   LiteSpeed Support Forums > External Applications > PHP > replacing system php

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2007, 09:01 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Default replacing system php

I was considering installing the sapi php via the wiki, but instead of using /php5 using /usr/local so there is only one php for the system.
I have noticed one thing though when you do php -v with my old php it lists all features like
root@cp [/usr/src/php-5.2.3]# php -v
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 21 2007 02:51:18)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.24, Copyright (c) 2002-2006, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies

When I do version with php5 i get this
root@cp [/usr/src/php-5.2.3]# /php5/bin/php -v
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul 14 2007 03:11:04)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
But in php info it all shows
http://www.secureservertech.com/info.php
As you see there.

So I dont know whats up with that. Im gonna try to do it now and Ill post my results. If you know any problems this could cause let me know
Reply With Quote
  #2  
Old 07-14-2007, 09:19 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Well everything looks good, displays all version info
Quote:
root@cp [/usr/src/php-5.2.3]# php -v
PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul 15 2007 00:10:32)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.24, Copyright (c) 2002-2006, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
root@cp [/usr/src/php-5.2.3]# /opt/lsws/fcgi-bin/lsphp -v
PHP 5.2.3 (litespeed) (built: Jul 15 2007 00:10:25)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.24, Copyright (c) 2002-2006, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
Only problem is http://www.secureservertech.com/info.php
its loading the /opt/lsws/php/php.ini instead of the one in /usr/local/lib, Ill try to link it


Ok, all is well now. I had to link /opt/lsws/php/php.ini to /usr/local/lib/php.ini
but that is linked to the zend php.ini, wonder if that is too many links to follow?

Last edited by felosi; 07-14-2007 at 09:26 PM..
Reply With Quote
  #3  
Old 07-15-2007, 04:28 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You can specify a "-c <php.ini path>" parameter from the command line of lsphp external application.
Reply With Quote
  #4  
Old 07-16-2007, 11:23 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
well, the linking seems to work fine. I may do it when I get some free time, working fine now so I wont mess with it for a bit
http://www.secureservertech.com/info.php
Working great so far. I think if someone is gonna totally convert to litespeed this is the best way

UPDATE: Ok I see what you are talking about now , I changed it to /usr/local/lib. Works no probs, well no reason it shouldnt lol .But when you are runnng hosting box worry a lil

btw, site looks great now

Last edited by felosi; 07-16-2007 at 11:30 PM..
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 07:01 PM.



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