<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing Nginx with PHP-FPM on a Linux server</title>
	<atom:link href="http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 10 Jan 2012 12:19:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: CMS Application</title>
		<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/comment-page-1#comment-169</link>
		<dc:creator>CMS Application</dc:creator>
		<pubDate>Fri, 25 Mar 2011 05:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://sparksupport.com/blog/?p=346#comment-169</guid>
		<description>Thanks really very nice post.. very easy and helpful post.</description>
		<content:encoded><![CDATA[<p>Thanks really very nice post.. very easy and helpful post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnuprasad R</title>
		<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/comment-page-1#comment-132</link>
		<dc:creator>Vishnuprasad R</dc:creator>
		<pubDate>Wed, 13 Oct 2010 15:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://sparksupport.com/blog/?p=346#comment-132</guid>
		<description>Hi Hemang

You are absolutely correct , once you made the port changes in the nginx conf as i mentioned in my last reply , you will be able to use both apache n nginx the same time on your server
so http://yourdomain.com:81 will lead to the nginx page 
and http://yourdomain.com will lead to the current website running on apache

Regards
Vishnuprasad</description>
		<content:encoded><![CDATA[<p>Hi Hemang</p>
<p>You are absolutely correct , once you made the port changes in the nginx conf as i mentioned in my last reply , you will be able to use both apache n nginx the same time on your server<br />
so <a href="http://yourdomain.com:81" rel="nofollow">http://yourdomain.com:81</a> will lead to the nginx page<br />
and <a href="http://yourdomain.com" rel="nofollow">http://yourdomain.com</a> will lead to the current website running on apache</p>
<p>Regards<br />
Vishnuprasad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemang Shah</title>
		<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/comment-page-1#comment-126</link>
		<dc:creator>Hemang Shah</dc:creator>
		<pubDate>Sat, 25 Sep 2010 19:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://sparksupport.com/blog/?p=346#comment-126</guid>
		<description>Hello Vishnuprasad,

Thanks a lot for replying.

However, my concerned is this.

I have my ready made website running on apache.

Now, if I install nginx (as discussed above), WILL I BE ABLE TO USE NGINX SERVER FOR MY EXISTING WEB SITE PAGES?

because,

Now test the nginx installation from your browser
http://your-up-address:81
will open that default nginx page only

and when I will browse

www.mydomain.com

It will still go through port 80 and apache will handle request and open my website, won&#039;t it?

Kindly clarify.

Thanks for your great tutorial and help once again.</description>
		<content:encoded><![CDATA[<p>Hello Vishnuprasad,</p>
<p>Thanks a lot for replying.</p>
<p>However, my concerned is this.</p>
<p>I have my ready made website running on apache.</p>
<p>Now, if I install nginx (as discussed above), WILL I BE ABLE TO USE NGINX SERVER FOR MY EXISTING WEB SITE PAGES?</p>
<p>because,</p>
<p>Now test the nginx installation from your browser<br />
<a href="http://your-up-address:81" rel="nofollow">http://your-up-address:81</a><br />
will open that default nginx page only</p>
<p>and when I will browse</p>
<p><a href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a></p>
<p>It will still go through port 80 and apache will handle request and open my website, won&#8217;t it?</p>
<p>Kindly clarify.</p>
<p>Thanks for your great tutorial and help once again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnuprasad R</title>
		<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/comment-page-1#comment-121</link>
		<dc:creator>Vishnuprasad R</dc:creator>
		<pubDate>Thu, 09 Sep 2010 22:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://sparksupport.com/blog/?p=346#comment-121</guid>
		<description>Hi Hemang,

    First of all thanks for reading this post
   
    And from your querry I believe what the issue is that both your apache and nginx instances are configured to listen on 
    port  &quot;80&quot;  on your server/machine.
    
    That is why you were not able to start the nginx while your httpd is running, so you have stopped the apache process by 
   &quot;service httpd command&quot; , and once after that you will be able to start nginx .
    
     But Your current web pages are configured only in the apache configuration &quot;httpd.conf&quot; , so that is why you are 
     redirecteted to the default nginx page since there is no such web pages are configured in the nginx conf.

     So to resolve this you will either be required to change the nginx port from the nginx configuration so that it will listen on 
     any other port other than 80 and you will be able to run both apache and nginx the same time . Another method is to 
     configure nginx to use this webpages that is to add host entries in the nginx configuration
    
      But i believe the former option will be apt for you because you already have a completely working apache instance .
      But if you preffer nginx than apache then you have to configure the nginx with the host configurations and may be some 
      modules if your web pages/application requires . But I will preffer running both servers simultaneoulsy in your case 

      The Port change method is given bellow 
      
     To change the port on which the nginx daemon listen, please follow these steps 
           
                1) Stop the nginx service(if running)
                        /etc/init.d/nginx stop 
                
                2) open your nginx main configuration file in a text editor ( if you have followed the installation directory  that i&#039;v 
                   showed  in the post then please open &quot;/usr/local/nginx/conf/nginx.conf&quot;)
               
               3)   go to the &quot;server&quot; directive in the &quot;http&quot; host entry , this will look like 
                        
                      ======================================================
                          http {
                                   include       mime.types;
                                   default_type  application/octet-stream;
                                    * * * * ** 
                                    ** 
                                    *  
                                   server {
                                                      listen       80;
                                                      server_name  localhost;
                                                       * * * * ** 
                                                        ** 
                                                        *
                                                }
                                        [please note i have not included all those junk parts :D in that file , only the required ones are shown 
                                        above  ]

                      4)  In that sever directive you can see the Listen attribute , please change it to any other port other than 
                           80 (as i told you earlier you need the 80 port for apache )

                           suppose if you want to use the port 81 for your nginx then your server directive should be like  

                                             server {
                                                   listen       81;
                                                   server_name  localhost;
                                                    . . . . . .
                                                    . . . . . . .
                                                     ...
                                                     .
                                                        }   
                      
                     5) once changed the listen port then save the configuration , and start nginx
                          /etc/init.d/nginx start
                  
                      6) Now test the nginx installation from your browser
                           http://your-up-address:81
                           example
                             --------
                                  http://192.168.1.2:81
                          
                     7) Now you can get both nginx and your native apache instance working together, and all your current webpages 
                        will be working fine as well as the new nginx server
                    
          PS: if your apache daemon is not running (may be you have stopped that for the nginx service) , then please start the 
                 apache process to get  your current webpages working
        
                If you find the above reply not useful , or if you still facing any issue , please let me know that

                 Have a great day</description>
		<content:encoded><![CDATA[<p>Hi Hemang,</p>
<p>    First of all thanks for reading this post</p>
<p>    And from your querry I believe what the issue is that both your apache and nginx instances are configured to listen on<br />
    port  &#8220;80&#8243;  on your server/machine.</p>
<p>    That is why you were not able to start the nginx while your httpd is running, so you have stopped the apache process by<br />
   &#8220;service httpd command&#8221; , and once after that you will be able to start nginx .</p>
<p>     But Your current web pages are configured only in the apache configuration &#8220;httpd.conf&#8221; , so that is why you are<br />
     redirecteted to the default nginx page since there is no such web pages are configured in the nginx conf.</p>
<p>     So to resolve this you will either be required to change the nginx port from the nginx configuration so that it will listen on<br />
     any other port other than 80 and you will be able to run both apache and nginx the same time . Another method is to<br />
     configure nginx to use this webpages that is to add host entries in the nginx configuration</p>
<p>      But i believe the former option will be apt for you because you already have a completely working apache instance .<br />
      But if you preffer nginx than apache then you have to configure the nginx with the host configurations and may be some<br />
      modules if your web pages/application requires . But I will preffer running both servers simultaneoulsy in your case </p>
<p>      The Port change method is given bellow </p>
<p>     To change the port on which the nginx daemon listen, please follow these steps </p>
<p>                1) Stop the nginx service(if running)<br />
                        /etc/init.d/nginx stop </p>
<p>                2) open your nginx main configuration file in a text editor ( if you have followed the installation directory  that i&#8217;v<br />
                   showed  in the post then please open &#8220;/usr/local/nginx/conf/nginx.conf&#8221;)</p>
<p>               3)   go to the &#8220;server&#8221; directive in the &#8220;http&#8221; host entry , this will look like </p>
<p>                      ======================================================<br />
                          http {<br />
                                   include       mime.types;<br />
                                   default_type  application/octet-stream;<br />
                                    * * * * **<br />
                                    **<br />
                                    *<br />
                                   server {<br />
                                                      listen       80;<br />
                                                      server_name  localhost;<br />
                                                       * * * * **<br />
                                                        **<br />
                                                        *<br />
                                                }<br />
                                        [please note i have not included all those junk parts <img src='http://www.sparksupport.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  in that file , only the required ones are shown<br />
                                        above  ]</p>
<p>                      4)  In that sever directive you can see the Listen attribute , please change it to any other port other than<br />
                           80 (as i told you earlier you need the 80 port for apache )</p>
<p>                           suppose if you want to use the port 81 for your nginx then your server directive should be like  </p>
<p>                                             server {<br />
                                                   listen       81;<br />
                                                   server_name  localhost;<br />
                                                    . . . . . .<br />
                                                    . . . . . . .<br />
                                                     &#8230;<br />
                                                     .<br />
                                                        }   </p>
<p>                     5) once changed the listen port then save the configuration , and start nginx<br />
                          /etc/init.d/nginx start</p>
<p>                      6) Now test the nginx installation from your browser<br />
                           <a href="http://your-up-address:81" rel="nofollow">http://your-up-address:81</a><br />
                           example<br />
                             &#8212;&#8212;&#8211;<br />
                                  <a href="http://192.168.1.2:81" rel="nofollow">http://192.168.1.2:81</a></p>
<p>                     7) Now you can get both nginx and your native apache instance working together, and all your current webpages<br />
                        will be working fine as well as the new nginx server</p>
<p>          PS: if your apache daemon is not running (may be you have stopped that for the nginx service) , then please start the<br />
                 apache process to get  your current webpages working</p>
<p>                If you find the above reply not useful , or if you still facing any issue , please let me know that</p>
<p>                 Have a great day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemang Shah</title>
		<link>http://www.sparksupport.com/blog/installing-nginx-with-php-fpm-on-a-linux-server/comment-page-1#comment-115</link>
		<dc:creator>Hemang Shah</dc:creator>
		<pubDate>Mon, 30 Aug 2010 07:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://sparksupport.com/blog/?p=346#comment-115</guid>
		<description>Hello 

Thank you very much for posting this tutorial. However, I have one problem due to which it is not working for me.

Before executing /etc/init.d/nginx restart

I have to execute service httpd stop then only 
/etc/init.d/nginx restart works

That&#039;s OK

but when I browse www.mydomain.com, it still shows that  &quot;Welcome to nginx&quot; page and not my site pages (i.e. my already uploaded php pages)

Yes, I have made nginx install on my existing server and my files are in 
/home/..... directory.

I believe that putting &quot;root          /usr/local/nginx/html;&quot; in nginx.conf leads to this index.html

Kindly let me know how can I configure newly installed nginx to resolve to my existing php pages of existing domain.

Looking for your response.

Thank you</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>Thank you very much for posting this tutorial. However, I have one problem due to which it is not working for me.</p>
<p>Before executing /etc/init.d/nginx restart</p>
<p>I have to execute service httpd stop then only<br />
/etc/init.d/nginx restart works</p>
<p>That&#8217;s OK</p>
<p>but when I browse <a href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a>, it still shows that  &#8220;Welcome to nginx&#8221; page and not my site pages (i.e. my already uploaded php pages)</p>
<p>Yes, I have made nginx install on my existing server and my files are in<br />
/home/&#8230;.. directory.</p>
<p>I believe that putting &#8220;root          /usr/local/nginx/html;&#8221; in nginx.conf leads to this index.html</p>
<p>Kindly let me know how can I configure newly installed nginx to resolve to my existing php pages of existing domain.</p>
<p>Looking for your response.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

