MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: NetMajom on 2015-01-04, 13:12:07

Title: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-04, 13:12:07
My drupal pages not working correctly. When high load there are often

Code: [Select]
Inactivity Timeout

Description: Too much time has passed without sending any data for document.


What is that? There are several function not working...

And in the kloxo admin the header section i see errors

Code: [Select]
Notice: Undefined variable: ret in /usr/local/lxlabs/kloxo/httpdocs/lib/sgbl.php on line 100

Warning: exec() has been disabled for security reasons in /usr/local/lxlabs/kloxo/httpdocs/lib/sgbl.php on line 100

Notice: Undefined variable: out in /usr/local/lxlabs/kloxo/httpdocs/lib/sgbl.php on line 101

Please Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-04, 19:32:06
Did you run 'sh /script/cleanup' after update Kloxo-MR?.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-04, 19:34:29
yes, i have ran it 3 or 4 times after that, but still wrong

What can i do?
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-04, 21:34:53
By default, php for panel (it's different for php for website) is enable exec function.

Inform here 'sh /script/sysinfo'.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-05, 04:28:47
Here it is

Code: [Select]
[root@b209 ~]# sh /script/sysinfo

A. Kloxo-MR:

B. OS:

C. Apps:
   1. MySQL: --uninstalled--
   2. PHP: --uninstalled--
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --uninstalled--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: --uninstalled--
   9. Qmail: --uninstalled--

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

E. Memory:


this is strange, because many of the services is uninstalled, but in the kloxo inform me that is working... What is that? Plese Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-05, 04:32:43
Run 'sh /script/upcp -y' from ssh. Remember, no repo inside /etc/yum.repos.d except CentOS and mratwork (also vz if using OpenVZ) repo.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-05, 04:58:12
I made the  'sh /script/upcp -y'  and after that the cleanup, but its worse, because all my sites and the mails not working, are down. The error is:

Code: [Select]
Could Not Connect

Description: Could not connect to the server "www.example.com".

my sysinfo:

Code: [Select]
[root@b209 ~]# sh /script/sysinfo

A. Kloxo-MR: 7.0.0.b-2015010401

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-2.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.10.0-f.1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: trafficserver-4.0.1-1.mr.el6.x86_64
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.45.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         31989       3173      28815          0        467       1777
   -/+ buffers/cache:        927      31061
   Swap:         3999         41       3958
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-05, 05:22:35
Go to 'switch programs' and then click 'update'. After that, change web dan dns (webcache still none; spam still bogofilter) to nginx-proxy/hiawatha proxy and nsd.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-05, 05:31:33
Hello

Its very strange happenned. my websites downloading -- > what is that? Downloading a file????

Can i switch back, or what is the best webcache web and dns what i can use? When will work?

what is the problem? Why not working?
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-05, 05:55:38
Update in the same version (like from 7.0.0 to 7.0.0) just need running 'sh /script/cleanup'. But update lower version (from 6.5.0 to 7.0.0 or from Kloxo Official 6.1.x) need running 'sh /script/upcp -y'.

In your issue, check web and dns type from 'sh /script/sysinfo' and then select the same type (for web and dns) in 'switch programs'. After this step, you can select web and dns to another type like you want. This steps are solution for your problems.

After that, change php-type in 'webserver configure' (better choose 'php-fpm_event').
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-05, 06:31:59
I found the problem, but i dont know how can i resolve it... The PHP is wrong

i use:
Code: [Select]
php53m
php branch: php53u_(as 5.3.29)
Multiple PHP Already Installed:   php53m php54m
php type: php-fpm_event
Enabled PHP 5.2 (use Php52s) As Secondary PHP

the PHP has the error.... How can i repair it?
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-05, 07:21:47
Reinstall phpXYm again and then select php53m again. Or try change to php54m.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-06, 08:32:58
So now, its working everything well, but i have so many php high load, and when i have a high loading, at the end its inactivity timeout. What is the problem? I think there are still some problem with the php.

Please Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-06, 20:16:45
Try increasing 'fastcgi children' (2-3 times where unlimited mean 6 children) in 'php advanced' in client level. This feature not exist in admin.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-06, 20:52:00
I dont have client login, just admin. Where can i find the file in root tree? I want to modify it manually....
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-06, 21:05:50
Go to 'Admin > client > (one of client/reselller) > limit'.

This feature only exist in Kloxo-MR 7.0.0 and only admin can do it.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-06, 21:09:17
You misunderstanding me. I have only admin login. I dont have any client or reseller login, just the admin. I have many sites under the admin. So, i want to modify the file where the fastcgi children is. So, where can i find it in the root of my server? I rewrite it manually, not in the kloxo panel, because i dont need any client of my server.

Please Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-06, 21:35:47
Create a client and then 'change owner' of website and database.

In Kloxo-MR 7.0.0, better not use admin for website and database.
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-07, 07:24:09
Hello

I have created a client, and i change owner one of my sites. I test it, and the problem is the same (inactivity timeout), the limit in the test client is unlimited everything. So i dont know, whats the problem.

Please Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-07, 07:28:19
For 'fastcgi children', 'unlimited' mean '6' value. So, try increasing to 12-18 or higher (depend on your ram and how much your clients).
Title: Re: Inactivity Timeout after Update
Post by: NetMajom on 2015-01-07, 07:35:13
I setted up, but a simple php query is loading - loading and after that nothing. ERR_CONNECTION_REFUSED What is the problem with my PHP? I have got a very strong dedicated server, so i dont know what is the problem with the php. Last Week its worked well. Please Help
Title: Re: Inactivity Timeout after Update
Post by: MRatWork on 2015-01-07, 08:47:08
1. If you using nginx-/hiawatha-proxy, increasing apache thread with select 'low' for 'apache optimize' in 'webserver configure'.

2. Increasing 'number of fastcgi children' in 'limit' for every client. Simple calculate, per-1GB RAM possible total of 'fastcgi children' = 10-15 children. Remember, total mean total of all children (if you have 10 client where every client allocated 10 children that mean total of children = 10 clients x 10 children/client = 100 children)

3. Enable/install cache plugins/module in php (example: apc or xcache), apache (mod-pagespeed) and application (hypercache in wordpress)