Difference between revisions of "Nginx: Instalasi Ubuntu 20.04 PHP8"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 7: | Line 7: | ||
sudo add-apt-repository ppa:ondrej/php | sudo add-apt-repository ppa:ondrej/php | ||
sudo apt update | sudo apt update | ||
| + | |||
| + | ==Install Nginx== | ||
| + | |||
| + | sudo su | ||
| + | apt update | ||
| + | apt -y install nginx | ||
==Install== | ==Install== | ||
| Line 17: | Line 23: | ||
systemctl status php8.0-fpm | systemctl status php8.0-fpm | ||
| − | + | ||
Revision as of 05:13, 10 December 2020
Sumber: https://linuxize.com/post/how-to-install-php-8-on-ubuntu-20-04/
Tambahkan Repository
sudo apt -y install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update
Install Nginx
sudo su apt update apt -y install nginx
Install
sudo apt update sudo apt -y install php8.0-fpm
Cek
systemctl status php8.0-fpm
Tambahkan di Konfigurasi Nginx
server {
# . . . other code
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
}
}