HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   PHP5 in apache PHP4 at cli. how do get get PHP5 at both (http://www.howtoforge.com/forums/showthread.php?t=6497)

ThE-LyNX 29th August 2006 00:26

PHP5 in apache PHP4 at cli. how do get get PHP5 at both
 
Code:

<?phpinfo();?>
gives me

PHP Version 5.1.6-0.dotdeb.1

Code:

php -v
at cli gives me

PHP 4.4.4-0.dotdeb.1



How do i get rid of PHP4 so i can have PHP5 at the cli???

ThE-LyNX 29th August 2006 00:49

sorted

apt-get install php5-cli


now to run php5 scripts at cli i use

php5 <scriptname>


All times are GMT +2. The time now is 00:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.