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-04-27, 14:51: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.


Messages - postcd

Pages: 1 [2]
16
Hello,

in KloxoMR 7.0.0.c-2017031002 (on CentOS 6.8 32bit) i submitted form to Add Let's Encrypt certificate to my domain (KloxoMR / Domains / my domain / SSL ceritifcates / Add lets encrypt)

It returned Error 400

Also i was unable to access Kloxo at all.. So i logged in SSH and found file /var/log/acme.sh/acme.sh.log

it do not show any error inside it, here is its content: https://pastebin.com/Rv8AqhiP

So i restarted all services by command: sh /script/restart-all

And then Kloxo started working and domain got working SSL certificate.  :D

That is nice, excpet i would like to ask for help on how to prevent Error 400 so i do not need to login SSH and do restart of services?

If you want me to execute some commands to shed more light on this, please kindly let me know. Thx

17
Try remove IP from 'Ip Addresses' before templating.

I logged-in KloxoMR and removed the IP in Resource/IP addresses, then Kloxo became unavailable and after VPS reboot, works again and has no IP in Resource/IP addresses. If i do not add any IP in there can it cause any future problems?

Zero thing to do before templating: in KloxoMR/Home/SQL Manager/kloxo/actionlogs + utmp/btmp, delete entries.

First thing to do before templating: yum clean all;yum update -y;yum reinstall kloxomr7 -y;sh /script/cleanup

Second thing maybe try to switch webserver type to nginx and back to apache (in Server/Switch Program) as there was this issue. And then making sure in Server/Services, httpd is running and set to auto-run, nginx is stopped, not set to auto run.

Third thing would be removing login error "*** Token not match. No permit for remote login. Go back to login page ***" which appears if there is redundant session from old VPS. Do it by closing KloxoMR browser window, then doing command:
rm -f /usr/local/lxlabs/kloxo/session/sess_*

Fourth thing would be to reset password back to "admin" using command: sh /script/resetpassword master admin

Fifth thing: possibly deleting history:
rm -f messages-* cron-* maillog-* secure-* /var/log/http*/*log;>/var/log/messages;>/var/log/maillog;>/var/log/cron;>/var/log/secure;history -c;echo >~/.bash_history;echo >/var/log/wtmp; echo > /var/log/btmp;>/var/log/lastlog;

sixth thing: creating template

18
thx, i know there is option in KloxoMR to re-read IP, but it is not convenient to ask client to do this and also client can be confused when first login fails with blank page and message that the session token is invalid.

Maybe i can run some one time cronjob which will re-read ip and remove that session file. But can You please advice which linux commands to execute?

19
Hello,

please is there anyone who tried to create OpenVZ OStemplate in which KloxoMR is installed?

I am using OpenVZ template of the old lxlabs Kloxo and listen no complaints so far. But not sure about KloxoMR.

I tried creating OpenVZ template with KloxoMR and it seems to be working, except 2 things i found so far:
- after first login it prints message that session token is invalid and i have to try again
- in KloxoMR i found old IP at Kloxo/Resource/IP addresses (http://IPHERE:7778/display.php?frm_action=list&frm_o_cname=ipaddress)

Are there any other issues? What are the steps to make KloxoMR portable for virtualization templates so me or client does not need to always manually change IP, etc.?

So far i thought OpenVZ has some initialization scripts that can be run upon VPS creation, but i am yet unsure how to do it, it would probably involve running MySQL query to update IP in KloxMRo database. Any chance making KloxoMR portable please?

Thanks alot

20
Kloxo-MR Technical Helps / Re: KloxoMR 7 RAM requirements
« on: 2017-03-16, 13:21:28 »
Quote
here are something wrong in your server.

Thank you, after OVZ VPS (CentOS 6 64bit) reboot, VPS shown 624MB RAM used

OpenVZ host server (CentOS 6.x) has this setting for the VPS:

Code: [Select]
PHYSPAGES="0:unlimited"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"

when i set that VPS to use VSwap (vzctl set CTID --ram 768M --save), then VPS has this setting:

Code: [Select]
PHYSPAGES="0:196608"
SWAPPAGES="0:65536"
PRIVVMPAGES="262144"
LOCKEDPAGES="5000"
VMGUARPAGES="196608:unlimited"
OOMGUARPAGES="196608:unlimited"
SHMPAGES="196608"

when i run free -mt again on the VPS, RAM figures are way different:

Code: [Select]
# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        286        481          3          0        155
-/+ buffers/cache:        130        637
Swap:          256          0        256
Total:        1024        286        737

in case of interest, beancounters are like this:

Code: [Select]
# vzubc 3500
----------------------------------------------------------------
CT 3500      | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
     kmemsize|20.4M   1%   1%|63.7M   3%   3%|   2G|   2G|    -
  lockedpages|   -    -    - |2.12M  10%  10%|19.5M|19.5M|    -
  privvmpages| 778M  76%  76%| 968M  94%  94%|   1G|   1G| 6.59K
     shmpages|1.71M 0.2% 0.2%|8.26M   1%   1%| 768M| 768M|    -
      numproc| 176    3%   3%| 297    5%   5%|4.88K|4.88K|    -
    physpages| 283M   -    - |1.68G   -    - |   - |   - |    -
  vmguarpages|   -    -    - |   -    -    - | 768M|   - |    -
 oomguarpages| 107M  14%   - | 186M  24%   - | 768M|   - |    -
   numtcpsock|  26  0.1% 0.1%|  53  0.1% 0.1%|39.1K|39.1K|    -
     numflock|  25  0.5% 0.5%|  60    1%   1%|4.88K|4.88K|    -
       numpty|   -    -    - |   2  0.1% 0.1%|2.44K|2.44K|    -
   numsiginfo|   1    -    - | 117    2%   2%|4.88K|4.88K|    -
    tcpsndbuf| 442K 0.3% 0.1%| 902K 0.6% 0.3%| 153M| 309M|    -
    tcprcvbuf| 416K 0.3% 0.1%|9.73M   6%   3%| 153M| 309M|    -
 othersockbuf|42.9K   -    - |83.2K 0.1%   - | 153M| 309M|    -
  dgramrcvbuf|   -    -    - |8.52K   -    - | 153M| 309M|    -
 numothersock|  44  0.1% 0.1%|  59  0.1% 0.1%|39.1K|39.1K|    -
   dcachesize|6.03M  13%  13%|43.9M 100% 100%|43.9M|43.9M|    -
      numfile|1.28K   1%   1%|2.05K   2%   2%| 117K| 117K|    -
    numiptent|  27  0.5% 0.5%|  27  0.5% 0.5%|4.88K|4.88K|    -
    swappages|   -    -    - |71.6M   -   28%|   - | 256M|    -
----------------------------------------------------------------

i am not sure why without vswap (without physpages being set) RAM usage seems soo high. But now it seems that indeed KloxoMR 7 can live with 256MB RAM and some SWAP in case RAM is low.

Another OpenVZ obstacle was that when i create OSTemplate out of running VPS and restored it on new VPS with other IP, i found that /proc/user_beancounters shown memory failure, VPS told: "Unable to fork: Cannot allocate memory", Kloxo was not accessible. Solution? I had to comment out PRIVVMPAGES variable in /etc/vz/conf/CTIDHERE.conf (just placing # before PRIVVMPAGES) & then reboot VPS. Kloxo started working, except it shows old IP in Kloxo/Resource/IP addresses (http://IPHERE:7778/display.php?frm_action=list&frm_o_cname=ipaddress)

21
Hello,

i faced some "minor error" during install KloxoMR 7

CentOS release 6.8 (Final)
Linux vps.centos6.tld 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 i686 i686 i386 GNU/Linux

Quote
Installed:
  kloxomr7.noarch 0:7.0.0.c-2017031002.mr

This is 512MB RAM VPS and there was memory related error after installation:
Quote
Stopping kloxo-phpcgi: /etc/rc.d/init.d/functions: fork: Cannot allocate memory
                                                           [  OK  ]
Starting kloxo-phpcgi ('php56s' in 'fpm' mode): /opt/php56s/usr/sbin/php-fpm: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Cannot allocate memory
                                                           [FAILED]

but this one got fixed by adding more ram (768MB). THis was issue with my server, Kloxo need much less memory.

Other "errors" that appeared during install:

Quote
cp: cannot stat `/opt/configs/php-fpm/conf/php/php-fpm.d/default.conf': No such file or directory
- Enable for all php-fpm (branch and multiple phps)
-- Enable for php56s-fpm
=== END 'php56s' install ===

Quote
Packages skipped because of dependency problems:
    httpd-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    httpd-tools-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    php56u-5.6.30-1.ius.centos6.i686 from mratwork-ius-stable

Quote
Stopping php-fpm (PHP Used):                               [FAILED]
Starting php-fpm (PHP Used): [16-Mar-2017 05:42:42] ERROR: No pool defined. at least one pool section must be specified in config file
[16-Mar-2017 05:42:42] ERROR: failed to post process the configuration
[16-Mar-2017 05:42:42] ERROR: FPM initialization failed
                                                           [FAILED]

dir -l /opt/configs/php-fpm/conf/php
Quote
total 4
-rw-r--r-- 1 root root    0 Mar 12 14:06 php-fpm.conf
drwxr-xr-x 2 root root 4096 Mar 12 14:01 php-fpm.d

files in that directory was all empty.

sh /script/fixphp
Quote
Fixing php.ini/php-fpm.conf/php.fcgi/.htaccess
- '/etc/php.ini' at 'localhost'
- Fix 'extension_dir' path in php.ini at 'localhost'
- '/etc/php-fpm.d/default.conf' at 'localhost'
- '/home/kloxo/client/php.fcgi' at 'localhost'

sh /script/restart-php-fpm -y
Quote
Stopping php-fpm (PHP Used):                               [  OK  ]
Starting php-fpm (PHP Used):                               [  OK  ]

Why the php-fpm not worked right away and can this be prevent in future or it is rare case?

22
When i executed Yours mentioned commands before installation, the installation of 7.0.0.c-2017031002.mr apparently succeeded regarding mysql

Quote
*** Process for MYSQL/MARIADB service ***
  - Process: restart
Shutting down MySQL.... SUCCESS!
Starting MySQL170316 05:42:22 mysqld_safe Logging to '/var/lib/mysql/vps.centos6.tld.err'.
.170316 05:42:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
... SUCCESS!

Might be good to add your commands right to the installation script

23
Kloxo-MR Technical Helps / KloxoMR 7 RAM requirements
« on: 2017-03-12, 22:58:38 »
I have not found RAM requirements on Github README page so i want to share what I discovered. In my case (OpenVZ VPS, clean install, idle CentOS 6.x 32bit server), used RAM is 760MB RAM (without php-fpm). Before Kloxo install, 40 MB RAM was used

Is this normal or it is some issue with OpenVZ host server?

On following commands can be seen that httpd and mysql is using roughly 300MB RAM each if i am correct:
Quote
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        470        297          0          0        470
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        470        553
[root@vps /]# service httpd start
Starting httpd:                                            [  OK  ]
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        749         18          1          0        749
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        749        274
[root@vps /]# service mysql stop
Shutting down MySQL. SUCCESS!
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        412        355          1          0        412
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        412        611
[root@vps /]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@vps /]# free -mt
             total       used       free     shared    buffers     cached
Mem:           768        133        634          0          0        133
-/+ buffers/cache:          0        768
Swap:          256          0        256
Total:        1024        133        890
[root@vps /]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017031002
   - Web: hiawatha-10.5.0-f.2.mr.el6.i686
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: vps.centos6.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.centos6.i686
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.11.10-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.centos6.i686
       - PHP Type: php-fpm_event (default)
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: bogofilter-1.2.4-1.el6.i686
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:           768        749         18          1          0        749
-/+ buffers/cache:          0        768
Swap:          256          0        256
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      7.9G  1.8G  6.1G  23% /

Legaxy lxcenter Kloxo was running on 256MB RAM VPS, now i need 1024MB RAM? I understand that KloxoMR can probably carry higher load of visitors with less RAM and higher initial RAM usage is the "trade-off"?

24
But, I hope Kloxo-MR 6.5 running well after that.
Yes, no problem inside Kloxo-MR 6.5, seems to work good. Thank you

25
Hello,

on CentOS release 6.8 (Final) 32bit i installed kloxomr7-7.0.0.c-2017030803.mr.noarch according to installation instructions including yum update. I noticed some issues during the process:

https://s8.postimg.org/683ms3v8l/kloxomr7_errors_install_cent6.gif

When i ran "sh /script/cleanup" this appeared:

Quote
- Create database interface template (Forced)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")

Quote
ERROR! MySQL server PID file could not be found!
Starting MySQL.170311 18:35:43 mysqld_safe Logging to '/var/lib/mysql/vps.centos6.tld.err'.
170311 18:35:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 ERROR!
-------------------------------------------------------------------

Stopping php-fpm (PHP Used):                               [FAILED]
Starting php-fpm (PHP Used): [11-Mar-2017 18:35:44] ERROR: failed to open configuration file '/opt/configs/php-fpm/conf/php/php-fpm.conf': No such file or directory (2)
[11-Mar-2017 18:35:44] ERROR: failed to load configuration file '/opt/configs/php-fpm/conf/php/php-fpm.conf'
[11-Mar-2017 18:35:44] ERROR: FPM initialization failed
                                                           [FAILED]
-------------------------------------------------------------------

Then i also ran "sh /script/upcp -y" but it not helped (same mysql error).

I think i ran yum erase mysql* before install. Also i seen this error (probably during "sh /script/upcp -y"):

Quote
--> Processing Conflict: mysql55-libs-5.5.54-1.ius.centos6.i686 conflicts mysql-libs < 5.5
--> Finished Dependency Resolution
Error: mysql55-libs conflicts with MariaDB-compat-10.0.30-1.el6.i686
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yum list mysql* result here

tried update /etc/yum.conf to contain:
exclude=mysql5* MariaDB*
or
exclude=mysql51* mysql56* MariaDB*
and then run:
sh /script/upcp -y
but same mysql error

server details:
Quote
# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017030803
   - Web: hiawatha-10.5.0-f.2.mr.el6.i686
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: vps.centos6.tld
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.centos6.i686
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.11.10-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.centos6.i686
       - PHP Type: php-fpm_event (default)
       - Secondary PHP: off

Can i try to fix it anyhow please? How to install it successfully? Thank You

26
Hello,

on an OpenVZ VPS with CentOS release 6.8 (Final)
i installed kloxomr-6.5.0.f-2016111301.mr.noarch
according to installation instructions (including yum update)

here i am copying lines around the cp errors which happen during install process:
Quote
Preparing Afterlogic database
- Fixing MySQL commands in import files
cp: cannot stat `/home/kloxo/httpd/webmail/afterlogic/data/settings/afterlogic_settings.xml': No such file or directory
cp: cannot stat `/data/settings/afterlogic_settings.xml': No such file or directory
- Generating password
- Add Password to configuration file
- Database installed
Initialize Afterlogic files
- Initialize process
Preparing Squirrelmail Database
- No need database
Initialize Squirrelmail files
- Initialize process
Preparing Telaen Database
- No need database
cp: cannot stat `/home/kloxo/httpd/webmail/telaen/inc/config/telaen_config.php': No such file or directory
cp: cannot stat `/home/kloxo/httpd/webmail/telaen/inc/config/telaen_config.languages.php': No such file or directory
cp: cannot stat `/home/kloxo/httpd/webmail/telaen/inc/config/telaen_config.security.php': No such file or directory
Initialize Telaen files

so i wanted to report, hope it is not significant problem. Thank You

Pages: 1 [2]

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

Page created in 0.092 seconds with 17 queries.

web stats analysis