Daveyboy Posted July 17, 2007 Share Posted July 17, 2007 I had some problems with a cacti installation on ubuntuserver and it was suggested to compile php from source as opposed to the package version. I downloaded and compiled but now when I do a 'php -v' it says 5.2.3 but phpinfo says 5.1.2 , please advise. Givens; ubuntu 6.06 Linux version 2.6.15-23-386 (buildd@rothera) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 PREEMPT Tue May 23 13:49:40 UTC 2006 root@cacti:~# which php /usr/local/bin/php I pointed /usr/bin/php to /usr/local/bin/ already Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/ Share on other sites More sharing options...
trq Posted July 17, 2007 Share Posted July 17, 2007 but now when I do a 'php -v' it says 5.2.3 but phpinfo says 5.1.2 , please advise. Are you calling phpinfo within a web page? Ie via Apache? Sounds to me like you only updated the cli. Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-299986 Share on other sites More sharing options...
Daveyboy Posted July 17, 2007 Author Share Posted July 17, 2007 Yes, calling phpinfo with apache2 as a test page. Excuse my newbieness, but is php cli command line interface? Need some direction on this one. root@cacti:/usr/bin# dpkg --list ii php 5.2.3-1 php5.2.3_source ii php5-cgi 5.1.2-1ubuntu3 server-side, HTML-embedded scripting languag ii php5-common 5.1.2-1ubuntu3 Common files for packages built from the php ii php5-mysql 5.1.2-1ubuntu3 MySQL module for php5 ii php5-mysqli 5.1.2-1ubuntu3 MySQL Improved module for php5 ii php5-snmp 5.1.2-1ubuntu3 SNMP module for php5 iF phpmyadmin 2.8.1-1~dapper set of PHP-scripts to administrate MySQL ove Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-300010 Share on other sites More sharing options...
Daniel0 Posted July 20, 2007 Share Posted July 20, 2007 Did you install it manually or through aptitude/apt-get? Excuse my newbieness, but is php cli command line interface? Yes. Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-303518 Share on other sites More sharing options...
Daveyboy Posted July 20, 2007 Author Share Posted July 20, 2007 I downloaded and installed php5 from source (./configure, make, checkinstall) and added as a .deb package, however, it installed php5-common as a dependency package when I installed phpmyadmin via apt-get. Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-303531 Share on other sites More sharing options...
Daniel0 Posted July 20, 2007 Share Posted July 20, 2007 I'd probably just uninstall and then install a LAMP like this aptitude intall apache2 php5-mysql libapache2-mod-php5 mysql-server Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-303720 Share on other sites More sharing options...
Daveyboy Posted July 21, 2007 Author Share Posted July 21, 2007 The debian package of php5 was the original issue, hence installing from source. Quote Link to comment https://forums.phpfreaks.com/topic/60300-php-versions-not-matching/#findComment-303900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.