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, 18:16:12

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 - insanity

Pages: [1] 2 3 ... 11
1
I'm agree with @chrisf.

Several times in the past I offered a dedicated server or couple VPSes depends on Mustafa needs ( for free ), but every time he reject my offer.

2
Spacedust,
Change in /usr/local/lxlabs/kloxo/etc/process/httpd from /etc/init.d/httpd restart to /etc/init.d/httpd graceful.
Same for nginx, named, etc.

3
@chrisf,
Actually the solution that Mustafa give you work. I simulate your problem on one server.
When i change the getPhpVersion() with phpversion(); ( there is 3 getPhpVersion that need to be replaced )
Then i change in /usr/local/lxlabs/kloxo/file/phpini/tpl/phpini.tpl from:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
exec("php -r 'echo phpversion();'", $out, $ret);

$phpver = $out[0];
}
to:
Code: [Select]
if ($setphp52ver) {
$phpver = '5.2';
} else {
$phpver = phpversion();
}

then sh /script/fixphp, and fpm starts normal. If you still face problems this may help you in your situation: open /usr/local/lxlabs/kloxo/file/phpini/tpl/phpini.tpl and remove all lines with <?php echo $php53enable; ?> also replace <?php echo $php53disable; ?> with ; and run fixphp

4
Mustafa, that is perfect. Finally we can delete all docroots and db users :)

@chrisf: in usr/local/lxlabs/kloxo/httpdocs/driver/pserver/mysqldb__mysqllib.php

5
Yes it is same and with all folders. We have so much removed domains, but files and folders still exist :)

6
@Spacedust,
I already wrote about this problem. When you remove some database, the user assigned to this db is not removed.
Here is the topic: http://forum.mratwork.com/kloxo-mr-development/mysql-db-remove

7
Kloxo-MR Development / Re: can't install php52
« on: 2014-02-26, 16:21:43 »
Okay i have site that i need to run on 5.2 but not on php-cgi ( secondary kloxo php ). How to do that?
I need to install centos 5 to be able to run 5.2 ?

8
Kloxo-MR Development / Re: can't install php52
« on: 2014-02-26, 15:42:23 »
I try everything.
php52 need libcurl.so.3 eg: 7.15.5-17.el5.
As i see centos6 not support libcurl.3 but only libcurl.4

So if we can't install 5.2 on centos 6 why there is an option for this ?

9
Kloxo-MR Development / can't install php52
« on: 2014-02-26, 15:05:34 »
yum install php52

Error: Package: php52-cli-5.2.17-6.ius.centos5.x86_64 (mratwork-ius-c5)
           Requires: libcurl.so.3()(64bit)
Error: Package: php52-5.2.17-6.ius.centos5.x86_64 (mratwork-ius-c5)
           Requires: libcurl.so.3()(64bit)

I don't want to use secondary php because it is with php-cgi  :-\
How to replace 5.3 with 5.2 ?

10
RucLinux, is there something strange in /var/log/httpd/error_log ?

11
Spacedust if this is a problem for you, the solution is simple. Back kloxo to normal db struct.

Find in: /usr/local/lxlabs/kloxo/httpdocs/driver/pserver/ddatabaselib.php line 63 to 69
Code: [Select]
/*
if (!$parent->isAdmin()) {
$param['nname'] = self::getDbName($parent->nname, $param['nname']);
} else {
$param['nname'] = substr($param['nname'], 0, 15);
}
*/
and change it to:
Code: [Select]
if (!$parent->isAdmin()) {
$param['nname'] = self::getDbName($parent->nname, $param['nname']);
} else {
$param['nname'] = substr($param['nname'], 0, 15);
}

Find line 72:
Code: [Select]
$param['nname'] = random_string_lcase(4) . "_" . $param['nname'];
and change it to:
Code: [Select]
//$param['nname'] = random_string_lcase(4) . "_" . $param['nname'];
then find:
Code: [Select]
// if (!$parent->isAdmin()) {
// $dbprefix = self::fixDbname($parent->nname);
// }

// $vlist['nname'] = array('m', array('pretext' => $dbprefix));
$vlist['nname'] = array('m', array('pretext' => 'prefix_'));
// $vlist['dbtype'] = $class;
and change it to:
Code: [Select]
if (!$parent->isAdmin()) {
$dbprefix = self::fixDbname($parent->nname);
}

$vlist['nname'] = array('m', array('pretext' => $dbprefix));
// $vlist['nname'] = array('m', array('pretext' => 'prefix_'));
// $vlist['dbtype'] = $class;

As i see now kloxo add random generated databases for exampe UHahqd9_dbname ( like cpanel )

12
Actually i'm not using cloudlinux. Only cgroups

Its simple. Install cgroups: yum install libcgroup

Here is my limit for apache:
/etc/cgconfig.conf
Code: [Select]
mount {
cpuset = /cgroup/cpuset;
cpu = /cgroup/cpu;
cpuacct = /cgroup/cpuacct;
}
group apache {
cpu {
cpu.cfs_quota_us="25000";
cpu.cfs_period_us="10000";
}
cpuacct {
cpuacct.usage="0";
}
cpuset {
cpuset.cpus="0,1,2,3,4,5,6,7";
}
}

/etc/cgrules.conf
Code: [Select]
apache cpu,cpuacct,cpuset apache/

Code: [Select]
/etc/init.d/cgconfig start
/etc/init.d/cgred start

This conf limit my apache at 250% and allow to use 8 cpu cores

13
:D If we kill apache and fpm all customers will start call us :D
Thats why we use cgroups for all these process. eg, Apache, nginx, qmail, fpm, mysql
Yes sometimes its slower than usual but it is stable.

14
Use cgroups and create group only for these clients.
We use it for apache, because sometimes apache use more than 600% cpu and everything freeze...

15
Kloxo-MR Development / Re: named not reload
« on: 2014-02-04, 17:55:20 »
As i already wrote it is changed. This is the content of bind file - /etc/init.d/named force-reload but kloxo not execute this file ( only httpd and nginx )

Pages: [1] 2 3 ... 11

Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.031 seconds with 21 queries.

web stats analysis