Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
AbahDoku Custom
Serba-serbi Windows
AbahDoku Wiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Update PHP7.2 ke PHP7.4 di dalam Container Docker
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Experiment kali ini adalah mengupdate PHP yang sudah terinstall di dalam sebuah Container. Versi sebelumnya adalah 7.2.19 yang akan ganti ke versi 7.4.33. ====Update==== apt update ====Cek Versi Awal==== php -v ====Install dependent packages==== apt -y install software-properties-common ====Tambahkan PPA Repository==== add-apt-repository ppa:sergey-dryabzhinsky/php74 add-apt-repository ppa:sergey-dryabzhinsky/php7-modules add-apt-repository ppa:sergey-dryabzhinsky/backports add-apt-repository ppa:sergey-dryabzhinsky/packages ====Install PHP7.4==== apt -y install php7.4 ====Install paket pendukung==== apt install php74p-mod-{mysql,bcmath,bz2,gd,intl,mbstring,zip,json} ====Install Modul PHP7.4==== apt install libapache2-mod-php74 ===Memilih versi PHP=== Cek versi PHP yang aktif php -v Abaikan cara ini jika versi PHP sudah berubah ke PHP74. Jika belum berubah ikuti langkah berikut. Non aktifkan php lama a2dismod php7.2 Aktifkan php baru a2enmod php74 Cari tau lokasi php which php74 hasilnya : /usr/bin/php74 Alihkan php aktif ke versi baru update-alternatives --set php /usr/bin/php74 Pilihan untuk konfigurasi dan phar. update-alternatives --config php jika hasilnya belum sesuai, pilih angka sesuai sesuai daftar versi yang sudah terinsall. update-alternatives --set phar /usr/bin/phar (ini bisa di abaikan) Restart Service Apache service apache2 restart
Summary:
Please note that all contributions to AbahDoku Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
AbahDoku Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width