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]:~#
- 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
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
silahkan di coba ,semoga bermanfaat 🙂
No Comments, Be The First!