Install nginx dan php5 pada Ubuntu

Jadi di post ini, si @banumelody mau nulis tentang yang agak sedikit serius, yaitu bagaimana cara install nginx dan bagaimana cara install php5 di Ubuntu. ya karna saya bukan orang networking maka tutorial ini hanya sepengetahuan saya saja.

Nah begini…

Nginx adalah HTTP server dar severse proxy, serta IMAP/POP3 proxy server berkemampuan tinggi, open-source dan gratis.

Cara menginstall nginx adalah:

1 – Nginx
Update software list repositori:

$ sudo apt-get update

Install nginx:

$ sudo apt-get install nginx

Contoh output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1 nginx-common nginx-full
Suggested packages:
  libgd-tools
The following NEW packages will be installed:
  libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1 nginx nginx-common
  nginx-full
0 upgraded, 7 newly installed, 0 to remove and 14 not upgraded.
Need to get 882 kB of archives.
After this operation, 2691 kB of additional disk space will be used.
Do you want to continue [Y/n]?

File configurasi default vhost:

sudo nano /etc/nginx/sites-available/default


Nah ini, cara install php5

2 – PHP
Install php5-fpm:

$ apt-get istall php5-fpm

Contoh output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  php5-common
Suggested packages:
  php5-suhosin php-pear
The following NEW packages will be installed:
  php5-common php5-fpm
0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded.
Need to get 3524 kB of archives.
After this operation, 9224 kB of additional disk space will be used.
Do you want to continue [Y/n]?

 

 

Nah, kurang lebih seperti itu cara install php5 dan cara install nginx di Ubuntu.

3 comments

Leave a Reply