1

After a lot of problems I tried building my own LAMP server, I have NGINX on it, PHP 5.4, MySQL (as I could not get mariadb to work no matter the guide) and it's running Raspbian Wheezy.

Anyway, I followed the instructions here: How can I install PHP 5.6 (instead of 5.4)? but replaced everything with the latest 7 stable version. After the xm12lib error was corrected I had no other issues. It said it installed successfully, but on my phpinfo page I'm still seeing the original 5.4 release. Any idea how to correct?

-1

Compiling binaries is a hassle. I prefer apt and reserve compilation as a last resort.

Add this line to your /etc/apt/sources.list

deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free

Then update using

apt-get update

Then install php7 using

apt-get install php7.0 php7.0-opcache

Additional info: Take note that adding repositories aside from official ones may present some security risk. But, I hand picked that one so it should be safe.

  • You should mention that this can be a major security issue (i.e. installing preconfigured binaries from an unknown source). – Steve Robillard Feb 11 '16 at 13:43
  • 3
    I don't get what is funny – Steve Robillard Feb 11 '16 at 22:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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