I'm using Rasbian VERSION="8 (jessie)" Linux raspberrypi 4.14.73-v7+ which the Apache/2.4.10 PHP 5.6.38-0+deb8u1 has been installed.

How can I upgrade the PHP package to PHP 7.3 that is compatible with Apache or Nginx version?
Also, I don't want to do sudo upgrade because the system has a lot of old packages in which the system does not have enough space and it will be broken.

Update with info from comment:
I would like to build a new sd card with Raspbian Buster, but I do not have physical access to the device, only ssh.

  • 1
    Jessie is out of date. Build a new sd card with Raspbian Buster.
    – CoderMike
    Dec 25, 2019 at 11:24
  • @CoderMike This is what I wanted to do, but I do not have physical access to the device. Only ssh Dec 25, 2019 at 11:35
  • Sounds like it needs a larger sd card anyway. Why have you only got ssh access?
    – CoderMike
    Dec 25, 2019 at 11:38
  • @CoderMike The device is not in my city. And I need to install the latest version of laravel lumen on it. And for it need php> = 7.3. 32 gb flash drive Dec 25, 2019 at 11:51
  • Did you test THIS link?
    – M. Rostami
    Dec 25, 2019 at 15:06

1 Answer 1


Building a new SD Card with Raspbian Buster is the right way I would also do it. All other things doing only remotely on a deprecated Raspbian version Jessie it too risky. You risk to lose connection or have a system that isn't working anymore. I would build and test the new SD Card with Buster at home and send it to the remote place so someone there can just swap the SD Card. If it doesn't work you can always revert to the running system. Even better is to configure a complete second Raspberry Pi at home and send it to the remote place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.