Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
yacenty Posted November 13, 2010 Posted November 13, 2010 little of topic: have You seen nginx? I'm using it from 2 years and it's amazing performance in comparision to the apache
Zhana Posted November 13, 2010 Author Posted November 13, 2010 Question is can you use mod_rewrite with Nginx. If not then it's of no use to me.
Gary. Posted November 13, 2010 Posted November 13, 2010 Nginx has nothing on litespeed, Hense the reason its 5USD lol.
.Nuno. Posted November 13, 2010 Posted November 13, 2010 Question is can you use mod_rewrite with Nginx. If not then it's of no use to me. You can proxy php requests to apache and let nginx handle static content. This is what people usually do without loosing mod_rewrite. I'm using nginx -> apache an it's a great solution.
yacenty Posted November 14, 2010 Posted November 14, 2010 I'm using only nginx, php is hanlded via fast-cgi You have to rewrite mod_rewrite rules to rules specific in nginx, but everything is working, tested on few big sites and few small ones
Zhana Posted November 14, 2010 Author Posted November 14, 2010 So IP.Board with SEF URLs is working fine with Nginx? What about performance compared to Apache?
Gary. Posted November 14, 2010 Posted November 14, 2010 You cannot compair it to apacge as it runs with apache as a proxy. Now using nginx will have some improvement with memory and server loads. This is a litespeed thread tho ! Now, If you want speed, Performance, Stabality, and security then litespeed is for you. If you just want performance then use nginx.
Bono Posted November 14, 2010 Posted November 14, 2010 Cool cool, how much are you paying for it bono? $32 per month but it saved me also memory upgrade and probably server upgrade. I usually changed my servers every 2 years and now my server after changing to LiteSpeed is too fast, my load dropped from 50-80% to 25% average. You don't need more cpu LiteSpeed licenses one is more than enough i'm using it on quad core server.
yacenty Posted November 14, 2010 Posted November 14, 2010 So IP.Board with SEF URLs is working fine with Nginx? What about performance compared to Apache? Yes, it is. Performance is few time faster. As I said before I do not use Apache at all. everything on my site is done through nginx connected with fast-cgi for php. like bono said using it I do not need to upgrade server. On the server I had some issues with 300users online, now I have 1300 and it's runing very much OK )in the mean time I had added only one HDD I'm using nginx for over 2 years. It's stable and I have not heard about some big problems with security
Gary. Posted November 15, 2010 Posted November 15, 2010 Yes, it is. Performance is few time faster. As I said before I do not use Apache at all. everything on my site is done through nginx connected with fast-cgi for php. like bono said using it I do not need to upgrade server. On the server I had some issues with 300users online, now I have 1300 and it's runing very much OK )in the mean time I had added only one HDD I'm using nginx for over 2 years. It's stable and I have not heard about some big problems with security I think your confused, You are still using apache but nginx as a reverse proxy to apache. Now all this means is the people connecting are connecting to nginx which that then fires all the information of to apache, Its just an opcode at the end of the day. Now by using nging you will see a hugh amount of more static connections, These are not all real as its static content, The best way would be to check the apache connections so see the real people connected.netstat -nt | grep :80 | wc -l Nginx is 5USD for one core content, Now to me I would go with litespeed, for 16USD per core, you can use the 1 core for the static content of the websites by setting up a virtual host then have the other cores remaining to do the other tasks. If you have a 4 core you do not need a 4 core CPU licence ! LSWS is by far more advanced, secure, and stable than nginx with better performance, Yet this replaces apache which nginx does not.
yacenty Posted November 15, 2010 Posted November 15, 2010 Gary, do You know better what I'm using? There is no APACHE at all on my server. nginx handles everything , static and dynamic content, for dynamic we are using fast-cgi. Once more, last time - there is no need to use apache with nginx set up.
Gary. Posted November 15, 2010 Posted November 15, 2010 You have obviously been reading stories by a drunken sailor ! http://forums.cpanel.net/f77/cpnginx-cpanel-whm-nginx-integration-plugin-say-good-bye-server-load-164782.html Ok you wanna play the hard way, Login to your server via SSH and type:/etc/init.d/httpd stop Then load your website ! :rolleyes: Quote taken from Nginx website:Nginx will work as a front end reverse proxy of your cPanel server along with apache I will say many times ! NGINX does not replace apache as it needs apache to work ! Ok lets play again.... Login to your forums - go to support tab:PHP Version: nginx ? No I dident think so.... yours will say:PHP Version: fcgi if you run litespeed: It will show:PHP Version 5.2.14 (litespeed) so in reality and theory it does NOT REPLACE apache as it needs it to function lol. There is no APACHE at all on my server. nginx handles everything , static and dynamic content, for dynamic we are using fast-cgi. So you do not use apache ? what is fcgi ? erm... Its an apache module :D so.. if your not using it fcgi or mod_fcgi will fail and so will many other things. The only thing that has the power and compatablility to replace apache is Litespeed, The others are just reverse proxies, hey... such as nginx (w00t) I'm not being funny or trying to take the mic ! But.. how did you install FCGI on WHM / Cpanel ? thought.. easyapache ? :P
yacenty Posted November 15, 2010 Posted November 15, 2010 my site is runing and I put such 2 commands.root@s1:/# ps aux |grep httpd root 27913 0.0 0.0 1836 536 pts/1 R+ 23:29 0:00 grep httpd root@s1:/# ps aux |grep apache root 27915 0.0 0.0 1836 520 pts/1 R+ 23:29 0:00 grep apache root@s1:/# root@s1:/# /etc/init.d/httpd stop bash: /etc/init.d/httpd: No such file or directory in the admin panel I got: PHP 5.2.x-1+lenny9 (cgi-fcgi) I prosose You should go to the school for webadmin. I do not use any tool for managing accounts no cPanel, whm or whatever it's dedicated server. fcgi - means fast cgi please use wiki or any good book to read what is this. You think that there is only one way of handling web server? Please read, think, read and think and then please do not tell such bulfaeces like in previous post. I beg You. EOT
Gary. Posted November 16, 2010 Posted November 16, 2010 WHM > Server Status ? Apache status: You should receive: Failed to receive status information from Apache. Mean apache is running not as primary. It say's it on there website, there is no need to deny things. If your really brave enough run this: rm -rf /etc/httpd/conf/httpd.conf rm -rv /usr/local/apache/conf/httpd.conf rm -rv /usr/local/apache* Like I said all along, Its a reverse proxy ! It cannot replace apache. http://cpnginx.com/ cPnginx - The complete cPanel Nginx server plugin The cPnginx is a cPanel nginx integration plugin. This plugin will increase your server performance and decrease server loads cased by apache web server. Nginx+cPanel+Apache= Performance boosted secured hosting server What there staff said on Nginx forums: http://forum.nginx.org/read.php?15,5116,5116The advantage there is that Apache feeds the response to nginx almost instantaneously
Zhana Posted November 16, 2010 Author Posted November 16, 2010 root@s1:/# /etc/init.d/httpd stop bash: /etc/init.d/httpd: No such file or directory [/code] Try with service httpd stop
yacenty Posted November 16, 2010 Posted November 16, 2010 Hi guys - I'm not IDIOT I do not have any apache like services, everything is perfromed by nginx Good bye
Gary. Posted November 16, 2010 Posted November 16, 2010 We are not calling you an idiot, We are only telling you how it functions which you should believe, We are not trying to make you look a fool, Or anything like that in any single way, I myself and others are basicly teaching but you obviosuly do not believe me in any way. Have a read here also: http://wiki.joyent.com/smartmachine:nginx_apache_proxy Now for clarification I contacted Nginx, And even spoken to Blarg, The author of NGINX on MSN which he also confirmed but, For the real proof here is a screen shot of the NGINX whmcs support portal. I can honestly say no more, Anyhow. This thread is for litespeed so we shall keep it this way.
yacenty Posted November 16, 2010 Posted November 16, 2010 I do not focus on whm or any cpanel service or so on, on the other server that is virtual host we have DA on the nginx. My point is that NGINX does NOT NEED apache at all. Of course many users put nginx for static and forwards dynamic conent to apache with php as a mod, but we are using only nginx, nginx is forwarding dynamic content directly to the PHP that is working in the Fast-cgi mode. in the mean time there is wrapper as an middleware. as I said performance and stability is on very very high level
Gary. Posted November 16, 2010 Posted November 16, 2010 Well you must be dis agreeing with the authors which said nginx will not function without it, They should know they made it. As shown above nginx needs apache, If you look at the nginx code, Its written to http.conf which is apache. and WHM is cPanel ! do this via your forum: ACP > SUPPORT > PHP info and paste the FULL output Or open the nginx.php with your favourite editor, pico, vi and such: You will see:// Configuration Section $nginx_init = "/etc/init.d/nginx"; $apache_config = "/etc/httpd/conf/httpd.conf"; $da_vhosts = "/etc/httpd/conf/extra/directadmin-vhosts.conf"; $tmp_folder = "/tmp/"; $debug_level = 0; // 0 => FATAL, 1 => WARN, 2 => INFO $killall_bin = "/usr/bin/killall"; $spawn_bin = "/usr/local/bin/spawn-fcgi"; // Nginx Configuration $nginx_config = "/usr/local/nginx/conf/nginx.conf"; $nginx_bin = "/usr/local/nginx/sbin/nginx"; $mod_status = true; // PHP Configuration $php_childs = 3; $php_bin = "/opt/php/bin/php-cgi"; $php_startport = 11000;
yacenty Posted November 16, 2010 Posted November 16, 2010 are You crazy or what? please read about nginx more deeply. You had read the first page of the book about nginx and You are telling all the time info that You really do not know - You had only heard something about it. On how many server did You configured nginx? One two three, ten or maybe 0? and You are only very poor reader because You read only the odd pages? Hi man, please read the following tuto: http://www.howtoforge.com/nginx_php5_fast_cgi_xcache_ubuntu7.04 and the next one: http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian Do You still think that apache is really needed, if Yes i think You are blindminded - sorry Gary, I'm telling You few days that this is possible and You are irrogant and telling something that is not truth. No offence, Regards yacenty
Bono Posted November 17, 2010 Posted November 17, 2010 Nginx is standalone web server and it doesn't need apache to work properly, webmin and cpanel are web management software which functions only on apache or maybe some other lite version but not on nginx, that's why apache needs to be there. But if you are gonna configure everything from shell, nginx can be your only web server, same goes for Lite Speed.
Echelon One Posted November 17, 2010 Posted November 17, 2010 I had been swapping hosts for years, each time the server was using Apache. Then I come across www.urljet.com, they were offering all hosting including Shared with LiteSpeed as standard, along with hourly R1 backups, and eAccelerator. I took out a VPS package, and now been with them over a year, never had a single issue, and my members noticed a huge difference in speed of forum page rendering. LiteSpeed is much faster than Apache, if you add a PHP accelerator to it as well, then you have got yourself a very fast forum. I am one of those people that is forever tweaking, just to squeeze that a little bit extra speed - you only have to look at LiteSpeed Technologies benchmark tests against Apache to see the difference. One good thing is my host provides LiteSpeed on all hosting, so you do not have to pay every month for licensing - they do state they manage vBulletin, but on their forums lately they have now expanded their support to IPB and XenForo. I actually run vBulletin and 2 IPB forums, and never have problems - but I must admit LiteSpeed does make a huge difference.
Gary. Posted November 17, 2010 Posted November 17, 2010 It needs it to function correctly and in the proper manor, As a start it does not support disable_functions, so basicly your server is wide open. Taken from that website you gave: wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.bz2 Someone correct me but is this not a stripped version of apache :lol: :lol: :lol: Like I said.. Litespeed thread, Your spoiling it for others.syrusxl I agree with what you say. Litespeed is awsome and probably is the fastest - Most secure, Stable and less memory consumed web server out there, I love it :D We use it on the hosting server, with over 120 clients and with 4GB DDR3 we only use 13% memory with 0% swap - 0 I/O wait times and the loads are consistent 0.00 to 0.20 very max and always an average 1300 connections. It makes it simple. Now we are only using the 2CORE License, we will be getting the 4 core on in upcoming months which will probably reduce it even more depending on how we set the cores to handle things. I mentioned in a few thread back where you can use OPcode eAccelerator with Litespeed which makes things even better if you want the resources.
yacenty Posted November 17, 2010 Posted November 17, 2010 last question in the topic, Gary are You a LS seller?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.