INSTALL PHP5.6/7.*-FPM di Ubuntu 18.04 LTS

 


1. sudo apt-get install software-properties-common

2. sudo add-apt-repository ppa:ondrej/php

3. sudo apt-get update

4. sudo apt-get install -y php5.6-fpm

5. sudo nano/etc/apache2/site-available/000-default.conf

Tambahkan Script Berikut Pada Config Site Apachenya

ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html

        <Directory /var/www/html>

          Options Indexes FollowSymLinks

         AllowOverride All

         Require all granted

     </Directory>


     <FilesMatch ".php$">

         SetHandler "proxy:unix:/var/run/php/php5.6-fpm.sock|fcgi://localhost/"

      </FilesMatch>


Catatan: untuk warna biru sesuaikan dengan versi php yang di install

6. sudo a2enmod proxy_fcgi setenvif

7. sudo a2enconf php5.6-fpm

8. sudo service apache2 restart

9. sudo service php5.6-fpm restart 




Ori Grata

Abstrak

Please Select Embedded Mode For Blogger Comments

أحدث أقدم

Ikuti lewat Email

Advertisement