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-29, 10:31:01

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.


Messages - tochits

Pages: [1] 2 3
1
Kloxo-MR Bugs and Requests / Re: Resource Plan Limit Problem
« on: 2017-07-03, 04:47:32 »
So is this problem not going to be acknowledged as a bug?

I apparently already raised this issue 3 YEARS AGO and it wasn't acknowledged then as well, that I even forgot that I already reported this before:

https://forum.mratwork.com/kloxo-mr-bugs-and-requests/client-can-add-domain-with-resource-plan-setting-'can-add-domain'-disabled/msg37860/#msg37860

2
Kloxo-MR Bugs and Requests / Re: Resource Plan Limit Problem
« on: 2017-06-29, 06:20:03 »
I get your suggestion, but a newly created client record using resource plan with '0' Domains limit will be unable to create at least 1 domain.

In my understanding the resource plan dictates the limitations of the clients, both in the 'numbers'/'specs' configurable in their account (ex. # of domains, # of mails, etc) AND the access control/what is allowed in the panel (ex. can add domains, can change limit, etc.).

My problem is that the access control is not being applied to the client (i.e. "Can Add Domains" is not being followed). I have a "frontend" that communicates my kloxo servers where the domain management is being done, so I depend on the access control of kloxo to work as intended. In my specific case, I expect the panel to disallow clients to add domains given their plan settings when they login to the kloxo panel.


3
Kloxo-MR Bugs and Requests / Resource Plan Limit Problem
« on: 2017-06-29, 05:34:06 »
 "Can Add Domains' in resource plan is unchecked/disabled since I am disallowing clients to create additional domains, but this is not what is happening (the "Add Form' view is always available and thus the client can still create domains in the panel).

I think is is bug in the way the Add Form view is displayed.

Code: [Select]
A. Control Panel:               
   - Kloxo-MR: 7.0.0.c-2017062301
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s - 5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: kloxomr-master1.emc.com.ph
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-2.ius.centos6.x86_64
        - Multiple:
          * php56m - 5.6.30-2.ius.centos6
          * php70m - 7.0.19-1.ius.centos6
      - Used: php56m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.1-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: --uninstalled--
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:         15901        964      14937          1          0        222
-/+ buffers/cache:        741      15160
Swap:            0          0          0
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      845G  597G  249G  71% /


*** Process Time: 00:00:00:16.16700 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

4
Kloxo-MR Bugs and Requests / default_index.php
« on: 2017-06-28, 12:52:54 »
I get this error in web error logs (in my case /var/log/httpd/error_logs):
Code: [Select]
FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: PHP message: PHP Notice:  Undefined variable: bckgrnd in /home/kloxo/httpd/default/index.php on line 98
Code: [Select]
87                         $bckgrnd = "\tbackground-image: url({$selimg});\n".
     88                                 "\tbackground-size: cover;\n".
     89                                 "\tbackground-attachment: fixed;";
     90                 }
     91 ?>
     92         <title><?= $title; ?></title>
     93 <style>
     94 body {
     95         font-family: Tahoma, Verdana, Arial, Helvertica, sans-serif;
     96         font-size: 8pt;
     97         font-weight: 100;
     98 <?= $bckgrnd; ?>
     99
    100         background-color:#cccccc;

Might be related to the recent change in allowing for background image in panel.

Code: [Select]
# sh /script/sysinfo
A. Control Panel:               
   - Kloxo-MR: 7.0.0.c-2017062301
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s - 5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: kloxomr-master2.emc.com.ph
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-2.ius.el6.x86_64
        - Multiple:
          * php56m - 5.6.30-2.ius.el6
      - Used: php56m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.2-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: --uninstalled--
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:         15901       1446      14455          1          0       1219
-/+ buffers/cache:        226      15674
Swap:            0          0          0
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      845G  600G  246G  71% /


*** Process Time: 00:00:00:12.12943 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)


5
Use this snapshot from web archive:

https://web.archive.org/web/20150424023149/http://wiki.lxcenter.org/index.php/API#Kloxo.2FHyperVM_API

I used it to learn about Kloxo API, although the info is limited.

6
Kloxo-MR Tips and Tricks / Re: PHP Used and PHP Branch
« on: 2017-06-08, 13:16:39 »
What about 'Secondary PHP'? When is this used?

7
Kloxo-MR Bugs and Requests / Re: Scavenge not completing
« on: 2017-06-02, 12:47:16 »
Scavenge ends without completing the next set of functions in scavenge.php. The process just dies.
Code: [Select]
        log_shell("Scavenge: Collect LxGuard info");
        lxguard::collect_lxguard();
        log_shell("Scavenge: Fix MySQL root password");
        fix_all_mysql_root_password();
        log_shell("Scavenge: Auto update Kloxo");
        auto_update();

        $endtime = date('Y/m/d H:i:s', time());

        $subj = "Scavenge has completed";

        $msg  = "Scavenge started: {$starttime}\n";
        $msg .= "Scavenge completed: {$endtime}";

        if (file_exists("/usr/local/lxlabs/kloxo/etc/flag/enablescavengesendmail.flg")) {
        //      lx_mail(null, $login->contactemail, $subj, $msg);
                callInBackground("lx_mail", array(null, $login->contactemail, $subj, $msg));
        }

So from the code above, the scavenger process stops at "lxguard::collect_lxguard()".  Logs confirm that the next actions ("Fix MySQL root password", "Scavenge: Auto update Kloxo", etc.) do not run. Even the email notification (for Scavenge complete) is not sent because the process does not reach the end of the script.

8
Kloxo-MR Bugs and Requests / Scavenge not completing
« on: 2017-06-02, 10:52:25 »
Scavenge is not completing; the process only completes if I skip on the collect_lxguard function:

Code: [Select]
        log_shell("Scavenge: Collect LxGuard info");
        //lxguard::collect_lxguard();
        log_shell("Scavenge: Fix MySQL root password");
        fix_all_mysql_root_password();
        log_shell("Scavenge: Auto update Kloxo");
        auto_update();
Code: [Select]
[root@kloxomr7-build-apache log]# sh /script/sysinfo       
A. Control Panel:               
   - Kloxo-MR: 7.0.0.c-2017051802
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: kloxomr7-build-apache.emc.ph
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-2.ius.centos6.x86_64
        - Multiple:
          * php56m-5.6.30-2.ius.centos6
          * php70m-7.0.18-1.w6
      - Used: php56m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.0-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: --uninstalled--
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:         31866       1470      30396          1          0        258
-/+ buffers/cache:       1212      30654
Swap:            0          0          0
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      1.1T  223G  864G  21% /


*** Process Time: 00:00:00:16.16787 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)


9
Kloxo-MR Technical Helps / MariaDB engine change to InnoDB
« on: 2017-05-30, 05:04:56 »
Can I change the engine to innodb for only a client/database or does converting mean all databases will use innodb?

10
Kloxo-MR Technical Helps / PHP FPM slow.log
« on: 2017-05-22, 05:28:53 »
Which files do I need to edit to disable slowlog and also to make it permanent/make it default config for all?

;request_slowlog_timeout = 30s
;slowlog = /var/log/php-fpm/slow.log

11
Kloxo-MR Bugs and Requests / Re: setup-roundcube script
« on: 2017-05-17, 10:23:23 »
To add, this is original code from setup-roundcube.php:

Code: [Select]
        if (file_exists("{$path}/config/roundcube_config.inc.php")) {
                lxfile_cp("{$path}/config/roundcube_config.inc.php", "{$path}/config/config.inc.php");
                $cfgfile = "{$path}/config/config.inc.php";
                $content = lfile_get_contents($cfgfile);
                $content = str_replace("mysql://roundcube:roundcube", "mysql://roundcube:" . $pass, $content);
                $content = str_replace("mysql://roundcube:pass", "mysql://roundcube:" . $pass, $content);
                $content = str_replace("mysql://roundcube:@", "mysql://roundcube:" . $pass . "@", $content);
                lfile_put_contents($cfgfile, $content);
        }


        $result = $link->query("GRANT ALL ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY '{$pass}'");
        $link->query("flush privileges");

As shown, both config files and SQL grant query consistently have the user as 'roundcube'.

12
Kloxo-MR Bugs and Requests / setup-roundcube script
« on: 2017-05-17, 10:16:41 »
I found a problem with /script/setup-roundcube:
Code: [Select]
...
for x in defaults.inc.php db.inc.php config.inc.php ; do
        if [ -f ${path}/config/${x} ] ; then
                'cp' -f ${path}/config/roundcube_${x} ${path}/config/${x}
                sed -i "s!mysql://roundcube:roundcube!mysql://roundcube:${pass}!g" ${path}/config/${x}
                sed -i "s!mysql://roundcube:pass!mysql://roundcube:${pass}!g" ${path}/config/${x}
                sed -i "s!mysql://roundcube:@!mysql://roundcube:${pass}!g" ${path}/config/${x}
        fi
done

chown -R apache:apache ${path}

Q1="USE roundcubemail;"
Q2="GRANT ALL ON roundcubemail.* TO roundcubemail@localhost IDENTIFIED BY '${pass}';"
Q3="FLUSH PRIVILEGES;"
SQL="${Q1}${Q2}${Q3}"
...

As seen in the code above, the config files are set to use 'roundcube' but the SQL statements to grant access has the user 'roundcubemail' instead.

13
Is the postmaster account counted as part of the total number of mail accounts (as allowed by the resource plan)?

I have a case now that the total is showing 21 accounts (20 'normal' mail accounts + 1 postmaster account). The resource plan I set for this client only allows for 20 accounts. This is now showing a warning on the client's page (see attachment) and can be rather confusing...

14
Kloxo-MR Bugs and Requests / Re: Use Apache 2.4
« on: 2017-04-27, 05:41:28 »
I would like to add some new, related info -  everytime I visit the page Servers -> localhost -> Switch program, I noticed that this file always get re-created in the server:

/usr/local/lxlabs/kloxo/etc/flag/use_apache24.flg

even if I know I don't have httpd24 installed. I have some machines that still use httpd, and I notice Kloxo replaces httpd with httpd24 when I run certain 'fix' scripts from /script. I'm thinking this flag file is causing the switch to httpd24.

This happens on httpd servers and nginx servers. Running the 'cleanup' script does not fix this problem.

15
Kloxo-MR Bugs and Requests / Use Apache 2.4
« on: 2017-04-07, 09:39:34 »
Checkbox is always ON even after attempting to check it off. Bug?
Code: [Select]
[root@kloxomr7-build-nginx flag]# sh /script/sysinfo
A. Control Panel:               
   - Kloxo-MR: 7.0.0.c-2017040602
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php54s-5.4.45-2.w6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: kloxomr7-build-nginx.emc.ph
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-2.ius.el6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: nginx
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.13-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.14-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: --uninstalled--
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:         31866        699      31167         46          0        549
-/+ buffers/cache:        150      31716
Swap:            0          0          0
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      1.1T  223G  865G  21% /


*** Process Time: 00:00:00:14.14329 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Pages: [1] 2 3

Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.047 seconds with 17 queries.

web stats analysis