<?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>Knowledge &#187; Uncategorized</title>
	<atom:link href="http://wan.6te.net/?cat=1&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://wan.6te.net</link>
	<description></description>
	<lastBuildDate>Mon, 20 Jul 2015 04:51:35 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9</generator>
	<item>
		<title>Install Nginx and PHP-FPM with Apache HTTP Server on Ubuntu Server 12.10</title>
		<link>http://wan.6te.net/?p=126</link>
		<comments>http://wan.6te.net/?p=126#comments</comments>
		<pubDate>Fri, 06 Jun 2014 09:09:51 +0000</pubDate>
		<dc:creator><![CDATA[saisai]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wan.6te.net/?p=126</guid>
		<description><![CDATA[Install Nginx and PHP-FPM with Apache HTTP Server on Ubuntu Server 12.10 By Shay Anderson on November 2013 In this tutorial I explain how to install Nginx with PHP-FPM (on port 8080) on top of Apache HTTP Web server. This tutorial assumes you already have the Apache HTTP Web server installed and it is working [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Install Nginx and PHP-FPM with Apache HTTP Server on Ubuntu Server 12.10<br />
By Shay Anderson on November 2013<br />
In this tutorial I explain how to install Nginx with PHP-FPM (on port 8080) on top of Apache HTTP Web server. This tutorial assumes you already have the Apache HTTP Web server installed and it is working on port 80.</p>
<p>Install PHP-FPM<br />
Let&#8217;s get started. First, install the PHP-FPM package: # apt-get install php5-fpmStart the PHP-FPM service: # service php5-fpm startVerify install: # php5-fpm -v<br />
PHP 5.4.6-1ubuntu1.4 (fpm-fcgi) (built: Sep 4 2013 19:45:09)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies</p>
<p>Install Nginx<br />
Install the nginx package: # apt-get install nginxCreate backup of nginx config file: # cp -v /etc/nginx/nginx.conf /etc/nginx/nginx.conf.BAKEdit nginx config file: # nano /etc/nginx/nginx.confAdd the following lines (or your own config settings): user www-data;<br />
worker_processes 4;<br />
pid /var/run/nginx.pid;</p>
<p>events {<br />
      worker_connections 768;<br />
      # multi_accept on;<br />
}</p>
<p>http {<br />
      sendfile on;<br />
      tcp_nopush on;<br />
      tcp_nodelay on;<br />
      keepalive_timeout 65;<br />
      types_hash_max_size 2048;<br />
      # server_tokens off;</p>
<p>      # server_names_hash_bucket_size 64;<br />
      # server_name_in_redirect off;</p>
<p>      include /etc/nginx/mime.types;<br />
      default_type application/octet-stream;</p>
<p>      ##<br />
      # Logging Settings<br />
      ##</p>
<p>      access_log /var/log/nginx/access.log;<br />
      error_log /var/log/nginx/error.log;</p>
<p>      ##<br />
      # Gzip Settings<br />
      ##</p>
<p>      #gzip on;<br />
      #gzip_disable &#8220;msie6&#8243;;<br />
      # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;</p>
<p>      ##<br />
      # Virtual Host Configs<br />
      ##</p>
<p>      #include /etc/nginx/conf.d/*.conf;<br />
      #include /etc/nginx/sites-enabled/*;</p>
<p>      server {<br />
      listen 8080;<br />
      server_name shayanderson.dev www.shayanderson.dev;<br />
            root /var/www/shayanderson.dev;<br />
            index index.php;</p>
<p>      access_log /var/log/nginx/access.shayanderson.dev.log;<br />
      error_log /var/log/nginx/error.shayanderson.dev.log;</p>
<p>      location / {</p>
<p>      }</p>
<p>            # PHP<br />
            location ~ \.php$ {<br />
                  include php.conf;<br />
            }<br />
      }</p>
<p>}<br />
Next, create the PHP handling config file: # nano /etc/nginx/php.confAnd add the following lines: try_files $uri =404;<br />
fastcgi_pass unix:/var/run/php5-fpm.sock;<br />
fastcgi_index index.php;<br />
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br />
# for use with PHP $_SERVER['HTTPS'] (older version of nginx will fail for $https)<br />
fastcgi_param HTTPS $https;<br />
include fastcgi_params;Note: the location of the fastcgi_pass value can be found in the /etc/php5/fpm/pool.d/www.conf file under the listen param, for example: listen = /var/run/php5-fpm.sock.</p>
<p>Start nginx: # service nginx start</p>
<p>Auto Start PHP-FPM and Nginx on Server Boot<br />
Make sure services set to auto start on server boot:<br />
# ls -l /etc/rc*/*nginx<br />
# ls -l /etc/rc*/*php5-fpm<br />
If they are not registered to auto start, add with:# update-rc.d nginx defaults<br />
# update-rc.d php5-fpm defaults</p>
<p>http://www.shayanderson.com/linux/install-nginx-and-php-fpm-with-apache-http-server-on-ubuntu-server-12-10.htm</p>
]]></content:encoded>
			<wfw:commentRss>http://wan.6te.net/?feed=rss2&#038;p=126</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://wan.6te.net/?p=1</link>
		<comments>http://wan.6te.net/?p=1#comments</comments>
		<pubDate>Wed, 23 Apr 2014 05:12:15 +0000</pubDate>
		<dc:creator><![CDATA[saisai]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wan.6te.net/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
				<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://wan.6te.net/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
