MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Tips and Tricks => Topic started by: Sauron73 on 2014-09-29, 21:53:12

Title: best setup
Post by: Sauron73 on 2014-09-29, 21:53:12
Hi, just wondering what everyone would consider to be the best setup for a general site with forums using kloxo7 on a centos 6.5 server in terms of web (apache etc) dns (bind) php versions (5.3 etc and suphp etc)

thank you for sharing your superior knowledge
Title: Re: best setup
Post by: MRatWork on 2014-09-30, 04:52:44
Please compare http://forum.mratwork.com (this forum; Kloxo-MR 7.0.0) with http://community.lxcenter.org (Kloxo official 6.1.19) performance via http://gtmetrix.com. Give me your opinions/comments about it.
Title: Re: best setup
Post by: chrisf on 2014-09-30, 05:28:07
;) well that's just funny.  KloxoMR is superior, definetely.

I would recommend hiawatha in the front whether proxied or not.  If it is just you, not hosting for others, i say scrap apache altogether and run straight hiawatha.

Dns is a preference.  Depending on ram, etc.  I'm old fashioned ;) and run bind chrooted.

Php: php-fpm event is superior in speed to all the others, the version again is a preference really, or neccessity depending on what script you are actually running.  If you are using maria db instead of mysql (recommended) you want to use php54m or php54u branch (or higher).

It really comes down to your server and your needs. :)
Title: Re: best setup
Post by: Sauron73 on 2014-09-30, 23:39:53
Hi, thanks for the replies, chance are I would be using vbulletin or something similar forum wise, will stick with bind, was unsure about apache/nginx/hiawatha and choic of php branches was utterley confusing between normal, event and workers???? is php-fpm secure or seena bit about others recommending suphp and mod security etc
Title: Re: best setup
Post by: chrisf on 2014-10-01, 03:04:51
Suphp is outdated, and even the original developer has stated the need for it is no longer.  Php-fpm event, in kloxoMR runs under your client name, directory restrictions in place, and just blows suphp away in performance.

Mod_security is great, if you know what you are doing, as in being a knowledgable server admin.  Hiawatha web server is a neat little webserver, SECURE, able to protect against a lot of attacks, and well, my preference.  I left apache when one of our production servers was running constantly at 8.5 load due to apache.  Hiawatha, same server, about 4 - sometimes slightly more, but just a drastic difference under load/high traffic.

I know the die hard apache fans will start barking about settings/configs/whatever... well, hiawatha does it faster, easier, and WAY LESS RAM.

;)
Title: Re: best setup
Post by: MRatWork on 2014-10-01, 03:44:19
This setting for server of this forum (also purpose for shared-hosting):

1. Hiawatha + Apache (aka Hiawatha-proxy)
2. Use php54m with enable apc (copy apc.nonini to _apc.ini in '/opt/php54m/etc/php.d') --> not the best choice like xcache but no issue related to shared-hosting environment
3. Enable cache plugin in website application (like hypercache in wordpress)
4. Convert all database tables to 'myisam' + 'utf8' and increasing certain parameters
5. Add 'header("X-Hiawatha-Cache: 10");' in 'index.php' in website if needed
6. Install mod-pagespeed (from google; with 'yum install mod-pagespeed-stable')

Yes, my setting is optimize setting for shared-hosting.

Testing gtmetrix.com, 'page speed' score is '97' and 'yslow' is '94' (if using 'cdn', 'yslow' is '99').
Title: Re: best setup
Post by: chrisf on 2014-10-01, 18:10:28
Sounds great for you, but put 1600-2000 domains under that configuration, with heavy load, constant hits on the domains, apache is a resource hog.  Watch the load tap out even a healthy server.  I simply have watched our load average on our production box nearly split in half without apache.  Also, hiawatha has a neat run-away stopper, you can set the maximum load hiawatha can consume before it will drop incoming connections.  So if we have a drastic flux in load due to hiawatha, it won't take the server with it.  I am speaking out-of-the-box also.

'Gtmetrix' is also only an indicator for how a 'browser' will handle your page.  Not how much server resource is needed.  And it can be deceiving, more content takes more load time.


Title: Re: best setup
Post by: Sauron73 on 2014-10-01, 21:09:29
thank guys, really glad I found this site as a true alternative to cpanel, knowledge and feedback is outstanding so far compared to other panel equivalent sites. :D