The title says it all. I'm trying to install PHP7.2 on RPi 3 so I can install OwnCloud on it. When I run sudo apt-get install php7.2 -y I get Unable to locate package php7.2.

Do I need to add a repo into sources list ?

  • You don't say what OS you are using. Raspbian Buster uses PHP 7.3 May 26, 2020 at 17:32
  • Sorry, I'm on Stretch.
    – mark
    May 26, 2020 at 17:37
  • Do I need to switch over to Buster ?
    – mark
    May 26, 2020 at 17:39
  • OwnCloud doesn't support 7.3. 7.0, 7.1 and 7.2 are OK.
    – mark
    May 26, 2020 at 17:40
  • 2
    Unless you have a special need for an earlier version, I would always use Buster. May 26, 2020 at 18:34

1 Answer 1


I would move your Pi to Buster and use 7.3 of php.

Owncloud version 10.3 recommendation is Apache using php 7.3 as of May 2020.

There is a note in the forum that the current test build uses php 7.4

Going by the php change log 7.3.18 is the latest release for 7.3 and 7.2.31 for 7.2

If you do need a specific point release then the source code for releases are still available and can be compiled on a Pi if needed. I have broken a Pi though doing this on Jessie so Stretch and Buster where welcomed :)

  • I'm gonna try 10.3 because I just installed 10.4.1 and my RPi crashed. Won't boot. Will report back.
    – mark
    May 27, 2020 at 11:06
  • Crashed on 10.3 as well. RPi 3 B+ has only 800 MHz of RAM so I can't be surprised. If I overclock it I'm gonna need a USB fan or something. Better go for RPi 4 with 4GB of RAM.
    – mark
    May 27, 2020 at 12:42
  • It's too bad though. I've got extra RPi 3 and wanted to put in use as a personal cloud. Such a shame. Accepting your answer anyway.
    – mark
    May 27, 2020 at 12:42

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.