What is happening to WHM ?????

bert

Well-Known Member
Aug 21, 2001
602
0
316
After removing two accounts, WHM distroyed our httpd.conf file!!!

a configtest shows a whole bunch of errors. Is anyone else experiencing the same?
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
All kinds of stuff, like there are 100 or more NameVirtualHost with no VirtualHosts. :-(
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
nope, did nothing. I recompiled apache yesterday, so I clearly remember running configtest and it being without a single error.

Today, after removing two accounts via WHM, the problems started, upon further review, the file is completely messed up.
 

techark

Well-Known Member
May 22, 2002
280
0
316
This just happend to me on two servers httpd.conf was wiped out on only 20 lines left in the file I had restore from backup.

Something is really wrong here.
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
Glad to know at least I am not the only one. I am glad I know the inside and outs of these boxes, I will not attempt to create or terminate an account via WHM unless I know that this issue has been corrected.
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
The bad thing about this is that on a production server, such as the one we had problems with, restoring from backup does not do any good because the backup runs at 2am and the corruption occurs at 8 pm, in between we have had 8 signups, 2 cancellations and perhaps a whole bunch of users making changes, such as adding subdomains, etc.

I guess the only way to be safe on a situation, such as this one is to run a shell script via the cron that copies httpd.conf into multiple locations, so in case this happens again we can just copy the last non-corrupted file.
 

techark

Well-Known Member
May 22, 2002
280
0
316
Tell me about it

I have spent the last 3 hours putting vhost entries back into httpd.conf. And this happened on one of my reseller boxes so I had bunches of files missing.

I have also removed the Allow Termination from all resellers WHM's until we get a handle on what happened.

I knew somethig was wrong when I did pico httpd.conf and showed 20 lines.;-(
 
Jul 5, 2002
23
0
151
we found that there are lodas of NameVirtualHost repeats in httpd.conf looks like whm just adds a new one everytime a site is added or maybe even 2 or 3
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
lol. two or three? I personally removed about 300 of those things all scattered across the httpd.conf, plus it removed a few entries including VirtualHost entries :p
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
It certainly adds those NameVirtualHost lines when creating sub domains within a domain account. So far they've proved harmless although they're an annoyance.
 

Omar

Well-Known Member
Jul 30, 2002
82
0
156
is there any script to automatically remove these redundant lines?

thanks

- Omar
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
You can write a script that will do this, but why would you want to spend time writing a script that will correct errors made by another script?

I guess it is just easier to fix the original script ;)
 

Brad

Well-Known Member
Aug 16, 2001
231
0
316
Our file is littered too, we always have to go through by hand and edit these bad entries out.

Very time consuming, I agree, the script should be fixed..


[quote:3db2c3b374][i:3db2c3b374]Originally posted by bert[/i:3db2c3b374]

You can write a script that will do this, but why would you want to spend time writing a script that will correct errors made by another script?

I guess it is just easier to fix the original script ;) [/quote:3db2c3b374]
 

AbeFroman

BANNED
Feb 16, 2002
654
1
318
backups

What files should I back up regularly?
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
You should back up the entire server; all the home directories and all the configuration files. If you need a complete list, let me know I think I have one somewhere.
 

silvernetuk

Well-Known Member
Sep 2, 2002
311
0
166
United Kingdom
Hi,

I would like a complete list if that possible.

Also these NameVirtualHost what do I look for in httpd.conf I have been looking at mine httpd.conf and it look ok but it report in the error_log this NameVirtualHost 69.xx.x.120:80 has no VirtualHosts

So what am I looking for ?

Regards,
Garry