{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Cara Pengaktifkan Nginx, PHP5 di Ubuntu
Cara Pengaktifkan Nginx, PHP5 di Ubuntu
joe /etc/php5/fpm/pool.d/www.conf
Pada Line 34, ubahlah nilai default nya menjadi “listen = /var/run/php5-fpm.sock”
;listen = 127.0.0.1:9000 –> Default
listen = /var/run/php5-fpm.sock
——————-
lalu di /etc/nginx/site-enabled/default
—
di location ~ \.php$ –> Kamu Ganti script spt dibawah ini:
—-
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
}
Filed under: 7. Operating System