<?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>Daily logs &#187; Web Server</title>
	<atom:link href="http://blog.pnyet.web.id/tag/web-server/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.pnyet.web.id</link>
	<description>A Nobody trying to become a Somebody</description>
	<lastBuildDate>Wed, 25 Jan 2012 15:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)</title>
		<link>http://blog.pnyet.web.id/2011/12/04/php-warning-unknown-failed-write-session-data-files-verify-current-setting-session-save_path-correct-tmp.html</link>
		<comments>http://blog.pnyet.web.id/2011/12/04/php-warning-unknown-failed-write-session-data-files-verify-current-setting-session-save_path-correct-tmp.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 02:21:50 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Solved]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.pnyet.web.id/?p=731</guid>
		<description><![CDATA[This article referring to another article that not published yet, I had some issue with session.save_path in php-fpm setup. For security improvements  I want to make PHP execute under individual user accounts insted of a system user like nginx (default www user and group). In apache environments I can use suPHP or suExec and in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F12%2F04%2Fphp-warning-unknown-failed-write-session-data-files-verify-current-setting-session-save_path-correct-tmp.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F12%2F04%2Fphp-warning-unknown-failed-write-session-data-files-verify-current-setting-session-save_path-correct-tmp.html&amp;source=pnyet&amp;style=normal&amp;service=bit.ly&amp;hashtags=Error,nginx,Solved,Web+Server&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://blog.pnyet.web.id/wp-content/uploads/2011/12/error_fpm.png"><img class="size-medium wp-image-733 alignleft" title="error_fpm" src="http://blog.pnyet.web.id/wp-content/uploads/2011/12/error_fpm-300x182.png" alt="" width="300" height="182" /></a>This article referring to another article that not published yet, I had some issue with session.save_path in php-fpm setup. For security improvements  I want to make PHP execute under individual user accounts insted of a system user like nginx (default www user and group). In apache environments I can use suPHP or suExec and in Nginx I can use php-fpm with custom &#8220;pool&#8221; each web server and that makes PHP scripts executed by owner and groups that describe in each pool. <span id="more-731"></span><br />
But I got the following error message when try to installing some cms, and how to solve?</p>
<p>2011/12/03 23:49:34 [error] 1330#0: *126 FastCGI sent in stderr: &#8220;PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current <a href="http://blog.pnyet.web.id/2011/08/18/setting-time-on-linux.html">setting</a> of session.save_path is correct (/tmp) in Unknown on line 0&#8243; while reading upstream, client: 192.168.0.13, server: localhost, request: &#8220;GET /lgz/src/index.php HTTP/1.1&#8243;, upstream: &#8220;fastcgi://127.0.0.1:9000&#8243;, host: &#8220;172.16.0.1&#8243;, referrer: &#8220;http://172.16.0.1/lgz/src/login.php&#8221;<br />
2011/12/03 23:54:34 [error] 1333#0: *208 FastCGI sent in stderr: &#8220;PHP Warning:  Unknown: open(/tmp/sess_ig3mpbuc2fuhjt1p4ibpe3maa4, O_RDWR) failed: Permission denied (13) in Unknown on line 0&#8243; while reading upstream, client: 192.168.0.13, server: localhost, request: &#8220;GET /lgz/src/index.php HTTP/1.1&#8243;, upstream: &#8220;fastcgi://127.0.0.1:9000&#8243;, host: &#8220;172.16.0.1&#8243;, referrer: &#8220;http://172.16.0.1/lgz/src/login.php?referer=%2Flgz%2Fsrc%2Findex.php&#8221;<br />
2011/12/03 23:54:34 [error] 1333#0: *208 FastCGI sent in stderr: &#8220;PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current <a href="http://blog.pnyet.web.id/2011/08/18/setting-time-on-linux.html">setting</a> of session.save_path is correct (/tmp) in Unknown on line 0&#8243; while reading upstream, client: 192.168.0.13, server: localhost, request: &#8220;GET /lgz/src/index.php HTTP/1.1&#8243;, upstream: &#8220;fastcgi://127.0.0.1:9000&#8243;, host: &#8220;172.16.0.1&#8243;, referrer: &#8220;http://172.16.0.1/lgz/src/login.php?referer=%2Flgz%2Fsrc%2Findex.php&#8221;</p>
<p>I&#8217;m sure that the /tmp permission are correct, but in fact I can&#8217;t use cookies to process authentication method. The problem is in my pool configuration and I need to add custom php rules here:</p>
<p>php_admin_value[session.save_handler] = files<br />
php_admin_value[session.save_path] = &#8220;/tmp&#8221;<br />
php_admin_value[session.use_cookies] = 1<br />
php_admin_value[session.name] = PHPSESSID</p>
<p>After uncommented the lines in above, php scripts was success to execute and allowed use cookies in /tmp. This is stupid mind because I haven&#8217;t read the manpage before start using pool even my another websites running well, it&#8217;s habit (trying before RTFM, and RTFM after see an error). Below is an example of my php-fpm pool configuration:</p>
<p>[site1]<br />
listen = 127.0.0.1:9000<br />
listen.backlog = -1<br />
listen.allowed_clients = 127.0.0.1<br />
;listen.owner = nginx<br />
;listen.group = nginx<br />
;listen.mode = 0666<br />
user = site1<br />
group = site1<br />
pm = dynamic<br />
pm.max_children = 50<br />
pm.start_servers = 20<br />
pm.min_spare_servers = 5<br />
pm.max_spare_servers = 35<br />
pm.max_requests = 200<br />
access.log = log/$pool.access.log<br />
access.format = %R &#8211; %u %t &#8220;%m %r%Q%q&#8221; %s %f %{mili}d %{kilo}M %C%%<br />
;request_terminate_timeout = 0<br />
request_slowlog_timeout = 20<br />
slowlog = log/$pool.log.slow<br />
env[HOSTNAME] = $HOSTNAME<br />
env[PATH] = /usr/local/bin:/usr/bin:/bin<br />
env[TMP] = /tmp<br />
env[TMPDIR] = /tmp<br />
env[TEMP] = /tmp</p>
<p>#add your custom php.ini<br />
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@site1.pnyet.web.id<br />
php_admin_value[memory_limit] = 256M<br />
php_admin_value[session.save_handler] = files<br />
php_admin_value[session.save_path] = &#8220;/tmp&#8221;<br />
php_admin_value[session.use_cookies] = 1<br />
php_admin_value[session.name] = PHPSESSID</p>
<p>Don&#8217;t forget to restart php-fpm after change the configuration :)</p>
<p style="text-align: right;"><em>reference: http://http://php-fpm.org/wiki</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pnyet.web.id/2011/12/04/php-warning-unknown-failed-write-session-data-files-verify-current-setting-session-save_path-correct-tmp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx-1.0.0 stable version has been released</title>
		<link>http://blog.pnyet.web.id/2011/04/19/nginx-stable-version-has-bee-released.html</link>
		<comments>http://blog.pnyet.web.id/2011/04/19/nginx-stable-version-has-bee-released.html#comments</comments>
		<pubDate>Mon, 18 Apr 2011 18:46:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Techno]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[stable]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.pnyet.web.id/?p=590</guid>
		<description><![CDATA[NGINX adalah aplikasi open source  web server, reverse proxy  dan e-mail (IMAP/POP3) proxy yang dirilis dibawah lisensi BSD. Proyek NGINX dijalankan sekitar 9 tahun yang lalu (2008) dengan rilis pertamanya versi 0.1.0. Saya belum lama ini telah memindahkan beberapa web server berbasis apache ke nginx dan telah menjalankan nginx sebagai reverse proxy untuk web service [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F04%2F19%2Fnginx-stable-version-has-bee-released.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F04%2F19%2Fnginx-stable-version-has-bee-released.html&amp;source=pnyet&amp;style=normal&amp;service=bit.ly&amp;hashtags=nginx,stable,Techno,Web+Server&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://blog.pnyet.web.id/wp-content/uploads/2011/04/nginx2.png"><img class="alignleft size-full wp-image-591" title="nginx2" src="http://blog.pnyet.web.id/wp-content/uploads/2011/04/nginx2.png" alt="" width="300" height="231" /></a>NGINX adalah aplikasi open source  web server, reverse proxy  dan e-mail (IMAP/POP3) proxy yang dirilis dibawah lisensi BSD. Proyek NGINX dijalankan sekitar 9 tahun yang lalu (2008) dengan rilis pertamanya versi 0.1.0. Saya belum lama ini telah memindahkan beberapa web server berbasis apache ke nginx dan telah menjalankan nginx sebagai reverse proxy untuk web service beberapa bulan terakhir. Saya cukup terkesan dengan performa yang ditawarkan oleh NGINX, sangat terasa bedanya dengan aplikasi web server lainnya.<span id="more-590"></span></p>
<p>Sesuai dengan judul artikel &#8220;nginx-1.0.0 stable version has been released&#8221; maka saya hanya akan memberikan informasi seputar NGINX terbaru yaitu nginx versi 1.0.0 yang dirilis pada 12 April 2011. Dibawah ini adalah change log nginx 1.0.0 dan sebelumnya:</p>
<p>Changes with nginx 1.0.0                                         12 Apr 2011</p>
<p>*) Bugfix: a cache manager might hog CPU after reload.<br />
Thanks to Maxim Dounin.</p>
<p>*) Bugfix: an &#8220;image_filter crop&#8221; directive worked incorrectly coupled<br />
with an &#8220;image_filter rotate 180&#8243; directive.</p>
<p>*) Bugfix: a &#8220;satisfy any&#8221; directive disabled custom 401 error page.</p>
<p>Changes with nginx 0.9.7                                         04 Apr 2011</p>
<p>*) Feature: now keepalive connections may be closed premature, if there<br />
are no free worker connections.<br />
Thanks to Maxim Dounin.</p>
<p>*) Feature: the &#8220;rotate&#8221; parameter of the &#8220;image_filter&#8221; directive.<br />
Thanks to Adam Bocim.</p>
<p>*) Bugfix: a case when a backend in &#8220;fastcgi_pass&#8221;, &#8220;scgi_pass&#8221;, or<br />
&#8220;uwsgi_pass&#8221; directives is given by expression and refers to a<br />
defined upstream.</p>
<p>Changes with nginx 0.9.6                                         21 Mar 2011</p>
<p>*) Feature: the &#8220;map&#8221; directive supports regular expressions as value<br />
of the first parameter.</p>
<p>*) Feature: $time_iso8601 access_log variable.<br />
Thanks to Michael Lustfield.</p>
<p>Oke, untuk informasi changelog selengkapnya Anda dapat mengunjungi http://nginx.org/en/CHANGES lalu untuk mendapatkan source code terbarunya dapat didownload melalui: http://nginx.org/<a href="http://blog.pnyet.web.id/2012/01/23/banyak-situs-yang-terancam-sopa-dan-pipa.html">download</a>/nginx-1.0.0.tar.gz bisa juga update melalui svn: svn.nginx.org.</p>
<p>Review?</p>
<p>Silahkan install dan review sendiri :p</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pnyet.web.id/2011/04/19/nginx-stable-version-has-bee-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Konfigurasi IPv6 di NGINX</title>
		<link>http://blog.pnyet.web.id/2011/02/27/konfigurasi-ipv6-di-nginx.html</link>
		<comments>http://blog.pnyet.web.id/2011/02/27/konfigurasi-ipv6-di-nginx.html#comments</comments>
		<pubDate>Sat, 26 Feb 2011 20:32:18 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.pnyet.web.id/?p=551</guid>
		<description><![CDATA[Sehubungan dengan ditambahkannya IPv6 di server saya, hal yang harus segera saya lakukan adalah dengan meng-enable IPv6 di webserver (NGINX) agar semua domain lebih cihui dengan menggunakan IPv6. Saat ini banyak organisasi telekomunikasi, teknologi informasi yang telah mengaplikasikan IPv6 untuk keperluan sehari-hari mereka, begitu juga dengan corporate tempat saya bekerja yang sedang melakukan improvisasi IPv6 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F02%2F27%2Fkonfigurasi-ipv6-di-nginx.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F02%2F27%2Fkonfigurasi-ipv6-di-nginx.html&amp;source=pnyet&amp;style=normal&amp;service=bit.ly&amp;hashtags=Apache,compile,ipv6,nginx,Web+Server&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Sehubungan dengan ditambahkannya IPv6 di server saya, hal yang harus segera saya lakukan adalah dengan meng-enable IPv6 di webserver (NGINX) agar semua domain lebih cihui dengan menggunakan IPv6. Saat ini banyak organisasi telekomunikasi, teknologi informasi yang telah mengaplikasikan IPv6 untuk keperluan sehari-hari mereka, begitu juga dengan corporate tempat saya bekerja yang sedang melakukan improvisasi IPv6 kedalam infrastrukturnya.</p>
<p>NGINX merupakan alternatif web server dari apache yang sudah membumi, namun semenjak saya menggunakan nginx saya cukup terkesan dengan performa NGINX karena memang jauh lebih keren daripada apache, meski untuk urusan modul apache jauh lebih lengkap. NGINX sudah mendukup IPv6 namun secara default module ini harus disertakan pada saat melakukan compile package. Berikut ini adalah step by step bagaimana mengkonfigurasi NGINX dengan dukungan IPv6 dan juga virtualhost dengan menggunakan IPv6&#8230;</p>
<p>Langkah pertama adalah memastikan apakah NGINX yang diinstall sudah mendukung IPv6?</p>
<p>$ /usr/sbin/nginx -V<br />
nginx version: nginx/0.8.54<br />
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)<br />
TLS SNI support disabled<br />
configure arguments: &#8211;prefix=/usr/local/nginx&#8230;&#8230;&#8230;. <strong> &#8211;with-ipv6</strong></p>
<p>Jika terdapat &#8220;&#8211;with-ipv6&#8243; maka nginx telah mendukung IPv6 dan jika tidak ditemukan maka kita dapat melakukan compile ulang dengan menambahkan &#8211;with-ipv6 pada saat configure. Selanjutnya adalah mencoba melakukan <a href="http://blog.pnyet.web.id/2011/08/18/setting-time-on-linux.html">setting</a> virtualhost agar menggunakan ipv6, langkahnya adalah dengan mengedit konfigurasi virtualhost dengan menambahkan binding port agar listen ke ipv6.</p>
<p>$ sudo vi /usr/local/nginx/conf/vhost/default</p>
<p>server {<br />
listen  80;<br />
listen [::]:80 default ipv6only=on;<br />
listen [::]:443 default ipv6only=on;<br />
server_name _;</p>
<p>&#8220;default ipv6only=on&#8221; adalah agar port tesebut hanya listen pada ipv6 sehingga tidak bentrok dengan port 80 yang digunakan ipv4, jika default upv4only=on dihilangkan maka akan muncul pesan error seperti dibawah ini:</p>
<p><em>Starting nginx: [emerg]: bind() to [::]:80 failed (98: Address already in use)</em><br />
<em>[emerg]: bind() to 0.0.0.0:443 failed (98: Address already in use)</em><br />
<em>[emerg]: bind() to [::]:80 failed (98: Address already in use)</em><br />
<em>[emerg]: bind() to 0.0.0.0:443 failed (98: Address already in use)</em><br />
<em>[emerg]: bind() to [::]:80 failed (98: Address already in use)</em><br />
<em>[emerg]: bind() to 0.0.0.0:443 failed (98: Address already in use)</em></p>
<p>Oke, next adalah konfigurasi virtualhost untuk spesifik domain agar listen ke ipv6 dan konfigurasinya seperti dibawah ini:</p>
<p>server {<br />
listen      blog.pnyet.web.id:80;<br />
listen [2406:2400:dc7f::d4e7:130]:80;<br />
server_name  blog.pnyet.web.id;</p>
<p>server {<br />
listen      blog.pnyet.web.id:443;<br />
listen [2406:2400:dc7f::d4e7:130]:443;<br />
server_name  blog.pnyet.web.id;</p>
<p>Simpan konfigurasi tersebut diatas dan lihat apakah binding http port dan https port sudah listen ke IPv6, jika sudah maka hasilnya akan seperti ini:</p>
<p>tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      32580/nginx.conf<br />
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      32580/nginx.conf<br />
tcp        0      0 :::80                       :::*                        LISTEN      32580/nginx.conf<br />
tcp        0      0 :::443                      :::*                        LISTEN      32580/nginx.conf</p>
<p>Nah, dari tulisan ini saya harapkan agar IPv6 lebih dikenali dan diminati karena semakin menipisnya Ipv4 seperti ozon dibumi :p</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pnyet.web.id/2011/02/27/konfigurasi-ipv6-di-nginx.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Migrating Web Server From Apache To Nginx</title>
		<link>http://blog.pnyet.web.id/2011/01/17/migrating-web-server-apache-nginx.html</link>
		<comments>http://blog.pnyet.web.id/2011/01/17/migrating-web-server-apache-nginx.html#comments</comments>
		<pubDate>Sun, 16 Jan 2011 19:10:44 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Techno]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[wordpres]]></category>

		<guid isPermaLink="false">http://blog.pnyet.web.id/?p=524</guid>
		<description><![CDATA[Since two years ago (2007) this blog is hosted by Apache web server, and today I changed out the sofware in web server. I never had a &#8220;serious&#8221; problem with apache but I heard if nginx is a lightweight, high-performance HTTP server and reverse proxy. Nginx pronounced of engine-x also can handle static HTML, and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F01%2F17%2Fmigrating-web-server-apache-nginx.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.pnyet.web.id%2F2011%2F01%2F17%2Fmigrating-web-server-apache-nginx.html&amp;source=pnyet&amp;style=normal&amp;service=bit.ly&amp;hashtags=Apache,Blog,nginx,virtual+host,Web+Server,wordpres&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://blog.pnyet.web.id/wp-content/uploads/2011/01/apache_nginx.jpg"><img class="alignleft size-medium wp-image-525" title="apache_nginx" src="http://blog.pnyet.web.id/wp-content/uploads/2011/01/apache_nginx-300x150.jpg" alt="" width="300" height="150" /></a>Since two years ago (2007) <a title="2nd Blog" href="http://blog.pnyet.web.id" target="_blank">this blog</a> is hosted by <a title="Apache Fondation" href="http://www.apache.org/" target="_blank">Apache </a>web server, and today I changed out the sofware in web server. I never had a &#8220;serious&#8221; problem with apache but I heard if <strong>nginx</strong> is a lightweight, high-performance HTTP server and reverse proxy. Nginx pronounced of engine-x also can handle static HTML, and does very well with dynamic (PHP) content as well. But <a href="http://nginx.org">nginx</a> isn&#8217;t ideal for every server, nginx can&#8217;t handle SVN or WebDav, I&#8217;m still using apache for some situation :D.<span id="more-524"></span></p>
<p>Nginx is very impressive for simple virtualhost and standalone web server configuration, migrating wordpress from apache to nginx isn&#8217;t difficult. After <a title="How to innstall nginx on CentOS" href="http://kodokproject.blogspot.com/2010/12/how-to-install-nginx-web-server-on.html" target="_blank">installing nginx</a> and <a href="http://blog.pnyet.web.id/2011/08/18/setting-time-on-linux.html">setting</a> up the virtualhost for my domain (blog.pnyet.web.id) I just copying my old files into home directory of my website and then change the permission also import mysql databases. Voila&#8230;, my blog is running well in nginx. But actually nginx isn&#8217;t support .htaccess or .htpasswd so I&#8217;ve reconfigure url rewriting for this website. Below is my virtualhost for this blog:</p>
<p>server {<br />
listen      blog.pnyet.web.id:80;<br />
server_name  blog.pnyet.web.id;</p>
<p>#charset koi8-r;</p>
<p>access_log  logs/blogp.access.log  main;<br />
error_log   logs/blogp.error.log  debug;</p>
<p>location / {<br />
root   /home/myweb01/public_html;<br />
index  index.php index.html index.htm;<br />
try_files $uri $uri/ /index.php?q=$uri&amp;$args;<br />
}</p>
<p>error_page  404              /404.html;<br />
error_page   500 502 503 504  /50x.html;<br />
location = /50x.html {<br />
root   html;<br />
}</p>
<p>location ~ \.php$ {<br />
root           /home/myweb01/public_html;<br />
fastcgi_pass   127.0.0.1:9000;<br />
fastcgi_index  index.php;<br />
fastcgi_param  SCRIPT_FILENAME  /home/myweb01/public_html;$fastcgi_script_name;<br />
include        conf.d/fastcgi_params;<br />
}</p>
<p>location ~ /\.ht {<br />
deny  all;<br />
}<br />
}</p>
<p>server {<br />
listen       blog.pnyet.web.id:443;<br />
server_name  blog.pnyet.web.id;</p>
<p>access_log  logs/blogp_ssl.access.log  main;<br />
error_log   logs/blogp_ssl.error.log  debug;</p>
<p>ssl                  off;<br />
ssl_certificate      ssl/2011.crt;<br />
ssl_certificate_key  ssl/2011.key;<br />
ssl_session_timeout  5m;<br />
ssl_protocols  SSLv2 SSLv3 TLSv1;<br />
ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;<br />
ssl_prefer_server_ciphers   on;</p>
<p>location / {<br />
root   /home/myweb01/public_html;<br />
index  index.php index.html index.htm;<br />
try_files $uri $uri/ /index.php?q=$uri&amp;$args;<br />
}</p>
<p>error_page  404              /404.html;<br />
error_page   500 502 503 504  /50x.html;<br />
location = /50x.html {<br />
root   html;<br />
}</p>
<p>location ~ \.php$ {<br />
root           /home/myweb01/public_html;<br />
fastcgi_pass   127.0.0.1:9000;<br />
fastcgi_index  index.php;<br />
fastcgi_param  SCRIPT_FILENAME   /home/myweb01/public_html$fastcgi_script_name;<br />
include        conf.d/fastcgi_params;<br />
}<br />
}</p>
<p>To enable url rewriting in nginx for wordpress i just add &#8220;try_files $uri $uri/ /index.php?q=$uri&amp;$args;&#8221; and my permalinks working without any problem.</p>
<p>Cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pnyet.web.id/2011/01/17/migrating-web-server-apache-nginx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pcfg_openfile: unable to check htaccess file, ensure it is readable</title>
		<link>http://blog.pnyet.web.id/2010/05/08/pcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html</link>
		<comments>http://blog.pnyet.web.id/2010/05/08/pcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html#comments</comments>
		<pubDate>Sat, 08 May 2010 07:20:10 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Solved]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://blog.pnyet.web.id/?p=293</guid>
		<description><![CDATA[Sehari lalu saya memindahkan web server ke mesin yang lebih baik, processor double core dan ram serta harddisk yang lebih besar (sedikit). Setelah migrasi, saya tidak menggunakan konfigurasi web server sebelumnya, namun memang ada perubahan yang cukup signifikan dari web server tersebut dan salah satunya adalah user group. Jika di server sebelumnya, semua file website [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.pnyet.web.id%2F2010%2F05%2F08%2Fpcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.pnyet.web.id%2F2010%2F05%2F08%2Fpcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html&amp;source=pnyet&amp;style=normal&amp;service=bit.ly&amp;hashtags=Error,Solved,Web+Server&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: justify;"><a href="http://blog.pnyet.web.id/2010/05/08/pcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html"><img class="alignleft size-full wp-image-299" title="htaccess" src="http://blog.pnyet.web.id/wp-content/uploads/2010/05/htaccess.gif" alt="" width="300" height="300" /></a>Sehari lalu saya memindahkan web server ke mesin yang lebih baik, processor double core dan ram serta harddisk yang lebih besar (sedikit). Setelah migrasi, saya tidak menggunakan konfigurasi web server sebelumnya, namun memang ada perubahan yang cukup signifikan dari web server tersebut dan salah satunya adalah user group. Jika di server sebelumnya, semua file website dimiliki oleh apache selaku owner service http di apache web server. Namun konfigurasi di server baru saya ingin membuat agar kepemilikan root directory virtual host tetap atas nama user. Setelah setup apache dan virtual host selesai, saya bingung sekali, mata udah ngantuk kepala agak pusing, mungkin perlu istirahat? Sebelum tidur saya menemukan error seperti dibawah ini, dan itu membuat saya tidak bisa tidur, oprek sana oprek sini ternyata tidak membuahkan hasil, karena anehnya masalah ini tidak terjadi pada website lainnya :(<span id="more-293"></span></p>
<blockquote>
<p style="text-align: left;">[Sat May 08 12:14:09 2010] [crit] [client 118.97.186.242] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:14:11 2010] [crit] [client 118.97.186.242] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:19:48 2010] [crit] [client 202.47.75.2] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:19:52 2010] [crit] [client 202.47.75.2] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:21:23 2010] [crit] [client 202.47.75.2] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:22:59 2010] [crit] [client 66.249.69.245] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:24:21 2010] [crit] [client 202.47.75.2] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:28:54 2010] [crit] [client 125.161.196.15] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:28:56 2010] [crit] [client 125.161.196.15] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:28:58 2010] [crit] [client 125.161.196.15] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:29:01 2010] [crit] [client 125.161.196.15] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:33:24 2010] [crit] [client 110.138.22.31] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.google.co.id/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;ved=0CC0QFjAA&amp;url=http%3A%2F%2Fblog.pnyet.web.id%2F2010%2F02%2F24%2Fapache-error-500.html&amp;rct=j&amp;q=error+500+di+web&amp;ei=LfLkS-7wKMexrAexuOHYAg&amp;usg=AFQjCNEpsTFYWgnbhKVkCvq4c-3PeDMjwg<br />
[Sat May 08 12:33:27 2010] [crit] [client 110.138.22.31] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:48:06 2010] [crit] [client 110.138.22.31] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.google.co.id/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;ved=0CC0QFjAA&amp;url=http%3A%2F%2Fblog.pnyet.web.id%2F2010%2F02%2F24%2Fapache-error-500.html&amp;rct=j&amp;q=error+500+di+web&amp;ei=LfLkS-7wKMexrAexuOHYAg&amp;usg=AFQjCNEpsTFYWgnbhKVkCvq4c-3PeDMjwg<br />
[Sat May 08 12:53:33 2010] [crit] [client 66.249.69.245] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:53:34 2010] [crit] [client 66.249.69.245] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:56:51 2010] [crit] [client 66.249.69.245] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable<br />
[Sat May 08 12:57:33 2010] [crit] [client 66.249.69.245] (13)Permission denied: /home/ngaknguk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</p>
</blockquote>
<p style="text-align: left;">Akhirnya usut punya usut si user belum saya masukan ke groupnya apache&#8230;., duh malu-maluin :((</p>
<blockquote>
<p style="text-align: left;">Setelah saya jalankan:</p>
<p style="text-align: left;"># usermod -G ngaknguk,apache,ftp ngaknguk</p>
<p style="text-align: left;"># id ngaknguk</p>
<p style="text-align: left;">uid=501(ngaknguk) gid=48(apache) groups=48(apache),50(ftp),501(ngaknguk)</p>
</blockquote>
<p style="text-align: left;">Setelah itu, blog bisa kembali online, cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pnyet.web.id/2010/05/08/pcfg-openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

