checked

Well-Known Member
May 3, 2004
54
0
156
A Strange Problem - httpd.conf is automatically modifying

I'm having a Linux Redhat 9.0 with cPanel/WHM (WHM 9.4.0 cPanel 9.4.1-S65). I have few accounts on my server excluded from safe mode restriction by adding few lines under the httpd.conf.

The problem is that after few days my httpd.conf automatically get modified and those safe mode exclusion line automatically get removed from httpd.conf. It happens after within few days whenevr I add those lines under the httpd.conf.

Now I'm getting sick of changing again and again httpd.conf. Please help me and suggest me that what can cause this strange problem.
 
Last edited:

l3ean

Registered
Nov 23, 2004
4
0
151
If it makes you feel any better at least your whm is editing it correctly. Look at one of my dedicated client's httpd.conf file after he adds or changes domains or ip addresses.

<VirtualHost 64.132.144.20>
ServerAlias www.louisvillelunatik.com louisvillelunatik.com
ServerAdmin [email protected]
DocumentRoot /home/koolaid/public_html
BytesLog domlogs/louisvillelunatik.com-bytes_log
ServerName www.louisvillelunatik.com
User koolaid
Group koolaid
CustomLog domlogs/louisvillelunatik.com combined
ScriptAlias /cgi-bin/ /home/koolaid/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 64.132.144.20>
ServerAlias www.undergroundhacks.com undergroundhacks.com
ServerAdmin [email protected]
DocumentRoot /home/merlin/public_html
BytesLog domlogs/undergroundhacks.com-bytes_log
ServerName www.undergroundhacks.com
User merlin
Group merlin
CustomLog domlogs/undergroundhacks.com combined
ScriptAlias /cgi-bin/ /home/merlin/public_html/cgi-bin/
</VirtualHost>





NameVirtualHost 64.132.144.24:80



NameVirtualHost 64.132.144.20:80


<VirtualHost 64.132.144.24>
ServerAlias www.llama-world.com llama-world.com
ServerAdmin [email protected]
DocumentRoot /home/llama1/public_html
BytesLog domlogs/llama-world.com-bytes_log
ServerName www.llama-world.com
User llama1
Group llama1
CustomLog domlogs/llama-world.com combined
ScriptAlias /cgi-bin/ /home/llama1/public_html/cgi-bin/
</VirtualHost>


NameVirtualHost 64.132.144.23:80

<VirtualHost 64.132.144.23>
ServerAlias www.subliminal-shock.com subliminal-shock.com
ServerAdmin [email protected]
DocumentRoot /home/sh0k3/public_html
BytesLog domlogs/subliminal-shock.com-bytes_log
ServerName www.subliminal-shock.com
ServerAlias y4hoo.net www.y4hoo.net
User sh0k3
Group sh0k3
CustomLog domlogs/subliminal-shock.com combined
ScriptAlias /cgi-bin/ /home/sh0k3/public_html/cgi-bin/
</VirtualHost>



<VirtualHost 64.132.144.20>
ServerAdmin [email protected]
DocumentRoot /home/wendyvis/public_html
BytesLog domlogs/dark-assault.com-bytes_log
ServerName www.dark-assault.com
User wendyvis
Group wendyvis
ServerAlias dark-assault.com www.dark-assault.com
CustomLog domlogs/dark-assault.com combined
ScriptAlias /cgi-bin/ /home/wendyvis/public_html/cgi-bin/
</VirtualHost>



NameVirtualHost 64.132.144.22:80







<VirtualHost 64.132.144.20>
ServerAdmin [email protected]
DocumentRoot /home/viz/public_html
BytesLog domlogs/yahoo-assault.org-bytes_log
ServerName www.yahoo-assault.org
User viz
Group viz
ServerAlias yahoo-assault.org www.yahoo-assault.org
CustomLog domlogs/yahoo-assault.org combined
ScriptAlias /cgi-bin/ /home/viz/public_html/cgi-bin/
</VirtualHost>

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 /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
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/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/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/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/

<VirtualHost 64.132.144.22>
ServerAlias www.booter-mania.com booter-mania.com
ServerAdmin [email protected]
DocumentRoot /home/booterm/public_html
BytesLog domlogs/booter-mania.com-bytes_log
ServerName www.booter-mania.com
User booterm
Group booterm
CustomLog domlogs/booter-mania.com combined
ScriptAlias /cgi-bin/ /home/booterm/public_html/cgi-bin/
</VirtualHost>


NameVirtualHost 64.132.144.21:80

<VirtualHost 64.132.144.21>
ServerAlias www.carlmann.net carlmann.net
ServerAdmin [email protected]
DocumentRoot /home/carl/public_html
BytesLog domlogs/carlmann.net-bytes_log
ServerName www.carlmann.net
User carl
Group carl
CustomLog domlogs/carlmann.net combined
ScriptAlias /cgi-bin/ /home/carl/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 64.132.144.20>
ServerAlias www.realm-hosting.com realm-hosting.com
ServerAdmin [email protected]
DocumentRoot /home/nvizible/public_html
BytesLog domlogs/realm-hosting.com-bytes_log
ServerName www.realm-hosting.com
User nvizible
Group nvizible
CustomLog domlogs/realm-hosting.com combined
ScriptAlias /cgi-bin/ /home/nvizible/public_html/cgi-bin/
</VirtualHost>
What's wrong with that??? :mad: Seems to me whm don't know what 1 + 1 is to put the virtualhosts in order.
 

blweb

Active Member
Oct 1, 2004
41
0
156
I am having the NameVirtualHost problem too.

My httpd.conf is a MESS since we updated. Basically, it seems that random NameVirtualHost directives are being entered with random IP's.

This shows up TWICE in the conf file:
Code:
NameVirtualHost 28.119.84.140:80

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 /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
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/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/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/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/
Then there is wierness like this:
Code:
NameVirtualHost 28.119.84.144:80

<VirtualHost 28.119.84.142>
ServerAlias www.antonecabinets.com antonecabinets.com
ServerAdmin [email protected]
DocumentRoot /home/antoneca/public_html
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/antoneca/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled antoneca 
</IfModule>
ServerName www.antonecabinets.com
User antoneca
Group antoneca
CustomLog domlogs/antonecabinets.com combined
ScriptAlias /cgi-bin/ /home/antoneca/public_html/cgi-bin/
</VirtualHost>


NameVirtualHost 28.119.84.143:80

<VirtualHost 28.119.84.142>
ServerAlias www.filmisland.co.uk filmisland.co.uk
ServerAdmin [email protected]
DocumentRoot /home/ashley/public_html
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/ashley/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled ashley 
</IfModule>
ServerName www.filmisland.co.uk
User ashley
Group ashley
CustomLog domlogs/filmisland.co.uk combined
ScriptAlias /cgi-bin/ /home/ashley/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 28.119.84.145>
ServerAlias www.stoctech.co.uk stoctech.co.uk
ServerAdmin [email protected]
DocumentRoot /home/atko64/public_html
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/atko64/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled atko64 
</IfModule>
ServerName www.stoctech.co.uk
User atko64
Group atko64
CustomLog domlogs/stoctech.co.uk combined
ScriptAlias /cgi-bin/ /home/atko64/public_html/cgi-bin/
</VirtualHost>


NameVirtualHost 28.119.84.142:80

<VirtualHost 28.119.84.142>
ServerAlias www.bbclemens.com bbclemens.com
ServerAdmin [email protected]
DocumentRoot /home/bclemens/public_html
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/bclemens/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled bclemens 
</IfModule>
ServerName www.bbclemens.com
User bclemens
Group bclemens
CustomLog domlogs/bbclemens.com combined
ScriptAlias /cgi-bin/ /home/bclemens/public_html/cgi-bin/
</VirtualHost>
Does anybody know what is causing this - or how to fix it? Should I just edit my httpdconf file and thing will append to the end?

We have another box with an older version of cpanel and the virtual host directives don't have the IP in them. They have the domain name. For example:
Code:
<VirtualHost beavercreekranch.ca>
ServerAlias  beavercreekranch.ca
ServerName beavercreekranch.ca
ScriptAlias /cgi-bin /home/clients/beavercreekranch.ca/cgi-bin
DocumentRoot /home/clients/beavercreekranch.ca/html
ErrorLog /home/clients/beavercreekranch.ca/logs/error.log
CustomLog /home/clients/beavercreekranch.ca/logs/access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\"\"%{User-agent}i\""
</VirtualHost>
PLEEEEEEEEEEEASE help.
 

flash7

Well-Known Member
Feb 16, 2004
201
0
166
Same problem here: cPanel 10.0.0-R146

some shared sites point to my home directory


WELCOME TO CPANEL!!!!!!!!! :D