Whats modifying our httpd.conf all the time

O

ozzi4648

Guest
Our httpd.conf is so srewed up after its first initial installation a few days ago that i dont even know how im going to fix it.

Im getting sooooooo tired of having to fix our httpd.conf on a daily basis. This is just not right!

Check out all these duplicate entries. Our error_logs show errors galore, our imap is down for good and who knows why and in general the entire system is just plopping alone is an inconsistant state. Not only that, why one earth would Cpanel include the installation of Portsernty? Portsenty is a joke. It opens a whole MASS of ports for people to scan and probe and is generally a system resource hog and a total waste. I would much rather use a depent ipchains/iptables firewall.

HOWTO get rid of portsentry

/etc/init.d/portsentry stop

then do a chkconfig --level 2345 portsentry off

It will never load on bootup again! DONE! Piece of Junk!

&& We run 22 Ensim servers and would never install it on any of our servers. Amen!


##
## SSL Virtual Host Context
##


&/IfDefine&


#NameVirtualHost 207.xx.xxx.111:80
#Alias /bandwidth/ /usr/local/bandmin/htdocs/

#&VirtualHost 207.xx.xxx.111&
#BytesLog domlogs/my.domain-bytes_log
#ServerName my.domain
#DocumentRoot /usr/local/apache/htdocs
#&/VirtualHost&

#Added by cpanel 5.0.0-RELEASE_123 install

#Added by cpanel 5.0.0-RELEASE_123 install

&Location /whm-server-status&
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
&/Location&
ExtendedStatus On

#Added by cpanel 5.0.0-RELEASE_137 install
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml

ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/

Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/

ScriptAliasMatch /cpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi

ScriptAlias /securecontrolpanel /usr/local/cpanel/base/sredirect.cgi

Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/

#Added by cpanel 5.0.0-RELEASE_137 install

NameVirtualHost 207.44.136.111:80
Alias /bandwidth/ /usr/local/bandmin/htdocs/

&VirtualHost 207.xx.xxx.111&
BytesLog domlogs/my.domains-bytes_log
ServerName srv08.primenet.cc
DocumentRoot /usr/local/apache/htdocs
&/VirtualHost&


#&VirtualHost 207.xx.xxx.111&
#BytesLog domlogs/my.domain-bytes_log
#ServerName srv08.primenet.cc
#DocumentRoot /usr/local/apache/htdocs
#&/VirtualHost&

&VirtualHost 207.xx.xxx.111&
ServerAlias www.thats.cc thats.cc
ServerAdmin [email protected]
DocumentRoot /home/demo/public_html
BytesLog domlogs/thats.cc-bytes_log
User demo
Group demo
ServerName www.thats.cc
CustomLog domlogs/thats.cc combined
ScriptAlias /cgi-bin/ /home/demo/public_html/cgi-bin/
&/VirtualHost&


NameVirtualHost 207.xx.xxx.111:80
Alias /bandwidth/ /usr/local/bandmin/htdocs/

&VirtualHost 207.xx.xxx.111&
ServerName my.domain
DocumentRoot /usr/local/apache/htdocs
&/VirtualHost&


&VirtualHost 207.xx.xxx.111&
ServerName my.domain
DocumentRoot /usr/local/apache/htdocs
&/VirtualHost&

&VirtualHost 207.xx.xxx.240&
ServerName 207.xx.xxx.240
ServerAdmin [email protected]
DocumentRoot /dev/null
ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
&/VirtualHost&

Some of the comments have been added by me in a desperate attempt at removing duplicate entries but they just keep coming back. What is causing this and why are there so many duplicate entries all over the place?

DO Cpanel technical personel ever read and reply to clients problems or is this another one of those, we dont support questions in the forums? So far, have seen very few replies to peoples posts by anyone from Cpanel regarding issues that need to be addressed. And by the way Cpanels way of modifying httpd.conf like these evertime is an aweful SLOPPY way of doing it.
 

smit1

Member
Feb 21, 2003
18
0
151
we had this on 2 boxes for some time but not every day, more like every month-ish and that was bad enough, so i know how you feel. we never got to the bottom of it and at the moment we're about 2 months without it happening so cant say whether it's really fixed or not. we put in a ticket with cpanel and to be fair they helped a lot but we never did find what the problem was or what was causing it.

good luck and i'd love to know more on this too :)

smit