Install Mcrpyt & cURL PHP Extension di Ubuntu 14.04

Bismillah…

  • Buka  terminal pindah ke root mode, install mcrypt
[email protected]:~# apt-get install php5-mcrypt

  • enable mcrypt
[email protected]:~# php5enmod mcrypt

  • restart service php dan webserver nya , dalam kasus ini saya menggunakan Nginx
[email protected]:~# service php5-fpm restart 
php5-fpm stop/waiting
php5-fpm start/running, process 2954
[email protected]:~# service nginx restart 
 * Restarting nginx nginx [ OK ] 
[email protected]:~#
Screenshot from 2015-10-11 08:50:33
  • Buat file info.php di root folder web server kita , di Nginx root folder nya adalah /usr/share/nginx/html  .
[email protected]:/# pico /usr/share/nginx/html/info.php

kemudian isi seperti di bawah ini :

<?php
phpinfo ();
?>

save , tekan Ctrl+x kmeudia  enter
  • akses di browser  http://alamatipserver/info.php
Screenshot from 2015-10-11 08:50:10

Utuk Curl langkah nya kurang lebih sama, install php5-curl kemudian enable extension:

[email protected]:/# apt-get install php5-curl
[email protected]:/# php5enmod curl

restart php dan webserver nya

[email protected]:/# service php5-fpm restart
[email protected]:/# service nginx restart

test , dengan akses halaman info.php

Screenshot from 2015-10-11 08:55:20

silahkan di coba ,semoga bermanfaat 🙂

No Comments, Be The First!

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.