Portal Home > Knowledgebase > Articles Database > nginx on cPanel server :: comparison of 2 alternatives


nginx on cPanel server :: comparison of 2 alternatives




Posted by rajuru, 02-18-2011, 05:22 AM
hello, Yesterday I was googling to see if I can easily use nginx on cPanel server. During first attempt I found: http://cpnginx.com/ I installed it on a semi-production server runs on cPanel. Installation was damn easy. just run one command. (much easier than download it from their server ) I believe the server load is less than earlier. in my server config, php runs as fcgid. as eaccelerator seems working with fcgid, I monitored the RAM usages gone extremely high. From 500MB to 2GB and until hanging cpsrvd. then after installing this cpanel plugin, I see overall memory usages is still in normal. mostly below 1GB. just now, I've got another plugin: http://nginxcp.com/ last one seems free while first one is $5/month. so, I am interested to know if anyone has experience with both or any! and do you suggest or not using it on production server. thanks everyone in advance.

Posted by neverknowhk, 02-18-2011, 05:26 AM
do you alter httpd.conf manually?

Posted by rajuru, 02-18-2011, 05:29 AM
nope, this plugin did all the required things. it changed the apache listening port, set nginx to listen 80, configure nginx to pass the scripts to apache, and itself to serve static contents. There was no manual changing at all. thanks

Posted by neverknowhk, 02-18-2011, 05:38 AM
i mean do you alter the httpd.conf urself. because i did ti before. it will screw up ur manual setting because cpanel someitmes recompile the httpd.conf if u have changed the setting in cpanel. that will screw up ur apache

Posted by rajuru, 02-18-2011, 05:48 AM
nope, I rarely edit httpd.conf myself. so far I remember i did only once in last year. I don't think when cpanel recompiles apache, it will screw up. because so far I have seen: 1. cpnginx plugin changes cpanel settings (tweak) and sets apache to listen to 8888. now even I recompile apache, cpanel will configure it for that port. 2. as nginx is already configured to listen 80, it will still be listening. moreover, recompiling apache is rare issue. thanks for your input.

Posted by neverknowhk, 02-18-2011, 06:06 AM
cpanel is a good tool. when you have multiple subdomain to deperate the static content then you will get trouble (for exmpale, adding extra ip to listen, when you need more server) u can test it. everytimes when u recompile the apache, some of the configuration will appear in different line. recompile is necessary because you need to add or delete module. Performance tuning. For whoever wanted to have reverse proxy or extra webserver (lighttpd and nginx). It will be much easier to configure the conf yourselves.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
narrowed down to two (Views: 622)
Web Hosting APIs (Views: 612)