How can I upgrade PHP version on BBB?

Hello Beaglebone community.

To begin with, I am using a beaglebone black with a Debian GNU/Linux 7 (wheezy) distro.

Lately, I have been playing around with my BBB to create a web server on it. I already installed all the programs required in order to do this, however, the application I’m working with requires PHP version 5.5.9 or higher and the PHP version downloaded with apt-get is 5.4.45-0+deb7u6.

So, the question is: Is there a way to upgrade the PHP version to 5.5.9 or higher on the BBB, and if so, how is it done?

I would appreciate any help tremendously.

Debian Jessie ships with 5.6.29

So, either upgrade to Debian Jessie, or build php5 on your own from source.


Thank you so much for the help.