Sei qui

Le ultime versioni di CMS come Joomla o Wordpress suggeriscono l'upgrade di PHP a versioni superiori alla versione di PHP5 da molti anni alla base di tante pagine php. In questo articolo vediamo come è possibile installare PHP7 su Raspberry PI.

Per poter istallare PHP 7 , abbiamo bisogno di aggiungere un repository nella lista delle sorgenti software, quindi iniziamo con:

echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list

echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release

aggiorniamo quindi il software installato 

apt-get update -y

apt-get upgrade -y

apt-get dist-upgrade -y

apt-get install -y rpi-update

ora siamo pronti per installare PHP 7

È stata rilasciata la versione 7 in modo ufficiale

apt-get install -t stretch -y 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

 

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Unknown
Unknown
Accept
Decline
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save