Jump to content

php versions not matching


Daveyboy

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.