MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: BigWeb.EU on 2017-08-03, 13:28:27

Title: 3k domains - not working
Post by: BigWeb.EU on 2017-08-03, 13:28:27
Hi Mustafa ,

I have an old server running on old kloxo/centos 5  with ~3K domains (simple pages wihtout DB/ DNS/ mail ).

As centos5 is not supported anymore - yum isnt working, so i cant live update, and tried doing backup and then restore, however near 1.5K domains - restore breaks.

Apache wont load saying :
"(24)Too many open files: httpd: could not open error log file ", and basically all further actions  are failing .

Is there any way of make those import ? (I was thinking about cloning info from DB to DB manually and running cleanup) , also as i only need webs for them (no DNS/ no mails) maybe i can only clone domains/webs tables ?

Would clenaup create folders for me if i go with this strategy ?

Also maybe you have any other suggestions ?
Thanks
Title: Re: 3k domains - not working
Post by: MRatWork on 2017-08-03, 13:32:38
Try delete all log inside /var/log/httpd.
Title: Re: 3k domains - not working
Post by: BigWeb.EU on 2017-08-03, 14:19:09
Hi,
theres nothing in there - 2 files only.
I thnk the porblem is that inside /home/httpd each domain has log files , stat files etc . Is it possible maybe to disable logs, stats for all of domains serverwide ?

PS - i tired switching to nginx , same :

nginx: [emerg] open() "/home/httpd/drac*******/stats/drac*****-error_log" failed (24: Too many open files)

maybe this is the problem with soft limits :
ulimit -Sn
shows 1024
Title: Re: 3k domains - not working
Post by: MRatWork on 2017-08-03, 14:35:44
SO, try delete all stats log files inside /home/httpd
Title: Re: 3k domains - not working
Post by: BigWeb.EU on 2017-08-03, 14:43:36
Mustafa ,
problem is with limits .

this link solved my problem :

https://support.plesk.com/hc/en-us/articles/213407989-Apache-failed-to-start-24-Too-many-open-files-Init-Can-t-open-server-certificate-file

Basically changing
 /usr/sbin/apachectl
and
/etc/sysconfig/httpd

to add ulimit higher values .

.

What about syncing DB - old kloxo -> new kloxo , is is good idea to move domains like this , as bakcup/restore still fails (the more domains coming in the longer it takes and faster it breaks)
Title: Re: 3k domains - not working
Post by: MRatWork on 2017-08-03, 14:47:54
You can backup (via 'sh /script/backup') one-by-one based on client or domain.