Install Php7-FPM fast-cgi Ubuntu 17

Berikut cara menginstall php7-fpm mpm-event Ubuntu 17

Update source list ubuntu

deb http://mirrors.digitalocean.com/ubuntu trusty main multiverse
deb http://mirrors.digitalocean.com/ubuntu trusty-updates main multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main multiverse

apt-get update

apt-get install php-fpm php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-mcrypt php-zip

apt-get install libapache2-mod-fastcgi

a2dismod mpm_prefork

a2dismod php7.1
a2dismod mpm_prefork
a2enmod mpm_event

a2enmod fastcgi

a2enmod proxy

a2enmod actions fastcgi alias
a2enconf php7.1-fpm

service apache2 reload

systemctl restart php7.1-fpm.service

pico /etc/apache2/conf-available/php7.1-fpm.conf

<IfModule mod_fastcgi.c>
AddHandler php7.fcgi .php
Action php7.fcgi /php7.fcgi
Alias /php7.fcgi /usr/lib/cgi-bin/php7.fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php7.fcgi -socket /var/run/php/php7.1-fpm.sock -pass-header Authorization -idle-timeout 3600
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>

cek file php7.1-fpm.conf

pico /etc/apache2/conf-enabled/php7.1-fpm.conf

NB : isi file harus sama dengan conf-available/php7.1-fpm.conf

edit line

pico /etc/php/7.1/fpm/pool.d/www.conf

listen = /var/run/php/php7.1-fpm.sock

create file

touch /usr/lib/cgi-bin/php7.fcgi

chown www-data:www-data /usr/lib/cgi-bin/php7.fcgi

 

service apache2 reload

systemctl restart php7.1-fpm.service

 

 

 

Posted on: November 10, 2017, by :  | 15 views

Leave a Reply

https://serang.ut.ac.id/css/css/slot88/ https://tinjut.bagkeu.dikdasmen.kemdikbud.go.id/slot-maxwin/ https://dpm.polinema.ac.id/slot-gacor/ https://akademik.ft.unm.ac.id/slot-dana/ https://ppdb.probolinggokab.go.id/slot-5000/ https://bkad.sulselprov.go.id/assets/ https://ojs.balidwipa.ac.id/docs/slot-gacor/ http://korpri.pekalongankab.go.id/api/slot-gacor/ https://elang.umpp.ac.id/foto/farmasi/-/asset/ http://rsud-kelet.jatengprov.go.id/wp-content/-/asset/ https://kusdhianto-fe.staff.ugm.ac.id/slot88/ http://ppdb.probolinggokab.go.id/judi-bola/ https://bapenda.labuhanbatukab.go.id/racikan-sbobet/ http://rsud-kelet.jatengprov.go.id/wp-content/-/data/ https://agenda.riau.go.id/-/judi-bola/ https://balapan.padang.go.id/sbobet88/ http://jdih.wakatobikab.go.id/sbobet88/ http://kph.menlhk.go.id/sbobet88/ https://bkad.sulselprov.go.id/data/ https://dpm.polinema.ac.id/slot-gacor/ https://dinkes.jemberkab.go.id/storage/attachments/