<?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>coretan si cuplis &#187; nginx</title>
	<atom:link href="http://cuplis.net/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://cuplis.net</link>
	<description>learn the way, define your own way</description>
	<lastBuildDate>Thu, 20 May 2010 08:25:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how to install wordpress mu on nginx</title>
		<link>http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/</link>
		<comments>http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 11:16:15 +0000</pubDate>
		<dc:creator>cuplis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://cuplis.net/?p=686</guid>
		<description><![CDATA[setting dns server

tambahkan zone sarunkgenk.com di file /etc/bind/named.conf

user@computer:$ sudo vim /etc/bind/named.confzone "sarunkgenk.com" IN {type master;file "/etc/bind/db.sarunkgenk.com";allow-update { none; };};


ubah file /etc/bind/db.sarunkgenk.com

user@computer:$ sudo vim /etc/bind/db.sarunkgenk.com;; BIND data file for local loopback interface;$TTL    604800$ORIGIN sarunkgenk.com.@       IN      SOA     ns1.sarunkgenk.com. me.cuplis.net. (128       ; Serial604800         ; Refresh86400         ; Retry2419200         ; Expire604800 )       ; Negative Cache TTLIN      NS      ns1.sarunkgenk.com.ns1                     IN      A       [...]


Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/' rel='bookmark' title='Permanent Link: how to install and configure nginx webserver on ubuntu'>how to install and configure nginx webserver on ubuntu</a> <small>caranya cukup mudah : install nginx user@computer:$ sudo apt-get install...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/' rel='bookmark' title='Permanent Link: how to configure php as fastcgi on nginx'>how to configure php as fastcgi on nginx</a> <small> install php user@computer:$ sudo apt-get install php5-cgi buat file...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-setting-dns-server/' rel='bookmark' title='Permanent Link: how to setting dns server'>how to setting dns server</a> <small>pertama install bind9 : user@computer:$ sudo apt-get install bind9 kemudian...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>setting dns server</strong></p>
<ol>
<li>tambahkan zone sarunkgenk.com di file /etc/bind/named.conf

<div class="wp-terminal">user@computer:$ sudo vim /etc/bind/named.conf<br/>zone "sarunkgenk.com" IN {<br/>type master;<br/>file "/etc/bind/db.sarunkgenk.com";<br/>allow-update { none; };<br/>};<br/></div>

</li>
<li>ubah file /etc/bind/db.sarunkgenk.com

<div class="wp-terminal">user@computer:$ sudo vim /etc/bind/db.sarunkgenk.com<br/>;<br/>; BIND data file for local loopback interface<br/>;<br/>$TTL    604800<br/>$ORIGIN sarunkgenk.com.<br/>@       IN      SOA     ns1.sarunkgenk.com. me.cuplis.net. (<br/>128       ; Serial<br/>604800         ; Refresh<br/>86400         ; Retry<br/>2419200         ; Expire<br/>604800 )       ; Negative Cache TTL<br/><br/>IN      NS      ns1.sarunkgenk.com.<br/>ns1                     IN      A       192.168.22.115<br/>@                       IN      A       192.168.22.115<br/><br/>www                     IN      CNAME   @<br/>*                       IN      A       192.168.22.115<br/>@                       IN      MX      5 ASPMX.L.GOOGLE.COM.<br/>IN      MX      10 ALT2.ASPMX.L.GOOGLE.COM.<br/>IN      MX      1 ASPMX2.GOOGLEMAIL.COM.<br/></div>

</li>
<li>cek konfigurasi dns

<div class="wp-terminal">user@computer:$ sudo named-checkzone sarunkgenk.com /etc/bind/db.sarunkgenk.com<br/>zone sarunkgenk.com/IN: loaded serial 128<br/>OK<br/></div>

</li>
<li>restart bind

<div class="wp-terminal">user@computer:$ sudo /etc/init.d/bind9 restart<br/></div>

</li>
<li>cek hasil

<div class="wp-terminal">user@computer:$ dig sarunkgenk.com;<br/>; &lt;&lt;&gt;&gt; DiG 9.4.2 &lt;&lt;&gt;&gt; sarunkgenk.com<br/>;; global options:  printcmd<br/>;; Got answer:<br/>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 22729<br/>;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1<br/><br/>;; QUESTION SECTION:<br/>;sarunkgenk.com.            IN    A<br/><br/>;; ANSWER SECTION:<br/>sarunkgenk.com.        604800    IN    A    192.168.22.115<br/><br/>;; AUTHORITY SECTION:<br/>sarunkgenk.com.        604800    IN    NS    ns1.sarunkgenk.com.<br/><br/>;; ADDITIONAL SECTION:<br/>ns1.sarunkgenk.com.    604800    IN    A    192.168.22.115<br/><br/>;; Query time: 0 msec<br/>;; SERVER: 192.168.22.115#53(192.168.22.115)<br/>;; WHEN: Sun Oct  4 15:41:20 2009<br/>;; MSG SIZE  rcvd: 82<br/></div>

</li>
</ol>
<p><span id="more-686"></span></p>
<p><strong>setting vhost sarunkgenk.com on nginx</strong></p>
<ol>
<li>buat file /etc/nginx/sites-available/sarunkgenk.com

<div class="wp-terminal">user@computer:$ sudo vim /etc/nginx/sites-available/sarunkgenk.com<br/>server {<br/>listen      [::]:80;<br/>server_name  sarunkgenk.com;<br/>server_name  *.sarunkgenk.com;<br/>server_name www.sarunkgenk.com;<br/>access_log /var/log/nginx/access_sarunkgenk.log info;<br/>error_log /var/log/nginx/error_sarunkgenk.log;<br/>location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {<br/>root /home/arditto/wordpress-mu/;<br/>expires 30d;<br/>break;<br/>}<br/>location / {<br/>root   /home/arditto/wordpress-mu/;<br/>index  index.php index.html index.htm;<br/>if (!-e $request_filename) {<br/>rewrite ^.+/?(/wp-.*) $1 last;<br/>rewrite ^.+/?(/.*\.php)$ $1 last;<br/>rewrite ^(.+)$ /index.php?q=$1 last;<br/>}<br/><br/>fastcgi_pass   127.0.0.1:8888;<br/>fastcgi_index  index.php;<br/>fastcgi_param  SCRIPT_FILENAME /home/arditto/wordpress-mu$fastcgi_script_name;<br/>include        /etc/nginx/fastcgi_params;<br/>}<br/>}<br/></div>

</li>
<li>aktifkan konfigurasi vhost

<div class="wp-terminal">user@computer:$ sudo ln -s /etc/nginx/sites-available/sarunkgenk.com /etc/nginx/sites-enabled/<br/></div>

</li>
</ol>
<p><strong>install wordpress mu</strong></p>
<ol>
<li>download wordpressmu di <a href="http://mu.wordpress.org/latest.zip" target="_blank">sini</a></li>
<li>buat database wordpressmu</li>
<li>buat file .htaccess di document root nya dalam hal ini /home/arditto/wordpress-mu<br />
touch /home/arditto/wordpress-mu/.htaccess</li>
<li>ubah permissionnya<br />
chmod 777 /home/arditto/wordpress-mu/.htaccess</li>
<li>ubah setting pengiriman email (dari sendmail ke phpmailer) jika diperlukan bisa edit file /home/arditto/wordpress-mu/wp-includes/class-phpmailer.php dan /home/arditto/wordpress-mu/wp-includes/pluggable.php</li>
<li>buka sarunkgenk.com, kemudian ikuti petunjuk installasinya</li>
</ol>
<p>environments :<br />
nginx version: nginx/0.6.35<br />
Linux cuplis 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux<br />
wordpress mu 2.8.4a<br />
PHP 5.2.6-3ubuntu4.2 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 19:14:44)</p>
<p>source : <a href="http://mu.wordpress.org/forums/topic/13277?replies=7">http://mu.wordpress.org/forums/topic/13277?replies=7</a></p>
<p class="fbconnect_share"><fb:share-button class="url" href="http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/" /></p>
<div class="sociable">
<div class="sociable_tagline">
<strong>Bookmarks:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-wordpress-mu-on-nginx%2F&amp;t=how%20to%20install%20wordpress%20mu%20on%20nginx" title="Facebook"><img src="http://cuplis.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-wordpress-mu-on-nginx%2F&amp;title=how%20to%20install%20wordpress%20mu%20on%20nginx&amp;annotation=setting%20dns%20server%0D%0A%0D%0A%09tambahkan%20zone%20sarunkgenk.com%20di%20file%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Asudo%20vim%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Azone%20%22sarunkgenk.com%22%20IN%20%7B%0D%0Atype%20master%3B%0D%0Afile%20%22%2Fetc%2Fbind%2Fdb.sarunkgenk.com%22%3B%0D%0Aallow-update%20%7B%20none%3B%20%7D%3B%0D%0A%7D%3B%0D%0A%0D%0A%09ubah%20file%20%2Fetc%2Fbind%2Fdb.sa" title="Google Bookmarks"><img src="http://cuplis.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-wordpress-mu-on-nginx%2F&amp;title=how%20to%20install%20wordpress%20mu%20on%20nginx&amp;bodytext=setting%20dns%20server%0D%0A%0D%0A%09tambahkan%20zone%20sarunkgenk.com%20di%20file%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Asudo%20vim%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Azone%20%22sarunkgenk.com%22%20IN%20%7B%0D%0Atype%20master%3B%0D%0Afile%20%22%2Fetc%2Fbind%2Fdb.sarunkgenk.com%22%3B%0D%0Aallow-update%20%7B%20none%3B%20%7D%3B%0D%0A%7D%3B%0D%0A%0D%0A%09ubah%20file%20%2Fetc%2Fbind%2Fdb.sa" title="Digg"><img src="http://cuplis.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-wordpress-mu-on-nginx%2F&amp;title=how%20to%20install%20wordpress%20mu%20on%20nginx&amp;source=coretan+si+cuplis+learn+the+way%2C+define+your+own+way&amp;summary=setting%20dns%20server%0D%0A%0D%0A%09tambahkan%20zone%20sarunkgenk.com%20di%20file%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Asudo%20vim%20%2Fetc%2Fbind%2Fnamed.conf%0D%0Azone%20%22sarunkgenk.com%22%20IN%20%7B%0D%0Atype%20master%3B%0D%0Afile%20%22%2Fetc%2Fbind%2Fdb.sarunkgenk.com%22%3B%0D%0Aallow-update%20%7B%20none%3B%20%7D%3B%0D%0A%7D%3B%0D%0A%0D%0A%09ubah%20file%20%2Fetc%2Fbind%2Fdb.sa" title="LinkedIn"><img src="http://cuplis.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=how%20to%20install%20wordpress%20mu%20on%20nginx%20-%20http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-wordpress-mu-on-nginx%2F" title="Twitter"><img src="http://cuplis.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/' rel='bookmark' title='Permanent Link: how to install and configure nginx webserver on ubuntu'>how to install and configure nginx webserver on ubuntu</a> <small>caranya cukup mudah : install nginx user@computer:$ sudo apt-get install...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/' rel='bookmark' title='Permanent Link: how to configure php as fastcgi on nginx'>how to configure php as fastcgi on nginx</a> <small> install php user@computer:$ sudo apt-get install php5-cgi buat file...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-setting-dns-server/' rel='bookmark' title='Permanent Link: how to setting dns server'>how to setting dns server</a> <small>pertama install bind9 : user@computer:$ sudo apt-get install bind9 kemudian...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to configure php as fastcgi on nginx</title>
		<link>http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/</link>
		<comments>http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:27:06 +0000</pubDate>
		<dc:creator>cuplis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cuplis.net/?p=691</guid>
		<description><![CDATA[
install php

user@computer:$ sudo apt-get install php5-cgi


buat file /etc/default/php-fastcgi

user@computer:$ sudo vim /etc/default/php-fastcgiSTART=yes# Which user runs PHP? (default: www-data)EXEC_AS_USER=www-data# Host and TCP port for FASTCGI-Listener (default: localhost:9000)FCGI_HOST=localhostFCGI_PORT=8888# Environment variables, which are processed by PHPPHP_FCGI_CHILDREN=4PHP_FCGI_MAX_REQUESTS=1000


buat file /etc/init.d/php-fastcgi

user@computer:$ sudo vim /etc/init.d/php-fastcgi#! /bin/bash### BEGIN INIT INFO# Provides:          php-fastcgi# Required-Start:    $all# Required-Stop:     $all# Default-Start:     2 3 4 5# Default-Stop:      0 1 [...]


Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/' rel='bookmark' title='Permanent Link: how to install and configure nginx webserver on ubuntu'>how to install and configure nginx webserver on ubuntu</a> <small>caranya cukup mudah : install nginx user@computer:$ sudo apt-get install...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-install-and-configure-dhcp-server/' rel='bookmark' title='Permanent Link: how to install and configure dhcp server'>how to install and configure dhcp server</a> <small>salah satu cara untuk configure dhcp server adalah sbb :...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/' rel='bookmark' title='Permanent Link: how to install wordpress mu on nginx'>how to install wordpress mu on nginx</a> <small>setting dns server tambahkan zone sarunkgenk.com di file /etc/bind/named.conf user@computer:$...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<ol>
<li>install php

<div class="wp-terminal">user@computer:$ sudo apt-get install php5-cgi<br/></div>

</li>
<li>buat file /etc/default/php-fastcgi

<div class="wp-terminal">user@computer:$ sudo vim /etc/default/php-fastcgi<br/>START=yes<br/><br/># Which user runs PHP? (default: www-data)<br/>EXEC_AS_USER=www-data<br/><br/># Host and TCP port for FASTCGI-Listener (default: localhost:9000)<br/>FCGI_HOST=localhost<br/>FCGI_PORT=8888<br/><br/># Environment variables, which are processed by PHP<br/>PHP_FCGI_CHILDREN=4<br/>PHP_FCGI_MAX_REQUESTS=1000<br/></div>

<p><span id="more-691"></span></li>
<li>buat file /etc/init.d/php-fastcgi

<div class="wp-terminal">user@computer:$ sudo vim /etc/init.d/php-fastcgi<br/>#! /bin/bash<br/>### BEGIN INIT INFO<br/># Provides:          php-fastcgi<br/># Required-Start:    $all<br/># Required-Stop:     $all<br/># Default-Start:     2 3 4 5<br/># Default-Stop:      0 1 6<br/># Short-Description: Start and stop php-cgi in external FASTCGI mode<br/># Description:       Start and stop php-cgi in external FASTCGI mode<br/>### END INIT INFO<br/><br/># Author: Kurt Zankl<br/><br/># Do NOT "set -e"<br/><br/>PATH=/sbin:/usr/sbin:/bin:/usr/bin<br/>DESC="php-cgi in external FASTCGI mode"<br/>NAME=php-fastcgi<br/>DAEMON=/usr/bin/php-cgi<br/>PIDFILE=/var/run/$NAME.pid<br/>SCRIPTNAME=/etc/init.d/$NAME<br/>PHP_CONFIG_FILE=/etc/php5/cgi/php.ini<br/><br/># Exit if the package is not installed<br/>[ -x "$DAEMON" ] || exit 0<br/><br/># Read configuration variable file if it is present<br/>[ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME<br/><br/># Load the VERBOSE setting and other rcS variables<br/>. /lib/init/vars.sh<br/><br/># Define LSB log_* functions.<br/># Depend on lsb-base (&gt;= 3.0-6) to ensure that this file is present.<br/>. /lib/lsb/init-functions<br/><br/># If the daemon is not enabled, give the user a warning and then exit,<br/># unless we are stopping the daemon<br/>if [ "$START" != "yes" -a "$1" != "stop" ]; then<br/>log_warning_msg "To enable $NAME, edit /etc/default/$NAME and set START=yes"<br/>exit 0<br/>fi<br/><br/># Process configuration<br/>export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS<br/>DAEMON_ARGS="-q -b $FCGI_HOST:$FCGI_PORT -c $PHP_CONFIG_FILE"<br/><br/>do_start()<br/>{<br/># Return<br/>#   0 if daemon has been started<br/>#   1 if daemon was already running<br/>#   2 if daemon could not be started<br/>start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test &gt; /dev/null \<br/>|| return 1<br/>start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \<br/>--background --make-pidfile --chuid $EXEC_AS_USER --startas $DAEMON -- \<br/>$DAEMON_ARGS \<br/>|| return 2<br/><br/>}<br/><br/>do_stop()<br/>{<br/># Return<br/>#   0 if daemon has been stopped<br/>#   1 if daemon was already stopped<br/>#   2 if daemon could not be stopped<br/>#   other if a failure occurred<br/>start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE &gt; /dev/null # --name $DAEMON<br/>RETVAL="$?"<br/>[ "$RETVAL" = 2 ] &amp;&amp; return 2<br/># Wait for children to finish too if this is a daemon that forks<br/># and if the daemon is only ever run from this initscript.<br/># If the above conditions are not satisfied then add some other code<br/># that waits for the process to drop all resources that could be<br/># needed by services started subsequently.  A last resort is to<br/># sleep for some time.<br/>start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON<br/>[ "$?" = 2 ] &amp;&amp; return 2<br/># Many daemons don’t delete their pidfiles when they exit.<br/>rm -f $PIDFILE<br/>return "$RETVAL"<br/>}<br/><br/>case "$1" in<br/>start)<br/>[ "$VERBOSE" != no ] &amp;&amp; log_daemon_msg "Starting $DESC" "$NAME"<br/>do_start<br/>case "$?" in<br/>0|1) [ "$VERBOSE" != no ] &amp;&amp; log_end_msg 0 ;;<br/>2) [ "$VERBOSE" != no ] &amp;&amp; log_end_msg 1 ;;<br/>esac<br/>;;<br/>stop)<br/>[ "$VERBOSE" != no ] &amp;&amp; log_daemon_msg "Stopping $DESC" "$NAME"<br/>do_stop<br/>case "$?" in<br/>0|1) [ "$VERBOSE" != no ] &amp;&amp; log_end_msg 0 ;;<br/>2) [ "$VERBOSE" != no ] &amp;&amp; log_end_msg 1 ;;<br/>esac<br/>;;<br/>restart|force-reload)<br/>log_daemon_msg "Restarting $DESC" "$NAME"<br/>do_stop<br/>case "$?" in<br/>0|1)<br/>do_start<br/>case "$?" in<br/>0) log_end_msg 0 ;;<br/>1) log_end_msg 1 ;; # Old process is still running<br/>*) log_end_msg 1 ;; # Failed to start<br/>esac<br/>;;<br/>*)<br/># Failed to stop<br/>log_end_msg 1<br/>;;<br/>esac<br/>;;<br/>*)<br/>echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" &gt;&amp;2<br/>exit 3<br/>;;<br/>esac<br/></div>

</li>
<li>setting permission agar bisa dieksekusi

<div class="wp-terminal">user@computer:$ sudo chmod 755 /etc/init.d/php-fastcgi<br/></div>

</li>
<li>contoh konfigurasi vhost

<div class="wp-terminal">user@computer:$ sudo less /etc/nginx/sites-available/sarunkgenk.com<br/>server {<br/>listen      *:80;<br/>server_name  sarunkgenk.com www.sarunkgenk.com *.sarunkgenk.com;<br/>access_log /var/log/nginx/access_sarunkgenk.log;<br/>error_log /var/log/nginx/error_sarunkgenk.log;<br/>location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {<br/>root /home/arditto/wordpress-mu/;<br/>expires 30d;<br/>break;<br/>}<br/>location / {<br/>root   /home/arditto/wordpress-mu/;<br/>index  index.php index.html index.htm;<br/>if (!-e $request_filename) {<br/>rewrite ^.+/?(/wp-.*) $1 last;<br/>rewrite ^.+/?(/.*\.php)$ $1 last;<br/>rewrite ^(.+)$ /index.php?q=$1 last;<br/>}<br/><br/>fastcgi_pass   127.0.0.1:8888;<br/>fastcgi_index  index.php;<br/>fastcgi_param  SCRIPT_FILENAME /home/arditto/wordpress-mu$fastcgi_script_name;<br/>include        /etc/nginx/fastcgi_params;<br/>}<br/>}<br/></div>

</li>
<li>jalankan php dalam mode fastcgi

<div class="wp-terminal">user@computer:$ sudo /etc/init.d/php-fastcgi start<br/></div>

</li>
<li>supaya proses no 6 dijalankan otomatis saat booting, jalankan perintah :

<div class="wp-terminal">user@computer:$ sudo update-rc.d php-fastcgi defaults<br/></div>

</li>
</ol>
<p>source : <a href="http://ngadimin.com/2009/07/11/instalasi-php-sebagai-fastcgi-di-nginx/" target="_blank">http://ngadimin.com/2009/07/11/instalasi-php-sebagai-fastcgi-di-nginx/</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 184px; width: 1px; height: 1px;">
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family: monospace;"><span style="color: #666666; font-style: italic;">#! /bin/bash</span>
<span style="color: #666666; font-style: italic;">### BEGIN INIT INFO</span>
<span style="color: #666666; font-style: italic;"># Provides:          php-fastcgi</span>
<span style="color: #666666; font-style: italic;"># Required-Start:    $all</span>
<span style="color: #666666; font-style: italic;"># Required-Stop:     $all</span>
<span style="color: #666666; font-style: italic;"># Default-Start:     2 3 4 5</span>
<span style="color: #666666; font-style: italic;"># Default-Stop:      0 1 6</span>
<span style="color: #666666; font-style: italic;"># Short-Description: Start and stop php-cgi in external FASTCGI mode</span>
<span style="color: #666666; font-style: italic;"># Description:       Start and stop php-cgi in external FASTCGI mode</span>
<span style="color: #666666; font-style: italic;">### END INIT INFO</span>

<span style="color: #666666; font-style: italic;"># Author: Kurt Zankl</span>

<span style="color: #666666; font-style: italic;"># Do NOT "set -e"</span>

<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #007800;">DESC</span>=<span style="color: #ff0000;">"php-cgi in external FASTCGI mode"</span>
<span style="color: #007800;">NAME</span>=php-fastcgi
<span style="color: #007800;">DAEMON</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-cgi
<span style="color: #007800;">PIDFILE</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid
<span style="color: #007800;">SCRIPTNAME</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>
<span style="color: #007800;">PHP_CONFIG_FILE</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>php.ini

<span style="color: #666666; font-style: italic;"># Exit if the package is not installed</span>
<span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">"<span style="color: #007800;">$DAEMON</span>"</span> <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>

<span style="color: #666666; font-style: italic;"># Read configuration variable file if it is present</span>
<span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span> <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> . <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>

<span style="color: #666666; font-style: italic;"># Load the VERBOSE setting and other rcS variables</span>
. <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>init<span style="color: #000000; font-weight: bold;">/</span>vars.sh

<span style="color: #666666; font-style: italic;"># Define LSB log_* functions.</span>
<span style="color: #666666; font-style: italic;"># Depend on lsb-base (&gt;= 3.0-6) to ensure that this file is present.</span>
. <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>lsb<span style="color: #000000; font-weight: bold;">/</span>init-functions

<span style="color: #666666; font-style: italic;"># If the daemon is not enabled, give the user a warning and then exit,</span>
<span style="color: #666666; font-style: italic;"># unless we are stopping the daemon</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$START</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">"yes"</span> <span style="color: #660033;">-a</span> <span style="color: #ff0000;">"$1"</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">"stop"</span> <span style="color: #7a0874; font-weight: bold;">]</span>; <span style="color: #000000; font-weight: bold;">then</span>
        log_warning_msg <span style="color: #ff0000;">"To enable <span style="color: #007800;">$NAME</span>, edit /etc/default/<span style="color: #007800;">$NAME</span> and set START=yes"</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>

<span style="color: #666666; font-style: italic;"># Process configuration</span>
<span style="color: #7a0874; font-weight: bold;">export</span> PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS
<span style="color: #007800;">DAEMON_ARGS</span>=<span style="color: #ff0000;">"-q -b <span style="color: #007800;">$FCGI_HOST</span>:<span style="color: #007800;">$FCGI_PORT</span> -c <span style="color: #007800;">$PHP_CONFIG_FILE</span>"</span>

do_start<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #7a0874; font-weight: bold;">)</span>
<span style="color: #7a0874; font-weight: bold;">{</span>
        <span style="color: #666666; font-style: italic;"># Return</span>
        <span style="color: #666666; font-style: italic;">#   0 if daemon has been started</span>
        <span style="color: #666666; font-style: italic;">#   1 if daemon was already running</span>
        <span style="color: #666666; font-style: italic;">#   2 if daemon could not be started</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> <span style="color: #007800;">$PIDFILE</span> <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--test</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null \
                <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> <span style="color: #007800;">$PIDFILE</span> <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> \
                <span style="color: #660033;">--background</span> <span style="color: #660033;">--make-pidfile</span> <span style="color: #660033;">--chuid</span> <span style="color: #007800;">$EXEC_AS_USER</span> <span style="color: #660033;">--startas</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--</span> \
                <span style="color: #007800;">$DAEMON_ARGS</span> \
                <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">2</span>

<span style="color: #7a0874; font-weight: bold;">}</span>

do_stop<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #7a0874; font-weight: bold;">)</span>
<span style="color: #7a0874; font-weight: bold;">{</span>
        <span style="color: #666666; font-style: italic;"># Return</span>
        <span style="color: #666666; font-style: italic;">#   0 if daemon has been stopped</span>
        <span style="color: #666666; font-style: italic;">#   1 if daemon was already stopped</span>
        <span style="color: #666666; font-style: italic;">#   2 if daemon could not be stopped</span>
        <span style="color: #666666; font-style: italic;">#   other if a failure occurred</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--retry</span>=TERM<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">30</span><span style="color: #000000; font-weight: bold;">/</span>KILL<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span> <span style="color: #660033;">--pidfile</span> <span style="color: #007800;">$PIDFILE</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #666666; font-style: italic;"># --name $DAEMON</span>
        <span style="color: #007800;">RETVAL</span>=<span style="color: #ff0000;">"$?"</span>
        <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$RETVAL</span>"</span> = <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">2</span>
        <span style="color: #666666; font-style: italic;"># Wait for children to finish too if this is a daemon that forks</span>
        <span style="color: #666666; font-style: italic;"># and if the daemon is only ever run from this initscript.</span>
        <span style="color: #666666; font-style: italic;"># If the above conditions are not satisfied then add some other code</span>
        <span style="color: #666666; font-style: italic;"># that waits for the process to drop all resources that could be</span>
        <span style="color: #666666; font-style: italic;"># needed by services started subsequently.  A last resort is to</span>
        <span style="color: #666666; font-style: italic;"># sleep for some time.</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--oknodo</span> <span style="color: #660033;">--retry</span>=<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">30</span><span style="color: #000000; font-weight: bold;">/</span>KILL<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span> <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"$?"</span> = <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">2</span>
        <span style="color: #666666; font-style: italic;"># Many daemons don’t delete their pidfiles when they exit.</span>
        <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$PIDFILE</span>
        <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #ff0000;">"<span style="color: #007800;">$RETVAL</span>"</span>
<span style="color: #7a0874; font-weight: bold;">}</span>

<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">"$1"</span> <span style="color: #000000; font-weight: bold;">in</span>
  start<span style="color: #7a0874; font-weight: bold;">)</span>
        <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_daemon_msg <span style="color: #ff0000;">"Starting <span style="color: #007800;">$DESC</span>"</span> <span style="color: #ff0000;">"<span style="color: #007800;">$NAME</span>"</span>
        do_start
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">"$?"</span> <span style="color: #000000; font-weight: bold;">in</span>
                <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_end_msg <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">;;</span>
                <span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_end_msg <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  stop<span style="color: #7a0874; font-weight: bold;">)</span>
        <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_daemon_msg <span style="color: #ff0000;">"Stopping <span style="color: #007800;">$DESC</span>"</span> <span style="color: #ff0000;">"<span style="color: #007800;">$NAME</span>"</span>
        do_stop
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">"$?"</span> <span style="color: #000000; font-weight: bold;">in</span>
                <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_end_msg <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">;;</span>
                <span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #ff0000;">"<span style="color: #007800;">$VERBOSE</span>"</span> <span style="color: #000000; font-weight: bold;">!</span>= no <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> log_end_msg <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  restart<span style="color: #000000; font-weight: bold;">|</span>force-reload<span style="color: #7a0874; font-weight: bold;">)</span>
        log_daemon_msg <span style="color: #ff0000;">"Restarting <span style="color: #007800;">$DESC</span>"</span> <span style="color: #ff0000;">"<span style="color: #007800;">$NAME</span>"</span>
        do_stop
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">"$?"</span> <span style="color: #000000; font-weight: bold;">in</span>
          <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span>
                do_start
                <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">"$?"</span> <span style="color: #000000; font-weight: bold;">in</span>
                        <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">)</span> log_end_msg <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">;;</span>
                        <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span> log_end_msg <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">;;</span> <span style="color: #666666; font-style: italic;"># Old process is still running</span>
                        <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">)</span> log_end_msg <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">;;</span> <span style="color: #666666; font-style: italic;"># Failed to start</span>
                <span style="color: #000000; font-weight: bold;">esac</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
          <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">)</span>
                <span style="color: #666666; font-style: italic;"># Failed to stop</span>
                log_end_msg <span style="color: #000000;">1</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">)</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"Usage: <span style="color: #007800;">$SCRIPTNAME</span> {start|stop|restart|force-reload}"</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">3</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre>
</div>
</div>
</div>
<p class="fbconnect_share"><fb:share-button class="url" href="http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/" /></p>
<div class="sociable">
<div class="sociable_tagline">
<strong>Bookmarks:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-configure-php-as-fastcgi-on-nginx%2F&amp;t=how%20to%20configure%20php%20as%20fastcgi%20on%20nginx" title="Facebook"><img src="http://cuplis.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-configure-php-as-fastcgi-on-nginx%2F&amp;title=how%20to%20configure%20php%20as%20fastcgi%20on%20nginx&amp;annotation=%0D%0A%09install%20php%0D%0Asudo%20apt-get%20install%20php5-cgi%0D%0A%0D%0A%09buat%20file%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0Asudo%20vim%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0ASTART%3Dyes%0D%0A%0D%0A%23%20Which%20user%20runs%20PHP%3F%20%28default%3A%20www-data%29%0D%0AEXEC_AS_USER%3Dwww-data%0D%0A%0D%0A%23%20Host%20and%20TCP%20port%20for%20FASTCGI-Listener%20%28defau" title="Google Bookmarks"><img src="http://cuplis.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-configure-php-as-fastcgi-on-nginx%2F&amp;title=how%20to%20configure%20php%20as%20fastcgi%20on%20nginx&amp;bodytext=%0D%0A%09install%20php%0D%0Asudo%20apt-get%20install%20php5-cgi%0D%0A%0D%0A%09buat%20file%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0Asudo%20vim%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0ASTART%3Dyes%0D%0A%0D%0A%23%20Which%20user%20runs%20PHP%3F%20%28default%3A%20www-data%29%0D%0AEXEC_AS_USER%3Dwww-data%0D%0A%0D%0A%23%20Host%20and%20TCP%20port%20for%20FASTCGI-Listener%20%28defau" title="Digg"><img src="http://cuplis.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-configure-php-as-fastcgi-on-nginx%2F&amp;title=how%20to%20configure%20php%20as%20fastcgi%20on%20nginx&amp;source=coretan+si+cuplis+learn+the+way%2C+define+your+own+way&amp;summary=%0D%0A%09install%20php%0D%0Asudo%20apt-get%20install%20php5-cgi%0D%0A%0D%0A%09buat%20file%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0Asudo%20vim%20%2Fetc%2Fdefault%2Fphp-fastcgi%0D%0ASTART%3Dyes%0D%0A%0D%0A%23%20Which%20user%20runs%20PHP%3F%20%28default%3A%20www-data%29%0D%0AEXEC_AS_USER%3Dwww-data%0D%0A%0D%0A%23%20Host%20and%20TCP%20port%20for%20FASTCGI-Listener%20%28defau" title="LinkedIn"><img src="http://cuplis.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=how%20to%20configure%20php%20as%20fastcgi%20on%20nginx%20-%20http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-configure-php-as-fastcgi-on-nginx%2F" title="Twitter"><img src="http://cuplis.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/' rel='bookmark' title='Permanent Link: how to install and configure nginx webserver on ubuntu'>how to install and configure nginx webserver on ubuntu</a> <small>caranya cukup mudah : install nginx user@computer:$ sudo apt-get install...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-install-and-configure-dhcp-server/' rel='bookmark' title='Permanent Link: how to install and configure dhcp server'>how to install and configure dhcp server</a> <small>salah satu cara untuk configure dhcp server adalah sbb :...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/' rel='bookmark' title='Permanent Link: how to install wordpress mu on nginx'>how to install wordpress mu on nginx</a> <small>setting dns server tambahkan zone sarunkgenk.com di file /etc/bind/named.conf user@computer:$...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to install and configure nginx webserver on ubuntu</title>
		<link>http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/</link>
		<comments>http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 06:26:18 +0000</pubDate>
		<dc:creator>cuplis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cuplis.net/?p=677</guid>
		<description><![CDATA[caranya cukup mudah :

install nginx

user@computer:$ sudo apt-get install nginx


jalankan nginx

user@computer:$ sudo /etc/init.d/nginx start


kemudian buka browser dan buka url http://youripaddress dan seharusnya sudah ada tampilan seperti berikut :

nginx meletakkan vhost2-nya path /etc/nginx/sites-available/
sedangkan vhost2 yang aktif ada di path /etc/nginx/sites-enabled/. file2 di folder ini akan lebih mudah di symbolic link dari path /etc/nginx/sites-available/ yang berisi daftar vhost [...]


Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/' rel='bookmark' title='Permanent Link: how to install wordpress mu on nginx'>how to install wordpress mu on nginx</a> <small>setting dns server tambahkan zone sarunkgenk.com di file /etc/bind/named.conf user@computer:$...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/' rel='bookmark' title='Permanent Link: how to configure php as fastcgi on nginx'>how to configure php as fastcgi on nginx</a> <small> install php user@computer:$ sudo apt-get install php5-cgi buat file...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-install-and-configure-dhcp-server/' rel='bookmark' title='Permanent Link: how to install and configure dhcp server'>how to install and configure dhcp server</a> <small>salah satu cara untuk configure dhcp server adalah sbb :...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>caranya cukup mudah :</p>
<ol>
<li>install nginx

<div class="wp-terminal">user@computer:$ sudo apt-get install nginx<br/></div>

</li>
<li>jalankan nginx

<div class="wp-terminal">user@computer:$ sudo /etc/init.d/nginx start<br/></div>

</li>
<li>kemudian buka browser dan buka url http://youripaddress dan seharusnya sudah ada tampilan seperti berikut :
<p><div id="attachment_678" class="wp-caption alignnone" style="width: 310px"><a href="http://cuplis.net/wp-content/uploads/2009/10/20091003130257Screenshot-Welcome-to-nginx-Mozilla-Firefox.png"><img class="size-medium wp-image-678" title="20091003130257Screenshot-Welcome to nginx! - Mozilla Firefox" src="http://cuplis.net/wp-content/uploads/2009/10/20091003130257Screenshot-Welcome-to-nginx-Mozilla-Firefox-300x139.png" alt="Welcome to nginx!" width="300" height="139" /></a><p class="wp-caption-text">Welcome to nginx!</p></div></li>
<li>nginx meletakkan vhost2-nya path /etc/nginx/sites-available/</li>
<li>sedangkan vhost2 yang aktif ada di path /etc/nginx/sites-enabled/. file2 di folder ini akan lebih mudah di symbolic link dari path /etc/nginx/sites-available/ yang berisi daftar vhost yang sudah kita setting.</li>
<li>nginx akan membuat vhost default yang aktif :

<div class="wp-terminal">user@computer:$ ls -lah /etc/nginx/sites-enabled/<br/>total 8.0K<br/>drwxr-xr-x 2 root root 4.0K 2009-10-03 12:41 .<br/>drwxr-xr-x 5 root root 4.0K 2009-10-03 12:54 ..<br/>lrwxrwxrwx 1 root root   34 2009-10-03 12:41 default -&gt; /etc/nginx/sites-available/default<br/></div>

</li>
</ol>
<p>nginx version: nginx/0.6.35<br />
Linux cuplis 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux</p>
<p>source : <a href="http://www.ubuntugeek.com/howto-install-nginx-webserver-in-ubuntu-804-hardy-heron.html" target="_blank">http://www.ubuntugeek.com/howto-install-nginx-webserver-in-ubuntu-804-hardy-heron.html</a></p>
<p class="fbconnect_share"><fb:share-button class="url" href="http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/" /></p>
<div class="sociable">
<div class="sociable_tagline">
<strong>Bookmarks:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-and-configure-nginx-webserver-on-ubuntu%2F&amp;t=how%20to%20install%20and%20configure%20nginx%20webserver%20on%20ubuntu" title="Facebook"><img src="http://cuplis.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-and-configure-nginx-webserver-on-ubuntu%2F&amp;title=how%20to%20install%20and%20configure%20nginx%20webserver%20on%20ubuntu&amp;annotation=caranya%20cukup%20mudah%20%3A%0D%0A%0D%0A%09install%20nginx%0D%0Asudo%20apt-get%20install%20nginx%0D%0A%0D%0A%09jalankan%20nginx%0D%0Asudo%20%2Fetc%2Finit.d%2Fnginx%20start%0D%0A%0D%0A%09kemudian%20buka%20browser%20dan%20buka%20url%20http%3A%2F%2Fyouripaddress%20dan%20seharusnya%20sudah%20ada%20tampilan%20seperti%20berikut%20%3A%0D%0A%0D%0A%0D%0A%09nginx%20meletakka" title="Google Bookmarks"><img src="http://cuplis.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-and-configure-nginx-webserver-on-ubuntu%2F&amp;title=how%20to%20install%20and%20configure%20nginx%20webserver%20on%20ubuntu&amp;bodytext=caranya%20cukup%20mudah%20%3A%0D%0A%0D%0A%09install%20nginx%0D%0Asudo%20apt-get%20install%20nginx%0D%0A%0D%0A%09jalankan%20nginx%0D%0Asudo%20%2Fetc%2Finit.d%2Fnginx%20start%0D%0A%0D%0A%09kemudian%20buka%20browser%20dan%20buka%20url%20http%3A%2F%2Fyouripaddress%20dan%20seharusnya%20sudah%20ada%20tampilan%20seperti%20berikut%20%3A%0D%0A%0D%0A%0D%0A%09nginx%20meletakka" title="Digg"><img src="http://cuplis.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-and-configure-nginx-webserver-on-ubuntu%2F&amp;title=how%20to%20install%20and%20configure%20nginx%20webserver%20on%20ubuntu&amp;source=coretan+si+cuplis+learn+the+way%2C+define+your+own+way&amp;summary=caranya%20cukup%20mudah%20%3A%0D%0A%0D%0A%09install%20nginx%0D%0Asudo%20apt-get%20install%20nginx%0D%0A%0D%0A%09jalankan%20nginx%0D%0Asudo%20%2Fetc%2Finit.d%2Fnginx%20start%0D%0A%0D%0A%09kemudian%20buka%20browser%20dan%20buka%20url%20http%3A%2F%2Fyouripaddress%20dan%20seharusnya%20sudah%20ada%20tampilan%20seperti%20berikut%20%3A%0D%0A%0D%0A%0D%0A%09nginx%20meletakka" title="LinkedIn"><img src="http://cuplis.net/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=how%20to%20install%20and%20configure%20nginx%20webserver%20on%20ubuntu%20-%20http%3A%2F%2Fcuplis.net%2F2009%2F10%2Fhow-to-install-and-configure-nginx-webserver-on-ubuntu%2F" title="Twitter"><img src="http://cuplis.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://cuplis.net/2009/10/how-to-install-wordpress-mu-on-nginx/' rel='bookmark' title='Permanent Link: how to install wordpress mu on nginx'>how to install wordpress mu on nginx</a> <small>setting dns server tambahkan zone sarunkgenk.com di file /etc/bind/named.conf user@computer:$...</small></li>
<li><a href='http://cuplis.net/2009/10/how-to-configure-php-as-fastcgi-on-nginx/' rel='bookmark' title='Permanent Link: how to configure php as fastcgi on nginx'>how to configure php as fastcgi on nginx</a> <small> install php user@computer:$ sudo apt-get install php5-cgi buat file...</small></li>
<li><a href='http://cuplis.net/2009/09/how-to-install-and-configure-dhcp-server/' rel='bookmark' title='Permanent Link: how to install and configure dhcp server'>how to install and configure dhcp server</a> <small>salah satu cara untuk configure dhcp server adalah sbb :...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cuplis.net/2009/10/how-to-install-and-configure-nginx-webserver-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
