PHP:Installasi: Difference between revisions
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
PHP7.4 disertakan dalam repositori Ubuntu 20.04 dan memiliki sedikit peningkatan kinerja dibandingkan PHP7.3. Masukkan perintah berikut untuk menginstal PHP7.4 dan beberapa ekstensi umum. | *PHP7.4 disertakan dalam repositori Ubuntu 20.04 dan memiliki sedikit peningkatan kinerja dibandingkan PHP7.3. Masukkan perintah berikut untuk menginstal PHP7.4 dan beberapa ekstensi umum. | ||
sudo apt install php7.4 php7.4-fpm php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl | sudo apt install php7.4 php7.4-fpm php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl | ||
| Line 5: | Line 5: | ||
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() | PHP message: PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() | ||
Memasang ekstensi PHP ini memastikan CMS Anda berjalan dengan lancar. Sekarang mulai php7.4-fpm. | |||
sudo systemctl start php7.4-fpm | sudo systemctl start php7.4-fpm | ||
Enable auto-start at boot time. | |||
sudo systemctl enable php7.4-fpm | sudo systemctl enable php7.4-fpm | ||
Cek status | |||
systemctl status php7.4-fpm | systemctl status php7.4-fpm | ||