Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 13:40:16

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - MRatWork

Pages: 1 2 [3] 4 5
31
Please update 6.5.0.f/6.5.1.a to 2014013101. And then running 'sh /script/cleanup'.

Some changes:

1. Disable perl in all webserver config

This action need because still no 'elegance' solution for 'hardlinks' issue for perl. If user have custom template for webserver better modified according new template. To make enable perl is easy (example for apache):
a. copy /home/apache/tpl/domains.conf.tpl to /home/apache/tpl/custom.domains.conf.tpl
b. modified custom.domains.conf.tpl:
from:
Code: [Select]
    ### MR -- disable perl until fix hardlinks issue
    # ScriptAlias /cgi-bin/ "/home/<?php echo $user?>/<?php echo $domainname?>/cgi-bin/"
to:
Code: [Select]
    ### MR -- disable perl until fix hardlinks issue
    ScriptAlias /cgi-bin/ "/home/<?php echo $user?>/<?php echo $domainname?>/cgi-bin/"

For hiawatha, also modified /home/hiawatha/tpl/custom.domains.conf.tpl
For nginx and lighttpd, modified /home/<webserver/conf/globals/custom.generic.tpl

And then running 'sh /script/fixweb; sh /script/restart-web'.

2. Use 'spawn-fcgi for daemonize kloxo-phpcgi and it's make php52s for Kloxo-MR running under 'lxlabs:lxlabs'. For kloxo-hiawatha, already running under 'lxlabs:lxlabs'

NOTES:

1. For Kernel 3.6+ or patch for current Kernel, add:
Code: [Select]
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
kernel.kptr_restrict = 1
to /etc/sysctl.conf and then running 'sysctl -e -p'.

32
At this moment, many report related to Kloxo Official security issue. Read http://www.webhostingtalk.com/showthread.php?t=1344003 about it.

Fortunely, Kloxo-MR no affect for this issue.

But, another security issue (code from Kloxo Official) still exist in Kloxo-MR.

Fixing for this issue are:
1. Add sanity '../' in filemanager
2. Cron task only enable for 'admin'

Please update Kloxo-MR to 2014013001. Update is very importance for Kloxo-MR as share-hosting (many clients inside).

33
Kloxo-MR Tips and Tricks / [TIP] How to set dns
« on: 2014-01-28, 04:16:20 »
Taken from http://forum.lxcenter.org/index.php?t=msg&goto=87450&&srch=dns#msg_87450 (also my article)

Imagine this situation:

1. Kloxo install on VPS1 and VPS2
2. on VPS1 want install domain
3. on VPS2 want install subdomain

4. Domain is mydomain.com and subdomain is subdom.mydomain.com
5. IP for VPS1 is 123.111.111.111 and for VPS2 is 123.222.222.222
6. IP for registrar dns is 123.333.333.333

Step 1:

1.1. set "A record" (child nameserver) and "NS Record" (nameserver) on Registrar (where we buy domain) panel:
Code: [Select]
ns1 A - 123.111.111.111
ns2 A - 123.333.333.333
- NS - ns1.mydomain.com
- NS - ns2.mydomain.com

Step 2:

2.1. make dns-template on VPS1 with name 'default' for domain:
Code: [Select]
__base__ A - 123.111.111.111
cp  A - 123.111.111.111
mail A - 123.111.111.111
ns A - 123.111.111.111
ns1 A - 123.111.111.111
ns2 A - 123.333.333.333
ftp CN - __base__
lists CN - mail
webmail CN - mail
www CN - __base__
default.dnst MX 10 mail.default.dnst
- NS - ns1.default.dnst
- NS - ns2.default.dnst

2.2. make dns-template on VPS1 with name 'outside' for subdomain:
Code: [Select]
* A - 123.222.222.222
__base__ A - 123.222.222.222
ns1 A - 123.222.222.222
ns2 A - 123.111.111.111
- NS - ns1.outside.dnst
- NS - ns2.outside.dnst

2.3. add mydomain.com and select default.dnst template and result (no all contents; just for illustration):
Code: [Select]

__base__ A - 123.111.111.111
cp  A - 123.111.111.111
mail A - 123.111.111.111
ns A - 123.111.111.111
ns1 A - 123.111.111.111
ns2 A - 123.333.333.333
ftp CN - __base__
lists CN - mail
webmail CN - mail
www CN - __base__
mydomain.com MX 10 mail.mydomain.com
- NS - ns1.mydomain.com
- NS - ns2.mydomain.com

2.4. add submydomain.com and select outside.dnst template and result (no all contents; just for illustration):
Code: [Select]
* A - 123.222.222.222
__base__ A - 123.222.222.222
ns1 A - 123.222.222.222
ns2 A - 123.111.111.111
- NS - ns1.subdom.mydomain.com
- NS - ns2.subdom.mydomain.com

Step 3:

3.1. make dns-template on VPS2 with name 'subdomain' for subdomain:
Code: [Select]
__base__ A - 123.222.222.222
cp  A - 123.222.222.222
mail A - 123.222.222.222
ns A - 123.222.222.222
ns1 A - 123.222.222.222
ns2 A - 123.111.111.111
ftp CN - __base__
lists CN - mail
webmail CN - mail
www CN - __base__
subdomain.dnst MX 10 mail.subdomain.dnst
- NS - ns1.subdomain.dnst
- NS - ns2.subdomain.dnst

3.2. add subdom.mydomain.com and select subdomain.dnst template and result (no all contents; just for illustration):
Code: [Select]
__base__ A - 123.222.222.222
cp  A - 123.222.222.222
mail A - 123.222.222.222
ns A - 123.222.222.222
ns1 A - 123.222.222.222
ns2 A - 123.111.111.111
ftp CN - __base__
lists CN - mail
webmail CN - mail
www CN - __base__
subdom.mydomain.com MX 10 mail.subdom.mydomain.com
- NS - ns1.subdom.mydomain.com
- NS - ns2.subdom.mydomain.com


34
Non Technical Discussions / [INFO] LxCenter Forum
« on: 2014-01-17, 06:19:07 »
Information from forum.lxcenter.org (as we know as Kloxo/HyperVM producer) where their forum will move to new ones. Will be move from forum.lxcenter.org to community.lxcenter.org.

Accidentally, their new forum using as the same as using by this forum. Their new forum using SMF and also 'Minimalist And Effective' for theme.  8)

This forum using SMF (also 'Minimalist And Effective' with modification) more then 3 month since convert from phpbb.

35
I saw many report that have trouble install Kloxo-MR in OpenVZ VPS.

In my investigate, I didn't saw the same issue for KVM (I am sure also Xen) VPS.

For this issue, I need help for user(s) that OpenVZ VPS for give permission to me to access to their VPS. I want to know what's happen this issue appear in OpenVZ only.

So, send your ssh access to my PM.

----------------------------

FIXED:

This issue already fixed. Appear because wrong detect for Centos version.

Latest update (2014010701) already with the patch.

36
This is information about benckmarking of Web/Webcache servers:

Code: [Select]
-------------------------------------------------
No.  Web Server                 requests/second
-------------------------------------------------
 1.  Apache                               8.04
 2.  Hiawatha                             8.76
 3.  Lighttpd                             8.74
 4.  Nginx                                8.89
 5.  Nginx + microcache *)              514.75
                                      4,089.80
                                     11,213.65

 6. Hiawatha-proxy                        8.82
 7. Lighttpd-proxy                        8.65
 8. Nginx-proxy                           8.42    
 9. Nginx-proxy + microcache *)         278.59
                                      3,066.68
                                     10,992.15

10. Hiawatha + Trafficserver **)          7.84
11. Hiawatha + Varnish *)               307.93
                                      10794.71
                                      10897.40
-------------------------------------------------

Note:

1. System: (with little mod/fix)

   A. Kloxo-MR: 6.5.1.a-2013100403

   B. OS: CentOS release 6.4 (Final) x86_64

   C. Apps:
      1. MySQL: mysql-5.5.34-1.el6.x86_64
      2. PHP: php53u-5.3.27-1.ius.el6.x86_64
      3. Httpd: --uninstalled--
      4. Lighttpd: --uninstalled--
      5. Hiawatha: --uninstalled--
      6. Nginx: --uninstalled--
      7. Cache: --uninstalled--
      8. Dns: nsd-3.2.15-5.el6.x86_64
      9. Qmail: qmail-toaster-1.03-1.3.27.mr.el6.x86_64
         - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64

   D. Php-type (for Httpd/proxy): php-fpm_event

   E. Memory:
                   total       used       free     shared    buffers     cached
      Mem:           616        491        124          0         10        259
      -/+ buffers/cache:        222        394
      Swap:            0          0          0


2. All testing in local

3. Testing with step:
        yum install httpd-tools -y
        sh /script/clearcache3
        sh /script/restart-all
        ab -n 1000 -c 10 http://bugfix.potissima.com/

4. *)  testing 3 x running 'ab -n 1000 -c 10 http://bugfix.potissima.com/'
       with idle between testing less then 10 seconds (according to caching time for 'microcache')
   **) look like still something trouble with Trafficserver where no cache effect; the same result for Squid Cache Proxy

5. Testing application: Wordpress 3.6.1 + Mesocolumn Theme

Summaries:
1. For websites with high-traffic (low websites amount) better use nginx or nginx-proxy with microcache (enable in incoming 6.5.1)
2. For websites in 'share-hosting' bussiness (high website amount) better nginx-proxy with microcache + web cache server (like varnish or trafficserver)

Additional Info:
- Hiawatha have 'microcache' effect with add:
Code: [Select]
<?php
  header
("X-Hiawatha-Cache: 10");
?>
in /index.php

37
Kloxo-MR Development / [6.5.1.a] Generic Permalink
« on: 2013-10-04, 23:04:20 »
Since 6.5.1.a-2013100302, Kloxo-MR add 'generic permalink' for every web server config (nginx, lighttpd and hiawatha).

In my testing, my wordpress always access something like 'http://domain.com/2013/01/01/hello' under nginx, lighttpd or hiawatha.

38
Kloxo-MR Development / [6.5.1.a] Introduce 'NONE' driver
« on: 2013-10-04, 21:44:48 »
Since 6.5.1.a-2013100403, Web, DNS and Spam have 'none' option in 'Switch Programs'.

So, what's the meaning and purpose of 'none' driver?.

Imagine, we don't need dns server on our server (because handle by other server) and with this condition we can select 'none' in 'dns' and then Kloxo-MR will be uninstall dns packages and no process for config again.

39
Since 6.5.1.a-2013100302, trafficserver ready to test.

Different with varnish, trafficserver use hd space + ram combination for cache with 'default rule' where 1GB hd cache will be use 1MB RAM cache.

By default, Kloxo-MR set cache as '256MB' HD space.

Importance file inside '/etc/trafficserver':
1. storage.config - for setting hd space for cache
2. remap.config - for mapping proxy; Kloxo-MR implementing 'simple' regex_remap
3. records.config - basic configure like port, ip and etcetera

By default, trafficserver listen port 80 (also 443) and web server (apache or others listen port 8080).

At this moment, trafficserver still using 3.2.5 (latest version of 3). Version 4.0.1 already exist but I have a problem to compile to Centos 5 (no problem with Centos 6). Epel repo have version 3.0.4 for Centos 6. As I know, no 'major' repo have trafficserver (especially for Centos 5).

40
Since 6.5.1.a-2013093001, Varnish automatically enable in Kloxo-MR panel. Varnish work together with web servers (not only with apache).

Because Varnish use 'RAM-based' cache (also hiawatha), it's have a problem if try to enable in system with memory less than 1 GB.

41
Kloxo-MR Development / [6.5.1.a] New Web Server (Hiawatha)
« on: 2013-09-25, 00:54:29 »
Since 6.5.1.a-2013092302, Hiawatha already exists. It's still unfinish work.

Still many issue related to 'pure' hiawatha like redirect (http://domain.com/webmail redirect to http://webmail.domain.com/). But, hiawatha-proxy look like ready-to-use.

42
Since 6.5.1.a-2013092302, default 'php-type' is 'php-fpm_event'. As we know, 'mod_php_ruid2' as default 'php-type'.

Impact for this change, we will see 'php-fpm_event' as 'php-type' in 'webserver config' after fresh install.

Also, this change for prepare 'multiple php' instead 'primary-secondary php' in previous version.

43
Kloxo-MR Tips and Tricks / [TIPS] Disable MySQL innodb log
« on: 2013-09-23, 14:09:14 »
I have a problem in our share-hosting. MySQL (using MariaDB) not able to stop and start. What a problem is?.

Symptoms:
1. using 'innodb' as 'storage-engine' in 1 or more database
2. have 'log-bin=mysql-bin' inside '/etc/my.cnf' and or '/etc/my.cnf.d/my.cnf'
3. many files named as 'mysql-bin.*' inside '/var/lib/mysql'
4. this 'mysql-bin' files eat disk usage --> in my server until disk usage until 100%

Solutions:
1. Change 'log-bin=mysql-bin' to '#log-bin=mysql-bin'
2. restart mysql with 'sh /script/restart-mysql'
3. delete all 'mysql-bin' files with 'rm -rf /var/lib/mysql/mysql-bin.*'

-------
Note:
- log-bin only needed for 'replications' purpose

44
In latest 6.5.1.a, ready various new DNS server:

1. PDns (aka PowerDNS) - all issues (especially 'TXT record') already fixed
2. MaraDNS - possible not work but server running well and no error for config
3. NSD - running well but possible allow-transfer still unfinish

Note:
1. 'TXT record' issue in DJBDns already fixed too
2. 'CNAME record' automatically convert to 'A record' for faster DNS request

How to test this 6.5.1.a?. Follow:

1. Open '/etc/yum.repos.d/kloxo-mr.repo' and change:
Code: [Select]
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=0
gpgcheck=0

to:
Code: [Select]
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=1
gpgcheck=0
includepkgs=kloxomr

2. And then run 'yum cleanup; yum update; sh /script/cleanup'

3. After that, switch to 'pdns' for 'dns' in 'switch applications'

----------------

Note:

- Downgrade to 6.5.0 with 'yum downgrade kloxomr'.

45
Kloxo-MR Development / [NEWS] MySQLi API and PowerDNS
« on: 2013-09-16, 23:44:34 »
Since Kloxo-MR 6.5.0.f-2013090302, Kloxo-MR using MySQLi API (object-based) instead MySQL API (procedural-based). One reason to change is MySQL API (declare like '$conn = mysql_connect()') already deprecated (since Php 5.3) and possible not support in Php 5.5. Another reason is MySQLi API (declare like '$conn = new mysqli()') faster then MySQL API.

What impact for this change?. MySQLi API not support by MySQL 5.0.x version and it's make no possible install Kloxo-MR using mysql from Centos 5.x version. This is why fresh install in Centos 5 using mysql55 from IUS repo.

Since Kloxo-MR 6.5.1.a-2013091603, Kloxo-MR ready for PowerDNS. Step for testing 6.5.1.a:

1. Open '/etc/yum.repos.d/kloxo-mr.repo' and change:
Code: [Select]
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=0
gpgcheck=0

to:
Code: [Select]
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=1
gpgcheck=0
includepkgs=kloxomr

2. And then run 'yum cleanup; yum update; sh /script/cleanup'

3. After that, switch to 'pdns' for 'dns' in 'switch applications'

----------------

Note:

- Downgrade to 6.5.0 with 'yum downgrade kloxomr'.

Pages: 1 2 [3] 4 5

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.046 seconds with 15 queries.

web stats analysis