Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Mon Mar 28, 2011 10:53 am 
Offline
Senior Newbie

Joined: Mon Jan 25, 2010 3:38 am
Posts: 6
hybinet wrote:
obs wrote:
Actually nginx proxying back to apache with mod_php does reduce memory and speed things up.

Static files are served by nginx so are very quick, and mod_php is a fast way of running php files so again php files are run quickly, and since apache doesn't have to have many processes running you save RAM, you can also play with apache rewrite rules this way.

However I still prefer nginx+fpm

Just to clarify things on behalf of @obs, he means that the proxy setup saves memory and makes things faster compared to using Apache alone.

If the comparison is between nginx+fpm and nginx+Apache, there is no real difference. 10 Apache processes with mod_php use about as much memory and can serve up about as many pages per second as 10 fpm processes.

One drawback of the proxy setup is that you need to maintain two web servers now. If you want to change anything, for example add a new virtual host or change the document root, you must edit configurations of two web servers and make sure that they're perfectly in sync.

Thanks.
I run nginx with php-fpm and see fast than apache-php.
But i heard wome one say nginx -apache php backend reduce cpu load?how about this? :roll:


Top
   
 Post subject:
PostPosted: Mon Mar 28, 2011 11:53 am 
Offline
Senior Newbie

Joined: Wed Mar 23, 2011 9:42 pm
Posts: 11
Website: http://www.niden.net
Location: Charles Town, WV
It's up to you. Like I wrote, I personally went for nginx/php-fpm. I don't know which setup is perfect and probably that would depend on what you are running vs. the actual packages themselves (apache and nginx).

I would suggest you check the nginx configuration pages to ensure that you fine tune it to your specifications. A bad configuration will definitely impact your site.

HTH

_________________
W: niden.net
T: nikosdimopoulos


Top
   
 Post subject:
PostPosted: Wed Mar 30, 2011 12:39 am 
Offline
Senior Newbie

Joined: Mon Jan 25, 2010 3:38 am
Posts: 6
hybinet wrote:
obs wrote:
Actually nginx proxying back to apache with mod_php does reduce memory and speed things up.

Static files are served by nginx so are very quick, and mod_php is a fast way of running php files so again php files are run quickly, and since apache doesn't have to have many processes running you save RAM, you can also play with apache rewrite rules this way.

However I still prefer nginx+fpm

Just to clarify things on behalf of @obs, he means that the proxy setup saves memory and makes things faster compared to using Apache alone.

If the comparison is between nginx+fpm and nginx+Apache, there is no real difference. 10 Apache processes with mod_php use about as much memory and can serve up about as many pages per second as 10 fpm processes.

One drawback of the proxy setup is that you need to maintain two web servers now. If you want to change anything, for example add a new virtual host or change the document root, you must edit configurations of two web servers and make sure that they're perfectly in sync.

Thanks.
I finished with varnish caching front end- nginx-php-fpm backend:D.
Finished at 7000r/s with cache.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group