Giter Club home page Giter Club logo

Comments (2)

TiemenSch avatar TiemenSch commented on June 12, 2024

PHP7 is not yet included in the stable release of Raspbian (Lite Jessie at least)

I temporarily used the workaround found here to solve this: https://getgrav.org/blog/raspberrypi-nginx-php7-dev . I only followed the PHP7 part. A bash-only summary:

$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get upgrade
$ cd /etc/apt/
$ cat sources.list
$ sed -i '$ a\deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi\n' sources.list
$ cat sources.list
$ fprint 'Package: *\nPin: release n=jessie\nPin-Priority: 600\n' > preferences
$ sudo apt-get update
$ sudo apt-get install -t stretch php7.0 php7.0-curl php7.0-gd php7.0-fpm php7.0-cli php7.0-opcache php7.0-mbstring php7.0-xml php7.0-zip

This however still missed two more dependencies to be installed manually:
$ sudo apt-get install -t stretch libtool libtinfo-dev

After that the playbook runs just fine (takes a while though!), albeit with code from the "stretch" branch as opposed to stable release branch of Raspbian.

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Sorry for not responding sooner! The reason you ran into that is because the upstream geerlingguy.php role is now defaulting to PHP 7.0 (and soon 7.1). Raspbian doesn't yet include the version in the default repos (as @TiemenSch mentioned), but I've gone ahead and changed a few other default settings so they'll at least work out of the box now.

I'm going to do a little testing on the Pi today to make sure the instructions are all up to date as well.

from drupal-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.