<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog Vq &#187; Nginx</title>
	<atom:link href="http://blog.s13epy.web.id/tag/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.s13epy.web.id</link>
	<description>Blank</description>
	<lastBuildDate>Wed, 30 Jun 2010 04:40:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Instalasi Nginx</title>
		<link>http://blog.s13epy.web.id/instalasi-nginx.html</link>
		<comments>http://blog.s13epy.web.id/instalasi-nginx.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 01:54:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://blog.s13epy.web.id/?p=17</guid>
		<description><![CDATA[Apa sih nginx? Nginx adalah webserver sama seperti Apache dan Lighttpd, mungkin bedanya seperti yang saya cari di paman google,  klo nginx banyak yang bilang lebih powerfull n lebih cepet, dibandingkan  dengan Apache ataupun Lighttpd.
Disini saya akan melakukan instalasi Nginx di LinuxMint 8 (Helena)  yang merupakan turunan dari ubuntu 9.10 (Karmic Koala).
Yang [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://i45.tinypic.com/j58s4x.jpg" alt="" width="60" height="60" />Apa sih <strong>nginx</strong>? Nginx adalah webserver sama seperti <strong>Apache</strong> dan <strong>Lighttpd</strong>, mungkin bedanya seperti yang saya cari di paman <a href="http://google.co.id">google</a>,  klo nginx banyak yang bilang lebih powerfull n lebih cepet, dibandingkan  dengan Apache ataupun Lighttpd.</p>
<p>Disini saya akan melakukan instalasi Nginx di LinuxMint 8 (Helena)  yang merupakan turunan dari ubuntu 9.10 (Karmic Koala).</p>
<p>Yang pertama kita Instalasi Nginx terlebih dahulu</p>
<blockquote><p>sudo apt-get install nginx</p></blockquote>
<p><span id="more-17"></span>atau bila kita ingin menggunakan source code</p>
<blockquote><p>sudo wget http://sysoev.ru/nginx/nginx-0.6.36.tar.gz<br />
tar -xzvf nginx-0.6.36.tar.gz<br />
cd nginx-0.6.36.tar.gz<br />
sudo apt-get install build-essential<br />
./configure<br />
make<br />
sudo make install</p></blockquote>
<p>untuk settingan di ubuntu ataupun turunannya</p>
<blockquote><p>./configure &#8211;conf-path=/etc/nginx/nginx.conf \<br />
&#8211;error-log-path=/var/log/nginx/error.log &#8211;pid-path=/var/run/nginx.pid \<br />
&#8211;lock-path=/var/lock/nginx.lock    &#8211;http-log-path=/var/log/nginx/access.log \<br />
&#8211;http-client-body-temp-path=/var/lib/nginx/body  &#8211;http-proxy-temp-path=/var/lib/nginx/proxy \<br />
&#8211;http-fastcgi-temp-path=/var/lib/nginx/fastcgi &#8211;with-debug  &#8211;with-http_stub_status_module \<br />
&#8211;with-http_flv_module &#8211;with-http_ssl_module &#8211;with-http_dav_module<br />
make<br />
sudo make install</p></blockquote>
<p>Setelah itu jalankan nginx</p>
<blockquote><p>sudo  /etc/init.d/nginx start</p></blockquote>
<p>Agar setiap booting nginx dapat langsung berjalan</p>
<blockquote><p>sudo  update-rc.d nginx defaults</p></blockquote>
<p>Untuk melihat  apakah nginx telah berjalan ketikkan <strong>localhost</strong> pada browser.</p>
<p>Selanjutnya kita install paket php</p>
<blockquote><p>sudo apt-get install php5-cgi php5-mysql php5-curl  php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt  php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp  php5-sqlite php5-tidy php5-xmlrpc php5-xsl<br />
kemudian edit file <strong>/etc/php5/cgi/php.ini</strong><br />
sudo gedit /etc/php5/cgi/php.ini</p></blockquote>
<p>Ubah <strong>cgi.fix_pathinfo = 0</strong> menjadi 1</p>
<blockquote><p>[...]<br />
cgi.fix_pathinfo = 1</p></blockquote>
<p>Kemudian install</p>
<blockquote><p>sudo apt-get install spawn-fcgi</p></blockquote>
<p>gunakan perintah berikut untuk menjalankan php cgi</p>
<blockquote><p>sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data  -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid</p></blockquote>
<p>tambahkan perintah di pada <strong>/etc/rc.local</strong></p>
<blockquote><p>[...]<br />
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f  /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid<br />
[...]</p></blockquote>
<p>edit file <strong>nginx.conf</strong></p>
<blockquote><p>
sudo gedit /etc/nginx/nginx.conf
</p></blockquote>
<p>edit bagian berikut</p>
<blockquote><p>[...]<br />
worker_processes  5;<br />
[...]<br />
keepalive_timeout   2;<br />
[...]</p></blockquote>
<p>Selajutnya mengubah path file default sesuai keinginan kita</p>
<blockquote><p>
sudo gedit /etc/nginx/sites-available/default
</p></blockquote>
<blockquote><p>[...]<br />
server {<br />
listen   80;<br />
server_name  localhost;</p></blockquote>
<blockquote><p>access_log  /var/log/nginx/localhost.access.log;</p></blockquote>
<blockquote><p>location / {<br />
#root   /var/www/nginx-default;<br />
root /home/vq/public_html;<br />
index  index.php index.html index.htm;<br />
}</p></blockquote>
<blockquote><p>location /doc {<br />
root   /usr/share;<br />
autoindex on;<br />
allow 127.0.0.1;<br />
deny all;<br />
}</p></blockquote>
<blockquote><p>location /images {<br />
root   /usr/share;<br />
autoindex on;<br />
}</p></blockquote>
<blockquote><p>#error_page  404  /404.html;</p></blockquote>
<blockquote><p># redirect server error pages to the static page  /50x.html<br />
#<br />
error_page   500 502 503 504  /50x.html;<br />
location = /50x.html {<br />
#root   /var/www/nginx-default;<br />
root /home/vq/public_html;<br />
}</p></blockquote>
<blockquote><p># proxy the PHP scripts to Apache listening on  127.0.0.1:80<br />
#<br />
#location ~ \.php$ {<br />
#proxy_pass   http://127.0.0.1;<br />
#}</p></blockquote>
<blockquote><p># pass the PHP scripts to FastCGI server listening on  127.0.0.1:9000<br />
#<br />
location ~ \.php$ {<br />
fastcgi_pass   127.0.0.1:9000;<br />
fastcgi_index  index.php;<br />
fastcgi_param  SCRIPT_FILENAME   /home/vq/public_html$fastcgi_script_name;<br />
include               fastcgi_params;<br />
}</p></blockquote>
<blockquote><p># deny access to .htaccess files, if Apache&#8217;s document  root<br />
# concurs with nginx&#8217;s one<br />
#<br />
location ~ /\.ht {<br />
deny  all;<br />
}<br />
}<br />
[...]</p></blockquote>
<p>Terakhir kita tinggal melakukan restart nginx</p>
<blockquote><p>sudo /etc/init.d/nginx restart</p></blockquote>
<p>Untuk melihat apakah php-nya sudah berjalan</p>
<blockquote><p>sudo  gedit /home/vq/public_html/info.php</p></blockquote>
<p>isi file  info.php dengan kode berikut</p>
<p>Selamat Mencoba! <img src='http://blog.s13epy.web.id/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Sumber:</p>
<p><a href="http://akhsan.web.id/index.php/2009/12/21/how-to-install-nginx-webserver-mysql-dan-php-di-ubuntu/" target="_blank">http://akhsan.web.id/index.php/2009/12/21/how-to-install-nginx-webserver-mysql-dan-php-di-ubuntu/</a></p>
<p><a href="http://how2forge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04" target="_blank">http://how2forge.com/installing-nginx-with-php5-and-mysql-support-on-ubuntu-9.04</a></p>
<p><a href="http://wiki.debian-community.org/planets/id/feeds/Planet_Indonesia/nginx__44___dari_nol/" target="_blank">http://wiki.debian-community.org/planets/id/feeds/Planet_Indonesia/nginx__44___dari_nol/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.s13epy.web.id/instalasi-nginx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

