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, 10:37:59

Author Topic: 3k domains - not working  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
3k domains - not working
« 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 3k domains - not working
« Reply #1 on: 2017-08-03, 13:32:38 »
Try delete all log inside /var/log/httpd.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: 3k domains - not working
« Reply #2 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
« Last Edit: 2017-08-03, 14:26:35 by BigWeb.EU »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 3k domains - not working
« Reply #3 on: 2017-08-03, 14:35:44 »
SO, try delete all stats log files inside /home/httpd
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Re: 3k domains - not working
« Reply #4 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)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 3k domains - not working
« Reply #5 on: 2017-08-03, 14:47:54 »
You can backup (via 'sh /script/backup') one-by-one based on client or domain.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.057 seconds with 22 queries.

web stats analysis