Ungayifaka kanjani i-PHP 7.2 ku-Ubuntu naku-Debian

I-logo esemthethweni ye-Php

Ngokuvamile, amaseva we-Gnu / Linux asebenzisa inguqulo 7 no-5.6 we-PHP, kepha lezi zinguqulo akuzona izinguqulo zakamuva noma ezisebenza kakhulu, yize zizinze kakhulu futhi zingenazo izimbungulu. Izinhlobo zesikhathi esizayo zalolu limi lohlelo ziyathakazelisa futhi zingaba kuseva yendawo ukuze zihlolwe, zivivinye izinhlelo zethu zokusebenza zewebhu noma umane ufunde ukufunda ngalolu limi lohlelo.

Ngalesi sizathu sizokutshela ungayithola kanjani inguqulo yakamuva ye-PHP bese uyifaka ku-Ubuntu noma ku-Debian noma ukusatshalaliswa okususelwe esingakusebenzisa njengohlelo olusebenzayo lweseva. Njengoba sishilo ngaphambili, akunconywa ukusebenzisa le nguqulo kumaseva wokukhiqiza njengoba ingadala izinkinga ezinkulu noma ibe nezimbobo zokuphepha. Kepha kusasebenziseka ukuzama.

Ukufaka i-PHP 7.2 ku-Ubuntu naku-Debian kufanele sebenzisa indawo yokugcina yangaphandle futhi ufake ukuncika okudingekayo ukufakwa nokusebenzisa le nguqulo entsha ye-PHP. Ukwenza lokhu sivula ukuphela bese sibhala okulandelayo:

apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php

Ngemuva kwalokho sibhala okulandelayo ukufaka i-PHP 7.2:

apt-get update
sudo apt-get install php7.2

Lokhu kuzofaka uhlobo lwe-PHP 7.2 kodwa ngeke yenze uhlelo lokusebenza lusebenzise ngokuzenzakalela. Ukuze senze lokhu, kufanele sibhale okulandelayo esigungwini:

update-alternatives --set php /usr/bin/php7.2

Futhi uma sisebenzisa iseva ye-LAMP, kuzofanele senze njalo yenza izinguquko ku-Apache ukuze ibone le nguqulo. Ukuze wenze lokhu kufanele sibhale okulandelayo esibulalayo:

a2enmod php7.2
systemctl restart apache2

Ngalesi sizobe sifake inguqulo 7.2 ye-PHP, manje sidinga kuphela ukufaka amamojula nezengezo esizidingayo, kepha leyo yinto esikushiyela entandweni nasidingo sakho. Njengoba ukwazi ukubona, inqubo yokufaka ilula futhi iyashesha, kepha kufanele sikhumbule ukuthi inguqulo ingaletha enye inkinga futhi akunconywa ukuyisebenzisa kumishini yokukhiqiza.


Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Unomthwalo wemfanelo ngedatha: AB Internet Networks 2008 SL
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.