Is there a way to work out if PHP was installed as part of a generic apt-get package, compiled from source or installed some other way on Ubuntu?
I need to recompile it with some more options and I want to try and follow the correct upgrade path.
You can check if the package is installed with:
and can check if the files on your system is consistent with the package with
from this you can have some clues about the origin of the package.
you may want to run as root
if php was installed using packet manager, this command will retun some thing like
notice the content of the first comumn wich is "ii" else , you will have the same output but with the first column containing "un" instead of ii