hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Stupid whm/apache bug
Reply

Forum Jump

Stupid whm/apache bug

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-25-2008, 07:06 AM
Klentelaris Klentelaris is offline
WHT Addict
 
Join Date: Oct 2006
Posts: 148

Stupid whm/apache bug


It seems latest version of whm have a bug.If you put a lines of apache module into httdp.conf at last line,when someone add new domain(which means adding virtual conf)it adds instead normaly after last line it add after last character of last line into same line,and that screw apache starting since it have syntax error beacuse of it.So that means if you need to put somethign into httpd.conf you need to add before end of file.Beside that,like is that not enough,it seems whm doesnt like to see anything on end of line beside it's own lines.Apache stopped again beacuse of syntax error,but this time not beauce of new added domain,its a beacuse whm
added again default lines of it to end of file and lines was already there,just not on end of file since i added lines requied for one module of apache.
So in shortly dont add anything to end of httpd.conf file.

And this is what was added and duplicated:
Include "/usr/local/apache/conf/includes/errordocument.conf"
Alias /bandwidth/ /usr/local/bandmin/htdocs/
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/
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
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/
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAliasMatch ^/?securewhm/?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi

__________________
My icq-103553630



Sponsored Links
  #2  
Old 09-25-2008, 08:38 AM
servertechs servertechs is offline
Web Hosting Guru
 
Join Date: Jan 2008
Location: India
Posts: 287
Is your cpanel/Whm on stable release

__________________
Quality Server Management | Support Services
Servertechs.net | Sales@servertechs.net

  #3  
Old 09-25-2008, 11:20 AM
Klentelaris Klentelaris is offline
WHT Addict
 
Join Date: Oct 2006
Posts: 148
Quote:
Originally Posted by servertechs View Post
Is your cpanel/Whm on stable release
No idea but considering it is latest i presume it is.

__________________
My icq-103553630

Sponsored Links
  #4  
Old 09-25-2008, 12:04 PM
cPanelDavidG cPanelDavidG is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 563
Quote:
Originally Posted by Klentelaris View Post
No idea but considering it is latest i presume it is.
There are several branches of cPanel including EDGE, CURRENT, RELEASE and STABLE. If you are using the defaults, you would be on RELEASE.

Note, modifying httpd.conf in a cPanel/WHM environment without distilling the configuration is not recommended. You may wish to review the documentation for EA3 which manages Apache in cPanel/WHM environments at:

http://www.cpanel.net/support/docs/ea/ea3/ea3.html

__________________
David Grega
cPanel Technical Product Specialist

  #5  
Old 09-25-2008, 12:29 PM
Klentelaris Klentelaris is offline
WHT Addict
 
Join Date: Oct 2006
Posts: 148
Quote:
Originally Posted by cPanelDavidG View Post
There are several branches of cPanel including EDGE, CURRENT, RELEASE and STABLE. If you are using the defaults, you would be on RELEASE.

Note, modifying httpd.conf in a cPanel/WHM environment without distilling the configuration is not recommended. You may wish to review the documentation for EA3 which manages Apache in cPanel/WHM environments at:

http://www.cpanel.net/support/docs/ea/ea3/ea3.html
Well i added same lines in previous whm version and then i didnt have any problem during that time.This happened with latest whm/cpanel version

__________________
My icq-103553630

  #6  
Old 09-25-2008, 01:01 PM
Patrick Patrick is offline
Security Ninja
 
Join Date: Mar 2003
Location: Canada
Posts: 8,606
Quote:
Originally Posted by Klentelaris View Post
Well i added same lines in previous whm version and then i didnt have any problem during that time.This happened with latest whm/cpanel version
With EasyApache2 (much better, IMO!), you could always make changes directly to Apache's configuration files without having to worry about them being lost. When cPanel 11 and EasyApache3 were introduced this was no longer the case and you have to modify the various Apache include files to ensure the changes are saved.

Of course you can still make changes directly to the Apache configuration files, but during the next Apache update (including PHP upgrades) they will be lost, so it's best to use the include files available within WHM or you can do it manually via SSH.

It's a PITA, but that's how it is... :/

__________________
Patrick William | Rack911 Research Labs | Software Security Auditing
250+ Vulnerabilities Found - Get a quote on a professional audit @ Rack911.com

www.HostingSecList.com - Security notices for the hosting community.

  #7  
Old 09-25-2008, 03:35 PM
Klentelaris Klentelaris is offline
WHT Addict
 
Join Date: Oct 2006
Posts: 148
Quote:
Originally Posted by Pat H View Post
With EasyApache2 (much better, IMO!), you could always make changes directly to Apache's configuration files without having to worry about them being lost. When cPanel 11 and EasyApache3 were introduced this was no longer the case and you have to modify the various Apache include files to ensure the changes are saved.

Of course you can still make changes directly to the Apache configuration files, but during the next Apache update (including PHP upgrades) they will be lost, so it's best to use the include files available within WHM or you can do it manually via SSH.

It's a PITA, but that's how it is... :/
Hmm yes i think using include files will be best since that will secure possible screwups.

__________________
My icq-103553630

Reply

Related posts from TheWhir.com
Title Type Date Posted
Apache Market Share Falls in Netcraft October Web Server Survey Web Hosting News 2013-10-04 14:34:11
Apache Market Share Dips Slightly in June Netcraft Web Server Survey Web Hosting News 2013-06-06 13:40:21
Apache Continues to Dominate Web Server Market in Netcraft May Survey Web Hosting News 2013-05-06 14:29:02
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
CloudStack 4.0 Open Source Cloud Software Released as Apache Incubator Project Web Hosting News 2012-11-08 13:54:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?